当前位置: 首页>>代码示例>>PHP>>正文


PHP web_profile_icon函数代码示例

本文整理汇总了PHP中web_profile_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP web_profile_icon函数的具体用法?PHP web_profile_icon怎么用?PHP web_profile_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了web_profile_icon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: web_CardShowUsageByMonth

 /**
  * Renders search results for used cards
  * 
  * @param int $year
  * @param string $month
  * 
  * @return void
  */
 function web_CardShowUsageByMonth($year, $month)
 {
     $month = mysql_real_escape_string($month);
     $year = mysql_real_escape_string($year);
     $query = "SELECT * from `cardbank` WHERE `usedate` LIKE '%" . $year . "-" . $month . "-%'";
     $allusedcards = simple_queryall($query);
     $allrealnames = zb_UserGetAllRealnames();
     $alladdress = zb_AddressGetFulladdresslist();
     $totalsumm = 0;
     $totalcount = 0;
     $csvdata = '';
     $tablecells = wf_TableCell(__('ID'));
     $tablecells .= wf_TableCell(__('Serial number'));
     $tablecells .= wf_TableCell(__('Cash'));
     $tablecells .= wf_TableCell(__('Usage date'));
     $tablecells .= wf_TableCell(__('Used login'));
     $tablecells .= wf_TableCell(__('Full address'));
     $tablecells .= wf_TableCell(__('Real name'));
     $tablerows = wf_TableRow($tablecells, 'row1');
     if (!empty($allusedcards)) {
         $csvdata = __('ID') . ';' . __('Serial number') . ';' . __('Cash') . ';' . __('Usage date') . ';' . __('Used login') . ';' . __('Full address') . ';' . __('Real name') . "\n";
         foreach ($allusedcards as $io => $eachcard) {
             $tablecells = wf_TableCell($eachcard['id']);
             $tablecells .= wf_TableCell($eachcard['serial']);
             $tablecells .= wf_TableCell($eachcard['cash']);
             $tablecells .= wf_TableCell($eachcard['usedate']);
             $profilelink = wf_Link("?module=userprofile&username=" . $eachcard['usedlogin'], web_profile_icon() . ' ' . $eachcard['usedlogin'], false);
             $tablecells .= wf_TableCell($profilelink);
             @($useraddress = $alladdress[$eachcard['usedlogin']]);
             $tablecells .= wf_TableCell($useraddress);
             @($userrealname = $allrealnames[$eachcard['usedlogin']]);
             $tablecells .= wf_TableCell($userrealname);
             $tablerows .= wf_TableRow($tablecells, 'row3');
             $totalcount++;
             $totalsumm = $totalsumm + $eachcard['cash'];
             $csvdata .= $eachcard['id'] . ';' . $eachcard['serial'] . ';' . $eachcard['cash'] . ';' . $eachcard['usedate'] . ';' . $eachcard['usedlogin'] . ';' . $useraddress . ';' . $userrealname . "\n";
         }
     }
     if (!empty($csvdata)) {
         $exportFilename = 'exports/cardreport_' . $year . '-' . $month . '.csv';
         $csvdata = iconv('utf-8', 'windows-1251', $csvdata);
         file_put_contents($exportFilename, $csvdata);
         $exportLink = wf_Link('?module=cardreport&dloadcsv=' . base64_encode($exportFilename), wf_img('skins/excel.gif', __('Export')), false, '');
     } else {
         $exportLink = '';
     }
     $result = wf_TableBody($tablerows, '100%', '0', 'sortable');
     $result .= __('Total') . ': ' . $totalcount . ' ' . __('payments') . ', ' . __('with total amount') . ': ' . $totalsumm;
     show_window(__('Payment cards usage report') . ' ' . $exportLink, $result);
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:58,代码来源:index.php

示例3: web_ReportMasterShow

 /**
  * Renders custom report
  * 
  * @param string $reportfile
  * @param string $report_name
  * @param array $titles
  * @param array $keys
  * @param array $alldata
  * @param bool $address
  * @param bool $realnames
  * @param bool $rowcount
  * 
  * @return void
  */
 function web_ReportMasterShow($reportfile, $report_name, $titles, $keys, $alldata, $address = 0, $realnames = 0, $rowcount = 0)
 {
     $report_name = __($report_name) . ' ' . wf_tag('a', false, '', 'href="?module=reportmaster&view=' . $reportfile . '&printable=true" target="_BLANK"');
     $report_name .= wf_img('skins/printer_small.gif', __('Print'));
     $report_name .= wf_tag('a', true);
     $allrealnames = zb_UserGetAllRealnames();
     $alladdress = zb_AddressGetFulladdresslist();
     $i = 0;
     $result = wf_tag('table', false, '', 'width="100%" class="sortable" border="0"');
     $result .= wf_tag('tr', false, 'row1');
     foreach ($titles as $eachtitle) {
         $result .= wf_tag('td') . __($eachtitle) . wf_tag('td', true);
     }
     if ($address) {
         $result .= wf_tag('td') . __('Full address') . wf_tag('td', true);
     }
     if ($realnames) {
         $result .= wf_tag('td') . __('Real Name') . wf_tag('td', true);
     }
     $result .= wf_tag('tr', true);
     if (!empty($alldata)) {
         foreach ($alldata as $io => $eachdata) {
             $i++;
             $result .= wf_tag('tr', false, 'row3');
             foreach ($keys as $eachkey) {
                 if (array_key_exists($eachkey, $eachdata)) {
                     $result .= wf_tag('td') . $eachdata[$eachkey] . wf_tag('td', true);
                 }
             }
             if ($address) {
                 $result .= wf_tag('td') . @$alladdress[$eachdata['login']] . wf_tag('td', true);
             }
             if ($realnames) {
                 $result .= wf_tag('td') . wf_Link('?module=userprofile&username=' . $eachdata['login'], web_profile_icon() . ' ' . @$allrealnames[$eachdata['login']]) . wf_tag('td', true);
             }
             $result .= wf_tag('tr', true);
         }
     }
     $result .= wf_tag('table', true);
     if ($rowcount) {
         $result .= wf_tag('strong') . __('Total') . ': ' . $i . wf_tag('strong', true);
     }
     show_window($report_name, $result);
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:58,代码来源:index.php

示例4: ajaxGetData

 /**
  * Returns JSON reply for jquery datatables with full list of available UHW usages
  * 
  * @return string
  */
 public function ajaxGetData()
 {
     $query = "SELECT * from `uhw_log` ORDER by `id` DESC;";
     $alluhw = simple_queryall($query);
     $alladdress = zb_AddressGetFulladdresslist();
     $allrealnames = zb_UserGetAllRealnames();
     $result = '{ 
               "aaData": [ ';
     if (!empty($alluhw)) {
         foreach ($alluhw as $io => $each) {
             $profileLink = wf_Link('?module=userprofile&username=' . $each['login'], web_profile_icon() . ' ' . $each['login'], false);
             $profileLink = str_replace('"', '', $profileLink);
             $profileLink = str_replace("'", '', $profileLink);
             $profileLink = trim($profileLink);
             $userAddress = @$alladdress[$each['login']];
             $userAddress = str_replace("'", '`', $userAddress);
             $userAddress = str_replace('"', '``', $userAddress);
             $userAddress = trim($userAddress);
             $userRealname = @$allrealnames[$each['login']];
             $userRealname = str_replace("'", '`', $userRealname);
             $userRealname = str_replace('"', '``', $userRealname);
             $userRealname = trim($userRealname);
             $result .= '
                 [
                 "' . $each['id'] . '",
                 "' . $each['date'] . '",
                 "' . $each['password'] . '",
                 "' . $profileLink . '",
                 "' . $userAddress . '",
                 "' . $userRealname . '",
                 "' . $each['ip'] . '",
                 "' . $each['nhid'] . '",
                 "' . $each['oldmac'] . '",
                 "' . $each['newmac'] . '"
                 ],';
         }
     }
     $result = substr($result, 0, -1);
     $result .= '] 
     }';
     return $result;
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:47,代码来源:api.uhw.php

示例5: web_UsersLister

 function web_UsersLister($users)
 {
     $tablecells = wf_TableCell(__('Login'));
     $tablecells .= wf_TableCell(__('Real Name'));
     $tablecells .= wf_TableCell(__('Full address'));
     $tablecells .= wf_TableCell(__('Tariff'));
     $tablecells .= wf_TableCell(__('Tariff speeds'));
     $tablecells .= wf_TableCell(__('Speed override'));
     $tablecells .= wf_TableCell(__('Actions'));
     $tablerows = wf_TableRow($tablecells, 'row1');
     if (!empty($users)) {
         $udata = array();
         $alluserdata = zb_UserGetAllStargazerData();
         $alladdress = zb_AddressGetFulladdresslist();
         $allrealnames = zb_UserGetAllRealnames();
         $allspeeds = zb_TariffGetAllSpeeds();
         if (!empty($alluserdata)) {
             foreach ($alluserdata as $ia => $eachdata) {
                 $udata[$eachdata['login']]['Tariff'] = $eachdata['Tariff'];
                 @($udata[$eachdata['login']]['Address'] = $alladdress[$eachdata['login']]);
                 @($udata[$eachdata['login']]['RealName'] = $allrealnames[$eachdata['login']]);
                 @($udata[$eachdata['login']]['NormalSpeedDown'] = $allspeeds[$eachdata['Tariff']]['speeddown']);
                 @($udata[$eachdata['login']]['NormalSpeedUp'] = $allspeeds[$eachdata['Tariff']]['speedup']);
             }
         }
         foreach ($users as $io => $eachuser) {
             $tablecells = wf_TableCell(wf_Link('?module=userprofile&username=' . $eachuser['login'], web_profile_icon() . ' ' . $eachuser['login']));
             $tablecells .= wf_TableCell($udata[$eachuser['login']]['RealName']);
             $tablecells .= wf_TableCell($udata[$eachuser['login']]['Address']);
             $tablecells .= wf_TableCell($udata[$eachuser['login']]['Tariff']);
             $tablecells .= wf_TableCell($udata[$eachuser['login']]['NormalSpeedDown'] . '/' . $udata[$eachuser['login']]['NormalSpeedUp']);
             $tablecells .= wf_TableCell(zb_UserGetSpeedOverride($eachuser['login']));
             $fixlink = wf_JSAlert('?module=speedcontrol&fix=' . $eachuser['login'], '<img src="skins/icon_repair.gif" title=' . __('Fix') . '>', 'Are you serious');
             $tablecells .= wf_TableCell($fixlink);
             $tablerows .= wf_TableRow($tablecells, 'row3');
         }
     }
     $result = wf_TableBody($tablerows, '100%', '0', 'sortable');
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:40,代码来源:index.php

示例6: array_search

 $userCounter++;
 //hightlighting user
 if (!empty($hlightmac)) {
     if ($hlightmac == $eachmac) {
         $rowclass = 'siglight';
     } else {
         $rowclass = 'row3';
     }
 } else {
     $rowclass = 'row3';
 }
 //extracting user profile link
 if (array_search($eachmac, $allusermacs)) {
     $backmaclogin = array_search($eachmac, $allusermacs);
     @($backaddress = $alladdress[$backmaclogin]);
     $profilelink = wf_Link("?module=userprofile&username=" . $backmaclogin, web_profile_icon() . ' ' . $backaddress, false, '');
     $realname = @$allrealnames[$backmaclogin];
     $usertariff = @$alltariffs[$backmaclogin];
     $userip = @$alluserips[$backmaclogin];
 } else {
     $profilelink = '';
     $realname = '';
     $usertariff = '';
     $userip = '';
 }
 $tablecells = wf_TableCell($profilelink);
 $tablecells .= wf_TableCell($realname);
 $tablecells .= wf_TableCell($usertariff);
 $tablecells .= wf_TableCell($userip);
 $tablecells .= wf_TableCell($eachmac);
 $tablecells .= wf_TableCell($displaysig);
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php

示例7: PerCityDataShow


//.........这里部分代码省略.........
                 break;
             case 'comment_down':
                 $this->sort_additional($this->allNotes, SORT_DESC);
                 break;
             case 'signal_up':
                 $this->sort_signal($this->allOnu, $this->signalCache, SORT_ASC);
                 break;
             case 'signal_down':
                 $this->sort_signal($this->allOnu, $this->signalCache, SORT_DESC);
                 break;
             case 'mac_onu_up':
                 $this->sort_additional($this->allOnu, SORT_ASC);
                 break;
             case 'mac_onu_down':
                 $this->sort_additional($this->allOnu, SORT_DESC);
                 break;
         }
         if ($_GET['sort'] == 'address_down') {
             $addr_sort = 'address_up';
         }
         if ($_GET['sort'] == 'realname_down') {
             $realname_sort = 'realname_up';
         }
         if ($_GET['sort'] == 'credited_down') {
             $credited_sort = 'credited_up';
         }
         if ($_GET['sort'] == 'cash_down') {
             $cash_sort = 'cash_up';
         }
         if ($_GET['sort'] == 'tariff_down') {
             $tariff_sort = 'tariff_up';
         }
         if ($_GET['sort'] == 'comment_down') {
             $comment_sort = 'comment_up';
         }
         if ($_GET['sort'] == 'signal_down') {
             $signal_sort = 'signal_up';
         }
         if ($_GET['sort'] == 'mac_onu_down') {
             $mac_onu_sort = 'mac_onu_up';
         }
     }
     $total = 0;
     $totalPayCount = 0;
     $colors = new ColorTagging();
     $cells = wf_TableCell(wf_tag('h2', false) . __('ID') . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $addr_sort, __('Full address')) . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $realname_sort, __('Real Name')) . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $credited_sort, __('Was credited')) . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $cash_sort, __('Cash')) . wf_tag('h2', true));
     if ($this->altCfg['FINREP_TARIFF']) {
         $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $tariff_sort, __('Tariff')) . wf_tag('h2', true));
         $this->LoadAllTariffs();
     }
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $comment_sort, __('Comment')) . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $signal_sort, __('Signal')) . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . wf_Link($this->SaveGetParams('sort') . 'sort=' . $mac_onu_sort, __('MAC ONU/ONT')) . wf_tag('h2', true));
     $cells .= wf_TableCell(wf_tag('h2', false) . __('Login') . wf_tag('h2', true));
     $rows = wf_TableRow($cells, 'row1');
     if (!empty($this->allData)) {
         foreach ($this->allData as $eachdebtor) {
             $total = $total + $eachdebtor['Cash'];
             $totalPayCount++;
             $signal = @$this->signalCache[$this->allOnu[$eachdebtor['login']]['mac']];
             $sigColor = '#000000';
             if (!empty($signal)) {
                 if ($signal > 0 or $signal < -25) {
                     $sigColor = '#ab0000';
                 } else {
                     $sigColor = '#005502';
                 }
             } else {
                 $signal = __("No");
             }
             $userColor = $colors->GetUsersColor($eachdebtor['login']);
             $cell = wf_TableCell($totalPayCount);
             $cell .= wf_TableCell(@$this->allAddresses[$eachdebtor['login']]);
             $cell .= wf_TableCell(@$this->allRealNames[$eachdebtor['login']] . "&nbsp&nbsp" . @$this->allPhoneData[$eachdebtor['login']]['mobile']);
             $cell .= wf_TableCell(@$this->allCredited[$eachdebtor['login']]);
             $cell .= wf_TableCell($eachdebtor['Cash']);
             if ($this->altCfg['FINREP_TARIFF']) {
                 $cell .= wf_TableCell($this->allTariffs[$eachdebtor['login']]);
             }
             $cell .= wf_TableCell(@$this->allNotes[$eachdebtor['login']]);
             $cell .= wf_TableCell(wf_tag('strong') . wf_tag('font color=' . $sigColor, false) . $signal . wf_tag('font', true) . wf_tag('strong', true));
             $cell .= wf_TableCell(@$this->allOnu[$eachdebtor['login']]['mac']);
             $cell .= wf_TableCell(wf_Link('?module=userprofile&username=' . $eachdebtor['login'], web_profile_icon() . ' ' . $eachdebtor['login'], false, ''));
             if (!empty($userColor)) {
                 $style = "background-color:{$userColor}";
                 $rows .= wf_TableRowStyled($cell, 'row4', $style);
             } else {
                 $rows .= wf_TableRow($cell, 'row4');
             }
         }
     }
     $result = wf_tag('strong') . __('Count') . ': ' . $totalPayCount . wf_tag('strong', true) . wf_tag('br');
     $result .= wf_tag('strong') . __('Cash') . ': ' . $total . wf_tag('strong', true) . wf_tag('br');
     $result .= wf_TableBody($rows, '100%', '0', '');
     return $result;
 }
