Source for file sup.php
Documentation is available at sup.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
include_once("../lib/lib_common.php");
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
$mask_mass_del= "style=\"visibility:hidden;\"";
$mask_mass_mod= "style=\"visibility:hidden;\"";
$form_theme_transfert=- 1;
if(isset ($_POST['valider'])) {
if(isset ($_POST['sup_method'])) {
$sup_method= $_POST['sup_method'];
if($sup_method== 'delete') {
$mask_mass_del= "style=\"visibility:visible;\"";
$mask_del_meth= "checked=\"checked\"";
$form_theme_transfert=- 1;
if($sup_method== 'modify') {
$mask_mod_meth= "checked=\"checked\"";
$mask_mass_mod= "style=\"visibility:visible;;\"";
if($_POST['transfert_theme']==- 1) $integrity= $GLOBALS['lang']['theme']['sup_notheme'];
else $form_theme_transfert= $_POST['transfert_theme'];
if($_SESSION['securityaction']!= md5($_POST['securitycode'])) {
$integrity= $GLOBALS['lang']['security']['message'];
$theme_object= new theme;
$link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo;
$result= $theme_object->DeleteTheme($id, $sql_object, $type, $form_theme_transfert);
$integrity= $GLOBALS['lang']['theme']['sup_nomethod'];
include_once("../lib/input_helpers.php");
$data= $sql_object->DBSelect($req_list);
// select-box des thèmes
$select_theme= ThemeSelectBox($data, "transfert_theme", $form_theme_transfert);
$result1= $sql_object->DBSelect($req_det);
$theme_name= formatText($result1[0]['theme_name'],'2HTML');
<a href="index.php"> <? echo $GLOBALS['lang']['way']['home'] ?></a>
<a href=" <?php echo $rub_link; ?>"> <? echo $GLOBALS['lang']['menu']['theme']?></a>
include_once("quickicons.php");
<div class="contentcontainer">
include_once($dir. "/menurub.php");
<form id="suptheme" action=" <?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
<input type="radio" name="sup_method" id="sup_method_del" value="delete" onclick="ShowSuppInfo('mass_delete');" <?php echo $mask_del_meth; ?>/>
<? echo $GLOBALS['lang']['theme']['sup_massd']; ?>
<input type="radio" name="sup_method" id="sup_method_mod" value="modify" onclick="ShowSuppInfo('mass_modify');" <?php echo $mask_mod_meth; ?>/>
<? echo $GLOBALS['lang']['theme']['sup_massm']; ?>
<p id="transfert" <? echo $mask_mass_mod; ?>>
<label for="transfert_theme" > <? echo $GLOBALS['lang']['theme']['sup_transfert']; ?></label>
<?php echo $select_theme; ?>
<label for="securitycode" > <? echo $GLOBALS['lang']['security']['info']; ?></label>
<img src="../lib/securitycode.php" alt=" <? echo $GLOBALS['lang']['security']['info2']; ?>" id="securityimg" />
<input type="text" class="shorttextfield" id="securitycode" maxlength="5" name="securitycode" />
echo "<div class=\"info\" id=\"mass_delete\" ". $mask_mass_del. ">\n";
echo "\t". $GLOBALS['lang']['theme']['sup_mass_delete']. "\n";
echo "<div class=\"info\" id=\"mass_modify\" ". $mask_mass_mod. ">\n";
echo "\t". $GLOBALS['lang']['theme']['sup_mass_modify']. "\n";
<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=" <? echo $GLOBALS['lang']['btn']['valid'] ?>" class="button" id="valider" />
<?php include_once($dir. "/help.php"); ?>
|