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

Source for file list_cal.php

Documentation is available at list_cal.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 Inclusion de pages ////////////
  12. if (!function_exists('AuthenthificationProcess')){
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. if (isset($_POST['id'])) $id $_POST['id'];
  19. if (isset($_GET['id'])) $id $_GET['id'];
  20.  
  21. $req_det SQL_getoneCompleteWorkshop($id);
  22. $result $sql_object -> DBSelect($req_det);
  23. if (count($result1exit();
  24.  
  25. $link_det $rub_link "&amp;todo=det&amp;id=";
  26. $link_sup $rub_link "&amp;todo=sup&amp;id=";
  27. $link_mod $rub_link "&amp;todo=mod&amp;id=";
  28. $link_det_u "index.php?rub=user&amp;todo=det&amp;id=";
  29. $link_sup_u $rub_link "&amp;todo=sup_u&amp;id=";
  30. $link_add_cal $rub_link "&amp;todo=add_cal&amp;id=";
  31. $link_mod_cal $rub_link "&amp;todo=mod_cal&amp;id=";
  32. $link_sup_cal $rub_link "&amp;todo=sup_cal&amp;id=";
  33. $link_list_cal $rub_link "&amp;todo=list_cal&amp;id=";
  34.  
  35. $workshop_denomination formatText($result[0]['workshop_denomination']'2HTML');
  36. $workshop_resume formatText($result[0]['workshop_resume']'2HTML');
  37.  
  38. if (empty($result[0]['workshop_comment'])) $workshop_comment _t('divers','none');
  39. else $workshop_comment formatText($result[0]['workshop_comment']'2HTML');
  40.  
  41. $theme_denomination formatText($result[0]['theme_name']'2HTML');
  42. $level_denomination formatText($result[0]['level_name']'2HTML');
  43. $workshop_statut display_statut($result[0]['workshop_statut']);
  44. $display_date_crea $result[0]['workshop_date_crea_display'];
  45. $display_last_modify $result[0]['workshop_last_modify_display'];
  46.  
  47.  
  48. $req_list_cal SQL_getoneListCalWorkshop($id);
  49. $result_cal $sql_object -> DBSelect($req_list_cal);
  50.  
  51. $reca_task '';
  52. $datenowstrtotime("now");
  53. $inter=1*24*3600;
  54. $reca_task "";
  55. $out_first=false;
  56. if ($result_cal<>0{
  57.   for($i 0$i count($result_cal)$i++{
  58.  
  59.     $datetask=$result_cal[$i]['workcal_task_date_display'];
  60.     $datetask=explode("-"$datetask);
  61.     $jour $datetask[0];
  62.     $mois $datetask[1];
  63.     $annee $datetask[2];
  64.     $datetask2 mktime (000$mois$jour$annee);
  65.  
  66.     if($result_cal[$i]['workcal_workshop_id'== 999999999{
  67.       $common_task '<span class="task_common">' _t('workshop''task_common''</span>';
  68.     else {
  69.       $common_task '';
  70.     }
  71.  
  72.     if (($datetask2+$inter$datenow){
  73.       $reca_task .= "\n<div class=\"task\">\n";
  74.       $reca_task .="<div class=\"task_user_profile\">\n";
  75.       $reca_task .='<img src="'.THEME_ADMIN_PATH.'/images/task_calendar.png" alt="'formatText($result_cal[$i]['workcal_task_date_display']'2HTML').'" class="user_profile"/>';
  76.       $reca_task .= "\n<span class=\"auth_task\">" $result_cal[$i]['workcal_task_date_display'"</span>\n";
  77.       if (IsSuperAdmin())
  78.       $reca_task .= "<a href=\"" $link_det_u.$result_cal[$i]['workcal_posted_by']."\" title=\"" _t('workshop','com_author'"\" class=\"task_date\">"formatText($result_cal[$i]['user_login']'2HTML'"</a>\n";
  79.       else $reca_task .= "<span class=\"task_date\">"formatText($result_cal[$i]['user_login']'2HTML'"</span>\n";
  80.  
  81.       $reca_task .="</div>\n";
  82.       $reca_task .="<div class=\"task_content\">\n";
  83.       if (isWorkgroupOrganiser (GetSessionElement('id')$sql_object$id)==true || IsSuperAdmin()){
  84.         $reca_task .= "<a href=\"" $link_sup_cal $id "&amp;task_id=".$result_cal[$i]['workcal_id']."\" title=\"" _t('workshop','sup_cal'"\" class=\"ico_sup2\"></a>";
  85.         $reca_task .= "<a href=\"" $link_mod_cal $id "&amp;task_id=".$result_cal[$i]['workcal_id']."\" title=\"" _t('workshop','mod_cal'"\" class=\"ico_mod2\"></a>";
  86.       }
  87.       $reca_task .= $common_task;
  88.       $reca_task .= "<h3 class=\"task_title\">" formatText($result_cal[$i]['workcal_task']'2HTML'"</h3>\n";
  89.       $reca_task .= linkin_content(formatText($result_cal[$i]['workcal_task_details']'2HTML'));
  90.       $reca_task .= "</div></div>\n";
  91.  
  92.     }
  93.     else {
  94.       if(!$out_first$reca_task .= "<hr class=\"task_separator\" />\n";
  95.       $reca_task .= "\n<div class=\"task_out\">\n";
  96.       $reca_task .="<div class=\"task_user_profile\">\n";
  97.       $reca_task .='<img src="'.THEME_ADMIN_PATH.'/images/task_calendar_out.png" alt="'formatText($result_cal[$i]['workcal_task_date_display']'2HTML').'" class="user_profile"/>';
  98.       $reca_task .= "\n<span class=\"auth_task\">" $result_cal[$i]['workcal_task_date_display'"</span>\n";
  99.       if (IsSuperAdmin())
  100.       $reca_task .= "<a href=\"" $link_det_u.$result_cal[$i]['workcal_posted_by']."\" title=\"" _t('workshop','com_author'"\" class=\"task_date\">"formatText($result_cal[$i]['user_login']'2HTML'"</a>\n";
  101.       else $reca_task .= "<span class=\"task_date\">"formatText($result_cal[$i]['user_login']'2HTML'"</span>\n";
  102.  
  103.       $reca_task .="</div>\n";
  104.       $reca_task .="<div class=\"task_content\">\n";
  105.       if (isWorkgroupOrganiser (GetSessionElement('id')$sql_object$id)==true || IsSuperAdmin()){
  106.         $reca_task .= "<a href=\"" $link_sup_cal $id "&amp;task_id=".$result_cal[$i]['workcal_id']."\" title=\"" _t('workshop','sup_cal'"\" class=\"ico_sup2\"></a>";
  107.         $reca_task .= "<a href=\"" $link_mod_cal $id "&amp;task_id=".$result_cal[$i]['workcal_id']."\" title=\"" _t('workshop','mod_cal'"\" class=\"ico_mod2\"></a>";
  108.       }
  109.       $reca_task .= $common_task;
  110.       $reca_task .= "<h3 class=\"task_title\">" formatText($result_cal[$i]['workcal_task']'2HTML'"</h3>\n";
  111.       $reca_task .= linkin_content(formatText($result_cal[$i]['workcal_task_details']'2HTML'));
  112.       $reca_task .= "</div></div>\n";
  113.       $out_first=true;
  114.     }
  115.   }
  116. }
  117. else {
  118.   $reca_task="<div class=\"info\">"._t('workshop','no_cal')."</div>";
  119. }
  120. ?>
  121. <div id="chemin">
  122. <ul>
  123.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a></li>
  124.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  125.         class="chemin_rub"><?php echo _t('menu','workshop');    ?></a></li>
  126.     <li><span><?php echo formatnavTitle(_t('workshop','list_cal'" : " $workshop_denomination)?></span></li>
  127. </ul>
  128. </div>
  129. <!--end barre haute -->
  130. <?php
  131. include_once(THEME_ADMIN_PATH."quickicons.php");
  132. ?>
  133. <div class="contentcontainer"><?php
  134. include_once($dir "/menurub.php");
  135. ?>
  136. <div id="content"><?php afflinkbar($todo,$id$lang)?> <?php echo "<h2>" _t('workshop','list_cal'" : " $workshop_denomination "</h2>\n";
  137.  
  138. if (isWorkgroupOrganiser (GetSessionElement('id')$sql_object$id)==true || IsSuperAdmin())
  139. echo "<a href=\"".$link_add_cal.$id."\" title=\""._t('workshop','add_cal')."\" class=\"ico_add2\"></a><br class=\"brendstep\" />";?>
  140. <?php echo $reca_task?> <br class="brendstep" />
  141. </div>
  142. <?php include_once($dir "/help.php");?></div>

Documentation generated on Thu, 03 May 2012 15:06:04 +0200 by phpDocumentor 1.4.1