Subversion Repositories ALCASAR

Rev

Rev 324 | Rev 925 | 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>
65
<table border=0 width=550 cellpadding=0 cellspacing=0>
66
<tr valign=top>
67
<!--<td align=center><img src="images/title2.gif"></td>-->
68
</tr>
69
</table>
70
<table border=0 width=400 cellpadding=0 cellspacing=2>
71
EOM;
72
 
73
include("../html/user_toolbar.html.php");
74
 
75
print <<<EOM
76
</table>
77
<br>
907 richard 78
<table border=0 width=640 cellpadding=1 cellspacing=1>
324 richard 79
<tr valign=top>
80
<td width=340></td>
81
<td bgcolor="black" width=250>
82
	<table border=0 width=100% cellpadding=2 cellspacing=0>
83
	<tr bgcolor="#907030" align=right valign=top><th>
907 richard 84
	<font color="white">$l_user : $login ($cn)</font>&nbsp;
324 richard 85
	</th></tr>
86
	</table>
87
</td></tr>
88
<tr bgcolor="black" valign=top><td colspan=2>
89
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
90
	<tr><td>
91
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
92
 
93
EOM;
94
if ($logged_now){
95
	print <<<EOM
96
	<form name="online" onSubmit="return(false);">
97
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 98
	<b>$l_connected</b>
324 richard 99
	</td><td>
100
	$lastlog_time
101
	</td></tr>
102
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 103
	<b>$l_connection_time</b>
324 richard 104
	</td><td>	
105
	<input type="text" name="status" size=10 value="$lastlog_session_time">
106
	</form>
107
	</td></tr>
108
EOM;
109
	require('../html/user_admin_userinfo.html.php');
110
 
111
}else if ($not_known)  print <<<EOM
112
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 113
	$l_user_never_login
324 richard 114
	</td><td>-
115
	</td></tr>
116
EOM;
117
else{
118
	print <<<EOM
119
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 120
	<b>$l_user_not_login_yet</b>
324 richard 121
	</td><td>-
122
	</td></tr>
123
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 124
	<b>$l_last_login</b>
324 richard 125
	</td><td>
126
	$lastlog_time
127
	</td></tr>
128
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 129
	<b>$l_connection_time</b>
324 richard 130
	</td><td>
131
	$lastlog_session_time
132
	</td></tr>
133
EOM;
134
	require('../html/user_admin_userinfo.html.php');
135
}
136
 
137
print <<<EOM
138
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 139
	<b>$l_remain_time</b>
324 richard 140
	</td><td>
141
	$msg
142
	</td></tr>
907 richard 143
<!--	<tr><td align=center bgcolor="#d0ddb0">
144
	Complete user description
324 richard 145
	</td><td>
146
	$descr
907 richard 147
	</td></tr>  -->
324 richard 148
	</table>
149
	</table>
150
</table>
151
 
152
EOM;
153
 
154
if (is_file("../lib/$config[general_lib_type]/password_check.php"))
155
	include("../lib/$config[general_lib_type]/password_check.php");
156
 
157
echo <<<EOM
158
<br>
907 richard 159
<table border=0 width=640 cellpadding=1 cellspacing=1>
324 richard 160
<tr valign=top>
161
<td width=340></td>
162
<td bgcolor="black" width=250>
163
	<table border=0 width=100% cellpadding=2 cellspacing=0>
164
	<tr bgcolor="#907030" align=right valign=top><th>
165
	<font color="white">Analyse</font>&nbsp;
166
	</th></tr>
167
	</table>
168
</td></tr>
169
<tr bgcolor="black" valign=top><td colspan=2>
170
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
171
	<tr><td>
172
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
907 richard 173
	<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>
174
	<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>
175
	<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 176
	</table>
177
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
178
lign=top>
907 richard 179
	<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>
180
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_sunday</b></td><td>$daily_limit</td><td>$used[0]</td></tr>
181
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_monday</b></td><td>$daily_limit</td><td>$used[1]</td></tr>
182
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_tuesday</b></td><td>$daily_limit</td><td>$used[2]</td></tr>
183
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_wednesday</b></td><td>$daily_limit</td><td>$used[3]</td></tr>
184
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_thursday</b></td><td>$daily_limit</td><td>$used[4]</td></tr>
185
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_friday</b></td><td>$daily_limit</td><td>$used[5]</td></tr>
186
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_saturday</b></td><td>$daily_limit</td><td>$used[6]</td></tr>
324 richard 187
	</table></table>
188
</table>
189
<br>
907 richard 190
<table border=0 width=640 cellpadding=1 cellspacing=1>
324 richard 191
<tr valign=top>
192
<td width=340></td>
193
<td bgcolor="black" width=200>
194
	<table border=0 width=100% cellpadding=2 cellspacing=0>
195
	<tr bgcolor="#907030" align=right valign=top><th>
907 richard 196
	<font color="white">$l_last7days_status</font>&nbsp;
324 richard 197
	</th></tr>
198
	</table>
199
</td></tr>
200
<tr bgcolor="black" valign=top><td colspan=2>
201
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
202
	<tr><td>
203
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
907 richard 204
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connections_number</b></td><td>
205
	$tot_conns</td></tr>
206
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_total_connections_time</b></td><td>
207
	$tot_time</td></tr>
208
<!--	<tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
209
	$tot_badlogins</td></tr> -->
210
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download</b></td><td>
211
	$tot_input</td></tr>
212
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload</b></td><td>
213
	$tot_output</td></tr>
214
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
215
	$avg_time</td></tr>
216
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
217
	$avg_input</td></tr>
218
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
219
	$avg_output</td></tr>	
324 richard 220
	</table>
221
	</table>
