Subversion Repositories ALCASAR

Rev

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

Rev Author Line No. Line
324 richard 1
<?php
907 richard 2
//gestion de la langue
3
if (is_file("../lib/langues.php"))
4
	include("../lib/langues.php");
324 richard 5
 
6
echo <<<EOM
907 richard 7
<title>$l_user : $cn</title>
324 richard 8
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
9
</head>
10
<body>
11
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
907 richard 12
	<tr><th>$l_users_managment</th></tr>
324 richard 13
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
14
height="2"></td></tr>
15
</TABLE>
16
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
17
	<tr bgcolor="#666666"><td>
18
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
19
		<tr><td valign="middle" align="left">
20
<link rel="stylesheet" href="/css/style.css">
21
EOM;
22
if ($logged_now)
23
	print <<<EOM
24
<script Language="JavaScript">
25
<!--
26
	var start;
27
	var our_time;
28
 
29
	function startcounter() 
30
	{
31
		var start_date = new Date();
32
		start = start_date.getTime();
33
		our_time = $lastlog_session_time_jvs;
34
		showcounter();
35
	}
36
 
37
	function showcounter ()
38
	{
39
		var now_date = new Date();
40
		var diff = now_date.getTime() - start + our_time;
41
 
42
		var hours = parseInt(diff / 3600000);
43
		if(isNaN(hours)) hours = 0;
44
 
45
		var minutes = parseInt((diff % 3600000) / 60000);
46
		if(isNaN(minutes)) minutes = 0;
47
 
48
		var seconds = parseInt(((diff % 3600000) % 60000) / 1000);
49
		if(isNaN(seconds)) seconds = 0;
50
 
51
		var timeValue = " " ;
52
		timeValue += ((hours < 10) ? "0" : "") + hours;
53
		timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
54
		timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
55
 
56
		document.online.status.value = timeValue;
57
		setTimeout("showcounter()", 1000);
58
	}
59
	//-->
60
</script>
61
EOM;
62
 
63
print <<<EOM
64
<center>
925 richard 65
<table border=0 width=640 cellpadding=0 cellspacing=2>
324 richard 66
EOM;
67
 
68
include("../html/user_toolbar.html.php");
69
 
70
print <<<EOM
71
</table>
72
<br>
925 richard 73
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 74
<tr valign=top>
925 richard 75
<td width=400></td>
76
<td bgcolor="black">
324 richard 77
	<table border=0 width=100% cellpadding=2 cellspacing=0>
78
	<tr bgcolor="#907030" align=right valign=top><th>
907 richard 79
	<font color="white">$l_user : $login ($cn)</font>&nbsp;
324 richard 80
	</th></tr>
81
	</table>
82
</td></tr>
83
<tr bgcolor="black" valign=top><td colspan=2>
84
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
85
	<tr><td>
86
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
87
 
88
EOM;
89
if ($logged_now){
90
	print <<<EOM
91
	<form name="online" onSubmit="return(false);">
92
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 93
	<b>$l_connected</b>
324 richard 94
	</td><td>
95
	$lastlog_time
96
	</td></tr>
97
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 98
	<b>$l_connection_time</b>
324 richard 99
	</td><td>	
100
	<input type="text" name="status" size=10 value="$lastlog_session_time">
101
	</form>
102
	</td></tr>
103
EOM;
104
	require('../html/user_admin_userinfo.html.php');
105
 
106
}else if ($not_known)  print <<<EOM
107
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 108
	$l_user_never_login
324 richard 109
	</td><td>-
110
	</td></tr>
111
EOM;
112
else{
113
	print <<<EOM
114
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 115
	<b>$l_user_not_login_yet</b>
324 richard 116
	</td><td>-
117
	</td></tr>
118
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 119
	<b>$l_last_login</b>
324 richard 120
	</td><td>
121
	$lastlog_time
122
	</td></tr>
123
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 124
	<b>$l_connection_time</b>
324 richard 125
	</td><td>
126
	$lastlog_session_time
127
	</td></tr>
128
EOM;
129
	require('../html/user_admin_userinfo.html.php');
130
}
131
 
132
print <<<EOM
133
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 134
	<b>$l_remain_time</b>
324 richard 135
	</td><td>
136
	$msg
137
	</td></tr>
907 richard 138
<!--	<tr><td align=center bgcolor="#d0ddb0">
139
	Complete user description
324 richard 140
	</td><td>
141
	$descr
907 richard 142
	</td></tr>  -->
324 richard 143
	</table>
144
	</table>
145
</table>
146
 
147
EOM;
148
 
149
if (is_file("../lib/$config[general_lib_type]/password_check.php"))
150
	include("../lib/$config[general_lib_type]/password_check.php");
151
 
