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

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