开发者ID:carriercomm,项目名称:Ubilling,代码行数:101,代码来源:api.percity.php

示例8: web_TsmsMassendConfirm

 function web_TsmsMassendConfirm($userarray)
 {
     global $td_users, $td_mobiles, $td_realnames, $td_realnamestrans, $td_tariffprices, $td_alladdress;
     global $ubillingConfig;
     $altCfg = $ubillingConfig->getAlter();
     $template = tsms_GetTemplate();
     $excludeUsers = tsms_GetExcludeUsers();
     $excludeArr = array();
     //ignoring DEAD_TAGID users
     if ($altCfg['CEMETERY_ENABLED']) {
         $cemetery = new Cemetery();
         $excludeCemetery = $cemetery->getAllTagged();
         if (!empty($excludeCemetery)) {
             foreach ($excludeCemetery as $eecl => $eecld) {
                 $excludeUsers[$eecl] = 'NOP';
             }
         }
     }
     $cells = wf_TableCell(__('Login'));
     $cells .= wf_TableCell(__('Address'));
     $cells .= wf_TableCell(__('Real Name'));
     $cells .= wf_TableCell(__('SMS'));
     $cells .= wf_TableCell(__('Mobile'));
     $cells .= wf_TableCell(__('Tariff'));
     $cells .= wf_TableCell(__('Balance'));
     $cells .= wf_TableCell(__('Credit'));
     $rows = wf_TableRow($cells, 'row1');
     if (!empty($userarray)) {
         //excluded users handling
         if (!empty($excludeUsers)) {
             $excludeResult = wf_tag('h3') . __('Next users will be ignored while SMS sending') . wf_tag('h3', true);
             foreach ($excludeUsers as $excludeLogin => $nop) {
                 unset($userarray[$excludeLogin]);
                 $excludeArr[$excludeLogin] = $excludeLogin;
             }
         } else {
             $excludeResult = '';
         }
         foreach ($userarray as $login => $phone) {
             $message = tsms_ParseTemplate($login, $template);
             $smsContainer = wf_modal(__('Show'), __('SMS'), $message, '', '300', '200');
             $cells = wf_TableCell(wf_Link("?module=userprofile&username=" . $login, web_profile_icon() . ' ' . $login, false));
             $cells .= wf_TableCell(@$td_alladdress[$login]);
             $cells .= wf_TableCell(@$td_realnames[$login]);
             $cells .= wf_TableCell($smsContainer);
             $cells .= wf_TableCell($td_mobiles[$login]);
             $cells .= wf_TableCell($td_users[$login]['Tariff']);
             $cells .= wf_TableCell($td_users[$login]['Cash']);
             $cells .= wf_TableCell($td_users[$login]['Credit']);
             $rows .= wf_TableRow($cells, 'row3');
         }
     }
     //confirmation form
     $packdata = serialize($userarray);
     $packdata = base64_encode($packdata);
     $inputs = wf_HiddenInput('massendConfirm', $packdata);
     $inputs .= wf_Submit(__('Send SMS for all of this users'));
     $confirmForm = wf_Form("", 'POST', $inputs, 'glamour');
     $result = $confirmForm;
     $result .= wf_TableBody($rows, '100%', '0', 'sortable');
     //showing which users will be excluded
     if (!empty($excludeUsers)) {
         $result .= $excludeResult;
         $result .= web_UserArrayShower($excludeArr);
     }
     return $result;
 }
