Hacked By AnonymousFox
<?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('flash');
}
extract(Recherche::getRecherche('flash',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/flash.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 "Module Flash"</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="55%" class="left">Module Flash</th>
<th width="5%">Langue</th>
<th width="15%">Catégorie</th>
<th width="15%">Aperçu</th>
<th width="10%">Actions</th>
</tr>
<?php
$requete = "SELECT flashCreated, flashNom, categorieNom_fr, flashId, flashLangue, flashImage FROM formation_flash
INNER JOIN formation_categorie ON categorieId = flashCategorie ";
if(!empty($recherche))
$requete .= " WHERE flashNom LIKE '%$recherche%' ";
$requete .= " ORDER BY flashId DESC
LIMIT $debut, 50 ";
$sql = $bdd->query($requete);
if($sql->rowCount() == 0){
echo'<tr>';
echo'<td colspan="5">Aucune formation "Module Flash"</td>';
echo'</tr>';
}
while($data = $sql->fetchObject()){
echo '<tr>';
echo '<td class="left">';
echo '<img src="'.BASEFRONT.'img/formation/flash/miniature/'.$data->flashImage.'" class="imgLeft" />';
echo '<p class="created">Ajouté le : '.date("d/m/Y",$data->flashCreated).'</p>';
echo '<p><strong>'.$data->flashNom.'</strong></p>';
echo '</td>';
echo'<td><img src="'.BASEADMIN.'img/langue/'.$data->flashLangue.'.jpg"/></td>';
echo '<td>'.utf8_encode($data->categorieNom_fr).'</td>';
echo '<td><a href="'.BASEADMIN.'flash/viewFlash.php?formation='.$data->flashId.'" title="Aperçu de la formation"><img src="'.BASEADMIN.'img/icones/afficher.png"/></a></td>';
echo '<td><a href="'.BASEADMIN.'flash/editFlash.php?formation='.$data->flashId.'" title="Modifier la formation"><img src="'.BASEADMIN.'img/icones/modifier.png"/></a></td>';
echo'</tr>';
}
?>
</table>
<div id="navigation">
<?php
$requete = "SELECT COUNT(flashId) AS total FROM formation_flash ";
if(!empty($recherche))
$requete .= " WHERE flashNom LIKE '%$recherche%' ";
Tool::pagination($requete,'flash/managerFlash',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>
Hacked By AnonymousFox1.0, Coded By AnonymousFox