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


PHP wf_TextInput函数代码示例

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


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

示例1: web_MikbillMigrationNetnumForm

 public function web_MikbillMigrationNetnumForm()
 {
     $inputs = wf_TextInput('netnum', __('networks number'), '', true, 20);
     $inputs .= wf_Submit(__('Save'));
     $form = wf_Form("", 'POST', $inputs, 'glamour');
     return $form;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:7,代码来源:api.migration.php

示例2: ms_ShowForm

 function ms_ShowForm()
 {
     $inputs = __('Message') . '<br>';
     $inputs .= wf_TextArea('message', '', '', true, '60x6');
     $inputs .= wf_TextInput('exactuserlogins', 'Exact users, comma delimiter', '', true, '30');
     $inputs .= wf_RadioInput('sendtype', 'Exact users', 'exactusers', true, true);
     $inputs .= wf_RadioInput('sendtype', 'Debtors', 'debtors', true);
     $inputs .= wf_RadioInput('sendtype', 'All users', 'allusers', true);
     $inputs .= wf_Submit('Send');
     $form = wf_Form('', 'POST', $inputs, 'glamour');
     show_window(__('Masssender'), $form);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:12,代码来源:index.php

示例3: web_PhpConsoleTemplateEditForm

 function web_PhpConsoleTemplateEditForm($templatekey)
 {
     $rawtemplate = zb_PhpConsoleGetTemplate($templatekey);
     $templatename = $rawtemplate['name'];
     $templatebody = $rawtemplate['body'];
     $inputs = wf_TextInput('edittemplatename', __('Template name'), $templatename, true, "30");
     $inputs .= wf_TextArea('edittemplatebody', '', $templatebody, true, '80x10');
     $inputs .= wf_Submit('Edit');
     $result = wf_Form("", 'POST', $inputs, 'glamour');
     $result .= wf_Link("?module=sqlconsole&devconsole=true", 'Back', true, 'ubButton');
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:12,代码来源:index.php

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

示例5: web_UserGenForm

 function web_UserGenForm()
 {
     $alltariffs_raw = zb_TariffsGetAll();
     $alltariffs = array();
     if (!empty($alltariffs_raw)) {
         foreach ($alltariffs_raw as $it => $eachtariff) {
             $alltariffs[$eachtariff['name']] = $eachtariff['name'];
         }
     }
     $inputs = wf_TextInput('gencount', __('Count of users to generate'), '', true);
     $inputs .= wf_Selector('gentariff', $alltariffs, __('Existing tariff for this users'), '', true);
     $inputs .= multinet_service_selector() . ' ' . __('Service for new users') . wf_tag('br');
     $inputs .= wf_CheckInput('fastsqlgen', __('Fast SQL Inserts - need to shutdown stargazer'), true, false);
     $inputs .= wf_Submit(__('Go!'));
     $result = wf_Form("", "POST", $inputs, 'glamour');
     show_window(__('Sample user generator'), $result);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:17,代码来源:index.php

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

示例7: wf_PlPingerOptionsForm

 function wf_PlPingerOptionsForm()
 {
     //previous setting
     if (wf_CheckPost(array('packet'))) {
         $currentpack = vf($_POST['packet'], 3);
     } else {
         $currentpack = '';
     }
     if (wf_CheckPost(array('count'))) {
         $getCount = vf($_POST['count'], 3);
         if ($getCount <= 10000) {
             $currentcount = $getCount;
         } else {
             $currentcount = '';
         }
     } else {
         $currentcount = '';
     }
     $inputs = wf_TextInput('packet', __('Packet size'), $currentpack, false, 5);
     $inputs .= wf_TextInput('count', __('Count'), $currentcount, false, 5);
     $inputs .= wf_Submit(__('Save'));
     $result = wf_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php

示例8: multinet_show_networks_form

function multinet_show_networks_form()
{
    $altcfg = rcms_parse_ini_file(CONFIG_PATH . "alter.ini");
    $useRadArr = array('0' => __('No'), '1' => __('Yes'));
    $sup = wf_tag('sup') . '*' . wf_tag('sup', true);
    $inputs = wf_HiddenInput('addnet', 'true');
    $inputs .= wf_TextInput('firstip', __('First IP') . $sup, '', true, '20');
    $inputs .= wf_TextInput('lastip', __('Last IP') . $sup, '', true, '20');
    $inputs .= multinet_nettype_selector() . ' ' . __('Network type') . wf_tag('br');
    $inputs .= wf_TextInput('desc', __('Network/CIDR') . $sup, '', true, '20');
    if ($altcfg['FREERADIUS_ENABLED']) {
        $inputs .= wf_Selector('use_radius', $useRadArr, __('Use Radius'), '', true);
        $inputs .= wf_tag('br');
    } else {
        $inputs .= wf_HiddenInput('use_radius', '0');
    }
    $inputs .= wf_Submit(__('Add'));
    $form = wf_Form("", 'POST', $inputs, 'glamour');
    show_window(__('Add network'), $form);
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:20,代码来源:api.networking.php

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

示例10: itemLocationForm

 /**
  * Returns item location form
  * 
  * @return string
  */
 protected function itemLocationForm()
 {
     $result = wf_Selector('newitemtype', $this->itemTypes, __('Type'), '', true);
     $result .= wf_TextInput('newitemname', __('Name'), '', true, 20);
     $result .= wf_TextInput('newitemlocation', __('Location'), '', true, 20);
     $result .= wf_Submit(__('Create'));
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:13,代码来源:api.custmaps.php

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

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

示例13: bankstaProcessingForm

 /**
  * returns banksta processing form for some hash
  * 
  * @param string $hash  existing preprocessing bank statement hash
  * 
  * @return string
  */
 public function bankstaProcessingForm($hash)
 {
     $hash = mysql_real_escape_string($hash);
     $query = "SELECT * from `ukv_banksta` WHERE `hash`='" . $hash . "' ORDER BY `id` ASC;";
     $all = simple_queryall($query);
     $cashPairs = array();
     $cells = wf_TableCell(__('ID'));
     $cells .= wf_TableCell(__('Address'));
     $cells .= wf_TableCell(__('Real Name'));
     $cells .= wf_TableCell(__('Contract'));
     $cells .= wf_TableCell(__('Cash'));
     $cells .= wf_TableCell(__('Processed'));
     $cells .= wf_TableCell(__('Contract'));
     $cells .= wf_TableCell(__('Real Name'));
     $cells .= wf_TableCell(__('Address'));
     $cells .= wf_TableCell(__('Tariff'));
     $rows = wf_TableRow($cells, 'row1');
     if (!empty($all)) {
         foreach ($all as $io => $each) {
             $AddInfoControl = wf_Link(self::URL_BANKSTA_DETAILED . $each['id'], $each['id'], false, '');
             $processed = $each['processed'] ? true : false;
             $cells = wf_TableCell($AddInfoControl);
             $cells .= wf_TableCell($each['address']);
             $cells .= wf_TableCell($each['realname']);
             if (!$processed) {
                 $editInputs = wf_TextInput('newbankcontr', '', $each['contract'], false, '6');
                 $editInputs .= wf_CheckInput('lockbankstarow', __('Lock'), false, false);
                 $editInputs .= wf_HiddenInput('bankstacontractedit', $each['id']);
                 $editInputs .= wf_Submit(__('Save'));
                 $editForm = wf_Form('', 'POST', $editInputs);
             } else {
                 $editForm = $each['contract'];
             }
             $cells .= wf_TableCell($editForm);
             $cells .= wf_TableCell($each['summ']);
             $cells .= wf_TableCell(web_bool_led($processed));
             //user detection
             if (isset($this->contracts[$each['contract']])) {
                 $detectedUser = $this->users[$this->contracts[$each['contract']]];
                 $detectedContract = wf_Link(self::URL_USERS_PROFILE . $detectedUser['id'], web_profile_icon() . ' ' . $detectedUser['contract'], false, '');
                 $detectedAddress = $detectedUser['street'] . ' ' . $detectedUser['build'] . '/' . $detectedUser['apt'];
                 $detectedRealName = $detectedUser['realname'];
                 $detectedTariff = $detectedUser['tariffid'];
                 $detectedTariff = $this->tariffs[$detectedTariff]['tariffname'];
                 if (!$processed) {
                     $cashPairs[$each['id']]['bankstaid'] = $each['id'];
                     $cashPairs[$each['id']]['userid'] = $detectedUser['id'];
                     $cashPairs[$each['id']]['usercontract'] = $detectedUser['contract'];
                     $cashPairs[$each['id']]['summ'] = $each['summ'];
                     $cashPairs[$each['id']]['payid'] = $each['payid'];
                 }
                 $rowClass = 'row3';
                 //try to highlight multiple payments
                 if (!isset($this->bankstafoundusers[$each['contract']])) {
                     $this->bankstafoundusers[$each['contract']] = $detectedUser['id'];
                 } else {
                     $rowClass = 'ukvbankstadup';
                 }
             } else {
                 $detectedContract = '';
                 $detectedAddress = '';
                 $detectedRealName = '';
                 $detectedTariff = '';
                 if ($each['processed'] == 1) {
                     $rowClass = 'row2';
                 } else {
                     $rowClass = 'undone';
                 }
             }
             $cells .= wf_TableCell($detectedContract);
             $cells .= wf_TableCell($detectedRealName);
             $cells .= wf_TableCell($detectedAddress);
             $cells .= wf_TableCell($detectedTariff);
             $rows .= wf_TableRow($cells, $rowClass);
         }
     }
     $result = wf_TableBody($rows, '100%', '0', '');
     if (!empty($cashPairs)) {
         $cashPairs = serialize($cashPairs);
         $cashPairs = base64_encode($cashPairs);
         $cashInputs = wf_HiddenInput('bankstaneedpaymentspush', $cashPairs);
         $cashInputs .= wf_Submit(__('Bank statement processing'));
         $result .= wf_Form('', 'POST', $cashInputs, 'glamour');
     }
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:93,代码来源:api.ukv.php

示例14: web_TsmsSingleSendForm

 function web_TsmsSingleSendForm()
 {
     $inputs = wf_TextInput('sendsinglelogin', __('Login'), '', false, '20');
     $inputs .= wf_Submit(__('Send'));
     $result = wf_Form("", "POST", $inputs, 'glamour');
     return $result;
 }
开发者ID:syscenter,项目名称:ubilling-sms,代码行数:7,代码来源:index.php

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


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