/** * 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/glossary/glossary.php'; addglossary($this); }
$GLOBALS['page']->add('<div class="std_block">' . getDeleteUi($lang->def('_AREYOUSURE'), '<span class="text_bold">' . $lang->def('_TERM') . ' : </span>' . $term . '<br />' . '' . $descr . '', true, 'index.php?modname=glossary&op=delterm&idTerm=' . $_GET['idTerm'] . '&back_url=' . $back_coded . '&confirm=1', 'index.php?modname=glossary&op=modglossarygui&idGlossary=' . $idGlossary . '&back_url=' . $back_coded) . '</div>' . '</div>', 'content'); } } // XXX: switch if (isset($GLOBALS['op'])) { switch ($GLOBALS['op']) { case "modglossarygui": $idGlossary = importVar('idGlossary', true, 0); $back_url = importVar('back_url'); $object_glos = createLO('glossary', $idGlossary); $object_glos->edit($idGlossary, urldecode($back_url)); break; //add a glossary //add a glossary case "addglossary": addglossary(); break; case "insglossary": insglossary(); break; // modify a glossary // modify a glossary case "modglossary": modglossary(); break; case "upglossary": upglossary(); break; // add a term // add a term case "addterm":