Файловый менеджер - Редактировать - /home/asmplong/www/multi.php
Назад
<?php include('inc.top.php'); ?> <div class="solutions"> <div class="container"> <div class="row"> <div class="col-lg-12 p-5"> <?php echo $content; ?> </div> </div> </div> <div class="bg-white pt-5 pb-2"> <div class="container"> <h2 class="text-center">Actualités</h2> <div class="row"> <?php if(isset($_SESSION['member_email'])) { $req_actu = mysqli_query($connect,"SELECT *, YEAR(date) AS year FROM ".$db_prefixe."actu WHERE statut='1' ORDER BY date DESC LIMIT 3"); } else { $req_actu = mysqli_query($connect,"SELECT *, YEAR(date) AS year FROM ".$db_prefixe."actu WHERE categ='1' AND statut='1' ORDER BY date DESC LIMIT 3"); } $row_actu = mysqli_num_rows($req_actu); while($data_actu = mysqli_fetch_array($req_actu)) { if($data_actu['year'] <= '2017') { $id_actu = $data_actu['id']; $title = utf8_encode(ucfirst($data_actu['titre'])); $categ = $tab_categ_news[$data_actu['categ']]; $categ_clean = $tab_categ_news_clean[$data_actu['categ']]; $desc = utf8_encode($data_actu['description']); $date = $data_actu['date_event']; $photo = $data_actu['photo']; } else { $id_actu = $data_actu['id']; $title = ucfirst($data_actu['titre']); $categ = $tab_categ_news[$data_actu['categ']]; $categ_clean = $tab_categ_news_clean[$data_actu['categ']]; $desc = $data_actu['description']; $date = $data_actu['date_event']; $photo = $data_actu['photo']; } echo '<div class="col-lg-4 actu-multi"><div class="row actu-resume">'; if($photo != "") { ?> <div class="col-md-4 p-0"> <a href="actualites/<?php echo Clean($title).'_'.$id_actu.'.html'; ?>" title="<?php echo $title; ?>" class="actu_img fx-zoom"><img src="img/<?php echo $id_actu; ?>/mini/<?php echo $photo; ?>" alt="<?php echo $title; ?>" class="img-fluid" /></a> </div> <?php } else { ?> <div class="col-md-4 p-0"> <a href="actualites/<?php echo Clean($title).'_'.$id_actu.'.html'; ?>" title="<?php echo $title; ?>" class="actu_img fx-zoom"><img src="assets/img/actu_none.gif" alt="<?php echo $title; ?>" class="img-fluid" /></a> </div> <?php } echo '<div class="col-md-8"><h3><a href="actualites/'.Clean($title).'_'.$id_actu.'.html" title="'.$title.'">'.$title.'</a></h3> <p>'.$desc.'</p><a href="" title=""></a></div></div></div>'; } ?> </div> <div class="row mt-3 text-right"> <div class="col-md-12 text-right"> <a href="actualites.html" title="" class="btn">Toutes les actualités</a> </div> </div> </div> <!-- //END DIV CONTAINER --> </div> </div> <?php include('inc.foot.php'); ?>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка