Source for file sup.php
Documentation is available at sup.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
$link_det= $rub_link. "&todo=det&id=";
$link_det2= $rub_link. "&todo=det&id=";
$link_sup= $rub_link. "&todo=sup&id=";
$link_mod= $rub_link. "&todo=mod&id=";
if(!isset ($_GET['id']) && !isset ($_POST['id'])) {
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
if(isset ($_POST['valider'])) {
$link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo;
$result= $sdi_object->DeleteSdi($id, $sql_object);
if($result) header("Location: ". $link_confirm);
//$data_sdii=$sdi_object->GetInfoSdi($id, $sql_object);
$data_sdii = $sql_object -> DBSelect($req_sdii);
$navtitle= _t('sdi','sup'). " : ". $data_sdii[0]['sdii_name'];
$result_Allsditheme= $sql_object->DBSelect($req_allsditheme);
$theme_test= $result_Allsditheme[0]['countsdi'];
<li><a href="index.php" class="chemin_home"> <?php echo _t('way','home') ?></a></li>
<li><a href=" <?php echo $rub_link; ?>" id="chemin_ <?php echo $rub; ?>" class="chemin_rub"> <?php echo _t('menu','sdi')?></a></li>
<li><span> <?php echo formatnavTitle($navtitle) ; ?></span></li>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer">
include_once($dir. "/menurub.php");
<h2> <?php echo formatTitleh2($data_sdii[0]['sdii_name']); ?></h2>
<form id="supyp" action=" <?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
<?php echo '<p>'. _t('sdi','sup_sdi_warning'). '</p>'; ?>
<?php echo '<p>'. _t('sdi','sup_sdi_warning2'). '</p>'; ?>
echo '<p>'. _t('sdi','sup_sdi_warning3'). '</p>';
<input name="id" type="hidden" value=" <?php echo $id; ?>" />
<input name="rub" type="hidden" value=" <?php echo $rub; ?>" id="rub" />
<input name="todo" type="hidden" value=" <?php echo $todo; ?>" id="todo" />
<input name="valider" type="submit" value=" <?php echo _t('btn','valid') ?>" class="button" id="valider" />
<?php include_once($dir. "/help.php"); ?></div>
|