开发者ID:syscenter,项目名称:ubilling-sms,代码行数:67,代码来源:index.php

示例9: docsis_ModemProfileShow

 function docsis_ModemProfileShow($modemid)
 {
     $modemid = vf($modemid, 3);
     $data = docsis_ModemGetData($modemid);
     $netdata = array();
     $netdata_q = "SELECT * from `nethosts` where `ip`='" . $data['ip'] . "'";
     $netdata = simple_queryall($netdata_q);
     $netdata = print_r($netdata, true);
     $netdata = nl2br($netdata);
     $alluserips = zb_UserGetAllIPs();
     $alluserips = array_flip($alluserips);
     $result = wf_Link("?module=docsis", __('Back'), false, 'ubButton');
     $ajaxcontainer = wf_AjaxLoader() . wf_AjaxLink("?module=docsis&ajaxsnmp=" . $modemid, __('Renew modem data'), 'ajaxdata', true, 'ubButton') . wf_tag('div', false, '', 'id="ajaxdata"') . wf_tag('div', true);
     $result .= wf_modal(__('Modem diagnostics'), __('Modem diagnostics'), $ajaxcontainer, 'ubButton', '500', '400');
     $result .= wf_modal(__('Networking data'), __('Networking data'), $netdata, 'ubButton', '500', '400');
     $result .= wf_delimiter();
     if (!empty($data)) {
         $cells = wf_TableCell(__('ID'));
         $cells .= wf_TableCell($data['id'] . ' ' . wf_JSAlert("?module=docsis&deletemodem=" . $modemid, web_delete_icon(), __('Removing this may lead to irreparable results')));
         $rows = wf_TableRow($cells, 'row3');
         $cells = wf_TableCell(__('IP'));
         $cells .= wf_TableCell($data['ip']);
         $rows .= wf_TableRow($cells, 'row3');
         $cells = wf_TableCell(__('MAC Lan'));
         $cells .= wf_TableCell($data['maclan']);
         $rows .= wf_TableRow($cells, 'row3');
         $cells = wf_TableCell(__('Date'));
         $cells .= wf_TableCell($data['date']);
         $rows .= wf_TableRow($cells, 'row3');
         if (isset($alluserips[$data['userbind']])) {
             $bindedLogin = $alluserips[$data['userbind']];
             $profileLink = ' ' . wf_Link('?module=userprofile&username=' . $bindedLogin, web_profile_icon() . ' ' . $bindedLogin, false, '');
         } else {
             $profileLink = '';
         }
         $cells = wf_TableCell(__('Linked user'));
         $cells .= wf_TableCell($data['userbind'] . $profileLink);
         $rows .= wf_TableRow($cells, 'row3');
         $cells = wf_TableCell(__('Notes'));
         $cells .= wf_TableCell($data['note']);
         $rows .= wf_TableRow($cells, 'row3');
         $result .= wf_TableBody($rows, '100%', '0', '');
         $inputs = wf_TextInput('edituserbind', __('Linked user'), $data['userbind'], true, '40');
         $inputs .= wf_TextInput('editnote', __('Notes'), $data['note'], true, '40');
         $inputs .= wf_Submit(__('Save'));
         $form = wf_Form("", 'POST', $inputs, 'glamour');
         $result .= $form;
         show_window(__('Modem profile'), $result);
     } else {
         show_window(__('Error'), __('Strange exeption'));
     }
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:52,代码来源:index.php

示例10: PerCityDataShow

 /**
  * Returns form for usersearch and debtors by city
  * 
  * @return string
  */
 public function PerCityDataShow()
 {
     $total = 0;
     $totalPayCount = 0;
     $colors = new ColorTagging();
     $this->LoadAllOnu();
     $this->LoadAllComments();
     $this->LoadAllNotes();
     $this->LoadAllPhoneData();
     $this->LoadAllCredited();
     $cells = wf_TableCell(__('Full address'));
     $cells .= wf_TableCell(__('Real Name'));
     $cells .= wf_TableCell(__('Credited'));
     $cells .= wf_TableCell(__('Cash'));
     if ($this->altCfg['FINREP_TARIFF']) {
         $cells .= wf_TableCell(__('Tariff'));
         $this->LoadAllTariffs();
     }
     $cells .= wf_TableCell(__('Comment'));
     $cells .= wf_TableCell(__('MAC ONU/ONT'));
     $cells .= wf_TableCell(__('Login'));
     $rows = wf_TableRow($cells, 'row1');
     if (!empty($this->allData)) {
         foreach ($this->allData as $eachdebtor) {
             $userColor = $colors->GetUsersColor($eachdebtor['login']);
             $cell = wf_TableCell(@$this->allAddresses[$eachdebtor['login']]);
             $cell .= wf_TableCell(@$this->allRealNames[$eachdebtor['login']] . "&nbsp&nbsp" . @$this->allPhoneData[$eachdebtor['login']]['mobile']);
             $cell .= wf_TableCell(@$this->allCredited[$eachdebtor['login']]);
             $cell .= wf_TableCell($eachdebtor['Cash']);
             if ($this->altCfg['FINREP_TARIFF']) {
                 $cell .= wf_TableCell($this->allTariffs[$eachdebtor['login']]);
             }
             $cell .= wf_TableCell(@$this->allNotes[$eachdebtor['login']] . "&nbsp&nbsp" . @$this->allComments[$eachdebtor['login']]);
             $cell .= wf_TableCell(@$this->allOnu[$eachdebtor['login']]);
             $cell .= wf_TableCell(wf_Link('?module=userprofile&username=' . $eachdebtor['login'], web_profile_icon() . ' ' . $eachdebtor['login'], false, ''));
             if (!empty($userColor)) {
                 $style = "background-color:{$userColor}";
                 $rows .= wf_TableRowStyled($cell, 'row4', $style);
             } else {
                 $rows .= wf_TableRow($cell, 'row4');
             }
             $total = $total + $eachdebtor['Cash'];
             $totalPayCount++;
         }
     }
     $result = wf_TableBody($rows, '100%', '0', 'sortable id');
     $result .= wf_tag('strong') . __('Cash') . ': ' . $total . wf_tag('strong', true) . wf_tag('br');
     $result .= wf_tag('strong') . __('Count') . ': ' . $totalPayCount . wf_tag('strong', true);
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:55,代码来源:api.percity.php

示例11: stg_show_fulluserlistOld


//.........这里部分代码省略.........
                if ($alter_conf['ONLINE_LAT']) {
                    $user_lat = wf_TableCell(date("Y-m-d H:i:s", $eachuser['LastActivityTime']));
                } else {
                    $user_lat = '';
                }
                //online check
                if ($alter_conf['DN_ONLINE_DETECT']) {
                    if (file_exists(DATA_PATH . 'dn/' . $eachuser['login'])) {
                        $online_flag = 1;
                        $trueonline++;
                    } else {
                        $online_flag = 0;
                    }
                    $online_cell = wf_TableCell(web_bool_star($online_flag, true), '', '', 'sorttable_customkey="' . $online_flag . '"');
                } else {
                    $online_cell = '';
                    $online_flag = 0;
                }
                if ($alter_conf['ONLINE_LIGHTER']) {
                    $lighter = 'onmouseover="this.className = \'row2\';" onmouseout="this.className = \'row3\';" ';
                } else {
                    $lighter = '';
                }
                //user linking indicator
                if ($alter_conf['USER_LINKING_ENABLED']) {
                    //is user child?
                    if (isset($alllinkedusers[$eachuser['login']])) {
                        $corporate = wf_Link('?module=corporate&userlink=' . $alllinkedusers[$eachuser['login']], web_corporate_icon(), false);
                    } else {
                        $corporate = '';
                    }
                    //is  user parent?
                    if (isset($allparentusers[$eachuser['login']])) {
                        $corporate = wf_Link('?module=corporate&userlink=' . $allparentusers[$eachuser['login']], web_corporate_icon('Corporate parent'), false);
                    }
                } else {
                    $corporate = '';
                }
                //fast cash link
                if ($fastcash) {
                    $financelink = wf_Link('?module=addcash&username=' . $eachuser['login'] . '#profileending', wf_img('skins/icon_dollar.gif', __('Finance operations')), false);
                } else {
                    $financelink = '';
                }
                $result .= wf_tag('tr', false, 'row3', $lighter);
                $result .= wf_tag('td', false);
                $result .= wf_Link('?module=traffstats&username=' . $eachuser['login'], web_stats_icon(), false);
                $result .= $financelink;
                $result .= wf_Link('?module=userprofile&username=' . $eachuser['login'], web_profile_icon(), false);
                $result .= $corporate;
                $result .= @$alladdress[$eachuser['login']];
                $result .= wf_tag('td', true);
                $result .= wf_TableCell(@$allrealnames[$eachuser['login']]);
                $result .= wf_TableCell($eachuser['IP'], '', '', 'sorttable_customkey="' . ip2int($eachuser['IP']) . '"');
                $result .= wf_TableCell($eachuser['Tariff']);
                $result .= $user_lat;
                $result .= wf_TableCell($act);
                $result .= $online_cell;
                $result .= wf_TableCell(stg_convert_size($tinet), '', '', 'sorttable_customkey="' . $tinet . '"');
                $result .= wf_TableCell(round($eachuser['Cash'], 2));
                $result .= wf_TableCell(round($eachuser['Credit'], 2));
                $result .= wf_tag('tr', true);
            }
        }
        if ($alter_conf['DN_ONLINE_DETECT']) {
            $true_online_counter = wf_TableCell(__('Users online') . ' ' . $trueonline);
        } else {
            $true_online_counter = null;
        }
        $result .= wf_tag('table', true);
        $footerCells = wf_TableCell(__('Total') . ': ' . $ucount);
        $footerCells .= wf_TableCell(__('Active users') . ' ' . ($ucount - $inacacount) . ' / ' . __('Inactive users') . ' ' . $inacacount);
        $footerCells .= $true_online_counter;
        $footerCells .= wf_TableCell(__('Traffic') . ': ' . stg_convert_size($totaltraff));
        $footerCells .= wf_TableCell(__('Total') . ': ' . round($tcash, 2));
        $footerCells .= wf_TableCell(__('Credit total') . ': ' . $tcredit);
        $footerRows = wf_TableRow($footerCells, 'row1');
        $result .= wf_TableBody($footerRows, '100%', '0');
        //extended filters again
        if ($alter_conf['ONLINE_FILTERS_EXT']) {
            $filtercode = wf_tag('script', false, '', 'language="javascript" type="text/javascript"');
            $filtercode .= '
            //<![CDATA[
            function showfilter() {
            var onlinefilters = {
		btn: false,
          	col_' . (4 + $act_offset) . ': "select",
               ' . $true_online_selector . '
		btn_text: ">"
               }
                setFilterGrid("onlineusers",0,onlinefilters);
             }
            //]]>';
            $filtercode .= wf_tag('script', true);
        } else {
            $filtercode = '';
        }
        $result .= $filtercode;
        return $result;
    }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:101,代码来源:index.php

