コード例 #1
0
 function medit()
 {
     global $Templates;
     __autoload('Form');
     return new Formsection(__('Edit section'), new Hidden('oldname', $_REQUEST['editSection']), new Input(__('Section name'), 'newname', $this->that->alias), Short::selectTemplate($_REQUEST['template'] ? $_REQUEST['template'] : @$this->that->template));
 }
コード例 #2
0
 function editTab()
 {
     return array(new Input(__('Title'), 'title', $this->that->Name), new Input(__('Aliases'), 'alias', implode(',', $this->that->aliases)), new Checkbox(__('Comments enabled'), 'commentsEnabled', isset($_POST['commentsEnabled']) ? true : @$this->that->settings['comments']), Short::selectTemplate($this->that->template));
 }
コード例 #3
0
 /**
  * Display the toolbar for section actions
  * @return string
  */
 private function sectionForm()
 {
     global $Templates;
     return Form::quick(false, __('Create'), new Formsection(__('New menusection'), new Hidden('action', 'newSection'), new Input(__('Section name'), 'newName'), Short::selectTemplate()));
 }
コード例 #4
0
 function editTab()
 {
     global $Templates;
     $_POST->setType('commentsEnabled', 'bool');
     return array(new Formsection('Content', new Input(__('Title'), 'title', $this->that->Name), new HTMLField(false, 'content', $this->that->getContent('main'))), new Formsection('Other', new Input(__('Aliases'), 'alias', implode(',', $this->that->aliases)), new Checkbox(__('Comments enabled'), 'commentsEnabled', isset($_POST['commentsEnabled']) ? true : @$this->that->settings['comments']), Short::selectTemplate($this->that->template)));
 }