Source for file mod_e.php
Documentation is available at mod_e.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
$link_mod_r= $rub_link. "&todo=mod_r&id=";
$link_mod_p= $rub_link. "&todo=mod_p&id=";
$link_mod= $rub_link. "&todo=mod&id=";
if(!isset ($_GET['id']) && !isset ($_POST['id'])) {
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
if (isset ($_POST['enregistrer'])) {
$data_table_e[$j]= $data_table[$i];
$result= $sdi_object->ModifyParam($id, $data_table_e, "E", $sql_object);
$link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo. "&id=". $id;
if(isset ($result)) header("Location: ". $link_confirm);
//$data_evaluation=$sdi_object->GetEvaluation($id_idd=$id, $sql_object, $ID="-1");
$data_evaluation = $sql_object -> DBSelect($req_sdie);
$form_e_scale_compare = $data_evaluation[0]['sdie_scale_compare'];
$form_e_fiability = $data_evaluation[0]['sdie_fiability'];
$form_e_accessibility = $data_evaluation[0]['sdie_accessibility'];
$form_e_lisibility = $data_evaluation[0]['sdie_lisibility'];
$form_e_relevance = $data_evaluation[0]['sdie_relevance'];
$form_e_global_performance = $data_evaluation[0]['sdie_global_performance'];
if (isset ($_POST['valider2'])) {
$table[13] = $_POST['e_scale_compare'];
$table[14] = $_POST['e_fiability'];
$table[15] = $_POST['e_accessibility'];
$table[16] = $_POST['e_lisibility'];
$table[17] = $_POST['e_relevance'];
$table[18] = $_POST['e_global_performance'];
$integrity2 = $sdi_object -> CheckDataIntegrity_eval($table);
$form_e_scale_compare = $_POST['e_scale_compare'];
$form_e_fiability = $_POST['e_fiability'];
$form_e_accessibility = $_POST['e_accessibility'];
$form_e_lisibility = $_POST['e_lisibility'];
$form_e_relevance = $_POST['e_relevance'];
$form_e_global_performance = $_POST['e_global_performance'];
include_once("quickicons.php");
$data_sdi_name = $sql_object -> DBSelect($req_list_sdiname);
$navtitle= $GLOBALS['lang']['sdi']['mod']. " : ". $data_sdi_name[0]['sdii_name'];
<a href="index.php"> <?php echo $GLOBALS['lang']['way']['home'] ?></a>
<a href=" <?php echo $rub_link;
?>"> <?php echo $GLOBALS['lang']['menu']['sdi']?></a>
<span> <?php echo formatnavTitle($navtitle) ?></span>
if (!isset ($integrity2) || is_string($integrity2)) {
<div class="contentcontainer">
include_once($dir . "/menurub.php");
<a href=" <? echo $link_mod. $id ;?>"> <?echo $GLOBALS['lang']['sdi']['mod'];?></a> |
<a href=" <? echo $link_mod_p. $id ;?>"> <?echo $GLOBALS['lang']['sdi']['modify_sdi_p'];?></a> |
<a href=" <? echo $link_mod_r. $id ;?>"> <?echo $GLOBALS['lang']['sdi']['modify_sdi_r'];?></a>
<h2> <?php echo formatTitleh2($data_sdi_name[0]['sdii_name']); ?></h2>
<form id="addsdi2" action=" <?php echo $_SERVER['SCRIPT_NAME'];
<label for="e_scale_compare" > <?php echo $GLOBALS['lang']['sdi']['e_scale_compare'] ?> * :</label>
<input name="e_scale_compare" type="text" class="textfield" id="e_scale_compare" maxlength="3" value=" <?php echo $form_e_scale_compare;
<label for="e_fiability" > <?php echo $GLOBALS['lang']['sdi']['e_fiability'] ?> * :</label>
<input name="e_fiability" type="text" class="textfield" id="e_fiability" maxlength="3" value=" <?php echo $form_e_fiability;
<label for="e_accessibility" > <?php echo $GLOBALS['lang']['sdi']['e_accessibility'] ?> * :</label>
<input name="e_accessibility" type="text" class="textfield" id="e_accessibility" maxlength="3" value=" <?php echo $form_e_accessibility;
<label for="e_lisibility" > <?php echo $GLOBALS['lang']['sdi']['e_lisibility'] ?> * :</label>
<input name="e_lisibility" type="text" class="textfield" id="e_lisibility" maxlength="3" value=" <?php echo $form_e_lisibility;
<label for="e_relevance" > <?php echo $GLOBALS['lang']['sdi']['e_relevance'] ?> * :</label>
<input name="e_relevance" type="text" class="textfield" id="e_relevance" maxlength="3" value=" <?php echo $form_e_relevance;
<label for="e_global_performance" > <?php echo $GLOBALS['lang']['sdi']['e_global_performance'] ?> * : </label>
<input name="e_global_performance" type="text" class="textfield" id="e_global_performance" maxlength="3" value=" <?php echo $form_e_global_performance;
<input name="table" type="hidden" value=" <?php echo $table;
<input name="id" type="hidden" value=" <?php echo $id;
<input name="rub" type="hidden" value=" <?php echo $rub;
<input name="todo" type="hidden" value=" <?php echo $todo;
<input name="valider2" type="submit" value=" <?php echo $GLOBALS['lang']['btn']['valid'] ?>" class="button" id="valider" />
<?php include_once($dir . "/help.php");
if (!isset ($integrity5) || is_string($integrity5)) {
$display_e_scale_compare = empty_nc($table[13]);
$display_e_fiability = empty_nc($table[14]);
$display_e_accessibility = empty_nc($table[15]);
$display_e_lisibility = empty_nc($table[16]);
$display_e_relevance = empty_nc($table[17]);
$display_e_global_performance = empty_nc($table[18]);
<div class="contentcontainer">
include_once($dir . "/menurub.php");
<h2> <?php echo $GLOBALS['lang']['recap']['title'] ;
<dt> <?php echo $GLOBALS['lang']['sdi']['e_scale_compare'] ;
<dd> <?php echo $display_e_scale_compare ;
<dt> <?php echo $GLOBALS['lang']['sdi']['e_fiability'] ;
<dd> <?php echo $display_e_fiability ;
<dt> <?php echo $GLOBALS['lang']['sdi']['e_accessibility'] ;
<dd> <?php echo $display_e_accessibility ;
<dt> <?php echo $GLOBALS['lang']['sdi']['e_lisibility'] ;
<dd> <?php echo $display_e_lisibility ;
<dt> <?php echo $GLOBALS['lang']['sdi']['e_relevance'] ;
<dd> <?php echo $display_e_relevance ;
<dt> <?php echo $GLOBALS['lang']['sdi']['e_global_performance'] ;
<dd> <?php echo $display_e_global_performance ;
<form id="addsdi5" action=" <?php echo $_SERVER['SCRIPT_NAME'];
<input name="rub" type="hidden" value=" <?php echo $rub;
<input name="todo" type="hidden" value=" <?php echo $todo;
<input name="id" type="hidden" value=" <?php echo $id;
<input name="data_table" type="hidden" value=" <?php echo $table;
<input name="retour" type="button" value=" <?php echo $GLOBALS['lang']['btn']['preview'] ?>" class="button" id="retour" onclick="history.go(-1);" />
<input name="enregistrer" type="submit" value=" <?php echo $GLOBALS['lang']['btn']['save'] ?>" class="button" id="valider" />
<?php include_once($dir . "/help.php");
|