152
echo <<<EOM
153
<br>
925 richard 154
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 155
<tr valign=top>
925 richard 156
<td width=400></td>
157
<td bgcolor="black">
324 richard 158
	<table border=0 width=100% cellpadding=2 cellspacing=0>
159
	<tr bgcolor="#907030" align=right valign=top><th>
160
	<font color="white">Analyse</font>&nbsp;
161
	</th></tr>
162
	</table>
163
</td></tr>
164
<tr bgcolor="black" valign=top><td colspan=2>
165
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
166
	<tr><td>
167
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
907 richard 168
	<tr><td align=center bgcolor="#d0ddb0">&nbsp;</td><td align=center bgcolor="#d0ddb0"><b>total</b></td><td align=center bgcolor="#d0ddb0"><b>$l_monthly</b></td><td align=center bgcolor="#d0ddb0"><b>$l_weekly</b></td><td align=center bgcolor="#d0ddb0"><b>$l_daily</b></td><td align=center bgcolor="#d0ddb0"><b>$l_by_session</b></td></tr>
169
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_limit</b></td><td>$total_limit</td><td>$monthly_limit</td><td>$weekly_limit</td><td>$daily_limit</td><td>$session_limit</td></tr>
170
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_used_time</b></td><td>$tot_time</td><td>$monthly_used</td><td>$weekly_used</td><td>$daily_used</td><td>$lastlog_session_time</td></tr>
324 richard 171
	</table>
172
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
173
lign=top>
907 richard 174
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_day</b></td><td align=center bgcolor="#d0ddb0"><b>$l_daily_limit</b></td><td align=center bgcolor="#d0ddb0"><b>$l_used_time</b></td><tr>
175
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_sunday</b></td><td>$daily_limit</td><td>$used[0]</td></tr>
176
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_monday</b></td><td>$daily_limit</td><td>$used[1]</td></tr>
177
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_tuesday</b></td><td>$daily_limit</td><td>$used[2]</td></tr>
178
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_wednesday</b></td><td>$daily_limit</td><td>$used[3]</td></tr>
179
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_thursday</b></td><td>$daily_limit</td><td>$used[4]</td></tr>
180
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_friday</b></td><td>$daily_limit</td><td>$used[5]</td></tr>
181
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_saturday</b></td><td>$daily_limit</td><td>$used[6]</td></tr>
324 richard 182
	</table></table>
183
</table>
184
<br>
925 richard 185
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 186
<tr valign=top>
925 richard 187
<td width=400></td>
188
<td bgcolor="black">
324 richard 189
	<table border=0 width=100% cellpadding=2 cellspacing=0>
190
	<tr bgcolor="#907030" align=right valign=top><th>
907 richard 191
	<font color="white">$l_last7days_status</font>&nbsp;
324 richard 192
	</th></tr>
193
	</table>
194
</td></tr>
195
<tr bgcolor="black" valign=top><td colspan=2>
196
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
197
	<tr><td>
198
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
907 richard 199
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connections_number</b></td><td>
200
	$tot_conns</td></tr>
201
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_total_connections_time</b></td><td>
202
	$tot_time</td></tr>
203
<!--	<tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
204
	$tot_badlogins</td></tr> -->
205
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download</b></td><td>
206
	$tot_input</td></tr>
207
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload</b></td><td>
208
	$tot_output</td></tr>
209
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
210
	$avg_time</td></tr>
211
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
212
	$avg_input</td></tr>
213
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
214
	$avg_output</td></tr>	
324 richard 215
	</table>
216
	</table>
