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('video');
}
extract(Recherche::getRecherche('video',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/video.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 "Vidéo"</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">Vidéo</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 videoCreated, videoNom, categorieNom_fr, videoId, videoLangue, videoImage FROM formation_video
INNER JOIN formation_categorie ON categorieId = videoCategorie ";
if(!empty($recherche))
$requete .= " WHERE videoNom LIKE '%$recherche%' ";
$requete .= " ORDER BY videoId DESC
LIMIT $debut, 50 ";
$sql = $bdd->query($requete);
if($sql->rowCount() == 0){
echo'<tr>';
echo'<td colspan="5">Aucune formation "Vidéo"</td>';
echo'</tr>';
}
while($data = $sql->fetchObject()){
echo '<tr>';
echo '<td class="left">';
echo '<img src="'.BASEFRONT.'img/formation/video/miniature/'.$data->videoImage.'" class="imgLeft" />';
echo '<p class="created">Ajouté le : '.date("d/m/Y",$data->videoCreated).'</p>';
echo '<p><strong>'.$data->videoNom.'</strong></p>';
echo '</td>';
echo'<td><img src="'.BASEADMIN.'img/langue/'.$data->videoLangue.'.jpg"/></td>';
echo '<td>'.utf8_encode($data->categorieNom_fr).'</td>';
echo '<td><a href="'.BASEADMIN.'video/viewVideo.php?formation='.$data->videoId.'" title="Aperçu de la formation"><img src="'.BASEADMIN.'img/icones/afficher.png"/></a></td>';
echo '<td><a href="'.BASEADMIN.'video/editVideo.php?formation='.$data->videoId.'" title="Modifier la formation"><img src="'.BASEADMIN.'img/icones/modifier.png"/></a></td>';
echo'</tr>';
}
?>
</table>
<div id="navigation">
<?php
$requete = "SELECT COUNT(videoId) AS total FROM formation_video ";
if(!empty($recherche))
$requete .= " WHERE videoNom LIKE '%$recherche%' ";
Tool::pagination($requete,'video/managerVideo',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