/** * function create( $back_url ) * @param string $back_url contains the back url * @return nothing * attach the id of the created object at the end of back_url with the name, in attach the result in create_result * * static **/ function create($back_url) { $this->back_url = $back_url; unset($_SESSION['last_error']); require_once $GLOBALS['where_lms'] . '/modules/faq/faq.php'; addfaqcat($this); }
$GLOBALS['page']->add('<div class="std_block">' . getDeleteUi($lang->def('_AREYOUSURE'), '<span>' . $lang->def('_QUESTION') . ' : </span>' . $question . '<br />' . '<span>' . $lang->def('_ANSWER') . ' : </span>' . $answer, true, 'index.php?modname=faq&op=delfaq&idFaq=' . $_GET['idFaq'] . '&back_url=' . $back_coded . '&confirm=1', 'index.php?modname=faq&op=modfaqgui&idCategory=' . $idCategory . '&back_url=' . $back_coded . '">') . '</div>' . '</div>', 'content'); } } // XXX: switch if (isset($GLOBALS['op'])) { switch ($GLOBALS['op']) { case "modfaqgui": $idCategory = importVar('idCategory', true, 0); $back_url = importVar('back_url'); $object_faq = createLO('faq', $idCategory); $object_faq->edit($idCategory, urldecode($back_url)); break; //add category //add category case "addfaqcat": addfaqcat(); break; case "insfaqcat": insfaqcat(); break; //mod category //mod category case "modfaqcat": modfaqcat(); break; case "upfaqcat": upfaqcat(); break; //mod //mod case "movedown":