Subversion Repositories ALCASAR

Rev

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

Rev 925 Rev 1805
Line 8... Line 8...
8
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
8
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
9
</head>
9
</head>
10
<body>
10
<body>
11
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
11
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
12
	<tr><th>$l_users_managment</th></tr>
12
	<tr><th>$l_users_managment</th></tr>
13
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
13
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
14
height="2"></td></tr>
14
height="2"></td></tr>
15
</TABLE>
15
</TABLE>
16
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
16
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
17
	<tr bgcolor="#666666"><td>
17
	<tr bgcolor="#666666"><td>
18
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
18
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
19
		<tr><td valign="middle" align="left">
19
		<tr><td valign="middle" align="left">
20
<link rel="stylesheet" href="/css/style.css">
20
<link rel="stylesheet" href="/css/style.css">
21
EOM;
21
EOM;
22
if ($logged_now)
22
if (isset($logged_now) && $logged_now)
23
	print <<<EOM
23
	print <<<EOM
24
<script Language="JavaScript">
24
<script Language="JavaScript">
25
<!--
25
<!--
26
	var start;
26
	var start;
27
	var our_time;
27
	var our_time;
28
	
28
 
29
	function startcounter() 
29
	function startcounter()
30
	{
30
	{
31
		var start_date = new Date();
31
		var start_date = new Date();
32
		start = start_date.getTime();
32
		start = start_date.getTime();
33
		our_time = $lastlog_session_time_jvs;
33
		our_time = $lastlog_session_time_jvs;
34
		showcounter();
34
		showcounter();
Line 36... Line 36...
36
 
36
 
37
	function showcounter ()
37
	function showcounter ()
38
	{
38
	{
39
		var now_date = new Date();
39
		var now_date = new Date();
40
		var diff = now_date.getTime() - start + our_time;
40
		var diff = now_date.getTime() - start + our_time;
41
			
41
 
42
		var hours = parseInt(diff / 3600000);
42
		var hours = parseInt(diff / 3600000);
43
		if(isNaN(hours)) hours = 0;
43
		if(isNaN(hours)) hours = 0;
44
			
44
 
45
		var minutes = parseInt((diff % 3600000) / 60000);
45
		var minutes = parseInt((diff % 3600000) / 60000);
46
		if(isNaN(minutes)) minutes = 0;
46
		if(isNaN(minutes)) minutes = 0;
47
			
47
 
48
		var seconds = parseInt(((diff % 3600000) % 60000) / 1000);
48
		var seconds = parseInt(((diff % 3600000) % 60000) / 1000);
49
		if(isNaN(seconds)) seconds = 0;
49
		if(isNaN(seconds)) seconds = 0;
50
			
50
 
51
		var timeValue = " " ;
51
		var timeValue = " " ;
52
		timeValue += ((hours < 10) ? "0" : "") + hours;
52
		timeValue += ((hours < 10) ? "0" : "") + hours;
53
		timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
53
		timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
54
		timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
54
		timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
55
		
55
 
56
		document.online.status.value = timeValue;
56
		document.online.status.value = timeValue;
57
		setTimeout("showcounter()", 1000);
57
		setTimeout("showcounter()", 1000);
58
	}
58
	}
59
	//-->
59
	//-->
60
</script>
60
</script>
Line 84... Line 84...
84
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
84
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
85
	<tr><td>
85
	<tr><td>
86
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
86
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
87
 
87
 
88
EOM;
88
EOM;
89
if ($logged_now){
89
if (isset($logged_now) && $logged_now){
90
	print <<<EOM
90
	print <<<EOM
91
	<form name="online" onSubmit="return(false);">
91
	<form name="online" onSubmit="return(false);">
92
	<tr><td align=center bgcolor="#d0ddb0">
92
	<tr><td align=center bgcolor="#d0ddb0">
93
	<b>$l_connected</b>
93
	<b>$l_connected</b>
94
	</td><td>
94
	</td><td>
95
	$lastlog_time
95
	$lastlog_time
96
	</td></tr>
96
	</td></tr>
97
	<tr><td align=center bgcolor="#d0ddb0">
97
	<tr><td align=center bgcolor="#d0ddb0">
98
	<b>$l_connection_time</b>
98
	<b>$l_connection_time</b>
99
	</td><td>	
99
	</td><td>
100
	<input type="text" name="status" size=10 value="$lastlog_session_time">
100
	<input type="text" name="status" size=10 value="$lastlog_session_time">
101
	</form>
101
	</form>
102
	</td></tr>
102
	</td></tr>
103
EOM;
103
EOM;
104
	require('../html/user_admin_userinfo.html.php');
104
	require('../html/user_admin_userinfo.html.php');
Line 209... Line 209...
209
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
209
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
210
	$avg_time</td></tr>
210
	$avg_time</td></tr>
211
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
211
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
212
	$avg_input</td></tr>
212
	$avg_input</td></tr>
213
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
213
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
214
	$avg_output</td></tr>	
214
	$avg_output</td></tr>
215
	</table>
215
	</table>
216
	</table>
216
	</table>
217
</table>
217
</table>
218
<br>
218
<br>
219
EOM;
219
EOM;
Line 408... Line 408...
408
}
408
}
409
 */
409
 */
410
	print <<<EOM
410
	print <<<EOM
411
</tr></table>
411
</tr></table>
412
EOM;
412
EOM;
413
if ($logged_now)
413
if (isset($logged_now) && $logged_now)
414
	print <<<EOM
414
	print <<<EOM
415
<script Language="JavaScript">
415
<script Language="JavaScript">
416
	startcounter();
416
	startcounter();
417
</script>
417
</script>
418
EOM;
418
EOM;