Source for file mod_p.php
Documentation is available at mod_p.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_e= $rub_link. "&todo=mod_e&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_p[$j]= $data_table[$i];  
    $result= $sdi_object->ModifyParam($id, $data_table_p, "P", $sql_object);  
    $link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo. "&id=". $id;  
    if(isset ($result)) header("Location: ". $link_confirm);  
//$data_provider=$sdi_object->GetProvider($id_idd=$id, $sql_object, $ID="-1");  
$data_provider =  $sql_object -> DBSelect($req_sdip);  
$form_p_name =  formatText($data_provider[0]['sdip_name'], '2FIELD');  
$form_p_service  =  formatText($data_provider[0]['sdip_service'], '2FIELD');  
$form_p_description  =  formatText($data_provider[0]['sdip_description'], '2FIELD');  
$form_p_incharge  =  formatText($data_provider[0]['sdip_incharge'], '2FIELD');  
$form_p_address  =  formatText($data_provider[0]['sdip_address'], '2FIELD');  
$form_p_phone  =  $data_provider[0]['sdip_phone'];  
$form_p_fax  =  $data_provider[0]['sdip_fax'];  
$form_p_email =  $data_provider[0]['sdip_email'];  
if (isset ($_POST['valider3'])) {  
    //$table = unserialize(urldecode($_POST['table']));  
    $table[19] =  $_POST['p_name'];  
    $table[20] =  $_POST['p_service'];  
    $table[21] =  $_POST['p_description'];  
    $table[22] =  $_POST['p_incharge'];  
    $table[23] =  $_POST['p_address'];  
    $table[24] =  $_POST['p_phone'];  
    $table[25] =  $_POST['p_fax'];  
    $table[26] =  $_POST['p_email'];  
    $integrity3 =  $sdi_object -> CheckDataIntegrity_provider($table);  
    $form_p_name =  formatText($_POST['p_name'], '2FIELD');  
    $form_p_service =  formatText($_POST['p_service'], '2FIELD');  
    $form_p_description =  formatText($_POST['p_description'], '2FIELD');  
    $form_p_incharge =  formatText($_POST['p_incharge'], '2FIELD');  
    $form_p_address =  formatText($_POST['p_address'], '2FIELD');  
    $form_p_phone =  $_POST['p_phone'];  
    $form_p_fax =  $_POST['p_fax'];  
    $form_p_email =  $_POST['p_email'];  
include_once(THEME_ADMIN_PATH. "quickicons.php");  
$data_sdi_name =  $sql_object -> DBSelect($req_list_sdiname);  
$navtitle= _t('sdi','mod_p'). " : ". $data_sdi_name[0]['sdii_name'];  
            <a href="index.php" class="chemin_home"> <?php echo  _t('way','home') ?></a>  
               <a href=" <?php echo  $rub_link; ?>" id="chemin_ <? echo  $rub; ?>" class="chemin_rub"> <?php echo  _t('menu','sdi')?></a>  
            <span> <?php echo  formatnavTitle($navtitle) ?></span>  
 if (!isset ($integrity3) ||  is_string($integrity3)) {  
<div class="contentcontainer">  
            include_once($dir .  "/menurub.php");  
    <a href=" <? echo  $link_mod. $id ;?>"> <?echo  _t('sdi','mod');?></a> |   
    <a href=" <? echo  $link_mod_e. $id ;?>"> <?echo  _t('sdi','modify_sdi_e');?></a> |   
    <a href=" <? echo  $link_mod_r. $id ;?>"> <?echo  _t('sdi','modify_sdi_r');?></a>  
            <h2> <?php echo  formatTitleh2($data_sdi_name[0]['sdii_name']); ?></h2>  
            <form id="addsdi3" action=" <?php echo  $_SERVER['SCRIPT_NAME']; 
                <label for="p_name" > <?php echo  _t('sdi','p_name') ?> * :</label>  
                <input name="p_name" type="text" class="textfield" id="p_name" maxlength="255" value=" <?php echo  $form_p_name; 
                <label for="p_service" > <?php echo  _t('sdi','p_service') ?>  :</label>  
                <input name="p_service" type="text" class="textfield" id="p_service" maxlength="255" value=" <?php echo  $form_p_service; 
                <label for="p_incharge" > <?php echo  _t('sdi','p_incharge') ?>  :</label>  
                <input name="p_incharge" type="text" class="textfield" id="p_incharge" maxlength="150" value=" <?php echo  $form_p_incharge; 
                <label for="p_address" > <?php echo  _t('sdi','p_address') ?> * :</label>  
                <textarea id="p_address" name="p_address"  <?php echo  AREA_SETTINGS; ?> class="largetextfield" > <?php echo  $form_p_address; 
                <label for="p_phone" > <?php echo  _t('sdi','p_phone') ?>  :</label>  
                <input name="p_phone" type="text" class="textfield" id="p_phone" maxlength="10" value=" <?php echo  $form_p_phone; 
                <label for="p_fax" > <?php echo  _t('sdi','p_fax') ?>  :</label>  
                <input name="p_fax" type="text" class="textfield" id="p_fax" maxlength="10" value=" <?php echo  $form_p_fax; 
                <label for="p_email" > <?php echo  _t('sdi','p_email') ?> * :</label>  
                <input name="p_email" type="text" class="textfield" id="p_email" maxlength="200" value=" <?php echo  $form_p_email; 
                <label for="p_description" > <?php echo  _t('sdi','p_description') ?>  :</label>  
                <textarea id="p_description" name="p_description"  <?php echo  AREA_SETTINGS; ?> class="largetextfield" > <?php echo  $form_p_description; 
                        <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="valider3" type="submit" value=" <?php echo  _t('btn','valid') ?>" class="button" id="valider" />  
<?php include_once($dir .  "/help.php");  
                if (!isset ($integrity5) ||  is_string($integrity5)) {  
                    $display_p_phone =  empty_nc($table[24]);  
                    $display_p_email =  empty_nc($table[26]);  
<div class="contentcontainer">  
                    include_once($dir .  "/menurub.php");  
            <h2> <?php echo  _t('recap','title') ; 
                <dt> <?php echo  _t('sdi','p_name') ; 
                <dd> <?php echo  $display_p_name ; 
                <dt> <?php echo  _t('sdi','p_service') ; 
                <dd> <?php echo  $display_p_service ; 
                <dt> <?php echo  _t('sdi','p_description') ; 
                <dd> <?php echo  $display_p_description ; 
                <dt> <?php echo  _t('sdi','p_incharge') ; 
                <dd> <?php echo  $display_p_incharge ; 
                <dt> <?php echo  _t('sdi','p_address') ; 
                <dd> <?php echo  $display_p_address ; 
                <dt> <?php echo  _t('sdi','p_phone') ; 
                <dd> <?php echo  $display_p_phone ; 
                <dt> <?php echo  _t('sdi','p_fax') ; 
                <dd> <?php echo  $display_p_fax ; 
                <dt> <?php echo  _t('sdi','p_email') ; 
                <dd> <?php echo  $display_p_email ; 
            <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  _t('btn','preview') ?>" class="button" id="retour" onclick="history.go(-1);" />  
                <input name="enregistrer" type="submit" value=" <?php echo  _t('btn','save') ?>" class="button" id="valider" />  
    <?php include_once($dir .  "/help.php");  
 
 
        
       |