protected function edit_description_form() { $form_id = $this->getFormID("edit_desc"); $form = new FormMaker(); $form->setID($form_id); $form->addLabel("Zadaj popis"); $form->addTextArea("desc"); $form->setValue("desc", $this->galeryData->info->description); $form->registerForm(); $form->showForm(); }
protected function change_topic_form() { $form_id = $this->getFormID("change_topic"); $form = new FormMaker(); $form->setID($form_id); $form->addLabel("Zadajte rubriku"); $form->addSelect("topic"); $form->addOption("topic", "topic_0", "--Zadaj rubriku--", ""); $topic_data = new DBQuery(CDatabaza::getInstance()); $topic_data->setTable("Rubrika"); $topics = $topic_data->queryDB("select"); while ($topic = $topics->fetch_array()) { $form->addOption("topic", "topic_" . $topic['rubrika_id'], $topic['nazov_rubriky'], $topic['rubrika_id']); } $form->addInputField("hidden", "article_id"); $form->setValue("article_id", $this->article['id']); $form->registerForm(); $form->showForm(); }
protected function change_password_form() { $form_id = $this->getFormID("change_pswd"); $form = new FormMaker(); $form->setID($form_id); $form->addInputField("hidden", "user_id"); $form->setValue("user_id", "'" . $_SESSION['user'] . "'"); $form->addLabel("Zadaj staré heslo"); $form->addInputField("password", "old_psswd", "required"); $form->addLabel("Zadaj nové heslo"); $form->addInputField("password", "new_psswd", "required psswd"); $form->addLabel("Potvrď heslo"); $form->addInputField("password", "confirm_psswd", "required psswd equals{new_psswd}"); $form->registerForm(); $form->showForm(); }