Subversion Repositories ALCASAR

Rev

Rev 602 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 602 Rev 610
Line 3... Line 3...
3
 
3
 
4
 
4
 
5
*/
5
*/
6
require_once('includes/defines.inc.php');
6
require_once('includes/defines.inc.php');
7
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
7
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
8
//include(ALCASAR_ADMIN_PATH_LIB.'/user.class.php');
-
 
9
include(ALCASAR_ADMIN_PATH_LIB.'/radiusMysqlUser.class.php');
8
require_once(ALCASAR_ADMIN_PATH_LIB.'/radiusMysqlUser.class.php');
10
 
9
 
11
$options['fields'] = "*";
10
$options['fields'] = "*";
12
/*
-
 
13
$list_users = new user();
-
 
14
$users = $list_users->find($options);
-
 
15
*/
-
 
16
$users = radiusMysqlUser::find($options);
11
$users = radiusMysqlUser::find($options);
17
 
12
 
-
 
13
//a faire
-
 
14
$vouchers = array();
-
 
15
$models = array();
-
 
16
 
18
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
17
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
19
<html>
18
<html>
20
<head>
19
<head>
21
<title>Users page</title>
20
<title>Users page</title>
22
<!-- include default CSS -->
21
<!-- include default CSS -->
Line 117... Line 116...
117
		"aaSorting": [[ 1, 'asc' ]]
116
		"aaSorting": [[ 1, 'asc' ]]
118
		//fin
117
		//fin
119
		,"oLanguage": table_data_lang
118
		,"oLanguage": table_data_lang
120
		});
119
		});
121
		$('#vouchers_table_filter').after('<div style="float:left"><a href="javascript:alert(\'Fonction prochainement dispobible.\');" title="Recherche avancée">Avancée</a></div>');
120
		$('#vouchers_table_filter').after('<div style="float:left"><a href="javascript:alert(\'Fonction prochainement dispobible.\');" title="Recherche avancée">Avancée</a></div>');
-
 
121
		
-
 
122
		
-
 
123
		$('#models_table').dataTable({
-
 
124
		
-
 
125
		// fonction suivante permet d'avoir une colone numérotée dynamiquement (non triable)
-
 
126
		"fnDrawCallback": function ( oSettings ) {
-
 
127
			/* Need to redo the counters if filtered or sorted */
-
 
128
			if ( oSettings.bSorted || oSettings.bFiltered )
-
 
129
			{
-
 
130
				for ( var i=0, iLen=oSettings.aiDisplay.length ; i<iLen ; i++ )
-
 
131
				{
-
 
132
					$('td:eq(0)', oSettings.aoData[ oSettings.aiDisplay[i] ].nTr ).html( i+1 );
-
 
133
				}
-
 
134
			}
-
 
135
		},
-
 
136
		"aoColumnDefs": [
-
 
137
			{ "bSortable": false, "aTargets": [ 0 ] }
-
 
138
		],
-
 
139
		"aaSorting": [[ 1, 'asc' ]]
-
 
140
		//fin
-
 
141
		,"oLanguage": table_data_lang
-
 
142
		});
122
	});
143
	});
123
</script>
144
</script>
124
</head>
145
</head>
125
<body>
146
<body>
126
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
147
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
Line 129... Line 150...
129
<br />
150
<br />
130
<div id="tabs-users">
151
<div id="tabs-users">
131
	<ul>
152
	<ul>
132
		<li><a href="#tabs1">Usagers</a></li>
153
		<li><a href="#tabs1">Usagers</a></li>
133
		<li><a href="#tabs2">Vouchers</a></li>
154
		<li><a href="#tabs2">Vouchers</a></li>
134
		<li><a href="#tabs3">Profils</a></li>
155
		<li><a href="#tabs3">Modèles</a></li>
135
	</ul>
156
	</ul>
136
	<div id="tabs1">
157
	<div id="tabs1">
137
		<div>
158
		<div>
138
			Un usager est un utilisateur standard de votre réseau de consultation.<br>
159
			Un usager est un utilisateur standard de votre réseau de consultation.<br>
139
			<font color="red">ATTENTION POUR DEMONSTRATION DES OPTIONS A UTILISER. Données du serveur RADIUS traitées (tri, pagination) par la page dans l'exemple , gérées par le serveur (AJAX) en production</font>
160
			<font color="red">ATTENTION POUR DEMONSTRATION DES OPTIONS A UTILISER. Données du serveur RADIUS traitées (tri, pagination) par la page dans l'exemple , gérées par le serveur (AJAX) en production</font>
