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

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