Subversion Repositories ALCASAR

Rev

Rev 703 | Go to most recent revision | Blame | Last modification | View Log

<?php
/*


*/
/********************************************************************
*                                               FICHIERS REQUIS                                                         *
*********************************************************************/
require_once('includes/defines.inc.php');
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');

/********************************************************************
*                               APPLIQUATION DES MISES A JOURS                                          *
*********************************************************************/

/********************************************************************
*                                               CHOIX DE LA LANGUE                                                      *
*********************************************************************/

/********************************************************************
*       CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION                   *
*********************************************************************/

/********************************************************************
*                               TEST DES FICHIERS DE CONFIGURATION                                      *
*********************************************************************/

/********************************************************************
*                               PARSING DES FICHIERS DE CONFIGURATION                           *
*********************************************************************/

/********************************************************************
*                                               AFFICHAGE DE LA PAGE                                            *
*********************************************************************/
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
<html>
<head>
<title>Activity page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- include default CSS -->
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
<!-- include JQUERY UI CSS -->
<link type="text/css"  rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css">
<!-- include tablesorter CSS -->
<link type="text/css"  rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/tablesorter-blue/style.css">
<!-- include custom page CSS -->
<style type="text/css">

</style>
<!-- include JQUERY -->
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
<!-- include JQUERY UI -->
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.tablesorter.min.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.dataTables.min.js"></script>
<!-- include page javascript -->
<script type="text/javascript">
        var table_data_lang = {
                "sProcessing": "Patientez...",
                "sLengthMenu": "Afficher _MENU_ enregistrements",
                "sZeroRecords": "Aucun enregistrement disponible.",
                "sInfo": "_START_ à _END_ sur _TOTAL_ enregistrements",
                "sInfoEmpty": "0 à 0 sur 0 enregistrement",
                "sInfoFiltered": "(Filtré à partir de _MAX_  enregistrements)",
                "sInfoPostFix": "",
                "sSearch": "Recherche : ",
                "sUrl": "",
                "oPaginate": {
                        "sFirst":    "Première page",
                        "sPrevious": "Page précédente",
                        "sNext":     "Page suivante",
                        "sLast":     "Dernière page"
                }
        };
        
        $(document).ready(function(){
                // buttons
                $( "button, input:submit, input:button, input:reset").button();
                // Directories table            
                $('#activity_table').dataTable(
                {
                        // fonction suivante permet d'avoir une colone numérotée dynamiquement (non triable)
                        "fnDrawCallback": function ( oSettings ) {
                                /* Need to redo the counters if filtered or sorted */
                                if ( oSettings.bSorted || oSettings.bFiltered )
                                {
                                        for ( var i=0, iLen=oSettings.aiDisplay.length ; i<iLen ; i++ )
                                        {
                                                $('td:eq(0)', oSettings.aoData[ oSettings.aiDisplay[i] ].nTr ).html( i+1 );
                                        }
                                }
                        },
                        "aoColumnDefs": [
                                { "bSortable": false, "aTargets": [ 0 ] }
                        ],
                        "aaSorting": [[ 1, 'asc' ]]
                        //fin                   
                        ,"oLanguage": table_data_lang
                });
        });
</script>
</head>
<body>
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                <span class="ui-dialog-title" id="ui-dialog-title-dialog">ACTIVITY PAGE</span>
        </div>
        <br />
        Activité sur le réseau de consultation.<br />
        Cette page est rafraichie toutes les 30 secondes.<br />
        <font color="red">Fonctions prochainement disponibles.</font><br />

        <div>
        <table id="activity_table" cellspacing="1" class="tablesorter" border="0" width="100%">
                <thead>
                        <tr>
                                <th width="20">#</th><th width="200">Adresse IP</th><th width="100">Adresse MAC</th><th>Usager</th><th>Actions</th>
                        </tr>
                </thead>
                <tfoot>
                        <tr>
                                <th width="20">#</th><th width="200">Adresse IP</th><th width="100">Adresse MAC</th><th>Usager</th><th>Actions</th>
                        </tr>
                </tfoot>
                <tbody>
                <?php
                /*
                foreach ($groups as $group){
                        echo "<tr><td></td><td>".$group['name']."</td><td>".$group['nb_users']."</td><td><font color=red>ND</font></td></tr>";
                }
                */
                ?>
                </tbody>
        </table>
        </div>
</body>
</html>

Generated by GNU Enscript 1.6.6.