File manager - Edit - /home/missmand/public_html/learning/admin/cas/managerCas.php
Back
<?php include '../lib/init.php'; Tool::verif_connect(); Auth::roleAccesAuth(array()); /* limitation de l'accès par rôle */ /* Recherche */ if(isset($_POST['addRecherche'])){ Recherche::postRecherche('cas'); } extract(Recherche::getRecherche('cas',array('recherche'))); /* Pagination variables */ $page = 1; $debut = 0; if (isset($_GET['page'])) { $page = $_GET['page']; $debut = $page-1; $debut *=50; } ?> <!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <title><?php echo TITLE ?></title> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,800italic,400,300,600,700' rel='stylesheet' type='text/css'/> <link href="<?php echo BASEADMIN ?>css/init.css" rel="stylesheet" type="text/css" /> <link href="<?php echo BASEADMIN ?>css/template.css" rel="stylesheet" type="text/css" /> <link href="<?php echo BASEADMIN ?>css/cas.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="main"> <!-- En tête --> <?php include '../include/header.php'; ?> <!-- Menu latéral --> <?php include '../include/menu.php'; ?> <div id="conteneur"> <div id="titre"> <h1>Gestion des formations "Cas Pratique"</h1> <span id="flecheTitre"></span> </div> <div class="inner"> <div id="recherche"> <form action="#" method="post"> <input type="text" name="recherche" class="medium" placeholder="Recherche" value="<?php echo $recherche ?>" /> <input type="submit" value="" name="addRecherche" id="btnRecherche"/> </form> <div class="clear"></div> </div> <?php echo flash(); ?> <table class="table"> <tr> <th width="60%" class="left">Cas pratique</th> <th width="10%">Nb chapitre(s)</th> <th width="5%">Langue</th> <th width="15%">Catégorie</th> <th width="10%" colspan="2">Actions</th> </tr> <?php $requete = "SELECT casCreated, casNom, categorieNom_fr, casId, casLangue, casImage FROM formation_cas INNER JOIN formation_categorie ON categorieId = casCategorie "; if(!empty($recherche)) $requete .= " WHERE casNom LIKE '%$recherche%' "; $requete .= " ORDER BY casId DESC LIMIT $debut, 50 "; $sql = $bdd->query($requete); if($sql->rowCount() == 0){ echo'<tr>'; echo'<td colspan="6">Aucune formation "Cas pratique"</td>'; echo'</tr>'; } while($data = $sql->fetchObject()){ echo '<tr>'; echo '<td class="left">'; echo '<img src="'.BASEFRONT.'img/formation/cas/miniature/'.$data->casImage.'" class="imgLeft" />'; echo '<p class="created">Ajouté le : '.date("d/m/Y",$data->casCreated).'</p>'; echo '<p><strong>'.$data->casNom.'</strong></p>'; echo '</td>'; echo '<td>'.Formation::countChapitre($bdd,$data->casId).'</td>'; echo'<td><img src="'.BASEADMIN.'img/langue/'.$data->casLangue.'.jpg"/></td>'; echo '<td>'.utf8_encode($data->categorieNom_fr).'</td>'; echo '<td><a href="'.BASEADMIN.'cas/managerChapitreCas.php?formation='.$data->casId.'" title="Gestion des chapitres"><img src="'.BASEADMIN.'img/icones/chapitre.png"/></a></td>'; echo '<td><a href="'.BASEADMIN.'cas/editCas.php?formation='.$data->casId.'" title="Modifier la formation"><img src="'.BASEADMIN.'img/icones/modifier.png"/></a></td>'; echo'</tr>'; } ?> </table> <div id="navigation"> <?php $requete = "SELECT COUNT(casId) AS total FROM formation_cas "; if(!empty($recherche)) $requete .= " WHERE casNom LIKE '%$recherche%' "; Tool::pagination($requete,'cas/managerCas',50,$page,$bdd); ?> </div> </div> </div> </div> <script type="text/javascript" src="<?php echo BASEADMIN ?>js/jquery.js"></script> <script type="text/javascript" src="<?php echo BASEADMIN ?>js/jquery-ui.js"></script> <script type="text/javascript" src="<?php echo BASEADMIN ?>js/script.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings