Ejemplo n.º 1
0
 protected function add_img_form()
 {
     $form_id = $this->getFormID("add_img");
     $form = new FormMaker();
     $form->setID($form_id);
     $form->addLabel("Zadaj popis");
     $form->addTextArea("desc");
     $form->addLabel("Zadaj URL obrázka");
     $form->addInputField("text", "img_url");
     $form->registerForm();
     $form->showForm();
     echo "<div id='browse_button'><button onclick=\"window.open('redakcia/utilities/browser/browser.php?article_id=" . $this->article['id'] . "&target=img_url','image_browser','width=1000,height=500,scrollbars=yes')\">Prehľadávaj...</button></div>";
 }
Ejemplo n.º 2
0
 protected function add_post_form()
 {
     $this->readPosts();
     $form_id = $this->getFormID("add_post");
     $form = new FormMaker();
     $form->setID($form_id);
     $form->addLabel("Zadaj kategoriu");
     $form->addSelect("cat_id");
     $form->addOption("cat_id", "cat_id_0", "--Vyber kategoriu--", "");
     foreach ($this->categories as $cat) {
         $form->addOption("cat_id", "cat_id_" . $cat['id'], $cat['name'], $cat['id']);
     }
     $form->addLabel("Zadaj názov príspevku");
     $form->addInputField("text", "name", "required nazov");
     $form->addLabel("Zadaj príspevok");
     $form->addTextArea("post");
     $form->registerForm();
     $form->showForm();
 }
Ejemplo n.º 3
0
 protected function edit_description_form()
 {
     $this->setData();
     $id = $this->getFormID("edit_desc");
     $form = new FormMaker();
     $form->setID($id);
     $form->addLabel("Zadaj popis");
     $form->addTextArea("desc");
     $form->setValue("desc", $this->quiz_data->info->description);
     $form->registerForm();
     $form->showForm();
 }