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 workshop
  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. if(isset($_POST['id']))    $id=$_POST['id'];
  12. if(isset($_GET['id']))    $id=$_GET['id'];
  13.  
  14. //////////// Check Inclusion de pages ////////////
  15. if (!function_exists('AuthenthificationProcess')){
  16.   include_once("../lib/lib_common.php");
  17.   ReloadIndex('admin');
  18. }
  19. ////////////
  20.  
  21. //////////// Check Droits utilisateur ////////////
  22. if (!IsSuperAdmin())
  23. ReloadIndex('admin');
  24. ////////////
  25.  
  26. $link_det=$rub_link."&amp;todo=det&amp;id=".$id;
  27.  
  28. if(isset($_POST['valider'])) {
  29.   $workshop_object new workshop;
  30.   $link_confirm="confirm.php?rub=".$rub."&todo=".$todo;
  31.   $result=$workshop_object->DeleteWorkshop($id$sql_object);
  32.   if($resultheader("Location: ".$link_confirm);
  33.   else  system_error();
  34. }
  35.  
  36. $result=$sql_object->DBSelect($req_det);
  37. if(count($result)>1exit();
  38. $workshop_denomination=FormatTitleh2($result[0]['workshop_denomination']);
  39.  
  40. ?>
  41. <div id="chemin">
  42. <ul>
  43.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a>
  44.     </li>
  45.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  46.         class="chemin_rub"><?php echo _t('menu','workshop')?></a></li>
  47.     <li><span><?php echo formatnavTitle(_t('workshop','sup')." : "$workshop_denomination)?></span>
  48.     </li>
  49. </ul>
  50. </div>
  51. <!--end barre haute -->
  52. <?php
  53. include_once(THEME_ADMIN_PATH."quickicons.php");
  54. ?>
  55. <div class="contentcontainer"><?php
  56. include_once($dir."/menurub.php");
  57. ?>
  58. <div id="content"><?php afflinkbar($todo,$id$lang)?> <?php echo "<h2>".$workshop_denomination."</h2>"?>
  59. <form id="supworkshop" action="<?php echo $_SERVER['SCRIPT_NAME']?>"
  60.     method="post">
  61. <div class="info" id="truetransfert1"><?php echo _t('workshop','sup_workshop_warning')?>
  62. </div>
  63. <div><input name="id" type="hidden" value="<?php echo $id?>" /> <input
  64.     name="rub" type="hidden" value="<?php echo $rub?>" id="rub" /> <input
  65.     name="todo" type="hidden" value="<?php echo $todo?>" id="todo" /> <?php echo cancel_button($rub_link."&amp;todo=det&amp;id=".$id)?>
  66. <input name="valider" type="submit"
  67.     value="<?php echo _t('btn','valid'?>" class="button" id="valider" />
  68. </div>
  69. </form>
  70. </div>
  71. <?php include_once($dir."/help.php")?></div>

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