コード例 #1
0
ファイル: api.address.php プロジェクト: l1ght13aby/Ubilling
/**
 * Returns auto-clicking apartment selector
 * 
 * @param int $buildid
 * @return string
 */
function web_AptSelectorAc($buildid)
{
    $allapts = array();
    $tmpApts = zb_AddressGetAptAllDataByBuild($buildid);
    $allapts['-'] = '-';
    //placeholder
    if (!empty($tmpApts)) {
        foreach ($tmpApts as $io => $each) {
            $allapts[$each['id']] = $each['apt'];
        }
    }
    $selector = wf_SelectorAC('aptsel', $allapts, '', '', false);
    return $selector;
}
コード例 #2
0
ファイル: api.percity.php プロジェクト: carriercomm/Ubilling
 /**
  * Returns auto-clicking city selector
  * 
  * @return string
  */
 protected function CitySelectorPermissioned($admin)
 {
     $allcity = array();
     $tmpCity = zb_AddressGetCityAllData();
     $allcity['-'] = '-';
     //placeholder
     if (!empty($tmpCity)) {
         if (file_exists(self::PERMISSION_PATH . $admin)) {
             $data = file_get_contents(self::PERMISSION_PATH . $admin);
             $eachId = explode(",", $data);
             foreach ($tmpCity as $io => $each) {
                 $check = false;
                 foreach ($eachId as $id) {
                     if ($each['id'] == $id) {
                         $check = true;
                     }
                 }
                 if ($check) {
                     $allcity[$each['id']] = $each['cityname'];
                 }
             }
         } else {
             foreach ($tmpCity as $io => $each) {
                 $allcity[$each['id']] = $each['cityname'];
             }
         }
     }
     $selector = wf_SelectorAC('citysel', $allcity, '', '', false);
     $selector .= wf_tag('a', false, '', 'href="?module=city" target="_BLANK"') . web_city_icon() . wf_tag('a', true);
     return $selector;
 }
コード例 #3
0
ファイル: index.php プロジェクト: nightflyza/Ubilling
 /**
  * Returns icon resize form if enabled
  * 
  * @return string
  */
 protected function renderResizeForm()
 {
     $result = '';
     if ($this->altCfg['TB_ICONCUSTOMSIZE']) {
         if (isset($_COOKIE['tb_iconsize'])) {
             $currentsize = vf($_COOKIE['tb_iconsize'], 3);
         } else {
             $currentsize = $this->billCfg['TASKBAR_ICON_SIZE'];
         }
         $resizeinputs = wf_SelectorAC('iconsize', $this->iconSizes, '', $currentsize, false);
         $result .= wf_tag('br');
         $result .= wf_Form('', 'POST', $resizeinputs);
     }
     return $result;
 }
コード例 #4
0
ファイル: index.php プロジェクト: l1ght13aby/Ubilling
         $template = '';
     }
     return $template;
 }
 $taskbar = '';
 $taskbar_modules = file_get_contents(CONFIG_PATH . 'taskbar_modules.php');
 // load taskbar modules
 eval($taskbar_modules);
 $ressizelinks = ' ';
 $iconsizes = array('128' => __('Normal icons'), '96' => __('Lesser'), '64' => __('Macro'), '48' => __('Micro'), '32' => __('Nano'));
 if (isset($_COOKIE['tb_iconsize'])) {
     $currentsize = vf($_COOKIE['tb_iconsize'], 3);
 } else {
     $currentsize = $billing_config['TASKBAR_ICON_SIZE'];
 }
 $resizeinputs = wf_SelectorAC('iconsize', $iconsizes, '', $currentsize, false);
 $resizeform = wf_Form('', 'POST', $resizeinputs);
 if ($altconf['TB_ICONCUSTOMSIZE']) {
     $taskbar .= '<br>' . $resizeform;
 }
 // new tickets notify
 $ticketnotify = '';
 show_window(__('Taskbar') . ' ' . $ticketnotify, $taskbar);
 //refresh IM container with notify
 if ($altconf['TB_UBIM']) {
     if ($altconf['TB_UBIM_REFRESH']) {
         if (cfr('UBIM')) {
             im_RefreshContainer($altconf['TB_UBIM_REFRESH']);
         }
     }
 }