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

Source for file sup.php

Documentation is available at sup.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. ////////////
  17.  
  18.  
  19. include_once("../lib/lib_common.php"); 
  20. $link_det=$rub_link."&amp;todo=det&amp;id="; 
  21. $link_det2=$rub_link."&todo=det&id="; 
  22. //$link_sup=$rub_link."&amp;todo=sup&amp;id=";
  23. //$link_mod=$rub_link."&amp;todo=mod&amp;id=";
  24.  
  25.     if (!isset($_GET['value_id']) && !isset($_POST['value_id'])) {
  26.     $value_id = 1;
  27. } else {
  28.     if (isset($_POST['value_id'])) $value_id = $_POST['value_id'];
  29.     if (isset($_GET['value_id'])) $value_id = $_GET['value_id'];
  30. } 
  31. if (!isset($_GET['id']) && !isset($_POST['id'])) {
  32.     $id = 1;
  33. } else {
  34.     if (isset($_POST['id'])) $id = $_POST['id'];
  35.     if (isset($_GET['id'])) $id = $_GET['id'];
  36. } 
  37. if (!isset($_GET['scale_id']) && !isset($_POST['scale_id'])) {
  38.     $scale_id = 1;
  39. } else {
  40.     if (isset($_POST['scale_id'])) $scale_id = $_POST['scale_id'];
  41.     if (isset($_GET['id'])) $scale_id = $_GET['scale_id'];
  42. } 
  43.  
  44.  
  45. if(isset($_POST['annuler'])) {
  46. header("Location: ".$link_det2.$_POST['id']."&scale_id=".$scale_id);
  47. }
  48.  
  49. if(isset($_POST['valider'])) {
  50.     $value_id=$_POST['value_id'];
  51.     $sdi_object= new sdi;
  52.     $link_confirm="confirm.php?rub=".$rub."&todo=".$todo."&id=".$id."&scale_id=".$scale_id;
  53.     
  54.             $result=$sdi_object->DeleteValue($value_id, $sql_object);
  55.             if($result) header("Location: ".$link_confirm);
  56.             else  system_error();
  57.         }
  58.         
  59. $req_sdii=SQL_getInfoSdi($id);
  60. $data_sdii = $sql_object -> DBSelect($req_sdii);
  61. $display_title=stripslashes($data_sdii[0]['sdii_name']);
  62.  
  63. ?>
  64. <div id="chemin">
  65.     <ul>
  66.         <li>
  67.             <a href="index.php" class="chemin_home"><?php echo _t('way','home');  ?></a>
  68.         </li>
  69.         <li>
  70.                <a href="<?php echo $rub_link; ?>" id="chemin_<? echo $rub; ?>" class="chemin_rub"><?php echo _t('menu','dashboard'); ?></a>
  71.         </li>
  72.         <li>
  73.             <span><?php echo _t('dashboard','sup').' '.$display_title; ?></span>
  74.         </li>
  75.     </ul>
  76. </div>
  77.   <!--end barre haute -->
  78. <?php
  79. include_once(THEME_ADMIN_PATH."quickicons.php");
  80. ?>
  81. <div class="contentcontainer">
  82. <?php
  83. include_once($dir."/menurub.php");
  84. ?>
  85. <div id="content">
  86. <?php
  87. if(isset($integrity) && is_string($integrity)) display_errors($integrity);
  88. ?>
  89. <h2><? echo _t('dashboard','sup'); ?> : <? echo $display_title; ?></h2>    
  90.  
  91.  <form id="supvalue" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
  92.       <div class="info" id="truetransfert1">
  93.    <? echo _t('dashboard','sup_value_warning'); ?>
  94.  
  95.     </div>   
  96.         <div>
  97.         <input name="id" type="hidden" value="<?php echo $id; ?>" />
  98.         <input name="scale_id" type="hidden" value="<?php echo $scale_id; ?>" />
  99.         <input name="value_id" type="hidden" value="<?php echo $value_id; ?>" />
  100.         <input name="rub" type="hidden" value="<?php echo $rub; ?>" id="rub" />
  101.         <input name="todo" type="hidden" value="<?php echo $todo; ?>" id="todo" />
  102.             <input name="annuler" type="submit" value="<? echo _t('btn','annul') ?>" class="button" id="annuler" />
  103.             <input name="valider" type="submit" value="<? echo _t('btn','valid') ?>" class="button" id="valider" />
  104.         </div>
  105.         </form>
  106.         <br />
  107. </div>
  108. <?php include_once($dir."/help.php"); ?>
  109. </div>

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