1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<?php
session_start();
if (! isset($_SESSION['login']))
{
echo '<meta http-equiv="refresh" content="0; url=index.php" />';
}
include('classes/Cutilisateur.php');
include('classes/Cstage.class.php');
include ('fonction/fonction.php');
$db= fconnect();
include ('templates/tpl_index.php');
include ('templates/tpl_connecte.php');
$vetat=0;
$vlibelle="Liste de tous les stages";
$_SESSION['vetat']=$vetat;
$_SESSION['libelle']=$vlibelle;
?>
<script type="text/javascript">
$(function()
{
critereetat=<?php echo $vetat ;?>;
var oTable = $('#example').dataTable(
{
"iDisplayLength":"10",
"bScrollCollapse":true,
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bServerSide": true,
"sAjaxSource": "controlleur/sourcepdo_stage.php",
"fnServerParams":function(aoData)
{
aoData.push ({"name":"c_etat","value":critereetat});
},
"oLanguage": { "sUrl": "frstage_txt.txt"
}
} );
$("#recharger").click(function()
{
oTable.fnDraw();
});
});
</script>
<?php
echo '<body>';
echo '<table id="example">';
echo '<thead>';
echo '<tr>';
echo '<th>Entete1</th>';
echo '<th>Entete2</th>';
echo '</thead>';
echo '<tbody>';
echo '</table>';
echo </body>';
echo '</html>';
?> |
Partager