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

Source for file det.php

Documentation is available at det.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage project
  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. //////////// Check Droits utilisateur ////////////
  19. if (!IsSuperAdmin()) ReloadIndex('admin');
  20. ////////////
  21.  
  22.  
  23. if (isset($_GET['id'])) $id $_GET['id'];
  24. if (isset($_POST['id'])) $id $_POST['id'];
  25.  
  26. $req_det SQL_getoneCompleteProject($id);
  27. $result $sql_object->DBSelect($req_det);
  28. if ($result == || count($result!= 1exit;
  29.  
  30. // Getting Indicators
  31. $query SQL_getProjectSdi($id);
  32. $data $sql_object->DBSelect($query);
  33.  
  34. if($data != || count($data)!=1{
  35.   $sdi_list='<ul style="padding:0">';
  36.   foreach ($data as &$value{
  37.     $sdi_list.= '<li><a href="index.php?rub=sdi&amp;todo=det&amp;id='.$value['sdii_id'].'">'.formatText($value['sdii_name']'2HTML').'</a></li>'.END_LINE;
  38.   }
  39.   $sdi_list.='</ul>';
  40. else $sdi_list=_t('divers','none');
  41.  
  42.  
  43. $project_object new project;
  44.  
  45. $display_name formatText($result[0]['project_name']'2HTML');
  46. $display_priority formatText($result[0]['project_priority']'2HTML');
  47. if(!is_numeric($result[0]['project_parent_id']|| $result[0]['project_parent_id']==0{
  48.   $display_parent _t('divers','none');
  49. else {
  50.   $display_parent '<a href="'.$rub_link .'&amp;todo=det&amp;id='.$result[0]['project_parent_id'].'" title="'._t('project','det').' '.formatText($result[0]['parent_name']'2ALT').'">'.formatText($result[0]['parent_name']'2HTML').'</a>';
  51. }
  52. $display_description linkin_content(formatText(empty_none($result[0]['project_description'])'2HTML'));
  53. $display_body linkin_content(formatText($result[0]['project_body']'2HTML'));
  54.  
  55. $display_theme formatText($result[0]['theme_name']'2HTML');
  56. $display_workshop formatText($result[0]['workshop_denomination']'2HTML');
  57. $display_scale formatText($result[0]['scale_denomination']'2HTML');
  58. $display_user formatText($result[0]['user_login']'2HTML');
  59. $display_begin_date empty_nc($result[0]['project_begin_date_display']);
  60. $display_estimated_date empty_nc($result[0]['project_estimated_date_display']);
  61. $display_end_date empty_nc($result[0]['project_end_date_display']);
  62. $display_progression $result[0]['project_completed'];
  63. $display_date_crea $result[0]['project_date_crea_display'];
  64. $display_last_modify $result[0]['project_last_modify_display'];
  65. $project_posted_by $result[0]['project_posted_by'];
  66. $project_scale_id $result[0]['project_scale_id'];
  67. $project_theme_id $result[0]['project_theme_id'];
  68. $project_workshop_id $result[0]['project_workshop_id'];
  69.  
  70.  
  71. $display_statut display_statut($result[0]['project_statut']);
  72. if ($result[0]['project_published_date_display'== '01-01-0001'$display_published_date _t('statut','draft');
  73. else $display_published_date $result[0]['project_published_date_display'];
  74.  
  75. $link_sup $rub_link "&amp;todo=sup&amp;id=";
  76. $link_mod $rub_link "&amp;todo=mod&amp;id=";
  77.  
  78. ?>
  79. <div id="chemin">
  80. <ul>
  81.     <li><a href="index.php" class="chemin_home"> <?php echo _t('way','home')?>
  82.     </a></li>
  83.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  84.         class="chemin_rub"> <?php echo _t('menu','project')?> </a></li>
  85.     <li><span><?php echo formatNavTitle(_t('project','det'" : " $display_name)?></span>
  86.     </li>
  87. </ul>
  88. </div>
  89. <!--end barre haute -->
  90. <?php
  91. include_once(THEME_ADMIN_PATH."quickicons.php");
  92.  
  93. ?>
  94. <div class="contentcontainer"><?php
  95. include_once($dir "/menurub.php");
  96.  
  97. ?>
  98. <div id="content"><?php
  99. echo "<h2>";
  100. echo formatTitleh2($display_name);
  101. echo "</h2>\n";
  102. echo "\t<a href=\"" $link_sup $id "\" class=\"ico_sup2\" title=\"" _t('project','sup'"\"></a>\n";
  103. echo "\t<a href=\"" $link_mod $id "\" class=\"ico_mod2\" title=\"" _t('project','mod'"\"></a>\n";
  104.  
  105. echo "<dl class=\"dl3\">\n";
  106. echo "<dt>" _t('project','name'"</dt>\n";
  107. echo "<dd>" $display_name "</dd>\n";
  108. echo "<dt>" _t('project','parent'"</dt>\n";
  109. echo "<dd>" $display_parent "</dd>\n";
  110. echo "<dt>" _t('project','description'"</dt>\n";
  111. echo "<dd>" $display_description "</dd>\n";
  112. echo "<dt>" _t('project','body'" :</dt>\n";
  113. echo "<dd>" $display_body "</dd>\n";
  114. echo "<dt>" _t('project','begin_date'" :</dt>\n";
  115. echo "<dd>" $display_begin_date "</dd>\n";
  116. echo "<dt>" _t('project','estimated_date'" :</dt>\n";
  117. echo "<dd>" $display_estimated_date "</dd>\n";
  118. echo "<dt>" _t('project','end_date'" :</dt>\n";
  119. echo "<dd>" $display_end_date "</dd>\n";
  120. echo "<dt>"._t('project','progression')." :</dt>\n";
  121. echo "<dd>" getProgressbar($display_progression100'%'"</dd>\n";
  122. echo "<dt>" _t('project','priority'"</dt>\n";
  123. echo "<dd>" $display_priority "</dd>\n";
  124. echo "<dt>" _t('project','theme'"</dt>\n";
  125. if($project_theme_id != 0{
  126.   echo '<dd><a href="?rub=theme&amp;todo=det&amp;id='.$project_theme_id.'">' $display_theme '</a></dd>'.END_LINE;
  127. else {
  128.   echo "<dd>" empty_none($display_theme"</dd>\n";
  129. }
  130. echo "<dt>" _t('project','workshop'"</dt>\n";
  131. if($project_workshop_id != 0{
  132.   echo '<dd><a href="?rub=workshop&amp;todo=det&amp;id='.$project_workshop_id.'">' $display_workshop '</a></dd>'.END_LINE;
  133. else {
  134.   echo "<dd>" empty_none($display_workshop"</dd>\n";
  135. }
  136. echo "<dt>" _t('project','scale'" :</dt>\n";
  137. echo '<dd><a href="?rub=scale&amp;todo=det&amp;id='.$project_scale_id.'">' $display_scale '</a></dd>'.END_LINE;
  138. echo "<dt>"._t('project','sdi')." :</dt>\n";
  139. echo "<dd>".$sdi_list."</dd>\n";
  140. echo "<dt>" _t('project','author'" :</dt>\n";
  141. echo '<dd><a href="?rub=user&amp;todo=det&amp;id='.$project_posted_by.'">' $display_user '</a></dd>'.END_LINE;
  142. echo "<dt>" _t('statut','published_on'"</dt>\n";
  143. echo "<dd>" $display_published_date "</dd>\n";
  144. echo "<dt>" _t('divers','date_crea'"</dt>\n";
  145. echo "<dd>" $display_date_crea "</dd>\n";
  146. echo "<dt>" _t('divers','last_modify'"</dt>\n";
  147. echo "<dd>" $display_last_modify "</dd>\n";
  148. echo "<dt>" _t('divers','statut'"</dt>\n";
  149. echo "<dd>" $display_statut "</dd>\n";
  150. echo "</dl>\n";
  151.  
  152. ?></div>
  153. <?php include_once($dir "/help.php");
  154. ?></div>

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