示例#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/link/link.php';
     addlinkcat($this);
 }
示例#2
0
         $GLOBALS['page']->add('<div class="std_block">' . getDeleteUi($lang->def('_AREYOUSURE'), '<span>' . $lang->def('_TITLE') . ' : </span>' . $title . '<br />' . '<span>' . $lang->def('_URL') . ' : </span>' . $link_a . '<br />' . '<span>' . $lang->def('_DESCRIPTION') . ' : </span>' . $description, true, 'index.php?modname=link&amp;op=dellink&amp;idLink=' . $_GET['idLink'] . '&amp;back_url=' . $back_coded . '&amp;confirm=1', 'index.php?modname=link&amp;op=modlinkgui&amp;idCategory=' . $idCategory . '&amp;back_url=' . $back_coded . '') . '</div>' . '</div>', 'content');
     }
 }
 // XXX: switch
 if (isset($GLOBALS['op'])) {
     switch ($GLOBALS['op']) {
         case "modlinkgui":
             $idCategory = importVar('idCategory', true, 0);
             $back_url = importVar('back_url');
             $object_link = createLO('link', $idCategory);
             $object_link->edit($idCategory, urldecode($back_url));
             break;
             //add category
         //add category
         case "addlinkcat":
             addlinkcat();
             break;
         case "inslinkcat":
             inslinkcat();
             break;
             //mod category
         //mod category
         case "modlinkcat":
             modlinkcat();
             break;
         case "uplinkcat":
             uplinkcat();
             break;
             //mod
         //mod
         case "movedown":