コード例 #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>';
 }