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

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