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

Source for file add.php

Documentation is available at add.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage sdi
  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. ?><div id="chemin">
  18.     <ul>
  19.         <li>
  20.             <a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a>
  21.         </li>
  22.         <li>
  23.             <a href="<?php echo $rub_link;
  24. ?>" id="chemin_<? echo $rub?>" class="chemin_rub"><?php echo _t('menu','sdi')?></a>
  25.         </li>
  26.         <li>
  27.             <span><?php echo formatnavTitle(_t('sdi','add')) ?></span>
  28.         </li>
  29.     </ul>
  30. </div>
  31. <!--end barre haute -->
  32. <?php
  33. include_once("../lib/input_helpers.php");
  34. $sdi_objectnew sdi;
  35.  
  36. if (isset($_POST['enregistrer'])) {
  37.     $integrity 1;
  38.     $integrity2 1;
  39.     $integrity3 1;
  40.     $integrity4 1;
  41.     $integrity5 1;
  42.     $data_table unserialize(urldecode($_POST['data_table']));
  43.     $j=0;
  44.     for ($i=0;$i<13;$i++){
  45.         $data_table_sdi[$j]=$data_table[$i];
  46.         $j++;
  47.     }
  48.     $data_table_sdi[14]=$data_table[32];
  49.     $j=0;
  50.     for ($i=13;$i<19;$i++){
  51.         $data_table_e[$j]=$data_table[$i];
  52.         $j++;
  53.     }
  54.     $j=0;
  55.     for ($i=19;$i<27;$i++){
  56.         $data_table_p[$j]=$data_table[$i];
  57.         $j++;
  58.     }
  59.     $j=0;
  60.     for ($i=27;$i<=30;$i++){
  61.         $data_table_r[$j]=$data_table[$i];
  62.         $j++;
  63.     }
  64.     $result=$sdi_object->AddSdi($data_table_sdi$sql_object);
  65.     $result_e=$sdi_object->ModifyParam($result$data_table_e"E"$sql_object);    
  66.     $result_p=$sdi_object->ModifyParam($result$data_table_p"P"$sql_object);
  67.     $result_r=$sdi_object->ModifyParam($result$data_table_r"R"$sql_object);
  68.     
  69.     $link_confirm="confirm.php?rub=".$rub."&todo=".$todo;
  70.     if(is_numeric($result)) header("Location: ".$link_confirm);
  71.     else  system_error();
  72.  
  73. $form_name '';
  74. $form_theme '';
  75. $form_statut '';
  76. $mask_statut_P="checked=\"checked\"";
  77. $mask_statut_D='';
  78. //$form_range = '';
  79. $form_description '';
  80. $form_comment '';
  81. $form_goal '';
  82. $form_consulting '';
  83. $form_unit '';
  84. $form_max_value '';
  85. $form_min_value '';
  86. $form_threshold_value '';
  87. $form_frequency '';
  88. $form_threshold_relative='';
  89.  
  90. $form_e_scale_compare '';
  91. $form_e_fiability '';
  92. $form_e_accessibility '';
  93. $form_e_lisibility '';
  94. $form_e_relevance '';
  95. $form_e_global_performance '';
  96.  
  97. $form_p_name '';
  98. $form_p_service '';
  99. $form_p_description '';
  100. $form_p_incharge '';
  101. $form_p_address '';
  102. $form_p_phone '';
  103. $form_p_fax '';
  104. $form_p_email '';
  105.  
  106. $form_r_title '';
  107. $form_r_body '';
  108. $form_r_referer_uri '';
  109. $form_r_mask_uri '';
  110.  
  111. if (isset($_POST['valider1'])) {
  112.  
  113.     $table[0$_POST['sdi_name'];
  114.     $table[1$_POST['description'];
  115.     $table[2$_POST['comment'];
  116.     $table[3$_POST['sdi_theme'];
  117.     //$table[4] = $_POST['range'];
  118.     $table[40;
  119.     $table[5$_POST['goal'];
  120.     $table[6$_POST['consulting'];
  121.     $table[7$_POST['unit'];
  122.     $table[8$_POST['max_value'];
  123.     $table[9$_POST['min_value'];
  124.     $table[10]$_POST['threshold_value'];
  125.     $table[11]$_POST['frequency'];
  126.     $table[12]$_POST['sdi_statut'];
  127.     if (isset($_POST['threshold_relative']))$table[32]="Y"else $table[32]="N";
  128.     $integrity $sdi_object -> CheckDataIntegrity_info($table);
  129.     
  130.     
  131.     $form_name formatText($_POST['sdi_name']'2FIELD');
  132.     $form_theme $_POST['sdi_theme'];
  133.     $form_statut$_POST['sdi_statut'];
  134.     //$form_range = $_POST['range'];
  135.     $form_description formatText($_POST['description']'2FIELD');
  136.     $form_comment formatText($_POST['comment']'2FIELD');
  137.     $form_goal formatText($_POST['goal']'2FIELD');
  138.     $form_consulting formatText($_POST['consulting']'2FIELD');
  139.     $form_unit formatText($_POST['unit']'2FIELD');
  140.     $form_max_value =$_POST['max_value'];
  141.     $form_min_value $_POST['min_value'];
  142.     $form_threshold_value $_POST['threshold_value'];
  143.     $form_frequency $_POST['frequency'];
  144.     if($form_statut=='D'$mask_statut_D="checked=\"checked\""else $mask_statut_D='';
  145.     if($form_statut=='P'$mask_statut_P="checked=\"checked\""else $mask_statut_P='';
  146.     
  147.     $table urlencode(serialize($table));
  148.  
  149. }
  150.     
  151. if (isset($_POST['enregistrer2'])) {
  152.  
  153.        //intégrité des étapes 2,3,4 OK
  154.     $integrity2 1;
  155.        $integrity3 1;
  156.     $integrity4 1;
  157.     
  158.     $table[0$_POST['sdi_name'];
  159.     $table[1$_POST['description'];
  160.     $table[2$_POST['comment'];
  161.     $table[3$_POST['sdi_theme'];
  162.     //$table[4] = $_POST['range'];
  163.     $table[40;
  164.     $table[5$_POST['goal'];
  165.     $table[6$_POST['consulting'];
  166.     $table[7$_POST['unit'];
  167.     $table[8$_POST['max_value'];
  168.     $table[9$_POST['min_value'];
  169.     $table[10]$_POST['threshold_value'];
  170.     $table[11]$_POST['frequency'];
  171.     $table[12]$_POST['sdi_statut'];
  172.     
  173.     if (isset($_POST['threshold_relative'])) $table[32]="Y"else $table[32]="N";
  174.     for ($z=13;$z<31;$z++){
  175.         $table[$z]="";
  176.     }
  177.     $integrity $sdi_object -> CheckDataIntegrity_info($table);
  178.     
  179.     $form_name formatText($_POST['sdi_name']'2FIELD');
  180.     $form_theme $_POST['sdi_theme'];
  181.     $form_statut$_POST['sdi_statut'];
  182.     //$form_range = $_POST['range'];
  183.     $form_description formatText($_POST['description']'2FIELD');
  184.     $form_comment formatText($_POST['comment']'2FIELD');
  185.     $form_goal formatText($_POST['goal']'2FIELD');
  186.     $form_consulting formatText($_POST['consulting']'2FIELD');
  187.     $form_unit formatText($_POST['unit']'2FIELD');
  188.     $form_max_value =$_POST['max_value'];
  189.     $form_min_value $_POST['min_value'];
  190.     $form_threshold_value $_POST['threshold_value'];
  191.     $form_frequency $_POST['frequency'];
  192.     if($form_statut=='D'$mask_statut_D="checked=\"checked\""else $mask_statut_D='';
  193.     if($form_statut=='P'$mask_statut_P="checked=\"checked\""else $mask_statut_P='';
  194.     
  195.     $table urlencode(serialize($table));
  196.  
  197. if (isset($_POST['valider2'])) {
  198.  
  199.     $integrity 1;
  200.     $table unserialize(urldecode($_POST['table']));
  201.     $table[13$_POST['e_scale_compare'];
  202.     $table[14$_POST['e_fiability'];
  203.     $table[15$_POST['e_accessibility'];
  204.     $table[16$_POST['e_lisibility'];
  205.     $table[17$_POST['e_relevance'];
  206.     $table[18$_POST['e_global_performance'];
  207.     $integrity2 $sdi_object -> CheckDataIntegrity_eval($table);
  208.     $form_e_scale_compare $_POST['e_scale_compare'];
  209.     $form_e_fiability $_POST['e_fiability'];
  210.     $form_e_accessibility $_POST['e_accessibility'];
  211.     $form_e_lisibility $_POST['e_lisibility'];
  212.     $form_e_relevance $_POST['e_relevance'];
  213.     $form_e_global_performance $_POST['e_global_performance'];
  214.  
  215.     $table urlencode(serialize($table));
  216.  
  217. if (isset($_POST['valider3'])) {
  218.     $integrity 1;
  219.     $integrity2 1;
  220.     $table unserialize(urldecode($_POST['table']));
  221.     $table[19$_POST['p_name'];
  222.     $table[20$_POST['p_service'];
  223.     $table[21$_POST['p_description'];
  224.     $table[22$_POST['p_incharge'];
  225.     $table[23$_POST['p_address'];
  226.     $table[24$_POST['p_phone'];
  227.     $table[25$_POST['p_fax'];
  228.     $table[26$_POST['p_email'];
  229.     $integrity3 $sdi_object -> CheckDataIntegrity_provider($table);
  230.  
  231.     $form_p_name formatText($_POST['p_name']'2FIELD');
  232.     $form_p_service formatText($_POST['p_service']'2FIELD');
  233.     $form_p_description formatText($_POST['p_description']'2FIELD');
  234.     $form_p_incharge formatText($_POST['p_incharge']'2FIELD');
  235.     $form_p_address formatText($_POST['p_address']'2FIELD');
  236.     $form_p_phone $_POST['p_phone'];
  237.     $form_p_fax $_POST['p_fax'];
  238.     $form_p_email $_POST['p_email'];
  239.  
  240.     $table urlencode(serialize($table));
  241.  
  242. if (isset($_POST['valider4'])) {
  243.     
  244.     $integrity 1;
  245.     $integrity2 1;
  246.     $integrity3 1;
  247.     $table unserialize(urldecode($_POST['table']));
  248.     $table[27$_POST['r_title'];
  249.     $table[28$_POST['r_body'];
  250.     $table[29$_POST['r_referer_uri'];
  251.     if ($_POST['r_mask_uri']=="")$table[30$table[29];
  252.     else $table[30]=$_POST['r_mask_uri'];
  253.     $integrity4 $sdi_object -> CheckDataIntegrity_reglementation($table);
  254.  
  255.     $form_r_title formatText($_POST['r_title']'2FIELD');
  256.     $form_r_body formatText($_POST['r_body']'2FIELD');
  257.     $form_r_referer_uri $_POST['r_referer_uri'];
  258.     if ($_POST['r_mask_uri']=="")$form_r_mask_uri $form_r_referer_uri;
  259.     else $form_r_mask_uri =$_POST['r_mask_uri'];
  260.  
  261.     $table urlencode(serialize($table));
  262.  
  263. include_once(THEME_ADMIN_PATH."quickicons.php");
  264.  
  265. $data $sql_object -> DBSelect($req_list_theme);
  266. $select_theme=ThemeSelectBox($data"sdi_theme"$form_theme);
  267.  
  268. ?>
  269.  
  270. <?php
  271. if (!isset($integrity|| is_string($integrity)) {
  272.  
  273.     ?>
  274. <div class="contentcontainer">
  275.         <?php
  276.     include_once($dir "/menurub.php");
  277.  
  278.     ?>
  279.         <div id="content">
  280.             <?php
  281.     if (isset($integrity&& is_string($integrity)) display_errors($integrity);
  282.  
  283.     ?>
  284.     <div class="stepcontent" >
  285.     <div class="step">
  286.     <img src="<?php echo THEME_ADMIN_PATH?>images/step1_act.gif" alt="step1" /><br />
  287.     <span class="stepact"><? echo _t('sdi','add_step1')?></span>
  288.     </div>
  289.     <div class="step">
  290.     <img src="<?php echo THEME_ADMIN_PATH?>images/step2_pas.gif" alt="step2" /><br />
  291.     <span class="steppas"><? echo _t('sdi','add_step2')?></span>
  292.     </div>
  293.     <div class="step">
  294.     <img src="<?php echo THEME_ADMIN_PATH?>images/step3_pas.gif" alt="step3" /><br />
  295.     <span class="steppas"><? echo _t('sdi','add_step3')?></span>
  296.     </div>
  297.     <div class="step">
  298.     <img src="<?php echo THEME_ADMIN_PATH?>images/step4_pas.gif" alt="step4" /><br />
  299.     <span class="steppas"><? echo _t('sdi','add_step4')?></span>
  300.     </div>
  301.     </div><br class="brendstep"/>
  302.             <h2><?php echo _t('sdi','add_title1'?></h2>
  303.             
  304.             <form id="addsdi" action="<?php echo $_SERVER['SCRIPT_NAME'];
  305.     ?>" method="post">
  306.                 <p>
  307.                 <label for="sdi_name" ><?php echo _t('sdi','name2'?> * :</label>
  308.                 <input name="sdi_name" type="text" class="textfield" id="sdi_name" maxlength="255" value="<?php echo $form_name;
  309.     ?>" />
  310.                 </p>
  311.                 <p>
  312.                 <label for="sdi_theme" ><?php echo _t('sdi','theme'?> * : </label>
  313.                 <?php echo $select_theme;
  314.     ?>
  315.                 </p>
  316.                 <p>
  317.                 <label for="statut_P"><? echo _t('divers','statut')?> * : </label>
  318.                 <input name="sdi_statut" type="radio" id="statut_P" value="P" <?php echo $mask_statut_P?> /><span class="radio"><?php echo _t('statut','public')?></span>
  319.                 <input name="sdi_statut" type="radio" id="statut_D" value="D" <?php echo $mask_statut_D?> /><span class="radio"><?php echo _t('statut','draft')?></span>
  320.                 <br />
  321.                 </p>
  322.                 <?/* ?><p>
  323.                 <label for="range" ><?php echo _t('sdi','range') ?> * :</label>
  324.                 <input name="range" type="text" size="47" id="range" maxlength="150" value="<?php echo $form_range;
  325.     ?>" />
  326.                 </p>
  327.                 <? */?>
  328.                 <p>
  329.                 <label for="description" ><?php echo _t('sdi','description'?> * :</label>
  330.                 <textarea id="description" name="description" class="largetextfield"><?php echo $form_description;
  331.     ?></textarea>
  332.                 </p>
  333.                 <p>
  334.                 <label for="comment" ><?php echo _t('sdi','comment'?>  :</label>
  335.                 <textarea id="comment" name="comment" <?php echo AREA_SETTINGS?> class="largetextfield" ><?php echo $form_comment;
  336.     ?></textarea>
  337.                 </p>
  338.                 <p>
  339.                 <label for="goal" ><?php echo _t('sdi','goal'?>  :</label>
  340.                 <textarea id="goal" name="goal" <?php echo AREA_SETTINGS?> class="largetextfield" ><?php echo $form_goal;
  341.     ?></textarea>
  342.                 </p>
  343.                 <p>
  344.                 <label for="consulting" ><?php echo _t('sdi','consulting'?>  :</label>
  345.                 <textarea id="consulting" name="consulting" <?php echo AREA_SETTINGS?> class="largetextfield" ><?php echo $form_consulting;
  346.     ?></textarea>
  347.                 </p>
  348.  
  349.                 
  350.                 <p>
  351.                 <? echo _t('sdi','info_mesure')?>
  352.                 </p>
  353.  
  354.                 <p>
  355.                 <label for="unit" ><?php echo _t('sdi','unit'?> * :</label>
  356.                 <input name="unit" type="text" class="textfield" id="unit" maxlength="100" value="<?php echo $form_unit;
  357.     ?>" />
  358.                 </p>
  359.                 <p>
  360.                 <label for="max_value" ><?php echo _t('sdi','max_value'?> * :</label>
  361.                 <input name="max_value" type="text" class="textfield" id="max_value" maxlength="6" value="<?php echo $form_max_value;
  362.     ?>" />
  363.                 </p>
  364.                 <p>
  365.                 <label for="min_value" ><?php echo _t('sdi','min_value'?> * :</label>
  366.                 <input name="min_value" type="text" class="textfield" id="min_value" maxlength="100" value="<?php echo $form_min_value;
  367.     ?>" />
  368.                 </p>
  369.                 <p>
  370.                 <label for="threshold_value" ><?php echo _t('sdi','threshold_value'?> * :</label>
  371.                 <input name="threshold_value" type="text" class="textfield" id="threshold_value" maxlength="100" value="<?php echo $form_threshold_value;
  372.     ?>" />
  373.                 </p>
  374.                 <p>
  375.                 <label for="frequency" ><?php echo _t('sdi','frequency'?> * :</label>
  376.                 <input name="frequency" type="text" class="textfield" id="frequency" maxlength="11" value="<?php echo $form_frequency;
  377.     ?>" />
  378.                 </p>
  379.                 <p>
  380.                 <label for="threshold_relative" ><?php echo _t('sdi','threshold_relative'?> * :</label>
  381.                 <input type="checkbox" name="threshold_relative" value="<?php echo $form_threshold_relative?>" id="threshold_relative" />
  382.                 </p>
  383.                 <div class="chekbox"><?php echo _t('sdi','threshold_relative_comment'?></div>
  384.                 
  385.                 <div>
  386.                 
  387.                 <input name="rub" type="hidden" value="<?php echo $rub?>" id="rub" />
  388.                 <input name="todo" type="hidden" value="<?php echo $todo?>" id="todo" /><br />
  389.                 <? echo cancel_button($rub_link."&amp;todo=list")?>
  390.                 <input name="enregistrer2" type="submit" value="<?php echo _t('sdi','btn_fin'?>" class="button" id="enregistrer2" />
  391.                 <input name="valider1" type="submit" value="<?php echo _t('sdi','btn_step1'?>" class="button" id="valider" />
  392.                 </div>
  393.             </form>
  394.         </div>
  395. <?php include_once($dir "/help.php");
  396.     ?>
  397. </div>
  398. <?php 
  399.     // Récapitulatif
  400. else {
  401.     if (!isset($integrity2|| is_string($integrity2)) {
  402.  
  403.         ?>
  404. <div class="contentcontainer">
  405.         <?php
  406.         include_once($dir "/menurub.php");
  407.  
  408.         ?>
  409.         <div id="content">
  410.             <?php
  411.         if (isset($integrity2&& is_string($integrity2)) display_errors($integrity2);
  412.  
  413.         ?>
  414.             <div class="stepcontent" >
  415.     <div class="step">
  416.     <img src="<?php echo THEME_ADMIN_PATH?>images/step1_pas.gif" alt="step1" /><br />
  417.     <span class="steppas"><? echo _t('sdi','add_step1')?></span>
  418.     </div>
  419.     <div class="step">
  420.     <img src="<?php echo THEME_ADMIN_PATH?>images/step2_act.gif" alt="step2" /><br />
  421.     <span class="stepact"><? echo _t('sdi','add_step2')?></span>
  422.     </div>
  423.     <div class="step">
  424.     <img src="<?php echo THEME_ADMIN_PATH?>images/step3_pas.gif" alt="step3" /><br />
  425.     <span class="steppas"><? echo _t('sdi','add_step3')?></span>
  426.     </div>
  427.     <div class="step">
  428.     <img src="<?php echo THEME_ADMIN_PATH?>images/step4_pas.gif" alt="step4" /><br />
  429.     <span class="steppas"><? echo _t('sdi','add_step4')?></span>
  430.     </div>
  431.     </div><br class="brendstep"/>
  432.     
  433.             <h2><?php echo _t('sdi','add_title2'?></h2>
  434.             
  435.             <form id="addsdi2" action="<?php echo $_SERVER['SCRIPT_NAME'];
  436.         ?>" method="post">
  437.                 <p>
  438.                 <label for="e_scale_compare" ><?php echo _t('sdi','e_scale_compare'?> * :</label>
  439.                 <input name="e_scale_compare" type="text" class="textfield" id="e_scale_compare" maxlength="3" value="<?php echo $form_e_scale_compare;
  440.         ?>" />
  441.                 </p>
  442.                 <p>
  443.                 <label for="e_fiability" ><?php echo _t('sdi','e_fiability'?> * :</label>
  444.                 <input name="e_fiability" type="text" class="textfield" id="e_fiability" maxlength="3" value="<?php echo $form_e_fiability;
  445.         ?>" />
  446.                 </p>
  447.                 <p>
  448.                 <label for="e_accessibility" ><?php echo _t('sdi','e_accessibility'?> * :</label>
  449.                 <input name="e_accessibility" type="text" class="textfield" id="e_accessibility" maxlength="3" value="<?php echo $form_e_accessibility;
  450.         ?>" />
  451.                 </p>
  452.                 <p>
  453.                 <label for="e_lisibility" ><?php echo _t('sdi','e_lisibility'?> * :</label>
  454.                 <input name="e_lisibility" type="text" class="textfield" id="e_lisibility" maxlength="3" value="<?php echo $form_e_lisibility;
  455.         ?>" />
  456.                 </p>
  457.                 <p>
  458.                 <label for="e_relevance" ><?php echo _t('sdi','e_relevance'?> * :</label>
  459.                 <input name="e_relevance" type="text" class="textfield" id="e_relevance" maxlength="3" value="<?php echo $form_e_relevance;
  460.         ?>" />
  461.                 </p>
  462.                 <p>
  463.                 <label for="e_global_performance" ><?php echo _t('sdi','e_global_performance'?> * : </label>
  464.                 <input name="e_global_performance" type="text" class="textfield" id="e_global_performance" maxlength="3" value="<?php echo $form_e_global_performance;
  465.         ?>" />
  466.                 </p>
  467.                 
  468.                 <div>
  469.                 <input name="table" type="hidden" value="<?php echo $table;
  470.         ?>" id="table" />
  471.                 <input name="rub" type="hidden" value="<?php echo $rub;
  472.         ?>" id="rub" />
  473.                 <input name="todo" type="hidden" value="<?php echo $todo;
  474.         ?>" id="todo" /><br />
  475.         <? echo cancel_button($rub_link."&amp;todo=list")?>
  476.                 
  477.                 <input name="valider2" type="submit" value="<?php echo _t('sdi','btn_step2'?>" class="button" id="valider" />
  478.                 </div>
  479.             </form>
  480.         </div>
  481. <?php include_once($dir "/help.php");
  482.         ?>
  483. </div>
  484.  
  485. <?php
  486.     else {
  487.         if (!isset($integrity3|| is_string($integrity3)) {
  488.  
  489.             ?>
  490. <div class="contentcontainer">
  491.         <?php
  492.             include_once($dir "/menurub.php");
  493.  
  494.             ?>
  495.         <div id="content">
  496.             <?php
  497.             if (isset($integrity3&& is_string($integrity3)) display_errors($integrity3);
  498.  
  499.             ?>
  500.             
  501.                 <div class="stepcontent" >
  502.     <div class="step">
  503.     <img src="<?php echo THEME_ADMIN_PATH?>images/step1_pas.gif" alt="step1" /><br />
  504.     <span class="steppas"><? echo _t('sdi','add_step1')?></span>
  505.     </div>
  506.     <div class="step">
  507.     <img src="<?php echo THEME_ADMIN_PATH?>images/step2_pas.gif" alt="step2" /><br />
  508.     <span class="steppas"><? echo _t('sdi','add_step2')?></span>
  509.     </div>
  510.     <div class="step">
  511.     <img src="<?php echo THEME_ADMIN_PATH?>images/step3_act.gif" alt="step3" /><br />
  512.     <span class="stepact"><? echo _t('sdi','add_step3')?></span>
  513.     </div>
  514.     <div class="step">
  515.     <img src="<?php echo THEME_ADMIN_PATH?>images/step4_pas.gif" alt="step4" /><br />
  516.     <span class="steppas"><? echo _t('sdi','add_step4')?></span>
  517.     </div>
  518.     </div><br class="brendstep"/>
  519.             
  520.             <h2><?php echo _t('sdi','add_title3'?></h2>
  521.             
  522.             <form id="addsdi3" action="<?php echo $_SERVER['SCRIPT_NAME'];
  523.             ?>" method="post">
  524.                 <p>
  525.                 <label for="p_name" ><?php echo _t('sdi','p_name'?> * :</label>
  526.                 <input name="p_name" type="text" class="textfield" id="p_name" maxlength="255" value="<?php echo $form_p_name;
  527.             ?>" />
  528.                 </p>
  529.                 <p>
  530.                 <label for="p_service" ><?php echo _t('sdi','p_service'?>  :</label>
  531.                 <input name="p_service" type="text" class="textfield" id="p_service" maxlength="255" value="<?php echo $form_p_service;
  532.             ?>" />
  533.                 </p>
  534.  
  535.                 <p>
  536.                 <label for="p_incharge" ><?php echo _t('sdi','p_incharge'?>  :</label>
  537.                 <input name="p_incharge" type="text" class="textfield" id="p_incharge" maxlength="150" value="<?php echo $form_p_incharge;
  538.             ?>" />
  539.                 </p>
  540.                 <p>
  541.                 <label for="p_address" ><?php echo _t('sdi','p_address'?> * :</label>
  542.                 <textarea id="p_address" name="p_address" <?php echo AREA_SETTINGS?> class="largetextfield" ><?php echo $form_p_address;
  543.             ?></textarea>
  544.                 </p>
  545.                 <p>
  546.                 <label for="p_phone" ><?php echo _t('sdi','p_phone'?>  :</label>
  547.                 <input name="p_phone" type="text" class="textfield" id="p_phone" maxlength="10" value="<?php echo $form_p_phone;
  548.             ?>" />
  549.                 </p>
  550.                 <p>
  551.                 <label for="p_fax" ><?php echo _t('sdi','p_fax'?>  :</label>
  552.                 <input name="p_fax" type="text" class="textfield" id="p_fax" maxlength="10" value="<?php echo $form_p_fax;
  553.             ?>" />
  554.                 </p>
  555.                 <p>
  556.                 <label for="p_email" ><?php echo _t('sdi','p_email'?> * :</label>
  557.                 <input name="p_email" type="text" class="textfield" id="p_email" maxlength="200" value="<?php echo $form_p_email;
  558.             ?>" />
  559.                 </p>
  560.                 <p>
  561.                 <label for="p_description" ><?php echo _t('sdi','p_description'?>  :</label>
  562.                 <textarea id="p_description" name="p_description" <?php echo AREA_SETTINGS?> class="largetextfield" ><?php echo $form_p_description;
  563.             ?></textarea>
  564.                 </p>
  565.                 <div>
  566.                 <input name="table" type="hidden" value="<?php echo $table;
  567.             ?>" id="table" />
  568.                 <input name="rub" type="hidden" value="<?php echo $rub;
  569.             ?>" id="rub" />
  570.                 <input name="todo" type="hidden" value="<?php echo $todo;
  571.             ?>" id="todo" /><br />
  572.             <? echo cancel_button($rub_link."&amp;todo=list")?>
  573.                 
  574.                 <input name="valider3" type="submit" value="<?php echo _t('sdi','btn_step3'?>" class="button" id="valider" />
  575.                 </div>
  576.             </form>
  577.         </div>
  578. <?php include_once($dir "/help.php");
  579.             ?>
  580. </div>
  581.  
  582. <?php
  583.         else {
  584.             if (!isset($integrity4|| is_string($integrity4)) {
  585.  
  586.                 ?>
  587. <div class="contentcontainer">
  588.         <?php
  589.                 include_once($dir "/menurub.php");
  590.  
  591.                 ?>
  592.         <div id="content">
  593.             <?php
  594.                 if (isset($integrity4&& is_string($integrity4)) display_errors($integrity4);
  595.  
  596.                 ?>
  597.                 
  598.                     <div class="stepcontent" >
  599.     <div class="step">
  600.     <img src="<?php echo THEME_ADMIN_PATH?>images/step1_pas.gif" alt="step1" /><br />
  601.     <span class="steppas"><? echo _t('sdi','add_step1')?></span>
  602.     </div>
  603.     <div class="step">
  604.     <img src="<?php echo THEME_ADMIN_PATH?>images/step2_pas.gif" alt="step2" /><br />
  605.     <span class="steppas"><? echo _t('sdi','add_step2')?></span>
  606.     </div>
  607.     <div class="step">
  608.     <img src="<?php echo THEME_ADMIN_PATH?>images/step3_pas.gif" alt="step3" /><br />
  609.     <span class="steppas"><? echo _t('sdi','add_step3')?></span>
  610.     </div>
  611.     <div class="step">
  612.     <img src="<?php echo THEME_ADMIN_PATH?>images/step4_act.gif" alt="step4" /><br />
  613.     <span class="stepact"><? echo _t('sdi','add_step4')?></span>
  614.     </div>
  615.     </div><br class="brendstep"/>
  616.     
  617.             <h2><?php echo _t('sdi','add_title4'?></h2>
  618.             
  619.             <form id="addsdi4" action="<?php echo $_SERVER['SCRIPT_NAME'];
  620.                 ?>" method="post">
  621.                 <p>
  622.                 <label for="r_title" ><?php echo _t('sdi','r_title'?> * :</label>
  623.                 <input name="r_title" type="text" class="textfield" id="r_title" maxlength="255" value="<?php echo $form_r_title;
  624.                 ?>" />
  625.                 </p>
  626.                 <p>
  627.                 <label for="r_body" ><?php echo _t('sdi','r_body'?> * :</label>
  628.                 <textarea id="r_body" name="r_body" <?php echo AREA_SETTINGS?> class="largetextfield" ><?php echo $form_r_body;
  629.                 ?></textarea>
  630.                 </p>
  631.                 <p>
  632.                 <label for="r_referer_uri" ><?php echo _t('sdi','r_referer_uri'?>  :</label>
  633.                 <input name="r_referer_uri" type="text" class="textfield" id="r_referer_uri" maxlength="255" value="<?php echo $form_r_referer_uri;
  634.                 ?>" />
  635.                 </p>
  636.                 <p>
  637.                 <label for="r_mask_uri" ><?php echo _t('sdi','r_mask_uri'?>  :</label>
  638.                 <input name="r_mask_uri" type="text" class="textfield" id="r_mask_uri" maxlength="255" value="<?php echo $form_r_mask_uri;
  639.                 ?>" />
  640.                 </p>
  641.                 <div>
  642.                 <input name="table" type="hidden" value="<?php
  643.  
  644.                 echo $table;
  645.                 ?>" id="table" />
  646.                 <input name="rub" type="hidden" value="<?php echo $rub;
  647.                 ?>" id="rub" />
  648.                 <input name="todo" type="hidden" value="<?php echo $todo;
  649.                 ?>" id="todo" />
  650.                 <br />
  651.                 <? echo cancel_button($rub_link."&amp;todo=list")?>
  652.                 
  653.                 <input name="valider4" type="submit" value="<?php echo _t('btn','valid'?>" class="button" id="valider" />
  654.                 </div>
  655.             </form>
  656.         </div>
  657. <?php include_once($dir "/help.php");
  658.                 ?>
  659. </div>
  660.  
  661. <?php
  662.             else {
  663.                 if (!isset($integrity5|| is_string($integrity5)) {
  664.                 
  665.                 
  666.                     $table=unserialize(urldecode($table));
  667.                     $display_sdi_name formatText(empty_nc($table[0])'2HTML');
  668.                     $display_sdi_description =formatText(empty_nc($table[1])'2HTML');
  669.                     $display_sdi_comment =formatText(empty_nc($table[2])'2HTML');
  670.                     //$display_sdi_range = empty_nc($table[4]);               
  671.                     $display_sdi_goal formatText(empty_nc($table[5])'2HTML');
  672.                     $display_sdi_consulting formatText(empty_nc($table[6])'2HTML');
  673.                     $display_sdi_unit formatText(empty_nc($table[7])'2HTML');
  674.                     $display_sdi_max_value empty_nc($table[8]);
  675.                     $display_sdi_min_value empty_nc($table[9]);
  676.                     $display_sdi_threshold_value empty_nc($table[10]);
  677.                     $display_sdi_frequency empty_nc($table[11]);
  678.                     $display_sdi_statut empty_nc($table[12]);
  679.                     $display_e_scale_compare empty_nc($table[13]);
  680.                     $display_e_fiability empty_nc($table[14]);
  681.                     $display_e_accessibility empty_nc($table[15]);
  682.                     $display_e_lisibility empty_nc($table[16]);
  683.                     $display_e_relevance empty_nc($table[17]);
  684.                     $display_e_global_performance empty_nc($table[18]);
  685.                     $display_p_name formatText(empty_nc($table[19])'2HTML');
  686.                     $display_p_service formatText(empty_nc($table[20])'2HTML');
  687.                     $display_p_description =formatText(empty_nc($table[21])'2HTML');
  688.                     $display_p_incharge formatText(empty_nc($table[22])'2HTML');
  689.                     $display_p_address =formatText(empty_nc($table[23])'2HTML');
  690.                     $display_p_phone =empty_nc($table[24]);
  691.                     $display_p_fax empty_nc($table[25]);
  692.                     $display_p_email empty_nc($table[26]);
  693.                     $display_r_title =formatText(empty_nc($table[27])'2HTML');
  694.                     $display_r_body formatText(empty_nc($table[28])'2HTML');
  695.                     $display_r_referer_uri empty_nc($table[29]);
  696.                     $display_r_mask_uri formatText(empty_nc($table[30])'2HTML');
  697.  
  698.                     if ($table[32]=='Y'$display_sdi_threshold_relative _t('sdi','threshold_relative_Y');
  699.                     else $display_sdi_threshold_relative _t('sdi','threshold_relative_N');
  700.                     
  701.                     $onetheme SQL_getOnesditheme($table[3]);
  702.                     $onetheme $sql_object -> DBSelect($onetheme);
  703.                     $display_sdi_theme formatText(empty_nc($onetheme[0]['theme_name'])'2HTML');
  704.  
  705.                     $table urlencode(serialize($table));
  706.  
  707.                     ?>
  708. <div class="contentcontainer">
  709. <?php
  710.                     include_once($dir "/menurub.php");
  711.  
  712.                     ?>
  713. <div id="content">
  714.             <h2><?php echo _t('recap','title';
  715.                     ?></h2>
  716.             <dl class="dl3">
  717.                 <dt><?php echo _t('sdi','name2';
  718.                     ?> : </dt>
  719.                 <dd><?php echo $display_sdi_name ;
  720.                     ?><br /></dd>
  721.                 <dt><?php echo _t('divers','statut';
  722.                     ?> :</dt>
  723.                 <dd><?php echo display_statut($display_sdi_statut;
  724.                     ?><br /></dd>
  725.                 <dt><?php echo _t('sdi','theme';
  726.                     ?> :</dt>
  727.                 <dd><?php echo $display_sdi_theme ;
  728.                     ?><br /></dd>
  729.                 <?php /* <dt><?php echo _t('sdi','range') ;
  730.                     ?> :</dt>
  731.                 <dd><?php echo $display_sdi_range ;
  732.                     ?><br /></dd> */ ?>
  733.                 <dt><?php echo _t('sdi','description';
  734.                     ?> : </dt>
  735.                 <dd><?php echo $display_sdi_description ;
  736.                     ?><br /></dd>
  737.                 <dt><?php echo _t('sdi','comment';
  738.                     ?> : </dt>
  739.                 <dd><?php echo $display_sdi_comment ;
  740.                     ?><br /></dd>
  741.                 <dt><?php echo _t('sdi','goal';
  742.                     ?> : </dt>
  743.                 <dd><?php echo $display_sdi_goal ;
  744.                     ?><br /></dd>
  745.                 <dt><?php echo _t('sdi','consulting';
  746.                     ?> : </dt>
  747.                 <dd><?php echo $display_sdi_consulting ;
  748.                     ?><br /></dd>
  749.                 <dt><?php echo _t('sdi','unit';
  750.                     ?> : </dt>
  751.                 <dd><?php echo $display_sdi_unit ;
  752.                     ?><br /></dd>
  753.                 <dt><?php echo _t('sdi','max_value';
  754.                     ?> : </dt>
  755.                 <dd><?php echo $display_sdi_max_value ;
  756.                     ?><br /></dd>
  757.                 <dt><?php echo _t('sdi','min_value';
  758.                     ?> : </dt>
  759.                 <dd><?php echo $display_sdi_min_value ;
  760.                     ?><br /></dd>
  761.                 <dt><?php echo _t('sdi','threshold_value';
  762.                     ?> : </dt>
  763.                 <dd><?php echo $display_sdi_threshold_value ;
  764.                     ?><br /></dd>
  765.                 <dt><?php echo _t('sdi','threshold_relative';
  766.                     ?> : </dt>
  767.                 <dd><?php echo $display_sdi_threshold_relative ;
  768.                     ?><br /></dd>
  769.                 <dt><?php echo _t('sdi','frequency';
  770.                     ?> : </dt>
  771.                 <dd><?php echo $display_sdi_frequency ;
  772.                     ?><br /></dd>
  773.                 
  774.                 <dt><?php echo _t('sdi','e_scale_compare';
  775.                     ?> : </dt>
  776.                 <dd><?php echo $display_e_scale_compare ;
  777.                     ?><br /></dd>
  778.                 <dt><?php echo _t('sdi','e_fiability';
  779.                     ?> : </dt>
  780.                 <dd><?php echo $display_e_fiability ;
  781.                     ?><br /></dd>
  782.                 <dt><?php echo _t('sdi','e_accessibility';
  783.                     ?> : </dt>
  784.                 <dd><?php echo $display_e_accessibility ;
  785.                     ?><br /></dd>
  786.                 <dt><?php echo _t('sdi','e_lisibility';
  787.                     ?> : </dt>
  788.                 <dd><?php echo $display_e_lisibility ;
  789.                     ?><br /></dd>
  790.                 <dt><?php echo _t('sdi','e_relevance';
  791.                     ?> : </dt>
  792.                 <dd><?php echo $display_e_relevance ;
  793.                     ?><br /></dd>
  794.                 <dt><?php echo _t('sdi','e_global_performance';
  795.                     ?> : </dt>
  796.                 <dd><?php echo $display_e_global_performance ;
  797.                     ?><br /></dd>
  798.                 
  799.                 <dt><?php echo _t('sdi','p_name';
  800.                     ?> : </dt>
  801.                 <dd><?php echo $display_p_name ;
  802.                     ?><br /></dd>
  803.                 <dt><?php echo _t('sdi','p_service';
  804.                     ?> : </dt>
  805.                 <dd><?php echo $display_p_service ;
  806.                     ?><br /></dd>
  807.                 <dt><?php echo _t('sdi','p_description';
  808.                     ?> : </dt>
  809.                 <dd><?php echo $display_p_description ;
  810.                     ?><br /></dd>
  811.                 <dt><?php echo _t('sdi','p_incharge';
  812.                     ?> : </dt>
  813.                 <dd><?php echo $display_p_incharge ;
  814.                     ?><br /></dd>
  815.                 <dt><?php echo _t('sdi','p_address';
  816.                     ?> : </dt>
  817.                 <dd><?php echo $display_p_address ;
  818.                     ?><br /></dd>
  819.                 <dt><?php echo _t('sdi','p_phone';
  820.                     ?> : </dt>
  821.                 <dd><?php echo $display_p_phone ;
  822.                     ?><br /></dd>
  823.                 <dt><?php echo _t('sdi','p_fax';
  824.                     ?> : </dt>
  825.                 <dd><?php echo $display_p_fax ;
  826.                     ?><br /></dd>
  827.                 <dt><?php echo _t('sdi','p_email';
  828.                     ?> : </dt>
  829.                 <dd><?php echo $display_p_email ;
  830.                     ?><br /></dd>
  831.                 
  832.                 <dt><?php echo _t('sdi','r_title';
  833.                     ?> : </dt>
  834.                 <dd><?php echo $display_r_title ;
  835.                     ?><br /></dd>
  836.                 <dt><?php echo _t('sdi','r_body';
  837.                     ?> : </dt>
  838.                 <dd><?php echo $display_r_body ;
  839.                     ?><br /></dd>
  840.                 <dt><?php echo _t('sdi','r_referer_uri';
  841.                     ?> : </dt>
  842.                 <dd><?php echo $display_r_referer_uri ;
  843.                     ?><br /></dd>
  844.                 <dt><?php echo _t('sdi','r_mask_uri';
  845.                     ?> : </dt>
  846.                 <dd><?php echo $display_r_mask_uri ;
  847.                     ?><br /></dd>
  848.             </dl>
  849.             <form id="addsdi5" action="<?php echo $_SERVER['SCRIPT_NAME'];
  850.                     ?>" method="post">
  851.                 <div>
  852.                 <input name="rub" type="hidden" value="<?php echo $rub;
  853.                     ?>" id="rub" />
  854.                 <input name="todo" type="hidden" value="<?php echo $todo;
  855.                     ?>" id="todo" />
  856.                 <input name="data_table" type="hidden" value="<?php echo $table;
  857.                     ?>" id="data_table" />
  858.                     <? echo cancel_button($rub_link."&amp;todo=list")?>
  859.                 <input name="retour" type="button" value="<?php echo _t('btn','preview'?>" class="button" id="retour" onclick="history.go(-1);" />
  860.                 <input name="enregistrer" type="submit" value="<?php echo _t('btn','save'?>" class="button" id="valider" />
  861.                 </div>
  862.             </form>
  863.         </div>
  864.     <?php include_once($dir "/help.php");
  865.                     ?>
  866. </div>
  867. <?php
  868.                 
  869.             
  870.         
  871.     
  872. ?>

Documentation generated on Fri, 16 Oct 2009 09:28:05 +0200 by phpDocumentor 1.4.1