Пример #1
0
 /**
  * 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);
 }
Пример #2
0
         $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&amp;op=delterm&amp;idTerm=' . $_GET['idTerm'] . '&amp;back_url=' . $back_coded . '&amp;confirm=1', 'index.php?modname=glossary&amp;op=modglossarygui&amp;idGlossary=' . $idGlossary . '&amp;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":