示例12: bs_LoginProposalForm

function bs_LoginProposalForm($id, $login = '')
{
    $id = vf($id, 3);
    if (!empty($login)) {
        $loginform = web_bool_led(true) . '<a href="?module=userprofile&username=' . $login . '">' . web_profile_icon() . ' ' . $login . '</a>';
    } else {
        $loginform = web_bool_led(false);
    }
    return $loginform;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:10,代码来源:api.banksta.php

示例13: web_SignupsShowAnotherYearMonth

 /**
  * Shows signups by another year-month
  * 
  * @global object $altercfg
  * @param string $cmonth
  * 
  * @return void
  */
 function web_SignupsShowAnotherYearMonth($cmonth)
 {
     global $altercfg;
     $alltariffs = zb_TariffsGetAllUsers();
     $cmonth = mysql_real_escape_string($cmonth);
     $where = "WHERE `date` LIKE '" . $cmonth . "%' ORDER by `date` DESC;";
     $signups = zb_SignupsGet($where);
     $curdate = curdate();
     //cemetery hide processing
     $ignoreUsers = array();
     if ($altercfg['CEMETERY_ENABLED']) {
         $cemetery = new Cemetery();
         $ignoreUsers = $cemetery->getAllTagged();
     }
     $tablecells = wf_TableCell(__('ID'));
     $tablecells .= wf_TableCell(__('Date'));
     $tablecells .= wf_TableCell(__('Administrator'));
     if ($altercfg['SIGREP_CONTRACT']) {
         $tablecells .= wf_TableCell(__('Contract'));
         $allcontracts = array_flip(zb_UserGetAllContracts());
     }
     $tablecells .= wf_TableCell(__('Login'));
     $tablecells .= wf_TableCell(__('Tariff'));
     $tablecells .= wf_TableCell(__('Full address'));
     $tablerows = wf_TableRow($tablecells, 'row1');
     if (!empty($signups)) {
         foreach ($signups as $io => $eachsignup) {
             $tablecells = wf_TableCell($eachsignup['id']);
             $tablecells .= wf_TableCell($eachsignup['date']);
             $tablecells .= wf_TableCell($eachsignup['admin']);
             if ($altercfg['SIGREP_CONTRACT']) {
                 $tablecells .= wf_TableCell(@$allcontracts[$eachsignup['login']]);
             }
             $tablecells .= wf_TableCell($eachsignup['login']);
             @($sigTariff = $alltariffs[$eachsignup['login']]);
             $tablecells .= wf_TableCell($sigTariff);
             $profilelink = wf_Link('?module=userprofile&username=' . $eachsignup['login'], web_profile_icon() . ' ' . $eachsignup['address']);
             $tablecells .= wf_TableCell($profilelink);
             if (ispos($eachsignup['date'], $curdate)) {
                 $rowClass = 'todaysig';
             } else {
                 $rowClass = 'row3';
             }
             //cemetary user
             if (isset($ignoreUsers[$eachsignup['login']])) {
                 $rowClass = 'sigcemeteryuser';
             }
             //ugly check - is user removed?
             if (empty($sigTariff)) {
                 $rowClass = 'sigdeleteduser';
             }
             $tablerows .= wf_TableRow($tablecells, $rowClass);
         }
     }
     $result = wf_TableBody($tablerows, '100%', '0', 'sortable');
     show_window(__('User signups by month') . ' ' . $cmonth, $result);
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:65,代码来源:index.php

示例14: catv_PaymentsShow

function catv_PaymentsShow($query)
{
    $alter_conf = rcms_parse_ini_file(CONFIG_PATH . 'alter.ini');
    $alladrs = catv_GetFullAddressList();
    $allrealnames = catv_GetAllRealnames();
    $alltypes = zb_CashGetAllCashTypes();
    $allapayments = simple_queryall($query);
    $total = 0;
    $result = '<table width="100%" border="0" class="sortable">';
    $result .= '
                <tr class="row1">
                <td>' . __('ID') . '</td>
                <td>' . __('IDENC') . '</td>
                <td>' . __('Date') . '</td>
                <td>' . __('Cash') . '</td>
                <td>' . __('User') . '</td>
                <td>' . __('Full address') . '</td>                    
                <td>' . __('Notes') . '</td>
                <td>' . __('Admin') . '</td>
                </tr>
                ';
    if (!empty($allapayments)) {
        foreach ($allapayments as $io => $eachpayment) {
            if ($alter_conf['TRANSLATE_PAYMENTS_NOTES']) {
                if ($eachpayment['notes'] == '') {
                    $eachpayment['notes'] = __('CaTV');
                }
                $eachpayment['notes'] = zb_TranslatePaymentNote($eachpayment['notes'], array());
            }
            $result .= '
                <tr class="row3">
                <td>' . $eachpayment['id'] . '</td>
                <td>' . zb_NumEncode($eachpayment['id']) . '</td>
                <td>' . $eachpayment['date'] . '</td>
                <td>' . $eachpayment['summ'] . '</td>
                <td> <a href="?module=catv_profile&userid=' . $eachpayment['userid'] . '">' . web_profile_icon() . '</a> ' . @$allrealnames[$eachpayment['userid']] . '</td>                    
                <td>' . @$alladrs[$eachpayment['userid']] . '</td>                    
                <td>' . $eachpayment['notes'] . '</td>
                <td>' . $eachpayment['admin'] . '</td>
                </tr>
                ';
            if ($eachpayment['summ'] > 0) {
                $total = $total + $eachpayment['summ'];
            }
        }
    }
    $result .= '</table>';
    $result .= '<strong>' . __('Total') . ': ' . $total . '</strong>';
    return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:50,代码来源:api.catv.php

示例15: renderTasksList

 /**
  * Renders available tasks list with controls
  * 
  * @param sring $login
  * 
  * @return string
  */
 public function renderTasksList($login = '')
 {
     $result = '';
     $messages = new UbillingMessageHelper();
     $tmpArr = array();
     if (!empty($this->allTasks)) {
         foreach ($this->allTasks as $io => $each) {
             if (empty($login)) {
                 $tmpArr[$io] = $each;
             } else {
                 if ($login == $each['login']) {
                     $tmpArr[$io] = $each;
                 }
             }
         }
     }
     if (!empty($tmpArr)) {
         $cells = wf_TableCell(__('ID'));
         $cells .= wf_TableCell(__('Date'));
         $cells .= wf_TableCell(__('User'));
         $cells .= wf_TableCell(__('Task'));
         $cells .= wf_TableCell(__('Parameter'));
         $cells .= wf_TableCell(__('Notes'));
         $cells .= wf_TableCell(__('Actions'));
         $rows = wf_TableRow($cells, 'row1');
         foreach ($tmpArr as $io => $each) {
             $cells = wf_TableCell($each['id']);
             $cells .= wf_TableCell($each['date']);
             $cells .= wf_TableCell(wf_Link('?module=userprofile&username=' . $each['login'], web_profile_icon() . ' ' . $each['login'], false, ''));
             $cells .= wf_TableCell($this->actionNames[$each['action']]);
             $cells .= wf_TableCell($each['param']);
             $cells .= wf_TableCell($each['note']);
             $taskControls = wf_JSAlert(self::URL_ME . '&username=' . $each['login'] . '&deletetaskid=' . $each['id'], web_delete_icon(), $messages->getDeleteAlert());
             $cells .= wf_TableCell($taskControls);
             $rows .= wf_TableRow($cells, 'row3');
         }
         $result = wf_TableBody($rows, '100%', 0, 'sortable');
     } else {
         $result = $messages->getStyledMessage(__('Nothing found'), 'info');
     }
     return $result;
 }
开发者ID:carriercomm,项目名称:Ubilling,代码行数:49,代码来源:api.dealwithit.php


注:本文中的web_profile_icon函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。