• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wf_HiddenInput函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了wf_HiddenInput函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: 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


示例2: web_AnnihilateFormShow

 function web_AnnihilateFormShow($login)
 {
     $alladdress = zb_AddressGetFulladdresslist();
     $inputs = __('Be careful, this module permanently deletes user and all data associated with it. Opportunities to raise from the dead no longer.');
     $inputs .= wf_tag('br');
     $inputs .= __('To ensure that we have seen the seriousness of your intentions to enter the word сonfirm the field below.');
     $inputs .= wf_tag('br');
     $inputs .= wf_tag('input', false, '', 'type="text" name="confirmation" autocomplete="off"');
     $inputs .= wf_HiddenInput('anihilation', 'true');
     $inputs .= wf_delimiter();
     $inputs .= wf_Submit(__('I really want to stop suffering User'));
     $form = wf_Form('', 'POST', $inputs, 'glamour');
     show_window(__('Deleting user') . ' ' . @$alladdress[$login] . ' (' . $login . ')', $form);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:14,代码来源:index.php


示例3: mrst_FormShow

 function mrst_FormShow()
 {
     global $altcfg;
     $inputs = __('After clicking the button below for all users will perform the standard procedure reset. By default, this will reinitialize shapers and  MAC bindings.');
     if (!isset($altcfg['MASSRESET_NOCONFIRM'])) {
         $confirmKey = rand(1111, 9999);
         $inputs .= ' ' . __('If you are completely sure of what you wish, enter the following numbers into the next field.') . '<br>';
         $inputs .= wf_HiddenInput('confirmkey', $confirmKey);
         $inputs .= $confirmKey . ' ⇨ ' . wf_TextInput('confirmcheck', '', '', true, 5);
     }
     $inputs .= wf_HiddenInput('runmassreset', 'true') . '<br>';
     $inputs .= wf_Submit(__('I`m ready'));
     $form = wf_Form("", 'POST', $inputs, 'glamour');
     show_window(__('Mass user reset'), $form);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:15,代码来源:index.php


示例4: web_FDBTableFiltersForm

 /**
  * Returns FDB cache lister MAC filters setup form
  * 
  * @return string
  */
 function web_FDBTableFiltersForm()
 {
     $currentFilters = '';
     $oldFilters = zb_StorageGet('FDBCACHEMACFILTERS');
     if (!empty($oldFilters)) {
         $currentFilters = base64_decode($oldFilters);
     }
     $inputs = __('One MAC address per line') . wf_tag('br');
     $inputs .= wf_TextArea('newmacfilters', '', $currentFilters, true, '40x10');
     $inputs .= wf_HiddenInput('setmacfilters', 'true');
     $inputs .= wf_CheckInput('deletemacfilters', __('Cleanup'), true, false);
     $inputs .= wf_Submit(__('Save'));
     $result = wf_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:20,代码来源:index.php


示例5: loadForm

 /**
  * Stores raw login form into private property
  * 
  * @param bool $br
  * @param bool $container
  * 
  * @return void
  */
 protected function loadForm($br, $container)
 {
     $this->breaks = $br;
     $this->container = $container;
     if (file_exists('DEMO_MODE')) {
         $this->loginPreset = 'admin';
         $this->passwordPreset = 'demo';
     }
     if ($this->container) {
         $this->form .= wf_tag('div', false, 'ubLoginContainer');
     }
     $inputs = wf_HiddenInput('login_form', '1');
     $inputs .= wf_TextInput('username', __('Login'), $this->loginPreset, $this->breaks, $this->inputSize);
     $inputs .= wf_PasswordInput('password', __('Password'), $this->passwordPreset, $this->breaks, $this->inputSize);
     $inputs .= wf_Submit(__('Log in'));
     $this->form .= wf_Form("", 'POST', $inputs, 'ubLoginForm');
     if ($this->container) {
         $this->form .= wf_tag('div', true);
     }
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:28,代码来源:api.loginform.php


示例6: web_NasTemplateEditForm

function web_NasTemplateEditForm($id)
{
    $id = vf($id, 3);
    $allradiusnas_q = "SELECT * from `nas` WHERE `nastype`='radius'";
    $allradiusnas = simple_queryall($allradiusnas_q);
    $template_q = "SELECT * from `nastemplates` WHERE `id`='" . $id . "'";
    $template_data = simple_query($template_q);
    $nasselector = array();
    if (!empty($allradiusnas)) {
        foreach ($allradiusnas as $io => $eachnas) {
            $nasselector[$eachnas['id']] = $eachnas['id'] . ':' . $eachnas['nasname'];
        }
        $addinputs = wf_Selector('editnasid', $nasselector, 'Network Access Servers', $template_data['nasid'], true);
        $addinputs .= wf_HiddenInput('edittemplateid', $template_data['id']);
        $addinputs .= wf_TextArea('editnastemplate', '', $template_data['template'], true, '60x10');
        $addinputs .= wf_Submit('Change');
        $addform = wf_Form('', 'POST', $addinputs, 'glamour');
        show_window(__('Edit template'), $addform);
    }
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:20,代码来源:api.radius.php


示例7: commentEditForm

 /**
  * Returns comment edit form
  * 
  * @param int $commentid existing database comment ID
  * @return string
  */
 protected function commentEditForm($commentid)
 {
     $result = '';
     if (isset($this->data[$commentid])) {
         $inputs = wf_HiddenInput('adcommentsmodifyid', $commentid);
         $inputs .= wf_TextArea('adcommentsmodifytext', '', $this->data[$commentid]['text'], true, '60x10');
         $inputs .= wf_Submit(__('Save'));
         $result = wf_Form('', 'POST', $inputs, 'glamour');
     }
     return $result;
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:17,代码来源:api.adcomments.php


示例8: zb_SwitchReplaceForm

/**
 * Returns NP switches replacement form
 * 
 * @param int $fromSwitchId
 * 
 * @return string
 */
function zb_SwitchReplaceForm($fromSwitchId)
{
    $fromSwitchId = vf($fromSwitchId, 3);
    $result = '';
    $query = "SELECT * from `switches` WHERE `desc` LIKE '%NP%' ORDER BY `id` DESC";
    $raw = simple_queryall($query);
    $paramsNp = array();
    $employee = array();
    $employee = ts_GetActiveEmployee();
    if (!empty($raw)) {
        foreach ($raw as $io => $eachNp) {
            $paramsNp[$eachNp['id']] = $eachNp['location'] . ' - ' . $eachNp['ip'];
        }
    }
    $inputs = wf_HiddenInput('switchreplace', $fromSwitchId);
    $inputs .= wf_Selector('toswtichreplace', $paramsNp, 'NP ' . __('Switch'), '', false);
    $inputs .= wf_Selector('replaceemployeeid', $employee, __('Worker'), '', false);
    $inputs .= wf_Submit('Save');
    $result = wf_Form('', 'POST', $inputs, 'glamour');
    $result .= wf_CleanDiv();
    $result .= wf_delimiter();
    $result .= wf_Link('?module=switches&edit=' . $fromSwitchId, __('Back'), false, 'ubButton');
    return $result;
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:31,代码来源:api.switches.php


示例9: editForm

 /**
  * Retuns connection details edit form
  * 
  * @param string $login
  * @return string
  */
 public function editForm($login)
 {
     $login = mysql_real_escape_string($login);
     $currentData = $this->getByLogin($login);
     $inputs = wf_TextInput('newseal', __('Cable seal'), @$currentData['seal'], true, '40');
     $inputs .= wf_TextInput('newlength', __('Cable length') . ', ' . __('m'), @$currentData['length'], true, '5');
     $inputs .= wf_TextInput('newprice', __('Signup price'), @$currentData['price'], true, '5');
     $inputs .= wf_HiddenInput('editcondet', 'true');
     $inputs .= wf_tag('br');
     $inputs .= wf_Submit(__('Save'));
     $result = wf_Form("", 'POST', $inputs, 'glamour');
     return $result;
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:19,代码来源:api.condet.php


示例10: catchAjRequest

 /**
  * Returns ajax inputs of required type
  * 
  * @return string
  */
 public function catchAjRequest()
 {
     $result = '';
     if (wf_CheckGet(array('ajinput'))) {
         $request = vf($_GET['ajinput']);
         switch ($request) {
             case 'addcash':
                 $result .= wf_HiddenInput('newschedaction', 'addcash');
                 $result .= wf_TextInput('newschedparam', __('Sum'), '', true, 5);
                 break;
             case 'corrcash':
                 $result .= wf_HiddenInput('newschedaction', 'corrcash');
                 $result .= wf_TextInput('newschedparam', __('Sum'), '', true, 5);
                 break;
             case 'setcash':
                 $result .= wf_HiddenInput('newschedaction', 'setcash');
                 $result .= wf_TextInput('newschedparam', __('Sum'), '', true, 5);
                 break;
             case 'credit':
                 $result .= wf_HiddenInput('newschedaction', 'credit');
                 $result .= wf_TextInput('newschedparam', __('New credit'), '', true, 5);
                 break;
             case 'creditexpire':
                 $result .= wf_HiddenInput('newschedaction', 'creditexpire');
                 $result .= wf_DatePickerPreset('newschedparam', curdate()) . ' ' . __('New credit expire') . wf_tag('br');
                 break;
             case 'tariffchange':
                 $result .= wf_HiddenInput('newschedaction', 'tariffchange');
                 $result .= web_tariffselector('newschedparam') . ' ' . __('Tariff name') . wf_tag('br');
                 break;
             case 'tagadd':
                 $result .= wf_HiddenInput('newschedaction', 'tagadd');
                 $allTags = array();
                 $allTagsRaw = simple_queryall("SELECT * from `tagtypes`");
                 if (!empty($allTagsRaw)) {
                     foreach ($allTagsRaw as $io => $each) {
                         $allTags[$each['id']] = $each['tagname'];
                     }
                 }
                 $result .= wf_Selector('newschedparam', $allTags, __('Tag'), '', true);
                 break;
             case 'tagdel':
                 $result .= wf_HiddenInput('newschedaction', 'tagdel');
                 $allTags = array();
                 $allTagsRaw = simple_queryall("SELECT * from `tagtypes`");
                 if (!empty($allTagsRaw)) {
                     foreach ($allTagsRaw as $io => $each) {
                         $allTags[$each['id']] = $each['tagname'];
                     }
                 }
                 $result .= wf_Selector('newschedparam', $allTags, __('Tag'), '', true);
                 break;
             case 'freeze':
                 $result .= wf_HiddenInput('newschedaction', 'freeze');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
             case 'unfreeze':
                 $result .= wf_HiddenInput('newschedaction', 'unfreeze');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
             case 'reset':
                 $result .= wf_HiddenInput('newschedaction', 'reset');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
             case 'setspeed':
                 $result .= wf_HiddenInput('newschedaction', 'setspeed');
                 $result .= wf_TextInput('newschedparam', __('New speed override'), '', true, 5);
                 break;
             case 'down':
                 $result .= wf_HiddenInput('newschedaction', 'down');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
             case 'undown':
                 $result .= wf_HiddenInput('newschedaction', 'undown');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
             case 'ao':
                 $result .= wf_HiddenInput('newschedaction', 'ao');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
             case 'unao':
                 $result .= wf_HiddenInput('newschedaction', 'unao');
                 $result .= wf_HiddenInput('newschedparam', '');
                 break;
         }
         $result .= wf_TextInput('newschednote', __('Notes'), '', true, 30);
         $result .= wf_Submit(__('Create'));
         if ($request == 'noaction') {
             $result = __('Please select action');
         }
     }
     die($result);
 }
开发者ID:carriercomm,项目名称:Ubilling,代码行数:98,代码来源:api.dealwithit.php


示例11: renderEditForm

 /**
  * Returns time rule editing form
  * 
  * @param int $timeruleid existing time rule database ID
  * @return string
  */
 public function renderEditForm($timeruleid)
 {
     $timeruleid = vf($timeruleid, 3);
     $query = "SELECT * from `dshape_time` WHERE `id`='" . $timeruleid . "'";
     $timerule_data = simple_query($query);
     $sup = wf_tag('sup') . '*' . wf_tag('sup', true);
     $inputs = wf_tag('select', false, '', 'DISABLED');
     $inputs .= wf_tag('option') . $timerule_data['tariff'] . $this->getSpeeds($timerule_data['tariff']) . wf_tag('option', true);
     $inputs .= wf_tag('select', true);
     $inputs .= wf_tag('br');
     $inputs .= wf_HiddenInput('editdshapetariff', $timerule_data['tariff']);
     $inputs .= wf_TimePickerPresetSeconds('editthreshold1', $timerule_data['threshold1'], __('Time from') . $sup, true);
     $inputs .= wf_TimePickerPresetSeconds('editthreshold2', $timerule_data['threshold2'], __('Time to') . $sup, true);
     $inputs .= wf_TextInput('editspeed', __('Speed') . $sup, $timerule_data['speed'], true, 8);
     $inputs .= wf_Submit(__('Save'));
     $form = wf_Form('', 'POST', $inputs, 'glamour');
     $form .= wf_CleanDiv();
     $form .= wf_tag('br');
     $form .= wf_Link('?module=dshaper', __('Back'), true, 'ubButton');
     return $form;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:27,代码来源:api.dshaper.php


示例12: cf_TypeGetSearchControl

/**
 * Returns search controller for CFs assigned to user
 * 
 * @param string $type Type of CF to return control
 * @param int    $typeid Type ID for change
 * 
 * @return string
 */
function cf_TypeGetSearchControl($type, $typeid)
{
    $type = vf($type);
    $typeid = vf($typeid);
    $result = '';
    if ($type == 'VARCHAR') {
        $inputs = wf_HiddenInput('cftypeid', $typeid);
        $inputs .= wf_TextInput('cfquery', '', '', false, 20);
        $inputs .= wf_Submit(__('Search'));
        $result = wf_Form("", 'POST', $inputs, '');
    }
    if ($type == 'TRIGGER') {
        $triggerOpts = array(1 => __('Yes'), 0 => __('No'));
        $inputs = wf_HiddenInput('cftypeid', $typeid);
        $inputs .= wf_Selector('cfquery', $triggerOpts, '', '', false);
        $inputs .= wf_Submit(__('Search'));
        $result = wf_Form("", 'POST', $inputs, '');
    }
    if ($type == 'TEXT') {
        $inputs = wf_HiddenInput('cftypeid', $typeid);
        $inputs .= wf_TextInput('cfquery', '', '', false, 20);
        $inputs .= wf_Submit(__('Search'));
        $result = wf_Form("", 'POST', $inputs, '');
    }
    return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:34,代码来源:api.cf.php


示例13: web_MigrationPreprocessing

 function web_MigrationPreprocessing($filename, $delimiter, $encoding)
 {
     $path = 'exports/';
     $raw_data = file_get_contents($path . $filename);
     $parsed_data = array();
     if ($encoding != 'utf-8') {
         $raw_data = iconv($encoding, 'utf-8', $raw_data);
     }
     $raw_data = explodeRows($raw_data);
     if (!empty($raw_data)) {
         foreach ($raw_data as $eachrow) {
             if (!empty($eachrow)) {
                 $parsed_data[] = explode($delimiter, $eachrow);
             }
         }
     }
     if (sizeof($parsed_data) > 1) {
         $col_count = sizeof($parsed_data[0]);
         $cells = wf_TableCell(__('Column number'));
         $cells .= wf_TableCell(__('Column content'));
         $rows = wf_TableRow($cells, 'row1');
         foreach ($parsed_data[0] as $col_num => $col_data) {
             $cells = wf_TableCell($col_num);
             $cells .= wf_TableCell($col_data);
             $rows .= wf_TableRow($cells, 'row3');
         }
         $first_row = wf_TableBody($rows, '100%', '0', '');
         show_window(__('Found count of data columns'), $col_count);
         show_window(__('First of imported data rows'), $first_row);
         //construct of data processing form
         $rowNumArr = array();
         for ($i = 0; $i < $col_count; $i++) {
             $rowNumArr[$i] = $i;
         }
         $login_arr = $rowNumArr + array('RANDOM' => __('Generate Random'));
         $password_arr = $rowNumArr + array('RANDOM' => __('Generate Random'));
         $ip_arr = $rowNumArr;
         $mac_arr = $rowNumArr + array('RANDOM' => __('Generate Random'));
         $tariff_arr = $rowNumArr;
         $cash_arr = $rowNumArr;
         $credit_arr = $rowNumArr + array('ZERO' => __('Set to zero'));
         $creditex_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $phone_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $mobile_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $email_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $address_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $realname_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $contract_arr = $rowNumArr + array('NONE' => __('Set to none'));
         $ao_arr = $rowNumArr + array('AO_1' => __('AlwaysOnline=1'));
         $down_arr = $rowNumArr + array('DOWN_0' => __('Down=0'));
         $passive_arr = $rowNumArr + array('PASSIVE_0' => __('Passive=0'));
         $regtype_arr = array('SQL' => 'Show SQL dump', 'UB' => 'Ubilling live register');
         //data column setting form
         $inputs = wf_Selector('login_col', $login_arr, __('User login'), '', true);
         $inputs .= wf_Selector('password_col', $password_arr, __('User password'), '', true);
         $inputs .= wf_Selector('ip_col', $ip_arr, __('User IP'), '', true);
         $inputs .= wf_Selector('mac_col', $mac_arr, __('User MAC'), '', true);
         $inputs .= wf_Selector('tariff_col', $tariff_arr, __('User tariff'), '', true);
         $inputs .= wf_Selector('cash_col', $cash_arr, __('User cash'), '', true);
         $inputs .= wf_Selector('credit_col', $credit_arr, __('User credit limit'), '', true);
         $inputs .= wf_Selector('creditex_col', $creditex_arr, __('User credit expire date'), '', true);
         $inputs .= wf_Selector('phone_col', $phone_arr, __('User phone'), '', true);
         $inputs .= wf_Selector('mobile_col', $mobile_arr, __('User mobile'), '', true);
         $inputs .= wf_Selector('email_col', $email_arr, __('User email'), '', true);
         $inputs .= wf_Selector('address_col', $address_arr, __('User address'), '', true);
         $inputs .= wf_Selector('realname_col', $realname_arr, __('User realname'), '', true);
         $inputs .= wf_Selector('contract_col', $contract_arr, __('User contract'), '', true);
         $inputs .= wf_Selector('ao_col', $ao_arr, __('User AlwaysOnline state'), '', true);
         $inputs .= wf_Selector('down_col', $down_arr, __('User Down state'), '', true);
         $inputs .= wf_Selector('passive_col', $passive_arr, __('User Passive state'), '', true);
         $inputs .= wf_Selector('regtype', $regtype_arr, __('User registration mode'), '', true);
         $inputs .= multinet_network_selector() . __('Target network') . wf_delimiter();
         $inputs .= wf_HiddenInput('import_rawdata', base64_encode(serialize($parsed_data)));
         $inputs .= wf_Submit('Save this column pointers and continue import');
         $colform = wf_Form("?module=migration&setpointers=true", 'POST', $inputs, 'glamour');
         show_window(__('Select data columns and their values'), $colform);
     } else {
         show_error(__('Parsing error'));
     }
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:80,代码来源:index.php


示例14: renderEditForm

 /**
  * returns some build passport edit form
  * 
  * @praram $buildid existing build id
  * 
  * @return string
  */
 public function renderEditForm($buildid)
 {
     $buildid = vf($buildid, 3);
     if (isset($this->data[$buildid])) {
         $currentData = $this->data[$buildid];
     } else {
         $currentData = array();
     }
     $inputs = wf_HiddenInput('savebuildpassport', $buildid);
     $inputs .= wf_Selector('powner', $this->ownersArr, __('Owner'), @$currentData['owner'], true);
     $inputs .= wf_TextInput('pownername', __('Owner name'), @$currentData['ownername'], true, 30);
     $inputs .= wf_TextInput('pownerphone', __('Owner phone'), @$currentData['ownerphone'], true, 30);
     $inputs .= wf_TextInput('pownercontact', __('Owner contact person'), @$currentData['ownercontact'], true, 30);
     $keys = @$currentData['keys'] == 1 ? true : false;
     $inputs .= wf_CheckInput('pkeys', __('Keys available'), true, $keys);
     $inputs .= wf_TextInput('paccessnotices', __('Build access notices'), @$currentData['accessnotices'], true, 40);
     $inputs .= wf_Selector('pfloors', $this->floorsArr, __('Floors'), @$currentData['floors'], false);
     $inputs .= wf_Selector('pentrances', $this->entrancesArr, __('Entrances'), @$currentData['entrances'], false);
     $inputs .= wf_TextInput('papts', __('Apartments'), @$currentData['apts'], true, 5);
     $inputs .= __('Notes') . wf_tag('br');
     $inputs .= wf_TextArea('pnotes', '', @$currentData['notes'], true, '50x6');
     $inputs .= wf_Submit(__('Save'));
     $result = wf_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:32,代码来源:api.address.php


示例15: renderCemeteryLog

 /**
  * Renders full cemetary log for some user
  * 
  * @param string $login
  * 
  * @return string
  */
 public function renderCemeteryLog($login)
 {
     $result = '';
     if (!empty($this->allDead)) {
         $cells = wf_TableCell(__('Date'));
         $cells .= wf_TableCell(__('Status'));
         $rows = wf_TableRow($cells, 'row1');
         foreach ($this->allDead as $io => $each) {
             if ($each['login'] == $login) {
                 $led = $each['state'] ? web_bool_led(0) : web_bool_led(1);
                 $cells = wf_TableCell($each['date']);
                 $cells .= wf_TableCell($led);
                 $rows .= wf_TableRow($cells, 'row3');
             }
         }
         $result = wf_TableBody($rows, '100%', 0, 'sortable');
         if (cfr('USERREG')) {
             if ($this->isUserDead($login)) {
                 $inputs = wf_HiddenInput('cemeterysetasundead', $login);
                 $inputs .= wf_Submit(__('Set user connected'));
                 $result .= wf_Form('', 'POST', $inputs, 'glamour');
             } else {
                 $inputs = wf_HiddenInput('cemeterysetasdead', $login);
                 $inputs .= wf_Submit(__('Set user disconnected'));
                 $result .= wf_Form('', 'POST', $inputs, 'glamour');
             }
         }
     }
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:37,代码来源:api.cemetery.php


示例16: web_ExpressCardRegForm


//.........这里部分代码省略.........
    $mac = '14:' . '88' . ':' . rand(10, 99) . ':' . rand(10, 99) . ':' . rand(10, 99) . ':' . rand(10, 99);
    $phone = '';
    $mobile = '';
    $email = '';
    $notes = '';
    $stgdata = '';
    $currenttariff = '';
    $birthdate = '';
    $passportnum = '';
    $passportdate = '';
    $passportwho = '';
    $pcity = '';
    $pstreet = '';
    $pbuild = '';
    $papt = '';
    $inputs = zb_AjaxLoader() . wf_delimiter();
    $inputs .= __('Contract');
    $inputs .= wf_TextInput('newcontract', '', $contract, false, '10');
    $inputs .= __('Contract date');
    $inputs .= wf_DatePickerPreset('newcontractdate', @$allcontractdates[$contract]);
    $inputs .= wf_delimiter();
    $inputs .= __('Surname');
    $inputs .= wf_TextInput('newsurname', '', '', false, '20');
    $inputs .= __('Name');
    $inputs .= wf_TextInput('newname', '', '', false, '20');
    $inputs .= __('Patronymic');
    $inputs .= wf_TextInput('newpatronymic', '', '', false, '20');
    $inputs .= __('Birth date');
    $inputs .= wf_DatePickerPreset('newbirthdate', $birthdate);
    $inputs .= wf_delimiter();
    $inputs .= __('Passport number');
    $inputs .= wf_TextInput('newpassportnum', '', $passportnum, false, '30');
    $inputs .= __('Date of issue');
    $inputs .= wf_DatePickerPreset('newpassportdate', $passportdate);
    $inputs .= __('Issuing authority');
    $inputs .= wf_TextInput('newpassportwho', '', $passportwho, false, '40');
    $inputs .= wf_delimiter();
    $inputs .= __('Phone');
    $inputs .= wf_TextInput('newphone', '', $phone, false, '20');
    $inputs .= __('Mobile');
    $inputs .= wf_TextInput('newmobile', '', $mobile, false, '20');
    $inputs .= __('email');
    $inputs .= wf_TextInput('newemail', '', $email, false, '20');
    $inputs .= wf_delimiter();
    $inputs .= wf_tag('fieldset');
    //address data form
    $inputs .= __('Address of service') . ' ';
    //new address creation form
    $inputs .= web_ExpressAddressOccupancyForm();
    $inputs .= wf_delimiter();
    //additional address fields
    $inputs .= __('Registration address') . ' ';
    $inputs .= zb_JSHider();
    $inputs .= web_PaddressUnhideBox();
    $inputs .= web_HidingDiv('paddress');
    $inputs .= __('City');
    $inputs .= wf_TextInput('newpcity', '', $pcity, false, '20');
    $inputs .= __('Street');
    $inputs .= wf_TextInput('newpstreet', '', $pstreet, false, '20');
    $inputs .= __('Build');
    $inputs .= wf_TextInput('newpbuild', '', $pbuild, false, '5');
    $inputs .= __('Apartment');
    $inputs .= wf_TextInput('newpapt', '', $papt, false, '5');
    $inputs .= wf_tag('div', true);
    $inputs .= wf_tag('fieldset', true);
    $inputs .= wf_delimiter();
    $inputs .= __('Tariff');
    $inputs .= web_ExpressTariffSelector('newtariff', $currenttariff);
    $inputs .= __('Service');
    $inputs .= web_ExpressServiceSelectorReg();
    $inputs .= __('IP');
    $inputs .= wf_tag('span', false, '', 'id="dipbox"');
    $allservices = multinet_get_services();
    if (!empty($allservices)) {
        $firstService = $allservices[0];
        $firstNet = $firstService['netid'];
        @($ip_proposal = multinet_get_next_freeip('nethosts', 'ip', $firstNet));
        if (empty($ip_proposal)) {
            show_window('', wf_modalOpened(__('Error'), __('No free IP available in selected pool'), '400', '250'));
        }
    } else {
        $ip_proposal = __('Error');
    }
    $inputs .= wf_TextInput('editip', '', $ip_proposal, false, '20');
    $inputs .= wf_tag('span', true);
    //dummy login proposal
    $login = zb_RegLoginProposal('', '', '', '', $ip_proposal);
    $inputs .= __('MAC');
    $inputs .= wf_TextInput('newmac', '', $mac, false, '20');
    $inputs .= __('Login');
    $inputs .= wf_TextInput('newlogin', '', $login, false, '20');
    $inputs .= wf_delimiter();
    $inputs .= __('Notes');
    $inputs .= wf_TextInput('newnotes', '', $notes, false, '120');
    $inputs .= wf_HiddenInput('expresscardreg', 'true');
    $inputs .= wf_delimiter();
    $inputs .= wf_Submit('Let register that user');
    $expresscardform = wf_Form("", "POST", $inputs, 'expresscard');
    show_window(__('Express card user register'), $expresscardform);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:101,代码来源:api.crm.php


示例17: web_UserSearchAddressForm

/**
 * Returns user full address search form
 * 
 * @return string
 */
function web_UserSearchAddressForm()
{
    $form = wf_tag('form', false, '', 'action="" method="POST"');
    $form .= wf_tag('table', false, '', 'width="100%" border="0"');
    if (!isset($_POST['citysel'])) {
        $cells = wf_TableCell(__('City'), '40%');
        $cells .= wf_TableCell(web_CitySelectorAc());
        $form .= wf_TableRow($cells, 'row3');
    } else {
        // if city selected
        $cityname = zb_AddressGetCityData($_POST['citysel']);
        $cityname = $cityname['cityname'];
        $cells = wf_TableCell(__('City'), '40%');
        $cells .= wf_TableCell(web_ok_icon() . ' ' . $cityname . wf_HiddenInput('citysel', $_POST['citysel']));
        $form .= wf_TableRow($cells, 'row3');
        if (!isset($_POST['streetsel'])) {
            $cells = wf_TableCell(__('Street'), '40%');
            $cells .= wf_TableCell(web_StreetSelectorAc($_POST['citysel']));
            $form .= wf_TableRow($cells, 'row3');
        } else {
            // if street selected
            $streetname = zb_AddressGetStreetData($_POST['streetsel']);
            $streetname = $streetname['streetname'];
            $cells = wf_TableCell(__('Street'), '40%');
            $cells .= wf_TableCell(web_ok_icon() . ' ' . $streetname . wf_HiddenInput('streetsel', $_POST['streetsel']));
            $form .= wf_TableRow($cells, 'row3');
            if (!isset($_POST['buildsel'])) {
                $cells = wf_TableCell(__('Build'), '40%');
                $cells .= wf_TableCell(web_BuildSelectorAc($_POST['streetsel']));
                $form .= wf_TableRow($cells, 'row3');
            } else {
                //if build selected
                $buildnum = zb_AddressGetBuildData($_POST['buildsel']);
                $buildnum = $buildnum['buildnum'];
                $cells = wf_TableCell(__('Build'), '40%');
                $cells .= wf_TableCell(web_ok_icon() . ' ' . $buildnum . wf_HiddenInput('buildsel', $_POST['buildsel']));
                $form .= wf_TableRow($cells, 'row3');
                if (!isset($_POST['aptsel'])) {
                    $cells = wf_TableCell(__('Apartment'), '40%');
                    $cells .= wf_TableCell(web_AptSelectorAc($_POST['buildsel']));
                    $form .= wf_TableRow($cells, 'row3');
                } else {
                    //if apt selected
                    $aptnum = zb_AddressGetAptDataById($_POST['aptsel']);
                    $aptnum = $aptnum['apt'];
                    $cells = wf_TableCell(__('Apartment'), '40%');
                    $cells .= wf_TableCell(web_ok_icon() . ' ' . $aptnum . wf_HiddenInput('aptsel', $_POST['aptsel']));
                    $form .= wf_TableRow($cells, 'row3');
                    $cells = wf_TableCell(wf_HiddenInput('aptsearch', $_POST['aptsel']));
                    $cells .= wf_TableCell(wf_Submit(__('Find')));
                    $form .= wf_TableRow($cells, 'row3');
                }
            }
        }
    }
    $form .= wf_tag('table', true);
    $form .= wf_tag('form', true);
    return $form;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:64,代码来源:api.usersearch.php


示例18: im_ConversationForm

/**
 * Return conversation form for some thread
 * 
 * @param string $to - thread username 
 * 
 * @return string
 */
function im_ConversationForm($to)
{
    $inputs = wf_HiddenInput('im_message_to', $to);
    $inputs .= wf_TextArea('im_message_text', '', '', true, '60x4');
    $inputs .= wf_Submit('Send message');
    $result = wf_Form("", 'POST', $inputs, 'glamour');
    return $result;
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:15,代码来源:api.ubim.php


示例19: mapEditForm

 /**
  * Returns custom map editing form
  * 
  * @param int $id
  * 
  * @return string
  */
 protected function mapEditForm($id)
 {
     $inputs = wf_TextInput('editmapname', __('Name'), $this->allMaps[$id]['name'], true, '30');
     $inputs .= wf_HiddenInput('editmapid', $id);
     $inputs .= wf_Submit(__('Create'));
     $result = wf_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:15,代码来源:api.custmaps.php


示例20: web_TicketReplyEditForm

/**
 * Returns reply edit form
 * 
 * @param int $replyid
 * 
 * @return string
 */
function web_TicketReplyEditForm($replyid)
{
    $replyid = vf($replyid, 3);
    $ticketdata = zb_TicketGetData($replyid);
    $replytext = $ticketdata['text'];
    $inputs = wf_HiddenInput('editreply', $replyid);
    $inputs .= wf_TextArea('editreplytext', '', $replytext, true, '60x10');
    $inputs .= wf_Submit('Save');
    $form = wf_Form('', 'POST', $inputs, 'glamour');
    return $form;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:18,代码来源:api.ticketing.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wf_JSAlert函数代码示例发布时间:2022-05-23
下一篇:
PHP wf_Form函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap