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

Source for file rap.php

Documentation is available at rap.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage dashboard
  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. $result $sql_object->DBSelect($req_list_theme);
  17. $sdi_object new sdi;
  18. $req_sdi SQL_getListSdi($filter "R"$valueparam 0);
  19. $result_sdi $sql_object->DBSelect($req_sdi);
  20.  
  21. /**
  22.  * DEBUG_informations
  23.  * to access debug informations
  24.  * uncomment code and change the value
  25.  * of form action to post data
  26.  * on the same page
  27.  */
  28. /**
  29. if (isset($_POST['valider'])) {
  30.     if (isset($_POST['graphic'])) $graphic = 1;
  31.     else $graphic = 'N';
  32.  
  33.     if (isset($_POST['table_value'])) $table_value = $_POST['table_value'];
  34.     else $table_value = 'non';
  35.  
  36.     if (isset($_POST['notpublished'])) $notpublished = $_POST['notpublished'];
  37.     else $notpublished = 'N';
  38.  
  39.     if (isset($_POST['provider'])) $provider = $_POST['provider'];
  40.     else $provider = 'N';
  41.  
  42.     if (isset($_POST['reglementation'])) $reglementation = $_POST['reglementation'];
  43.     else $reglementation = 'N';
  44.  
  45.     if (isset($_POST['evaluation'])) $evaluation = $_POST['evaluation'];
  46.     else $evaluation = 'N';
  47.  
  48.     if ($_POST['scale']=='det')
  49.     {    
  50.         print_r($_POST['eachscale']);
  51.     }
  52.     else echo "scale ALL<br>\n"; 
  53.  
  54.     if ($_POST['sdi']=='det')
  55.     {
  56.         while (list(, $value) = each ($_POST['eachsdi'])) {
  57.         echo "sdi Valeur: $value<br>\n";
  58.           }
  59.     }
  60.     else echo "sdi ALL<br>\n"; 
  61.  
  62.  
  63.     $report_title = $_POST['title_report'];
  64.     $report_author = $_POST['author'];
  65.     $report_mail = $_POST['mail_author'];
  66.     $report_service = $_POST['service_author'];
  67.     $report_adress = $_POST['adresse_author'];
  68.  
  69.     echo "<br />" . $graphic;
  70.     echo "<br />" . $table_value;
  71.     echo "<br />" . $notpublished;
  72.     echo "<br />" . $provider;
  73.     echo "<br />" . $reglementation;
  74.     echo "<br />" . $evaluation;
  75.     echo "<br />" . $report_title;
  76.     echo "<br />" . $report_author;
  77.     echo "<br />" . $report_mail;
  78.     echo "<br />" . $report_service;
  79.     echo "<br />" . $report_adress;
  80.     echo "<br />" . $_POST['scale'];
  81.     echo "<br />" . $_POST['sdi'];
  82. }
  83. */
  84.  
  85. if (!isset($_REQUEST['scale_id'])) {
  86.     $scale_id 1;
  87. else {
  88.     $scale_id $_REQUEST['scale_id'];
  89.  
  90. $listing ""
  91. // affichage liste échelle
  92. $resultscale $sql_object->DBSelect($req_list_scale);
  93. $listing .= "<div class=\"h2sdtheme\"><h2>" _t('dashboard','rap_scale_choice'"</h2></div>";
  94.  
  95. $listing .= "<div class=\"sdtheme\"><ul>\n";
  96. $listing .= "\t<li>\n";
  97. $listing .= "<input type=\"radio\" name=\"scale\" value=\"all\"  onclick=\"ShowReportScale('')\" checked=\"checked\" id=\"scale_all\" />
  98.             <span class=\"listrap\">" _t('dashboard','rap_scale_all'"</span>\n";
  99. $listing .= "<br /><input type=\"radio\" name=\"scale\" value=\"det\" onclick=\"ShowReportScale('display_scale')\" id=\"scale_det\"  />
  100.             <span class=\"listrap\">" _t('dashboard','rap_scale_det'" </span>\n";
  101. $listing .= "\t</li></ul>\n";
  102. $listing .= "</div>\n";
  103.  
  104. $listing .= "<div class=\"divrap\" id=\"display_scale\" style=\"display:none;\">\n";
  105. $listing .= "<ul>\n";
  106. for ($i 0;$i count($resultscale);$i++{
  107.     $listing .= "\t<li>\n";
  108.     $listing .= "<input type=\"checkbox\" name=\"eachscale[]\" id=\"eachscale" $resultscale[$i]['scale_id'"\" value=\"" $resultscale[$i]['scale_id'"\" />
  109.             <span class=\"listrap\">" formatText($resultscale[$i]['scale_denomination']'2HTML'"</span>\n";
  110.     $listing .= "\t</li>\n";
  111. $listing .= "</ul>\n";
  112. $listing .= "</div>\n"
  113. // affichage liste indicateur en fonction des thèmes
  114. $current_sdtheme '';
  115. $listing .= "<div class=\"h2sdtheme\"><h2>" _t('dashboard','rap_sdi_choice'"</h2></div>";
  116.  
  117. $listing .= "<div class=\"sdtheme\"><ul>\n";
  118. $listing .= "\t<li>\n";
  119. $listing .= "<input type=\"radio\" name=\"sdi\" value=\"all\"  onclick=\"ShowReportSdi('')\" checked=\"checked\" id=\"sdi_all\"/>
  120.             <span class=\"listrap\">" _t('dashboard','rap_sdi_all'"</span>\n";
  121. $listing .= "<br /><input type=\"radio\" name=\"sdi\" value=\"det\"  onclick=\"ShowReportSdi('display_sdi')\" id=\"sdi_det\" />
  122.             <span class=\"listrap\">" _t('dashboard','rap_sdi_det'"</span>\n";
  123. $listing .= "\t</li></ul>\n";
  124. $listing .= "</div>\n";
  125.  
  126. $listing .= "<div class=\"divrap\" id=\"display_sdi\" style=\"display:none;\">\n";
  127. $listing .= "<ul>\n";
  128. for ($i 0;$i count($result);$i++{
  129.     for ($j 0;$j count($result_sdi);$j++{
  130.         if ($result[$i]['theme_id'== $result_sdi[$j]['sdii_theme']{
  131.             $listing .= "\t<li>\n";
  132.             $listing .= "<input type=\"checkbox\" name=\"eachsdi[]\" id=\"eachsdi" $result_sdi[$j]['sdii_id'"\" value=\"" $result_sdi[$j]['sdii_id'"\" /><span class=\"listrap\">" formatText($result_sdi[$j]['sdii_name']'2HTML'"</span>\n";
  133.             if ($result_sdi[$j]['sdii_statut'== 'D'$listing .= "<span class=\"state\">" _t('statut','draft'"</span>\n";
  134.             $listing .= "\t</li>\n";
  135.         
  136.     
  137. $listing .= "</ul>\n";
  138. $listing .= "</div>\n"
  139. // affichage liste infos
  140. $listing .= "<div class=\"h2sdtheme\"><h2>" _t('dashboard','rap_comp_choice'"</h2></div>";
  141. $listing .= "<div class=\"sdtheme\">\n";
  142. $listing .= "\t<ul><li>\n";
  143.  
  144. $listing .= "<input type=\"checkbox\" name=\"graphic\" id=\"graphic\" checked=\"checked\" />
  145.             <span class=\"listrap\">" _t('dashboard','rap_graph_values'"</span>\n";
  146. $listing .= "\t</li>\n";
  147. $listing .= "\t<li>\n";
  148. $listing .= "<input type=\"checkbox\" name=\"table_value\" id=\"table_value\" checked=\"checked\" />
  149.             <span class=\"listrap\">" _t('dashboard','rap_table_values'"</span>\n";
  150. $listing .= "\t</li>\n";
  151. $listing .= "\t<li>\n";
  152. $listing .= "<input type=\"checkbox\" name=\"notpublished\" id=\"notpublished\" checked=\"checked\" />
  153.             <span class=\"listrap\">" _t('dashboard','rap_notpublished_values'"</span>\n";
  154. $listing .= "\t</li>\n";
  155. $listing .= "\t<li>\n";
  156. $listing .= "<input type=\"checkbox\" name=\"provider\" id=\"provider\" checked=\"checked\" />
  157.             <span class=\"listrap\">" _t('dashboard','rap_provider_info'"</span>\n";
  158. $listing .= "\t</li>\n";
  159. $listing .= "\t<li>\n";
  160. $listing .= "<input type=\"checkbox\" name=\"reglementation\" id=\"reglementation\" checked=\"checked\" />
  161.             <span class=\"listrap\">" _t('dashboard','rap_rules_info'"</span>\n";
  162. $listing .= "\t</li>\n";
  163. $listing .= "\t<li>\n";
  164. $listing .= "<input type=\"checkbox\" name=\"evaluation\" id=\"evaluation\" checked=\"checked\" />
  165.             <span class=\"listrap\">" _t('dashboard','rap_eval_info'"</span>\n";
  166. $listing .= "\t</li>\n";
  167. $listing .= "\t<li>\n";
  168. $listing .= "<input type=\"checkbox\" name=\"summary\" id=\"summary\" checked=\"checked\" />
  169.             <span class=\"listrap\">" _t('dashboard','rap_summary_info'"</span>\n";
  170. $listing .= "\t</li>\n";
  171. $listing .= "\t<li>\n";
  172. $listing .= "<input type=\"checkbox\" name=\"publi_info\" id=\"publi_info\" checked=\"checked\" />
  173.             <span class=\"listrap\">" _t('dashboard','rap_publi_info'"</span>\n";
  174. $listing .= "\t</li>\n";
  175. $listing .= "\t</ul>\n";
  176. $listing .= "</div>\n";
  177.  
  178. ?>
  179. <div id="chemin">
  180.     <ul>
  181.         <li>
  182.             <a href="index.php" class="chemin_home"><?php echo _t('way','home');
  183. ?></a>
  184.         </li>
  185.         <li>
  186.             <a href="<?php echo $rub_link;
  187. ?>" id="chemin_<? echo $rub?>" class="chemin_rub"><?php echo _t('menu','dashboard');
  188. ?></a>
  189.         </li>
  190.         <li>
  191.             <span><?php echo _t('dashboard','rap');
  192. ?></span>
  193.         </li>
  194.     </ul>
  195. </div>
  196.   <!--end barre haute -->
  197. <?php
  198. include_once(THEME_ADMIN_PATH."quickicons.php");
  199.  
  200. ?>
  201. <div class="contentcontainer">
  202. <?php include_once($dir "/menurub.php");
  203. ?>
  204. <div id="content">
  205. <h2><?php echo _t('dashboard','rap');
  206. ?></h2>            
  207. <form id="addrap" action="../report_sdi/sdi_report.php" method="post">
  208. <p>
  209. <label for="title_report"><?php echo _t('dashboard','rap_title');
  210. ?> : </label>
  211. <input name="title_report" type="text" class="textfield" id="title_report" maxlength="255" value="<?php // echo $form_task;?>
  212. " />
  213. </p>
  214. <p>
  215. <label for="author"><?php echo _t('dashboard','rap_author');
  216. ?> : </label>
  217. <input name="author" type="text" class="textfield" id="author" maxlength="255" value="<?php // echo $form_task;?>
  218. " />
  219. </p>
  220. <p>
  221. <label for="mail_author"><?php echo _t('dashboard','rap_mail_author');
  222. ?> : </label>
  223. <input name="mail_author" type="text" class="textfield" id="mail_author" maxlength="255" value="<?php // echo $form_task;?>
  224. " />
  225. </p>
  226. <p>
  227. <label for="service_author"><?php echo _t('dashboard','rap_service');
  228. ?> : </label>
  229. <input name="service_author" type="text" class="textfield" id="service_author" maxlength="255" value="<?php // echo $form_task;?>
  230. " />
  231. </p>
  232. <p>
  233. <label for="adress_author"><?php echo _t('dashboard','rap_adress');
  234. ?> : </label>
  235. <textarea id="adress_author" name="adress_author" class="largetextfield" <?php echo AREA_SETTINGS?>><?php // echo $form_task_details;?>
  236. </textarea>
  237. </p>
  238. <?php
  239. echo $listing;
  240.  
  241. ?>
  242. <div>
  243.     <input name="annuler" type="submit" value="<?php echo _t('btn','annul')?>" class="button" id="annuler" />
  244.     <input name="generer" type="submit" value="<?php echo _t('dashboard','rap_generate'?>" class="button" id="generer" />
  245.     <input name="sauver" type="submit" value="<?php echo _t('dashboard','rap_save'?>" class="button" id="sauver" />
  246. </div>
  247.     </form>
  248. </div>
  249. <?php include_once($dir "/help.php");
  250. ?>
  251. </div>

Documentation generated on Fri, 16 Oct 2009 09:39:03 +0200 by phpDocumentor 1.4.1