本文整理汇总了PHP中wf_HiddenInput函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_HiddenInput函数的具体用法?PHP wf_HiddenInput怎么用?PHP wf_HiddenInput使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_HiddenInput函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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'));
}
}
示例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;
}
示例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;
}