public function outputInForm() { $input = new CInput(); $input->name = $this->name; $input->value = $this->value; $input->rows = isset($this->config['rows']) ? $this->config['rows'] : 1; $input->style = 'width:500px'; // return $input->generate(); }
public function main() { require_once CONTROL_PATH . 'input.php'; require_once CONTROL_PATH . 'htmlarea.php'; // $oSubject = new CInput(); $oRecipient = new CInput(); $oContent = new CHtmlarea(); $oSubject->name = 'subject'; $oRecipient->name = 'to'; $oContent->name = 'content'; // width:99% $oSubject->style = 'width:300px;'; $oRecipient->style = 'width:300px;'; // Собираем данные для отображения $szTitle = 'Отправка письма'; $aBegin = array('Почта' => '#', $szTitle => '#'); $aButton = array('Перейти к настройке smtp' => 'config.php', 'История отсылки почты' => 'logs.php'); // Отображаем $design = CMSDesign::getInstance(); $design->begin($aBegin, $szTitle); $design->documentBegin(); $design->header($szTitle); $design->buttons($aButton); $design->br(); $design->formBegin('index.php'); $design->submit('submit', _msg('Послать')); $design->tableBegin(); $design->row2cell('Получатель (адрес email)', $oRecipient->generate()); $design->row2cell('Тема письма', $oSubject->generate()); $design->row2cell('Сообщение', $oContent->generate()); $design->TableEnd(); $design->submit('submit', _msg('Послать')); $design->formEnd(); $design->end(); $this->output(); }
protected static function outputUrlFormFields() { $design = CMSDesign::getInstance(); $control = new CInput(); $control->name = 'sitemap_url_key'; $control->value = self::$sitemap['url_key']; $control->style = 'width:99%'; $design->row2cell('Виртуальный путь', $control->generate()); }