コード例 #1
0
 private function generateForm()
 {
     $this->form = "";
     $this->form .= '<form class="UsersOnlineApplicationsForm" ' . 'name="UsersOnlineApplicationsForm" ' . 'action="' . $this->urlHelper->getThisPage() . '" ' . 'method="post" accept-charset="UTF-8" autocomplete="on">';
     $this->form .= '<table class="UsersOnlineApplicationsFormTable" >';
     $fio = InputHelper::textBox('fio', 'fio', 'fio', 200, true, null);
     $this->form .= InputHelper::createFormRow($fio, true, 'Представьтесь');
     $phone = InputHelper::textBox('phone', 'phone', 'phone', 200, true, null);
     $this->form .= InputHelper::createFormRow($phone, true, 'Контактный номер');
     $message = InputHelper::textarea('message', 'message', 'message', 50000, false, null);
     $this->form .= InputHelper::createFormRow($message, false, 'Дополнительная информация');
     $captcha = InputHelper::textBox("captcha", "captcha", "captcha", 20, true, null);
     $this->form .= InputHelper::createFormRow($captcha, true, getCaptcha(120, 25));
     $this->form .= '</table>';
     $this->form .= '<center>';
     $this->form .= '<input class="UsersOnlineApplicationsFormSubmit" type="submit" name="UsersOnlineApplicationsFormSubmit" value="Перезвоните мне">';
     $this->form .= '</center>';
     $this->form .= '</form>';
 }
 private function generateForm()
 {
     $form = "<div class='TransitionStatusApplicationFormBlock'>";
     $form .= '<form class="TransitionStatusApplicationForm" ' . 'name="TransitionStatusApplicationForm" ' . 'action="' . $this->urlHelper->chengeParams(array($this->applicationId, 'TransitionStatus', $this->endStatus, 'apply')) . '" ' . 'enctype="multipart/form-data" ' . 'method="post" ' . 'accept-charset="UTF-8">';
     $form .= "<div class='TransitionStatusApplicationMessage'>Поясните причину смены статуса</div>";
     $form .= InputHelper::textarea('TransitionStatusApplicationFormComments', 'TransitionStatusApplicationFormComments', 'TransitionStatusApplicationFormComments', 2000, TRUE, '');
     $form .= '<center>';
     $form .= '<input ' . 'class="TransitionStatusApplicationFormButton Yes" ' . 'type="submit" ' . 'name="TransitionStatusApplicationFormSubmit" ' . 'value="Изменить статус">';
     $form .= '<a href="' . $this->urlHelper->chengeParams(array($this->applicationId, 'Show')) . '"><input ' . 'class="TransitionStatusApplicationFormButton No" ' . 'type="button" ' . 'name="TransitionStatusApplicationFormButton" ' . 'value="отменить"></a>';
     $form .= '</center>';
     $form .= "</form>";
     $form .= "</div>";
     return $form;
 }