/** * Returns payment card input form * * @return string */ function zbs_PaycardsShowForm() { $inputs = la_tag('br'); $inputs .= __('Payment card number') . ' '; $inputs .= la_TextInput('paycard', '', '', false, 25); $inputs .= la_Submit(__('Use this card')); $inputs .= la_delimiter(); $form = la_Form('', 'POST', $inputs, ''); return $form; }
/** * Renders user login form * * @return void */ function zbs_LoginForm() { $inputs = la_tag('label') . __('Login') . la_tag('label', true) . la_tag('br'); $inputs .= la_TextInput('ulogin', '', '', true); $inputs .= la_tag('label') . __('Password') . la_tag('label', true) . la_tag('br'); $inputs .= la_PasswordInput('upassword', '', '', true); $inputs .= la_Submit(__('Enter')); $form = la_Form('', 'POST', $inputs, 'loginform'); $cells = la_TableCell($form, '', '', 'align="center"'); $rows = la_TableRow($cells); $result = la_TableBody($rows, '100%', 0); show_window(__('Login with your account'), $result); }
/** * returns custom documents form fields * * @return string */ public function customDocumentFieldsForm() { $rawServices = $this->altcfg['DOCX_SERVICES']; $availServices = array(); if (!empty($rawServices)) { $rawServices = explode(',', $rawServices); if (!empty($rawServices)) { foreach ($rawServices as $io => $each) { $availServices[__($each)] = __($each); } } } $inputs = la_DatePickerPreset('customdate', date("Y-m-d")); $inputs .= la_tag('br'); $inputs .= la_TextInput('customrealname', __('Real Name'), @$this->userData[$this->userLogin]['REALNAME'], true, '20'); $inputs .= la_TextInput('customphone', __('Phone'), @$this->userData[$this->userLogin]['PHONE'], true, '10'); $inputs .= la_Selector('customservice', $availServices, __('Service'), '', 'true'); $inputs .= la_TextInput('customnotes', __('Notes'), '', true, '20'); $inputs .= la_TextInput('customsum', __('Sum'), @$this->userData[$this->userLogin]['TARIFFPRICE'], true, '10'); $inputs .= la_HiddenInput('customfields', 'true'); $inputs .= la_Submit(__('Create')); $result = la_Form('', 'POST', $inputs, 'glamour'); return $result; }
/** * * @return type form for changin mobile */ function zbs_ShowChangeMobileForm() { global $us_config; $inputs = la_tag('center'); $inputs .= la_HiddenInput('changemobile', 'true'); $inputs .= @$us_config['REMINDER_PREFIX'] . ' '; $inputs .= la_TextInput('mobile'); $inputs .= la_delimiter(); $inputs .= la_Submit(__('Change mobile')); $inputs .= la_tag('center', true); $form = la_Form("", 'POST', $inputs, ''); return $form; }
/** * returns phone number input * * @return string */ protected function emailInput() { $result = la_TextInput('email', __('Email'), '', false, '25'); return $result; }