Subversion Repositories ALCASAR

Rev

Rev 703 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
593 stephane 1
<?php
2
/*
3
 
4
 
5
*/
703 stephane 6
/********************************************************************
7
*						FICHIERS REQUIS								*
8
*********************************************************************/
593 stephane 9
require_once('includes/defines.inc.php');
10
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
703 stephane 11
 
12
/********************************************************************
13
*				APPLIQUATION DES MISES A JOURS						*
14
*********************************************************************/
15
 
16
/********************************************************************
17
*						CHOIX DE LA LANGUE							*
18
*********************************************************************/
19
 
20
/********************************************************************
21
*	CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION			*
22
*********************************************************************/
23
 
24
/********************************************************************
25
*				TEST DES FICHIERS DE CONFIGURATION					*
26
*********************************************************************/
27
 
28
/********************************************************************
29
*				PARSING DES FICHIERS DE CONFIGURATION				*
30
*********************************************************************/
31
 
32
/********************************************************************
33
*						AFFICHAGE DE LA PAGE						*
34
*********************************************************************/
593 stephane 35
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
36
<html>
37
<head>
38
<title>Activity page</title>
703 stephane 39
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
596 stephane 40
<!-- include default CSS -->
593 stephane 41
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
596 stephane 42
<!-- include JQUERY UI CSS -->
43
<link type="text/css"  rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css">
720 stephane 44
<!-- include tablesorter CSS -->
45
<link type="text/css"  rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/tablesorter-blue/style.css">
596 stephane 46
<!-- include custom page CSS -->
47
<style type="text/css">
48
 
49
</style>
50
<!-- include JQUERY -->
51
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
52
<!-- include JQUERY UI -->
53
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>
720 stephane 54
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.tablesorter.min.js"></script>
55
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.tablesorter.pager.js"></script>
56
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.dataTables.min.js"></script>
596 stephane 57
<!-- include page javascript -->
58
<script type="text/javascript">
720 stephane 59
	var table_data_lang = {
60
		"sProcessing": "Patientez...",
61
		"sLengthMenu": "Afficher _MENU_ enregistrements",
62
		"sZeroRecords": "Aucun enregistrement disponible.",
63
		"sInfo": "_START_ à _END_ sur _TOTAL_ enregistrements",
64
		"sInfoEmpty": "0 à 0 sur 0 enregistrement",
65
		"sInfoFiltered": "(Filtré à partir de _MAX_  enregistrements)",
66
		"sInfoPostFix": "",
67
		"sSearch": "Recherche : ",
68
		"sUrl": "",
69
		"oPaginate": {
70
			"sFirst":    "Première page",
71
			"sPrevious": "Page précédente",
72
			"sNext":     "Page suivante",
73
			"sLast":     "Dernière page"
74
		}
75
	};
76
 
77
	$(document).ready(function(){
78
		// buttons
79
		$( "button, input:submit, input:button, input:reset").button();
80
		// Directories table		
81
		$('#activity_table').dataTable(
82
		{
83
			// fonction suivante permet d'avoir une colone numérotée dynamiquement (non triable)
84
			"fnDrawCallback": function ( oSettings ) {
85
				/* Need to redo the counters if filtered or sorted */
86
				if ( oSettings.bSorted || oSettings.bFiltered )
87
				{
88
					for ( var i=0, iLen=oSettings.aiDisplay.length ; i<iLen ; i++ )
89
					{
90
						$('td:eq(0)', oSettings.aoData[ oSettings.aiDisplay[i] ].nTr ).html( i+1 );
91
					}
92
				}
93
			},
94
			"aoColumnDefs": [
95
				{ "bSortable": false, "aTargets": [ 0 ] }
96
			],
97
			"aaSorting": [[ 1, 'asc' ]]
98
			//fin 			
99
			,"oLanguage": table_data_lang
100
		});
101
	});
596 stephane 102
</script>
593 stephane 103
</head>
596 stephane 104
<body>
720 stephane 105
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
106
		<span class="ui-dialog-title" id="ui-dialog-title-dialog">ACTIVITY PAGE</span>
107
	</div>
108
	<br />
109
	Activité sur le réseau de consultation.<br />
110
	Cette page est rafraichie toutes les 30 secondes.<br />
111
	<font color="red">Fonctions prochainement disponibles.</font><br />
112
 
113
	<div>
114
	<table id="activity_table" cellspacing="1" class="tablesorter" border="0" width="100%">
115
		<thead>
116
			<tr>
117
				<th width="20">#</th><th width="200">Adresse IP</th><th width="100">Adresse MAC</th><th>Usager</th><th>Actions</th>
118
			</tr>
119
		</thead>
120
		<tfoot>
121
			<tr>
122
				<th width="20">#</th><th width="200">Adresse IP</th><th width="100">Adresse MAC</th><th>Usager</th><th>Actions</th>
123
			</tr>
124
		</tfoot>
125
		<tbody>
126
		<?php
127
		/*
128
		foreach ($groups as $group){
129
			echo "<tr><td></td><td>".$group['name']."</td><td>".$group['nb_users']."</td><td><font color=red>ND</font></td></tr>";
130
		}
131
		*/
132
		?>
133
		</tbody>
134
	</table>
135
	</div>
593 stephane 136
</body>
137
</html>