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 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.  
  18. $link_det=$rub_link."&amp;todo=det&amp;id=";
  19. $link_det2=$rub_link."&amp;todo=det&amp;id=";
  20. $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  21. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  22.  
  23. if(!isset($_GET['id']&& !isset($_POST['id'])) {
  24.   $id="1";
  25. else {
  26.   if(isset($_POST['id']))    $id=$_POST['id'];
  27.   if(isset($_GET['id']))    $id=$_GET['id'];
  28. }
  29.  
  30. if(isset($_POST['valider'])) {
  31.   $id=$_POST['id'];
  32.   $sdi_objectnew sdi;
  33.   $link_confirm="confirm.php?rub=".$rub."&todo=".$todo;
  34.  
  35.   $result=$sdi_object->DeleteSdi($id$sql_object);
  36.   if($resultheader("Location: ".$link_confirm);
  37.   else  system_error();
  38. }
  39.  
  40. $sdi_objectnew sdi;
  41. //$data_sdii=$sdi_object->GetInfoSdi($id, $sql_object);
  42.  
  43. $req_sdii=SQL_getInfoSdi($id);
  44. $data_sdii $sql_object -> DBSelect($req_sdii);
  45.  
  46.  
  47. $navtitle=_t('sdi','sup')." : ".$data_sdii[0]['sdii_name'];
  48. $req_allsditheme=SQL_getAllsditheme($data_sdii[0]['sdii_theme'];
  49. $result_Allsditheme=$sql_object->DBSelect($req_allsditheme);
  50. $theme_test=$result_Allsditheme[0]['countsdi'];
  51. ?>
  52. <div id="chemin">
  53.   <ul>
  54.       <li><a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a></li>
  55.       <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','sdi')?></a></li>
  56.       <li><span><?php echo formatnavTitle($navtitle?></span></li>
  57.   </ul>
  58. </div>
  59. <!--end barre haute -->
  60. <?php
  61. include_once(THEME_ADMIN_PATH."quickicons.php");
  62. ?>
  63. <div class="contentcontainer">
  64. <?php
  65. include_once($dir."/menurub.php");
  66. ?>
  67. <div id="content"><?php
  68. if(isset($integrity&& is_string($integrity)) display_errors($integrity);
  69. ?>
  70. <h2><?php echo formatTitleh2($data_sdii[0]['sdii_name'])?></h2>
  71.  
  72. <form id="supyp" action="<?php echo $_SERVER['SCRIPT_NAME']?>" method="post">
  73.   <div class="info">
  74.     <?php echo '<p>'._t('sdi','sup_sdi_warning').'</p>'?>
  75.     <?php echo '<p>'._t('sdi','sup_sdi_warning2').'</p>'?>
  76.     <?php 
  77.     if ($theme_test==1{
  78.       echo '<p>'._t('sdi','sup_sdi_warning3').'</p>';
  79.     ?>
  80.   </div>
  81.   <div>
  82.     <input name="id" type="hidden" value="<?php echo $id?>" />
  83.     <input name="rub" type="hidden" value="<?php echo $rub?>" id="rub" />
  84.     <input name="todo" type="hidden" value="<?php echo $todo?>" id="todo" />
  85.     <?php echo cancel_button($link_det2.$id)?>
  86.     <input name="valider" type="submit" value="<?php echo _t('btn','valid'?>" class="button"     id="valider" />
  87.   </div>
  88. </form>
  89.  
  90. </div>
  91. <?php include_once($dir."/help.php")?></div>

Documentation generated on Thu, 03 May 2012 15:07:38 +0200 by phpDocumentor 1.4.1