本文整理汇总了PHP中web_edit_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP web_edit_icon函数的具体用法?PHP web_edit_icon怎么用?PHP web_edit_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了web_edit_icon函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: render
public function render()
{
$cells = wf_TableCell(__('Login'));
$cells .= wf_TableCell(__('Address'));
$cells .= wf_TableCell(__('Real Name'));
$cells .= wf_TableCell(__('IP'));
$cells .= wf_TableCell(__('Tariff'));
$cells .= wf_TableCell(__('Traffic'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($this->data)) {
$allrealnames = zb_UserGetAllRealnames();
$alladdress = zb_AddressGetFulladdresslist();
foreach ($this->data as $io => $each) {
$loginLink = wf_Link("?module=userprofile&username=" . $each['login'], web_profile_icon() . ' ' . $each['login'], false, '');
$cells = wf_TableCell($loginLink);
$cells .= wf_TableCell(@$alladdress[$each['login']]);
$cells .= wf_TableCell(@$allrealnames[$each['login']]);
$cells .= wf_TableCell($each['IP']);
$cells .= wf_TableCell($each['Tariff']);
$cells .= wf_TableCell(stg_convert_size($each['traffic']), '', '', 'sorttable_customkey="' . $each['traffic'] . '"');
$actionLinks = wf_Link('?module=pl_traffdetails&username=' . $each['login'], wf_img('skins/icon_stats.gif', __('Detailed stats')), false, '');
$actionLinks .= wf_link('?module=dstatedit&username=' . $each['login'], web_edit_icon(), false, '');
$cells .= wf_TableCell($actionLinks);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:30,代码来源:index.php
示例2: stg_show_tagtypes
/**
* Render available tag types list with all needed controls
*
* @return string
*/
function stg_show_tagtypes()
{
$messages = new UbillingMessageHelper();
$query = "SELECT * from `tagtypes` ORDER BY `id` ASC";
$alltypes = simple_queryall($query);
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Color'));
$cells .= wf_TableCell(__('Priority'));
$cells .= wf_TableCell(__('Text'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($alltypes)) {
foreach ($alltypes as $io => $eachtype) {
$eachtagcolor = $eachtype['tagcolor'];
$actions = wf_JSAlert('?module=usertags&delete=' . $eachtype['id'], web_delete_icon(), $messages->getDeleteAlert());
$actions .= wf_JSAlert('?module=usertags&edit=' . $eachtype['id'], web_edit_icon(), $messages->getEditAlert());
$cells = wf_TableCell($eachtype['id']);
$cells .= wf_TableCell(wf_tag('font', false, '', 'color="' . $eachtagcolor . '"') . $eachtagcolor . wf_tag('font', true));
$cells .= wf_TableCell($eachtype['tagsize']);
$cells .= wf_TableCell($eachtype['tagname']);
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
//construct adding form
$inputs = wf_ColPicker('newcolor', __('Color'), '#' . rand(11, 99) . rand(11, 99) . rand(11, 99), false, '10');
$inputs .= wf_TextInput('newtext', __('Text'), '', false, '15');
$inputs .= web_priority_selector() . ' ';
$inputs .= wf_HiddenInput('addnewtag', 'true');
$inputs .= wf_Submit(__('Create'));
$form = wf_Form("", 'POST', $inputs, 'glamour');
$result .= $form;
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:40,代码来源:api.usertags.php
示例3: web_list_admins
/**
* Returns available administrators list
*
* @return string
*/
function web_list_admins()
{
$alladmins = rcms_scandir(USERS_PATH);
$cells = wf_TableCell(__('Admin'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($alladmins)) {
foreach ($alladmins as $eachadmin) {
$actions = wf_JSAlert('?module=permissions&delete=' . $eachadmin, web_delete_icon(), 'Removing this may lead to irreparable results');
$actions .= wf_Link('?module=permissions&passwd=' . $eachadmin, web_key_icon());
$actions .= wf_Link('?module=permissions&edit=' . $eachadmin, web_edit_icon('Rights'));
$cells = wf_TableCell($eachadmin);
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$form = wf_TableBody($rows, '100%', '0', 'sortable');
return $form;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php
示例4: web_NasTemplatesShow
function web_NasTemplatesShow()
{
$query = "SELECT * from `nastemplates`";
$alltemplates = simple_queryall($query);
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('NAS'));
$tablecells .= wf_TableCell(__('Template'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($alltemplates)) {
foreach ($alltemplates as $io => $eachtemplate) {
$nasdata = zb_NasGetData($eachtemplate['nasid']);
$tablecells = wf_TableCell($eachtemplate['id']);
$tablecells .= wf_TableCell($eachtemplate['nasid'] . ':' . $nasdata['nasname']);
$tablecells .= wf_TableCell('<pre>' . $eachtemplate['template'] . '</pre>');
$actions = wf_JSAlert("?module=radiust&delete=" . $eachtemplate['id'], web_delete_icon(), 'Are you serious');
$actions .= wf_Link("?module=radiust&edit=" . $eachtemplate['id'], web_edit_icon(), false, '');
$tablecells .= wf_TableCell($actions);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Available NAS Radius attribute templates'), $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:api.radius.php
示例5: web_PhpConsoleShowTemplates
function web_PhpConsoleShowTemplates()
{
$alltemplatekeys = zb_StorageFindKeys('PHPCONSOLETEMPLATE:');
$tablecells = wf_TableCell(__('Template'), '80%');
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($alltemplatekeys)) {
foreach ($alltemplatekeys as $eachtemplatekey) {
$templatearray = zb_PhpConsoleGetTemplate($eachtemplatekey['key']);
$templatename = $templatearray['name'];
$templatebody = $templatearray['body'];
//show code template
$runlink = wf_JSAlert('?module=sqlconsole&devconsole=true&runtpl=' . $eachtemplatekey['key'], $templatename, 'Insert this template into PHP console');
$tablecells = wf_TableCell($runlink);
$actionlinks = wf_JSAlert('?module=sqlconsole&devconsole=true&deltemplate=' . $eachtemplatekey['key'], web_delete_icon(), 'Are you serious');
$actionlinks .= wf_Link('?module=sqlconsole&devconsole=true&edittemplate=' . $eachtemplatekey['key'], web_edit_icon());
$tablecells .= wf_TableCell($actionlinks);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$createlink = __('Available code templates') . ' ' . wf_Link("?module=sqlconsole&devconsole=true&templateadd=true", wf_img("skins/icon_add.gif", __('Create')), false);
$result = $createlink . ' ' . wf_TableBody($tablerows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php
示例6: web_SwitchesShow
/**
* Returns list of all available switches devices with its controls. Also catches ajaxping and forcereping events.
*
* @return string
*/
function web_SwitchesShow()
{
global $ubillingConfig;
$alterconf = $ubillingConfig->getAlter();
$allswitches = zb_SwitchesGetAll();
$modelnames = zb_SwitchModelsGetAllTag();
$currenttime = time();
$reping_timeout = $alterconf['SW_PINGTIMEOUT'];
$deathTime = zb_SwitchesGetAllDeathTime();
//counters
$countTotal = 0;
$countAlive = 0;
$countDead = 0;
$countNp = 0;
$countOnMap = 0;
$countSwpoll = 0;
$countMtsigmon = 0;
$countOlt = 0;
$countLinked = 0;
//non realtime switches pinging
$last_pingtime = zb_StorageGet('SWPINGTIME');
if (!$last_pingtime) {
zb_SwitchesRepingAll();
zb_StorageSet('SWPINGTIME', $currenttime);
$last_pingtime = $currenttime;
} else {
if ($currenttime > $last_pingtime + $reping_timeout * 60) {
// normal timeout reping sub here
zb_SwitchesRepingAll();
zb_StorageSet('SWPINGTIME', $currenttime);
}
}
//force total reping and update cache
if (wf_CheckGet(array('forcereping'))) {
zb_SwitchesRepingAll();
zb_StorageSet('SWPINGTIME', $currenttime);
if (wf_CheckGet(array('ajaxping'))) {
$dead_raw = zb_StorageGet('SWDEAD');
$deathTime = zb_SwitchesGetAllDeathTime();
$deadarr = array();
$ajaxResult = '';
if ($dead_raw) {
$deadarr = unserialize($dead_raw);
if (!empty($deadarr)) {
//there is some dead switches
$deadcount = sizeof($deadarr);
if ($alterconf['SWYMAP_ENABLED']) {
//getting geodata
$switchesGeo = zb_SwitchesGetAllGeo();
}
//ajax container
$ajaxResult .= wf_tag('div', false, '', 'id="switchping"');
foreach ($deadarr as $ip => $switch) {
if ($alterconf['SWYMAP_ENABLED']) {
if (isset($switchesGeo[$ip])) {
if (!empty($switchesGeo[$ip])) {
$devicefind = wf_Link('?module=switchmap&finddevice=' . $switchesGeo[$ip], wf_img('skins/icon_search_small.gif', __('Find on map'))) . ' ';
} else {
$devicefind = '';
}
} else {
$devicefind = '';
}
} else {
$devicefind = '';
}
//check morgue records for death time
if (isset($deathTime[$ip])) {
$deathClock = wf_img('skins/clock.png', __('Switch dead since') . ' ' . $deathTime[$ip]) . ' ';
} else {
$deathClock = '';
}
//switch location link
$switchLocator = wf_Link('?module=switches&gotoswitchbyip=' . $ip, web_edit_icon(__('Go to switch')));
//add switch as dead
$ajaxResult .= $devicefind . ' ' . $switchLocator . ' ' . $deathClock . $ip . ' - ' . $switch . '<br>';
}
} else {
$ajaxResult = __('Switches are okay, everything is fine - I guarantee');
}
}
$ajaxResult .= wf_delimiter() . __('Cache state at time') . ': ' . date("H:i:s");
print $ajaxResult;
//darkvoid update
$notifyArea = new DarkVoid();
$notifyArea->flushCache();
die;
}
}
//load dead switches cache
$dead_switches_raw = zb_StorageGet('SWDEAD');
if (!$dead_switches_raw) {
$dead_switches = array();
} else {
$dead_switches = unserialize($dead_switches_raw);
//.........这里部分代码省略.........
开发者ID:carriercomm,项目名称:Ubilling,代码行数:101,代码来源:api.switches.php
示例7: renderList
/**
* Returns available time rules grid
*
* @return string
*/
public function renderList()
{
$messages = new UbillingMessageHelper();
$allTariffs = zb_TariffGetPricesAll();
$query = "SELECT * from `dshape_time` ORDER BY `id` ASC";
$allrules = simple_queryall($query);
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Tariff'));
$cells .= wf_TableCell(__('Time from'));
$cells .= wf_TableCell(__('Time to'));
$cells .= wf_TableCell(__('Speed'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($allrules)) {
foreach ($allrules as $io => $eachrule) {
$rowClass = isset($allTariffs[$eachrule['tariff']]) ? 'row3' : 'sigdeleteduser';
$tariffControl = cfr('TARIFFSPEED') ? wf_Link('?module=tariffspeeds&tariff=' . $eachrule['tariff'], $eachrule['tariff'], false) : $eachrule['tariff'];
$cells = wf_TableCell($eachrule['id']);
$cells .= wf_TableCell($tariffControl);
$cells .= wf_TableCell($eachrule['threshold1']);
$cells .= wf_TableCell($eachrule['threshold2']);
$cells .= wf_TableCell($eachrule['speed']);
$actions = wf_JSAlert('?module=dshaper&delete=' . $eachrule['id'], web_delete_icon(), $messages->getDeleteAlert());
$actions .= wf_JSAlert('?module=dshaper&edit=' . $eachrule['id'], web_edit_icon(), $messages->getEditAlert());
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, $rowClass);
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:36,代码来源:api.dshaper.php
示例8: renderIps
/**
* Renders ips associated with some poolid
*
* @param int $poolid Existing pool ID
*
* @return string
*/
public function renderIps($poolid)
{
$poolid = vf($poolid, 3);
$result = '';
if (empty($this->switches)) {
$this->loadSwitches();
}
if (isset($this->pools[$poolid])) {
if (!empty($this->ips)) {
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('IP'));
$cells .= wf_TableCell(__('Gateway'));
$cells .= wf_TableCell(__('Netmask'));
$cells .= wf_TableCell(__('NAS'));
$cells .= wf_TableCell(__('Interface'));
$cells .= wf_TableCell(__('MAC'));
$cells .= wf_TableCell(__('Switch'));
$cells .= wf_TableCell(__('Port'));
$cells .= wf_TableCell(__('VLAN'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($this->ips as $io => $eachip) {
if ($eachip['poolid'] == $poolid) {
$cells = wf_TableCell($eachip['id']);
$cells .= wf_TableCell($eachip['ip']);
$cells .= wf_TableCell($this->pools[$poolid]['gw']);
$cells .= wf_TableCell($this->cidrToMask[$this->pools[$poolid]['netmask']]);
$cells .= wf_TableCell($eachip['nas']);
$cells .= wf_TableCell($eachip['iface']);
$cells .= wf_TableCell($eachip['mac']);
$cells .= wf_TableCell(@$this->switches[$eachip['switchid']]);
$cells .= wf_TableCell($eachip['port']);
$cells .= wf_TableCell($this->pools[$poolid]['vlan']);
$actionsLink = wf_modal(web_edit_icon(), __('Edit') . ' ' . $eachip['ip'], $this->ipsEditForm($eachip['id']), '', '400', '300');
$cells .= wf_TableCell($actionsLink);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
//back links controls
if (!empty($this->pools[$poolid]['login'])) {
$result .= wf_Link("?module=userprofile&username=" . $this->pools[$poolid]['login'], __('Back to user profile'), false, 'ubButton');
}
$result .= wf_Link('?module=extnets&showpoolbynetid=' . $this->pools[$poolid]['netid'], __('Back') . ' ' . $this->pools[$poolid]['pool'] . '/' . $this->pools[$poolid]['netmask'], true, 'ubButton');
}
} else {
throw new Exception(self::EX_NOEXPOOL);
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:57,代码来源:api.extnets.php
示例9: renderTariffs
/**
* renders CaTV tariffs list with some controls
*
* @return void
*/
public function renderTariffs()
{
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Tariff name'));
$cells .= wf_TableCell(__('Tariff Fee'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($this->tariffs)) {
foreach ($this->tariffs as $io => $each) {
$cells = wf_TableCell($each['id']);
$cells .= wf_TableCell($each['tariffname']);
$cells .= wf_TableCell($each['price']);
$actlinks = wf_JSAlert(self::URL_TARIFFS_MGMT . '&tariffdelete=' . $each['id'], web_delete_icon(), __('Removing this may lead to irreparable results'));
$actlinks .= wf_modal(web_edit_icon(), __('Edit') . ' ' . $each['tariffname'], $this->tariffEditForm($each['id']), '', '400', '200');
$cells .= wf_TableCell($actlinks, '', '', $customkey = 'sorttable_customkey="0"');
//need this to keep table sortable
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
$result .= wf_modal(wf_img('skins/plus.png', __('Create new tariff')), __('Create new tariff'), $this->tariffCreateForm(), '', '400', '200');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:28,代码来源:api.ukv.php
示例10: web_CityLister
/**
* Returns available cities lister with some controls
*
* @return string
*/
function web_CityLister()
{
$allcity = zb_AddressGetCityAllData();
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('City name'));
$cells .= wf_TableCell(__('City alias'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($allcity)) {
foreach ($allcity as $io => $eachcity) {
$cells = wf_TableCell($eachcity['id']);
$cells .= wf_TableCell($eachcity['cityname']);
$cells .= wf_TableCell($eachcity['cityalias']);
$acts = wf_JSAlert('?module=city&action=delete&cityid=' . $eachcity['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . ' ';
$acts .= wf_JSAlert('?module=city&action=edit&cityid=' . $eachcity['id'], web_edit_icon(), 'Are you serious') . ' ';
$acts .= wf_Link('?module=streets', web_street_icon(), false, '');
$cells .= wf_TableCell($acts);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:28,代码来源:api.address.php
示例11: show_window
if (!wf_CheckGet(array('add'))) {
if (method_exists($corps, $beggar['METH']['RENDER'])) {
show_window(__('Available corps'), $corps->{$beggar}['METH']['RENDER']());
}
}
}
}
//user management
if ($route == Corps::URL_USER) {
if (wf_CheckGet(array('username'))) {
$login = mysql_real_escape_string($_GET['username']);
$userCorpCheck = $corps->userIsCorporate($login);
if ($userCorpCheck) {
//enterprise user
$corpsControls = $corps->corpPreview($userCorpCheck);
$corpsControls .= wf_Link(Corps::URL_CORPS_EDIT . $userCorpCheck . '&usercallback=' . $login, web_edit_icon() . ' ' . __('Edit'), true, 'ubButton');
$corpsControls .= wf_delimiter();
$corpsControls .= web_UserControls($login);
show_window(__('Corporate user'), $corpsControls);
} else {
//user is private
if (wf_CheckPost(array('bindsomelogin', 'bindlogintocorpid'))) {
$corps->userBind($_POST['bindsomelogin'], $_POST['bindlogintocorpid']);
rcms_redirect(Corps::URL_USER_MANAGE . $_POST['bindsomelogin']);
}
if (method_exists($corps, $beggar['BU']['F'])) {
$corpAttachControls = $corps->{$beggar}['BU']['F']($login);
show_window(__('Private user'), $corpAttachControls);
}
if (method_exists($corps, $beggar['BU']['AB'])) {
$corpAddAttachControls = $corps->{$beggar}['BU']['AB']($login);
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例12: web_ReportMasterShowReportsList
/**
* Renders available reports list
*
* @return string
*/
function web_ReportMasterShowReportsList()
{
$messages = new UbillingMessageHelper();
$reports_path = DATA_PATH . "reports/";
$allreports = rcms_scandir($reports_path);
$cells = wf_TableCell(__('Report name'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($allreports)) {
foreach ($allreports as $eachreport) {
$report_template = rcms_parse_ini_file($reports_path . $eachreport);
$cells = wf_TableCell(wf_Link('?module=reportmaster&view=' . $eachreport, __($report_template['REPORT_NAME'])));
$actControls = wf_JSAlert('?module=reportmaster&delete=' . $eachreport, web_delete_icon(), $messages->getDeleteAlert());
$actControls .= wf_JSAlert('?module=reportmaster&edit=' . $eachreport, web_edit_icon(), $messages->getEditAlert());
$cells .= wf_TableCell($actControls);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
return $result;
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:26,代码来源:index.php
示例13: mapGetPlacemarks
/**
* Returns list of map placemarks
*
* @param int $id
*
* @return string
*/
public function mapGetPlacemarks($id)
{
$id = vf($id, 3);
$result = '';
if (!empty($this->allItems)) {
foreach ($this->allItems as $io => $each) {
if ($each['mapid'] == $id and !empty($each['geo'])) {
$icon = $this->itemGetIcon($each['type']);
$content = $this->itemGetTypeName($each['type']) . ': ' . $each['name'];
$controls = wf_Link('?module=custmaps&edititem=' . $each['id'], web_edit_icon(), false);
$controls = str_replace("'", '`', $controls);
$controls = str_replace("\n", '', $controls);
$result .= $this->mapAddMark($each['geo'], $each['location'], $content, $controls, $icon, '');
}
}
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:25,代码来源:api.custmaps.php
示例14: web_TicketDialogue
/**
* Renders ticket, all of replies and all needed controls/forms for they
*
* @param int $ticketid
*
* @return string
*/
function web_TicketDialogue($ticketid)
{
$ticketid = vf($ticketid, 3);
$ticketdata = zb_TicketGetData($ticketid);
$ticketreplies = zb_TicketGetReplies($ticketid);
$result = wf_tag('p', false, '', 'align="right"') . wf_Link('?module=ticketing', 'Back to tickets list', true, 'ubButton') . wf_tag('p', true);
if (!empty($ticketdata)) {
$alladdress = zb_AddressGetFulladdresslist();
$allrealnames = zb_UserGetAllRealnames();
$alltariffs = zb_TariffsGetAllUsers();
$allcash = zb_CashGetAllUsers();
$allcredits = zb_CreditGetAllUsers();
$alluserips = zb_UserGetAllIPs();
if ($ticketdata['status']) {
$actionlink = wf_Link('?module=ticketing&openticket=' . $ticketdata['id'], 'Open', false, 'ubButton');
} else {
$actionlink = wf_Link('?module=ticketing&closeticket=' . $ticketdata['id'], 'Close', false, 'ubButton');
}
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('Date'));
$tablecells .= wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Real Name'));
$tablecells .= wf_TableCell(__('Full address'));
$tablecells .= wf_TableCell(__('IP'));
$tablecells .= wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Balance'));
$tablecells .= wf_TableCell(__('Credit'));
$tablecells .= wf_TableCell(__('Processed'));
$tablerows = wf_TableRow($tablecells, 'row1');
$tablecells = wf_TableCell($ticketdata['id']);
$tablecells .= wf_TableCell($ticketdata['date']);
$profilelink = wf_Link('?module=userprofile&username=' . $ticketdata['from'], web_profile_icon() . ' ' . $ticketdata['from']);
$tablecells .= wf_TableCell($profilelink);
$tablecells .= wf_TableCell(@$allrealnames[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alladdress[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alluserips[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alltariffs[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$allcash[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$allcredits[$ticketdata['from']]);
$tablecells .= wf_TableCell(web_bool_led($ticketdata['status']));
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0');
//ticket body
$tickettext = strip_tags($ticketdata['text']);
$tickettext = nl2br($tickettext);
$tablecells = wf_TableCell('', '20%');
$tablecells .= wf_TableCell($ticketdata['date']);
$tablerows = wf_TableRow($tablecells, 'row2');
$ticketauthor = wf_tag('center') . wf_tag('b') . @$allrealnames[$ticketdata['from']] . wf_tag('b', true) . wf_tag('center', true);
$ticketavatar = wf_tag('center') . wf_img('skins/userava.png') . wf_tag('center', true);
$ticketpanel = $ticketauthor . wf_tag('br') . $ticketavatar;
$tablecells = wf_TableCell($ticketpanel);
$tablecells .= wf_TableCell($tickettext);
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0', 'glamour');
$result .= $actionlink;
}
if (!empty($ticketreplies)) {
$result .= wf_tag('h2') . __('Replies') . wf_tag('h2', true);
$result .= wf_CleanDiv();
foreach ($ticketreplies as $io => $eachreply) {
//reply
if ($eachreply['admin']) {
$replyauthor = wf_tag('center') . wf_tag('b') . $eachreply['admin'] . wf_tag('b', true) . wf_tag('center', true);
$replyavatar = wf_tag('center') . gravatar_ShowAdminAvatar($eachreply['admin'], '64') . wf_tag('center', true);
} else {
$replyauthor = wf_tag('center') . wf_tag('b') . @$allrealnames[$eachreply['from']] . wf_tag('b', true) . wf_tag('center', true);
$replyavatar = wf_tag('center') . wf_img('skins/userava.png') . wf_tag('center', true);
}
$replyactions = wf_tag('center');
$replyactions .= wf_JSAlert('?module=ticketing&showticket=' . $ticketdata['id'] . '&deletereply=' . $eachreply['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . ' ';
$replyactions .= wf_JSAlert('?module=ticketing&showticket=' . $ticketdata['id'] . '&editreply=' . $eachreply['id'], web_edit_icon(), 'Are you serious');
$replyactions .= wf_tag('center', true);
// reply body
if (isset($_GET['editreply'])) {
if ($_GET['editreply'] == $eachreply['id']) {
//is this reply editing?
$replytext = web_TicketReplyEditForm($eachreply['id']);
} else {
//not this ticket edit
$replytext = strip_tags($eachreply['text']);
}
} else {
//normal text by default
$replytext = strip_tags($eachreply['text']);
$replytext = nl2br($replytext);
}
$replypanel = $replyauthor . wf_tag('br') . $replyavatar . wf_tag('br') . $replyactions;
$tablecells = wf_TableCell('', '20%');
$tablecells .= wf_TableCell($eachreply['date']);
$tablerows = wf_TableRow($tablecells, 'row2');
$tablecells = wf_TableCell($replypanel);
$tablecells .= wf_TableCell($replytext);
//.........这里部分代码省略.........
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:101,代码来源:api.ticketing.php
示例15: zb_LicenseLister
function zb_LicenseLister()
{
$avarice = new Avarice();
$all = $avarice->getLicenseKeys();
$cells = wf_TableCell(__('Module'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($all)) {
foreach ($all as $io => $each) {
//construct edit form
$editinputs = wf_HiddenInput('editdbkey', $each['KEY']);
$editinputs .= wf_TextArea('editlicense', '', $each['LICENSE'], true, '50x10');
$editinputs .= wf_Submit(__('Save'));
$editform = wf_Form("", 'POST', $editinputs, 'glamour');
$editcontrol = wf_modal(web_edit_icon(), __('Edit'), $editform, '', '500', '300');
//construct deletion controls
$deletecontrol = wf_JSAlert('?module=licensekeys&licensedelete=' . $each['KEY'], web_delete_icon(), __('Removing this may lead to irreparable results'));
$cells = wf_TableCell($each['MODULE']);
$cells .= wf_TableCell($deletecontrol . ' ' . $editcontrol);
$rows .= wf_TableRow($cells, 'row3');
}
}
//constructing license creation form
$addinputs = wf_TextArea('createlicense', '', '', true, '50x10');
$addinputs .= wf_Submit(__('Add'));
$addform = wf_Form("", 'POST', $addinputs, 'glamour');
$addcontrol = wf_modal(wf_img('skins/icon_add.gif', __('Add')) . ' ' . __('Add'), __('Add'), $addform, 'ubButton', '500', '300');
$result = wf_TableBody($rows, '100%', 0, '');
$result .= $addcontrol;
show_window(__('Installed license keys'), $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:api.deploy.php
示例16: renderTasks
/**
* Renders tasks list as human readable view
*
* @param array $tasksArray
*
* @return string
*/
public function renderTasks($tasksArray)
{
$result = '';
$totalCount = 0;
if (!empty($tasksArray)) {
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Address'));
$cells .= wf_TableCell(__('Job type'));
$cells .= wf_TableCell(__('Phone'));
$cells .= wf_TableCell(__('Who should do'));
$cells .= wf_TableCell(__('Worker done'));
$cells .= wf_TableCell(__('Target date'));
$cells .= wf_TableCell(__('Finish date'));
$cells .= wf_TableCell(__('Status'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($tasksArray as $io => $each) {
$cells = wf_TableCell($each['id']);
$cells .= wf_TableCell($each['address']);
$cells .= wf_TableCell(@$this->allJobtypes[$each['jobtype']]);
$cells .= wf_TableCell($each['phone']);
$cells .= wf_TableCell(@$this->allEmployee[$each['employee']]);
$cells .= wf_TableCell(@$this->allEmployee[$each['employeedone']]);
$cells .= wf_TableCell($each['startdate'] . ' ' . $each['starttime']);
$cells .= wf_TableCell($each['enddate']);
$cells .= wf_TableCell(web_bool_led($each['status']), '', '', 'sorttable_customkey="' . $each['status'] . '"');
$actLinks = wf_Link(self::URL_TASKVIEW . $each['id'], web_edit_icon(), false);
$cells .= wf_TableCell($actLinks);
$rows .= wf_TableRow($cells, 'row3');
$totalCount++;
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
$result .= __('Total') . ': ' . $totalCount;
} else {
$messages = new UbillingMessageHelper();
$result = $messages->getStyledMessage(__('Nothing found'), 'warning');
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:46,代码来源:index.php
示例17: web_TariffLister
function web_TariffLister()
{
$alltariffs = billing_getalltariffs();
$dbSchema = zb_CheckDbSchema();
global $ubillingConfig;
$alter = $ubillingConfig->getAlter();
$cells = wf_TableCell(__('Tariff name'));
$cells .= wf_TableCell(__('Tariff Fee'));
if ($dbSchema > 0) {
$cells .= wf_TableCell(__('Period'));
}
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
$result = wf_Link("?module=tariffs&action=new", __('Create new tariff'), true, 'ubButton');
if (!empty($alltariffs)) {
foreach ($alltariffs as $io => $eachtariff) {
$cells = wf_TableCell($eachtariff['name']);
$cells .= wf_TableCell($eachtariff['Fee']);
if ($dbSchema > 0) {
$cells .= wf_TableCell(__($eachtariff['period']));
}
$actions = wf_JSAlert("?module=tariffs&action=delete&tariffname=" . $eachtariff['name'], web_delete_icon(), __('Delete') . ' ' . $eachtariff['name'] . '? ' . __('Removing this may lead to irreparable results'));
$actions .= wf_JSAlert("?module=tariffs&action=edit&tariffname=" . $eachtariff['name'], web_edit_icon(), __('Edit') . ' ' . $eachtariff['name'] . '? ' . __('Are you serious'));
$actions .= wf_Link('?module=tariffspeeds&tariff=' . $eachtariff['name'], wf_img('skins/icon_speed.gif', __('Edit speed')), false, '');
$actions .= isset($alter['SIGNUP_PAYMENTS']) && !empty($alter['SIGNUP_PAYMENTS']) ? wf_Link('?module=signupprices&tariff=' . $eachtariff['name'], wf_img('skins/icons/register.png', __('Edit signup price')), false, '') : null;
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result .= wf_TableBody($rows, '100%', 0, 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:32,代码来源:index.php
示例18: catv_UserShowAllpayments
function catv_UserShowAllpayments($userid)
{
$catvconf = catv_LoadConfig();
$alluserpayments = catv_PaymentsGetAllByUser($userid);
$montharray_wz = months_array_wz();
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('Cash'));
$cells .= wf_TableCell(__('From month'));
$cells .= wf_TableCell(__('From year'));
$cells .= wf_TableCell(__('Notes'));
$cells .= wf_TableCell(__('Admin'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($alluserpayments)) {
foreach ($alluserpayments as $io => $eachpayrow) {
//check is payments protected?
if ($catvconf['PAYMENTS_PROTECT']) {
$paycontrols = '';
} else {
$paycontrols = '
' . wf_JSAlert('?module=catv_addcash&userid=' . $eachpayrow['userid'] . '&deletepayment=' . $eachpayrow['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . '
' . wf_JSAlert('?module=catv_addcash&userid=' . $eachpayrow['userid'] . '&editpayment=' . $eachpayrow['id'], web_edit_icon(), 'Are you serious') . '
';
}
// month locale
$transmonth = $montharray_wz[$eachpayrow['from_month']];
$transmonth = rcms_date_localise($transmonth);
$cells = wf_TableCell($eachpayrow['id']);
$cells .= wf_TableCell($eachpayrow['date']);
$cells .= wf_TableCell($eachpayrow['summ']);
$cells .= wf_TableCell($transmonth);
$cells .= wf_TableCell($eachpayrow['from_year']);
$cells .= wf_TableCell($eachpayrow['notes']);
$cells .= wf_TableCell($eachpayrow['admin']);
$cells .= wf_TableCell($paycontrols);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:42,代码来源:api.catv.php
示例19: listAllTasks
public function listAllTasks()
{
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Active'));
$cells .= wf_TableCell(__('Name'));
$cells .= wf_TableCell(__('Check type'));
$cells .= wf_TableCell(__('Parameter'));
$cells .= wf_TableCell(__('Operator'));
$cells .= wf_TableCell(__('Condition'));
$cells .= wf_TableCell(__('Actions'));
$cells .= wf_TableCell(__('Manage'));
$rows = wf_TableRow($cells, 'row1');
$lighter = 'onmouseover="this.className = \'row2\';" onmouseout="this.className = \'row3\';" ';
if (!empty($this->allTasks)) {
foreach ($this->allTasks as $io => $eachtask) {
$details = wf_tag('pre') . print_r($eachtask, true) . wf_tag('pre', true);
$detailLink = wf_modal($eachtask['id'], $eachtask['name'], $details, '', '600', '400');
$cells = wf_TableCell($detailLink, '', '', 'sorttable_customkey="' . $eachtask['id'] . '"');
$cells .= wf_TableCell(web_bool_led($eachtask['active']), '', '', 'sorttable_customkey="' . $eachtask['active'] . '"');
$cells .= wf_TableCell($eachtask['name']);
$cells .= wf_TableCell($eachtask['checktype']);
$cells .= wf_TableCell($eachtask['param']);
$cells .= wf_TableCell($eachtask['operator']);
$cells .= wf_TableCell($eachtask['condition']);
$cells .= wf_TableCell($eachtask['action']);
$controls = wf_JSAlert('?module=watchdog&delete=' . $eachtask['id'], web_delete_icon(), __('Removing this may lead to irreparable results'));
$controls .= wf_JSAlert('?module=watchdog&edit=' . $eachtask['id'], web_edit_icon(), __('Are you serious'));
$cells .= wf_TableCell($controls);
$rows .= wf_tag('tr', false, 'row3', $lighter);
$rows .= $cells;
$rows .= wf_tag('tr', true);
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:36,代码来源:api.watchdog.php
-
NanoMichael/MicroTeX: A dynamic, cross-platform, and embeddable LaTeX rendering
阅读:883|2022-08-12
-
bradtraversy/iweather: Ionic 3 mobile weather app
阅读:1584|2022-08-30
-
joaomh/curso-de-matlab
阅读:1147|2022-08-17
-
魔兽世界怀旧服已经开启两个多月了,但作为一个猎人玩家,抓到“断牙”,已经成为了一
阅读:1002|2022-11-06
-
rugk/mastodon-simplified-federation: Simplifies following and interacting with r
阅读:1080|2022-08-17
-
An issue was discovered in Inductive Automation Ignition before 7.9.20 and 8.x b
阅读:916|2022-07-29
-
Tangshitao/Dense-Scene-Matching: Learning Camera Localization via Dense Scene Ma
阅读:759|2022-08-16
-
json4s/json4s: JSON library
阅读:776|2022-08-15
-
相信不少果粉在对自己的设备进行某些操作时,都会碰到Respring,但这个 Respring 到底
阅读:361|2022-11-06
-
lightningtgc/MProgress.js: Material Progress —Google Material Design Progress l
阅读:406|2022-08-17
|
请发表评论