linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage workshop
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Droits utilisateur ////////////
  12. if (!hasRight('workshop')) ReloadIndex('admin');
  13. ////////////
  14.  
  15. include_once($dir."/".SQL.".inc.php");
  16. include_once('../class/class.workshop.php');
  17. include_once('../class/class.workshop_report.php');
  18. include_once('../class/class.calendar.php');
  19. include_once('../class/class.workshop_com.php');
  20.  
  21.  
  22. function afflinkbar($todo$id$lang){
  23.  
  24.   $link_details="<a href=\"index.php?rub=workshop&amp;todo=det&amp;id=".$id."\" title=\""._t('workshop','det')."\">"._t('workshop','det')."</a>";
  25.   $link_cal="<a href=\"index.php?rub=workshop&amp;todo=list_cal&amp;id=".$id."\" title=\""._t('workshop','list_cal')."\">"._t('workshop','list_cal')."</a>";
  26.   $link_com="<a href=\"index.php?rub=workshop&amp;todo=list_com&amp;id=".$id."\" title=\""._t('workshop','list_com')."\">"._t('workshop','list_com')."</a>";
  27.   $link_doc='<a id="browse_files" href="../library/access.php?langCode='.U_L.'&amp;expandedFolder=workgroups/'.$id.'/" title="'_t('filemanager','browse').'">'._t('workshop','list_doc').'</a>';
  28.   $liste=$link_details." | ".$link_cal." | ".$link_com." | ".$link_doc;
  29.   echo "<div class=\"mod_link\">";
  30.   echo $liste;
  31.   echo "</div><br class=\"brendstep\" />";
  32.  
  33. }
  34.  
  35. $todopage=$dir."/";
  36. switch ($todo)
  37. {
  38.   case 'add':
  39.     $todopage.="add.php";
  40.     break;
  41.   case 'mod':
  42.     $todopage.="mod.php";
  43.     break;
  44.   case 'mod_p':
  45.     $todopage.="modpass.php";
  46.     break;
  47.   case 'sup':
  48.     $todopage.="sup.php";
  49.     break;
  50.   case 'list':
  51.     $todopage.="list.php";
  52.     break;
  53.   case 'det':
  54.     $todopage.="det.php";
  55.     break;
  56.   case 'sup_u':
  57.     $todopage.="sup_u.php";
  58.     break;
  59.   case 'add_u':
  60.     $todopage.="add_u.php";
  61.     break;
  62.   case 'add_cal':
  63.     $todopage.="add_cal.php";
  64.     break;
  65.   case 'sup_cal':
  66.     $todopage.="sup_cal.php";
  67.     break;
  68.   case 'mod_cal':
  69.     $todopage.="mod_cal.php";
  70.     break;
  71.   case 'list_cal':
  72.     $todopage.="list_cal.php";
  73.     break;
  74.   case 'list_com':
  75.     $todopage.="list_com.php";
  76.     break;
  77.   case 'det_com':
  78.     $todopage.="det_com.php";
  79.     break;
  80.   case 'sup_com':
  81.     $todopage.="sup_com.php";
  82.     break;
  83.   case 'lock_com':
  84.     $todopage.="lock_com.php";
  85.     break;
  86.   case 'mod_com':
  87.     $todopage.="mod_com.php";
  88.     break;
  89.   case 'add_com':
  90.     $todopage.="add_com.php";
  91.     break;
  92.   default:
  93.     $todopage.="list.php";
  94. }
  95. include_once($todopage);
  96. ?>
  97. <script type="text/javascript">
  98.     $(document).ready(function(){
  99.  
  100.         $("#browse_files").click(function() {
  101.              OpenServerBrowser($('#browse_files').attr('href'),screen.width * 0.7, screen.height * 0.7 );
  102.              return false;
  103.             });
  104.  
  105.     });
  106.  </script>

Documentation generated on Thu, 03 May 2012 15:05:10 +0200 by phpDocumentor 1.4.1