Line 184... Line 205...
184
			<tr>
205
			<tr>
185
				<th width="20">#</th>
206
				<th width="20">#</th>
186
				<th>Vouchers</th>
207
				<th>Vouchers</th>
187
				<th>Description</th>
208
				<th>Description</th>
188
				<th>Nom complet (identifier la personne)</th>
209
				<th>Nom complet (identifier la personne)</th>
189
				<th>Date validitée</th>
210
				<th width="100">Date validitée</th>
190
			</tr>
211
			</tr>
191
		</thead>
212
		</thead>
192
		<tfoot>
213
		<tfoot>
193
			<tr>
214
			<tr>
194
				<th width="20">#</th>
215
				<th width="20">#</th>
195
				<th>Vouchers</th>
216
				<th>Vouchers</th>
196
				<th>Description</th>
217
				<th>Description</th>
197
				<th>Nom complet (identifier la personne)</th>
218
				<th>Nom complet (identifier la personne)</th>
198
				<th>Date validitée</th>
219
				<th width="100">Date validitée</th>
199
			</tr>
220
			</tr>
200
		</tfoot>
221
		</tfoot>
201
		<tbody>
222
		<tbody>
202
		<!--
223
		<?php 
203
			<tr><td>1</td><td><a href="user.php">cfjdjpjsdpajdazpjpaz</a></td><td><br /></td><td><br /></td><td><br /></td></tr>
-
 
204
			<tr><td>2</td><td>cfjdjpjsdpajdazpjpaz</td><td><br /></td><td><br /></td><td><br /></td></tr>
-
 
205
			<tr><td>3</td><td>casas456defe5zsd6saz</td><td><br /></td><td><br /></td><td><br /></td></tr>
224
		foreach ($vouchers as $voucher){
206
			<tr><td>4</td><td>cfjdjpjsdddzd54zsd5q</td><td><br /></td><td><br /></td><td><br /></td></tr>
-
 
207
			<tr><td>5</td><td>cfd5d1s5d5df5fzpjpaz</td><td><br /></td><td><br /></td><td><br /></td></tr>
225
			echo "<tr><td></td><td>".$voucher['name']."</td><td>".$voucher['description']."</td><td>".$voucher['user']."</td><td>".$voucher['validity']."</td></tr>";
-
 
226
		}
208
		-->
227
		?>
209
		</tbody>
228
		</tbody>
210
		</table>
229
		</table>
211
	</div>
230
	</div>
212
	<div id="tabs3">
231
	<div id="tabs3">
213
		<div>
232
		<div>
214
		Afin de gagner du temps dans la création des comptes usagers et vouchers, vous avez la possibilité de prédéfinir des profils de création de compte.<br>
233
		Afin de gagner du temps dans la création des comptes usagers et vouchers, vous avez la possibilité de prédéfinir des modèles de création de compte.<br>
215
		<font color="red">PROCHAINEMENT DISPONIBLE</font>
234
		<font color="red">PROCHAINEMENT DISPONIBLE</font>
216
		</div>
235
		</div>
217
		<br>
236
		<br>
-
 
237
		<div style="float:right;">
-
 
238
			<form name="newModelform">
-
 
239
				<input type="button" value="Nouveau modèle">
-
 
240
			</form>
-
 
241
		</div>
-
 
242
		<br>
-
 
243
		<table id="models_table" cellspacing="1" class="tablesorter" border="0" width="100%">
-
 
244
		<thead>
-
 
245
			<tr>
-
 
246
				<th width="20px">#</th>
-
 
247
				<th>Modèle</th>
-
 
248
				<th>Description</th>
-
 
249
			</tr>
-
 
250
		</thead>
-
 
251
		<tfoot>
-
 
252
			<tr>
-
 
253
				<th width="20px">#</th>
-
 
254
				<th>Modèle</th>
-
 
255
				<th>Description</th>
-
 
256
			</tr>
-
 
257
		</tfoot>
-
 
258
		<tbody>
-
 
259
		<?php
-
 
260
		foreach ($models as $model){
-
 
261
			echo "<tr><td></td><td>".$model['name']."</td><td>".$model['description']."</td></tr>";
-
 
262
		}
-
 
263
		?>
-
 
264
		</tbody>
-
 
265
		</table>
218
	</div>
266
	</div>
219
</div>
267
</div>
220
</body>
268
</body>
221
</html>
269
</html>
222
 
270