222
</table>
223
<br>
224
EOM;
907 richard 225
/*
324 richard 226
if ($user_info){
227
	echo <<<EOM
907 richard 228
<table border=0 width=640 cellpadding=1 cellspacing=1>
324 richard 229
<tr valign=top>
230
<td width=340></td>
231
<td bgcolor="black" width=250>
232
	<table border=0 width=100% cellpadding=2 cellspacing=0>
233
	<tr bgcolor="#907030" align=right valign=top><th>
234
	<font color="white">Informations personnelles</font>
235
	</th></tr>
236
	</table>
237
</td></tr>
238
<tr bgcolor="black" valign=top><td colspan=2>
239
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
240
	<tr><td>
241
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
242
	<tr>
243
	<td align=center bgcolor="#d0ddb0">
244
	<b>nom</b>
245
	</td>
246
	<td>
247
	$cn
248
	</td>
249
	</tr>
250
EOM;
251
	if ($config[general_prefered_lang] != 'en'){
252
		echo <<<EOM
253
	<tr>
254
	<td align=center bgcolor="#d0ddb0">
255
	<b>nom ($config[general_prefered_lang_name])</b>
256
	</td>
257
	<td>
258
	$cn_lang
259
	</td>
260
	</tr>
261
EOM;
262
	}
263
	echo <<<EOM
264
	<tr>
265
	<td align=center bgcolor="#d0ddb0">
266
	<b>service</b>
267
	</td>
268
	<td>
269
	$ou
270
	</td>
271
	</tr>
272
EOM;
273
	if ($config[general_prefered_lang] != 'en'){
274
		echo <<<EOM
275
	<tr>
276
	<td align=center bgcolor="#d0ddb0">
277
	<b>service ($config[general_prefered_lang_name])</b>
278
	</td>
279
	<td>
280
	$ou_lang
281
	</td>
282
	</tr>
283
EOM;
284
	}
285
	echo <<<EOM
286
	<tr>
287
	<td align=center bgcolor="#d0ddb0">
288
	<b>titre</b>
289
	</td>
290
	<td>
291
	$title
292
	</td>
293
	</tr>
294
EOM;
295
	if ($config[general_prefered_lang] != 'en'){
296
		echo <<<EOM
297
	<tr>
298
	<td align=center bgcolor="#d0ddb0">
299
	<b>title ($config[general_prefered_lang_name])</b>
300
	</td>
301
	<td>
302
	$title_lang
303
	</td>
304
	</tr>
305
EOM;
306
	}
307
	echo <<<EOM
308
	<tr>
309
	<td align=center bgcolor="#d0ddb0">
310
	<b>adresse</b>
311
	</td>
312
	<td>
313
	$address
314
	</td>
315
	</tr>
316
EOM;
317
	if ($config[general_prefered_lang] != 'en'){
318
		echo <<<EOM
319
	<tr>
320
	<td align=center bgcolor="#d0ddb0">
321
	<b>adresse ($config[general_prefered_lang_name])</b>
322
	</td>
323
	<td>
324
	$address_lang
325
	</td>
326
	</tr>
327
EOM;
328
	}
329
	echo <<<EOM
330
	<tr>
331
	<td align=center bgcolor="#d0ddb0">
332
	<b>adresse personnelle</b>
333
	</td>
334
	<td>
335
	$homeaddress
336
	</td>
337
	</tr>
338
EOM;
339
	if ($config[general_prefered_lang] != 'en'){
340
		echo <<<EOM
341
	<tr>
342
	<td align=center bgcolor="#d0ddb0">
343
	<b>adresse personnelle ($config[general_prefered_lang_name])</b>
344
	</td>
345
	<td>
346
	$homeaddress_lang
347
	</td>
348
	</tr>
349
EOM;
350
	}
351
	echo <<<EOM
352
	<tr>
353
	<td align=center bgcolor="#d0ddb0">
354
	<b>t&eacute;l&eacute;phone</b>
355
	</td>
356
	<td>
357
	$telephonenumber
358
	</td>
359
	</tr>
360
	<tr>
361
	<td align=center bgcolor="#d0ddb0">
362
	<b>t&eacute;l&eacute;phone personnel</b>
363
	</td>
364
	<td>
365
	$homephone
366
	</td>
367
	</tr>
368
	<tr>
369
	<td align=center bgcolor="#d0ddb0">
370
	<b>mobile</b>
371
	</td>
372
	<td>
373
	$mobile
374
	</td>
375
	</tr>
376
	<tr>
377
	<td align=center bgcolor="#d0ddb0">
378
	<b>fax</b>
379
	</td>
380
	<td>
381
	$fax
382
	</td>
383
	</tr>
384
	<tr>
385
	<td align=center bgcolor="#d0ddb0">
386
	<b>home page</b>
387
	</td>
388
	<td>
389
	<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>
390
	</td>
391
	</tr>
392
	<tr>
393
	<td align=center bgcolor="#d0ddb0">
394
	<b>e-mail</b>
395
	</td>
396
	<td>
397
	<a href="mailto: $mail" title="Envoyer un email">$mail</a>
398
	</td>
399
	</tr>
400
	<tr>
401
	<td align=center bgcolor="#d0ddb0">
402
	<b>e-mail alias</b>
403
	</td>
404
	<td>
405
	<a href="mailto: $mailalt" title="Envoyer un email">$mailalt</a>
406
	</td>
407
	</tr>
408
	</table>
409
	</table>
410
</table>
411
 
412
EOM;
413
}
907 richard 414
 */
415
	print <<<EOM
416
</tr></table>
417
EOM;
324 richard 418
if ($logged_now)
419
	print <<<EOM
420
<script Language="JavaScript">
421
	startcounter();
422
</script>
423
EOM;
424
?>
425
</body>
426
</html>