217
</table>
218
<br>
219
EOM;
907 richard 220
/*
324 richard 221
if ($user_info){
222
	echo <<<EOM
925 richard 223
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 224
<tr valign=top>
225
<td width=340></td>
226
<td bgcolor="black" width=250>
227
	<table border=0 width=100% cellpadding=2 cellspacing=0>
228
	<tr bgcolor="#907030" align=right valign=top><th>
229
	<font color="white">Informations personnelles</font>
230
	</th></tr>
231
	</table>
232
</td></tr>
233
<tr bgcolor="black" valign=top><td colspan=2>
234
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
235
	<tr><td>
236
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
237
	<tr>
238
	<td align=center bgcolor="#d0ddb0">
239
	<b>nom</b>
240
	</td>
241
	<td>
242
	$cn
243
	</td>
244
	</tr>
245
EOM;
246
	if ($config[general_prefered_lang] != 'en'){
247
		echo <<<EOM
248
	<tr>
249
	<td align=center bgcolor="#d0ddb0">
250
	<b>nom ($config[general_prefered_lang_name])</b>
251
	</td>
252
	<td>
253
	$cn_lang
254
	</td>
255
	</tr>
256
EOM;
257
	}
258
	echo <<<EOM
259
	<tr>
260
	<td align=center bgcolor="#d0ddb0">
261
	<b>service</b>
262
	</td>
263
	<td>
264
	$ou
265
	</td>
266
	</tr>
267
EOM;
268
	if ($config[general_prefered_lang] != 'en'){
269
		echo <<<EOM
270
	<tr>
271
	<td align=center bgcolor="#d0ddb0">
272
	<b>service ($config[general_prefered_lang_name])</b>
273
	</td>
274
	<td>
275
	$ou_lang
276
	</td>
277
	</tr>
278
EOM;
279
	}
280
	echo <<<EOM
281
	<tr>
282
	<td align=center bgcolor="#d0ddb0">
283
	<b>titre</b>
284
	</td>
285
	<td>
286
	$title
287
	</td>
288
	</tr>
289
EOM;
290
	if ($config[general_prefered_lang] != 'en'){
291
		echo <<<EOM
292
	<tr>
293
	<td align=center bgcolor="#d0ddb0">
294
	<b>title ($config[general_prefered_lang_name])</b>
295
	</td>
296
	<td>
297
	$title_lang
298
	</td>
299
	</tr>
300
EOM;
301
	}
302
	echo <<<EOM
303
	<tr>
304
	<td align=center bgcolor="#d0ddb0">
305
	<b>adresse</b>
306
	</td>
307
	<td>
308
	$address
309
	</td>
310
	</tr>
311
EOM;
312
	if ($config[general_prefered_lang] != 'en'){
313
		echo <<<EOM
314
	<tr>
315
	<td align=center bgcolor="#d0ddb0">
316
	<b>adresse ($config[general_prefered_lang_name])</b>
317
	</td>
318
	<td>
319
	$address_lang
320
	</td>
321
	</tr>
322
EOM;
323
	}
324
	echo <<<EOM
325
	<tr>
326
	<td align=center bgcolor="#d0ddb0">
327
	<b>adresse personnelle</b>
328
	</td>
329
	<td>
330
	$homeaddress
331
	</td>
332
	</tr>
333
EOM;
334
	if ($config[general_prefered_lang] != 'en'){
335
		echo <<<EOM
336
	<tr>
337
	<td align=center bgcolor="#d0ddb0">
338
	<b>adresse personnelle ($config[general_prefered_lang_name])</b>
339
	</td>
340
	<td>
341
	$homeaddress_lang
342
	</td>
343
	</tr>
344
EOM;
345
	}
346
	echo <<<EOM
347
	<tr>
348
	<td align=center bgcolor="#d0ddb0">
349
	<b>t&eacute;l&eacute;phone</b>
350
	</td>
351
	<td>
352
	$telephonenumber
353
	</td>
354
	</tr>
355
	<tr>
356
	<td align=center bgcolor="#d0ddb0">
357
	<b>t&eacute;l&eacute;phone personnel</b>
358
	</td>
359
	<td>
360
	$homephone
361
	</td>
362
	</tr>
363
	<tr>
364
	<td align=center bgcolor="#d0ddb0">
365
	<b>mobile</b>
366
	</td>
367
	<td>
368
	$mobile
369
	</td>
370
	</tr>
371
	<tr>
372
	<td align=center bgcolor="#d0ddb0">
373
	<b>fax</b>
374
	</td>
375
	<td>
376
	$fax
377
	</td>
378
	</tr>
379
	<tr>
380
	<td align=center bgcolor="#d0ddb0">
381
	<b>home page</b>
382
	</td>
383
	<td>
384
	<a href="$url" target=userpage onclick=window.open("$url","userpage","width=1000,height=550,toolbar=no,scrollbars=yes,resizable=yes") title="Aller à&agrave; la page d'accueil de l'utilisateur">$url</a>
385
	</td>
386
	</tr>
387
	<tr>
388
	<td align=center bgcolor="#d0ddb0">
389
	<b>e-mail</b>
390
	</td>
391
	<td>
392
	<a href="mailto: $mail" title="Envoyer un email">$mail</a>
393
	</td>
394
	</tr>
395
	<tr>
396
	<td align=center bgcolor="#d0ddb0">
397
	<b>e-mail alias</b>
398
	</td>
399
	<td>
400
	<a href="mailto: $mailalt" title="Envoyer un email">$mailalt</a>
401
	</td>
402
	</tr>
403
	</table>
404
	</table>
405
</table>
406
 
407
EOM;
408
}
907 richard 409
 */
410
	print <<<EOM
411
</tr></table>
412
EOM;
324 richard 413
if ($logged_now)
414
	print <<<EOM
415
<script Language="JavaScript">
416
	startcounter();
417
</script>
418
EOM;
419
?>
420
</body>
421
</html>