本文整理汇总了PHP中wf_Form函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_Form函数的具体用法?PHP wf_Form怎么用?PHP wf_Form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_Form函数的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;
}
示例2: web_CardShowDateForm
function web_CardShowDateForm()
{
$curmonth = date("m");
$inputs = wf_YearSelector('yearsel');
$inputs .= wf_MonthSelector('monthsel', 'Month', $curmonth, false);
$inputs .= wf_Submit('Show');
$form = wf_Form("", 'POST', $inputs, 'glamour');
show_window(__('Date'), $form);
}
示例3: web_IPChangeFormService
/**
* Returns new user service select form
*
* @return string
*/
function web_IPChangeFormService()
{
global $current_ip;
$inputs = multinet_service_selector() . ' ' . __('New IP service');
$inputs .= wf_delimiter();
$inputs .= wf_Submit(__('Save'));
$result = wf_Form("", 'POST', $inputs, 'floatpanels');
return $result;
}
示例4: web_CardShowDateForm
/**
* Renders year-month search interface
*
* @return void
*/
function web_CardShowDateForm()
{
$curmonth = wf_CheckPost(array('monthsel')) ? vf($_POST['monthsel'], 3) : date("m");
$curyear = wf_CheckPost(array('yearsel')) ? vf($_POST['yearsel'], 3) : date("Y");
$inputs = wf_YearSelectorPreset('yearsel', __('Year'), false, $curyear) . ' ';
$inputs .= wf_MonthSelector('monthsel', 'Month', $curmonth, false);
$inputs .= wf_Submit('Show');
$form = wf_Form("", 'POST', $inputs, 'glamour');
show_window(__('Date'), $form);
}
示例5: 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;
}
示例6: 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);
}
示例7: web_CashCashtypeDefaultForm
function web_CashCashtypeDefaultForm()
{
$defCashType = zb_StorageGet('DEF_CT');
if (empty($defCashType)) {
$defCashType = 'NOP';
}
$allCashTypes = zb_CashGetAllCashTypes();
$inputs = wf_Selector('setdefaultcashtype', $allCashTypes, __('Current default cashtype for manual input'), $defCashType, true);
$inputs .= wf_Submit(__('Set as default cash type'));
$result = wf_Form('', 'POST', $inputs, 'glamour');
return $result;
}
示例8: 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);
}
示例9: 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;
}
示例10: 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);
}
示例11: 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);
}
示例12: 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);
}
}
示例13: 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);
}
}
示例14: 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;
}
示例15: renderSearchForm
/**
* Returns openpayz search form
*
* @return string
*/
public function renderSearchForm()
{
$inputs = wf_YearSelector('searchyear', __('Year'), false) . ' ';
$inputs .= wf_MonthSelector('searchmonth', __('Month'), '', false) . ' ';
$inputs .= wf_Selector('searchpaysys', $this->allPaySys, __('Payment system'), '', false) . ' ';
$inputs .= wf_Submit(__('Search'));
$result = wf_Form("", 'POST', $inputs, 'glamour');
return $result;
}