Subversion Repositories ALCASAR

Rev

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

Rev 475 Rev 484
Line 25... Line 25...
25
	$R_session_time_label		= "Tiempo de conexión";
25
	$R_session_time_label		= "Tiempo de conexión";
26
	$R_idle_time_label			= "Idle Time";
26
	$R_idle_time_label			= "Idle Time";
27
	$R_downloaded_label			= "Downloaded";
27
	$R_downloaded_label			= "Downloaded";
28
	$R_uploaded_label			= "Uploaded";
28
	$R_uploaded_label			= "Uploaded";
29
	$R_original_url_label		= "Original URL";
29
	$R_original_url_label		= "Original URL";
-
 
30
	$R_not_available			= "Not available";
-
 
31
	$R_na						= "N/A";
-
 
32
	$R_error					= "error";
30
}
33
}
31
else if($Language == 'de'){
34
else if($Language == 'de'){
32
	$R_login1			= "Erfolgreiche Authentifizierung.";
35
	$R_login1			= "Erfolgreiche Authentifizierung.";
33
	$R_login2			= "Schlißen dieses fensters unterbricht die sitzung";
36
	$R_login2			= "Schlißen dieses fensters unterbricht die sitzung";
34
	$R_logout			= "Beenden der Verbindung";
37
	$R_logout			= "Beenden der Verbindung";
Line 42... Line 45...
42
	$R_session_time_label		= "Online-zeit";
45
	$R_session_time_label		= "Online-zeit";
43
	$R_idle_time_label			= "Idle Time";
46
	$R_idle_time_label			= "Idle Time";
44
	$R_downloaded_label			= "Downloaded";
47
	$R_downloaded_label			= "Downloaded";
45
	$R_uploaded_label			= "Uploaded";
48
	$R_uploaded_label			= "Uploaded";
46
	$R_original_url_label		= "Original URL";
49
	$R_original_url_label		= "Original URL";
-
 
50
	$R_not_available			= "Not available";
-
 
51
	$R_na						= "N/A";
-
 
52
	$R_error					= "error";
47
}
53
}
48
else if($Language == 'nl'){
54
else if($Language == 'nl'){
49
	$R_login1			= "Succesvolle authenticatie.";
55
	$R_login1			= "Succesvolle authenticatie.";
50
	$R_login2			= "Dit venster te sluiten onderbreekt uw sessie.";
56
	$R_login2			= "Dit venster te sluiten onderbreekt uw sessie.";
51
	$R_logout			= "Slotkoers verbinding";
57
	$R_logout			= "Slotkoers verbinding";
Line 59... Line 65...
59
	$R_session_time_label		= "Online tijd";
65
	$R_session_time_label		= "Online tijd";
60
	$R_idle_time_label			= "Idle Time";
66
	$R_idle_time_label			= "Idle Time";
61
	$R_downloaded_label			= "Downloaded";
67
	$R_downloaded_label			= "Downloaded";
62
	$R_uploaded_label			= "Uploaded";
68
	$R_uploaded_label			= "Uploaded";
63
	$R_original_url_label		= "Original URL";
69
	$R_original_url_label		= "Original URL";
-
 
70
	$R_not_available			= "Not available";
-
 
71
	$R_na						= "N/A";
-
 
72
	$R_error					= "error";
64
}
73
}
65
else if($Language == 'fr'){
74
else if($Language == 'fr'){
66
	$R_login1			= "Authentification réussie.";
75
	$R_login1			= "Authentification réussie.";
67
	$R_login2			= "La fermeture de cette fenêtre interrompt votre session.";
76
	$R_login2			= "La fermeture de cette fenêtre interrompt votre session.";
68
	$R_logout			= "Fermeture de la session";
77
	$R_logout			= "Fermeture de la session";
Line 76... Line 85...
76
	$R_session_time_label		= "Durée de connexion";
85
	$R_session_time_label		= "Durée de connexion";
77
	$R_idle_time_label			= "Inactivité";
86
	$R_idle_time_label			= "Inactivité";
78
	$R_downloaded_label			= "Données téléchargées";
87
	$R_downloaded_label			= "Données téléchargées";
79
	$R_uploaded_label			= "Données envoyées";
88
	$R_uploaded_label			= "Données envoyées";
80
	$R_original_url_label		= "URL demandé";
89
	$R_original_url_label		= "URL demandé";
-
 
90
	$R_not_available			= "Not available";
-
 
91
	$R_na						= "N/A";
-
 
92
	$R_error					= "erreur";
81
}
93
}
82
else {
94
else {
83
	$R_login1			= "Successful authentication.";
95
	$R_login1			= "Successful authentication.";
84
	$R_login2			= "Closing this window interrupts your session.";
96
	$R_login2			= "Closing this window interrupts your session.";
85
	$R_logout			= "Closing connection";
97
	$R_logout			= "Closing connection";
Line 93... Line 105...
93
	$R_session_time_label		= "Session Time";
105
	$R_session_time_label		= "Session Time";
94
	$R_idle_time_label			= "Idle Time";
106
	$R_idle_time_label			= "Idle Time";
95
	$R_downloaded_label			= "Downloaded";
107
	$R_downloaded_label			= "Downloaded";
96
	$R_uploaded_label			= "Uploaded";
108
	$R_uploaded_label			= "Uploaded";
97
	$R_original_url_label		= "Original URL";
109
	$R_original_url_label		= "Original URL";
-
 
110
	$R_not_available			= "Not available";
-
 
111
	$R_na						= "N/A";
-
 
112
	$R_error					= "error";
98
}
113
}
99
/*
-
 
100
Connected
-
 
101
logout
-
 
102
Connected
-
 
103
Not available
-
 
104
N/A
-
 
105
*/
-
 
106
?>
114
?>
107
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
115
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
108
<html lang="fr">
116
<html lang="fr">
109
<!-- written by steweb57 -->
117
<!-- written by steweb57 -->
110
<head>
118
<head>
111
<title>Alcasar - <?php echo $organisme; ?></title>
119
<title>Alcasar - <?php echo $organisme; ?></title>
-
 
120
<meta http-equiv="Cache-control" content="no-cache">
-
 
121
<meta http-equiv="Pragma" content="no-cache">
112
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
122
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
113
<script type="text/javascript" src="./js/ChilliLibrary.js">
123
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
114
</script>
-
 
115
<script type="text/javascript" src="./js/statusControler.js">
124
<script type="text/javascript" src="./js/statusControler.js"></script>
116
</script>
-
 
117
<link type="text/css" href="./css/status.css" rel="stylesheet">
125
<link type="text/css" href="./css/status.css" rel="stylesheet">
-
 
126
<script language="JavaScript">
-
 
127
    var blur = 0;
-
 
128
    var starttime = new Date();
-
 
129
    var startclock = starttime.getTime();
-
 
130
    var mytimeleft = 0;
-
 
131
    function closePopup(){
-
 
132
	this.focus();
-
 
133
	self.opener=this;
-
 
134
	self.close();
-
 
135
    }
-
 
136
	function alcasarLogoff(){
-
 
137
		chilliClock.stop();
-
 
138
		chilliController.logoff();
-
 
139
		//showWaitPage(5000);
-
 
140
	}
-
 
141
	function logout() {
-
 
142
		alcasarLogoff();
-
 
143
		window.setTimeout("closePopup()",1000);
-
 
144
	}
-
 
145
	function logoutWithConfirmation(msg) {//"Are you sure you want to disconnect now?"
-
 
146
		if (confirm(msg)) {
-
 
147
			logout();
-
 
148
		}
-
 
149
		return false;
-
 
150
	}
-
 
151
	function logoutWithAlert(msg) {//"Are you sure you want to disconnect now?"
-
 
152
		alert(msg);
-
 
153
		logout();
-
 
154
	}
-
 
155
    function doTime() {
-
 
156
      window.setTimeout( "doTime()", 1000 );
-
 
157
      t = new Date();
-
 
158
      time = Math.round((t.getTime() - starttime.getTime())/1000);
-
 
159
      if (mytimeleft) {
-
 
160
        time = mytimeleft - time;
-
 
161
        if (time <= 0) {
-
 
162
          alert("Votre session est terminée");
-
 
163
        }
-
 
164
      }
-
 
165
      if (time < 0) time = 0;
-
 
166
      hours = (time - (time % 3600)) / 3600;
-
 
167
      time = time - (hours * 3600);
-
 
168
      mins = (time - (time % 60)) / 60;
-
 
169
      secs = time - (mins * 60);
-
 
170
      if (hours < 10) hours = "0" + hours;
-
 
171
      if (mins < 10) mins = "0" + mins;
-
 
172
      if (secs < 10) secs = "0" + secs;
-
 
173
      title = "$R_online_time : " + hours + ":" + mins + ":" + secs;
-
 
174
      if (mytimeleft) {
-
 
175
        title = "$R_remaining_time : " + hours + ":" + mins + ":" + secs;
-
 
176
      }
-
 
177
      if(document.all || document.getElementById){
-
 
178
         document.title = title;
-
 
179
      }
-
 
180
      else {   
-
 
181
        self.status = title;
-
 
182
      }
-
 
183
    }
-
 
184
</script>
118
</head>
185
</head>
119
<body>
186
<body OnbeforeUnload="javascript:alcasarLogoff();">
120
<div id="Chilli">
187
<div id="Chilli">
121
<div id="locationName"></div>
188
<div id="locationName"></div>
122
<div id="chilliPage">
189
<div id="chilliPage">
123
<div id="logonPage" class="c1">
190
<div id="loggedOutPage" class="c1">
124
<table id="disconnectTable">
191
<table id="disconnectTable">
125
<tr>
192
<tr>
126
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
193
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
127
<td>
194
<td>
128
<p class="text_auth"><?php echo $R_loggedout; ?></p>
195
<p class="text_auth"><?php echo $R_loggedout; ?></p>
Line 140... Line 207...
140
<hr>
207
<hr>
141
<?php echo $R_login2; ?></td>
208
<?php echo $R_login2; ?></td>
142
</tr>
209
</tr>
143
<tr>
210
<tr>
144
<td align="center"><br>
211
<td align="center"><br>
145
<a href="#" onclick="return disconnect();" class="lien_deco"><?php echo $R_logout; ?></a><br>
212
<a href="#" onclick="return logoutWithConfirmation('Are you sure you want to disconnect now?');" class="lien_deco"><?php echo $R_logout; ?></a><br>
146
<br></td>
213
<br></td>
147
</tr>
214
</tr>
148
<!--tr id="connectRow">
215
<!--tr id="connectRow">
149
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $R_state_label; ?></strong></td>
216
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $R_state_label; ?></strong></td>
150
<td id="statusMessage" class="chilliValue">Connected</td>
217
<td id="statusMessage" class="chilliValue">Connected</td>
151
</tr-->
218
</tr-->
152
<!--tr id="sessionIdRow">
219
<!--tr id="sessionIdRow">
153
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $R_session_id_label; ?></strong></td>
220
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $R_session_id_label; ?></strong></td>
154
<td id="sessionId" class="chilliValue">Not available</td>
221
<td id="sessionId" class="chilliValue"><?php echo $R_not_available; ?></td>
155
</tr-->
222
</tr-->
156
<tr id="sessionTimeoutRow">
223
<tr id="sessionTimeoutRow">
157
<td id="sessionTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_session_time_label; ?></strong></td>
224
<td id="sessionTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_session_time_label; ?></strong></td>
158
<td id="sessionTimeout" class="chilliValue">Not available</td>
225
<td id="sessionTimeout" class="chilliValue"><?php echo $R_not_available; ?></td>
159
</tr>
226
</tr>
160
<tr id="idleTimeoutRow">
227
<tr id="idleTimeoutRow">
161
<td id="idleTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_idle_time_label; ?></strong></td>
228
<td id="idleTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_idle_time_label; ?></strong></td>
162
<td id="idleTimeout" class="chilliValue">Not available</td>
229
<td id="idleTimeout" class="chilliValue"><?php echo $R_not_available; ?></td>
163
</tr>
230
</tr>
164
<tr id="startTimeRow">
231
<tr id="startTimeRow">
165
<td id="startTimeLabel" class="chilliLabel"><strong><?php echo $R_start_time_label; ?></strong></td>
232
<td id="startTimeLabel" class="chilliLabel"><strong><?php echo $R_start_time_label; ?></strong></td>
166
<td id="startTime" class="chilliValue">Not available</td>
233
<td id="startTime" class="chilliValue"><?php echo $R_not_available; ?></td>
167
</tr>
234
</tr>
168
<tr id="sessionTimeRow">
235
<tr id="sessionTimeRow">
169
<td id="sessionTimeLabel" class="chilliLabel"><strong><?php echo $R_session_time_label; ?></strong></td>
236
<td id="sessionTimeLabel" class="chilliLabel"><strong><?php echo $R_session_time_label; ?></strong></td>
170
<td id="sessionTime" class="chilliValue">Not available</td>
237
<td id="sessionTime" class="chilliValue"><?php echo $R_not_available; ?></td>
171
</tr>
238
</tr>
172
<tr id="idleTimeRow">
239
<tr id="idleTimeRow">
173
<td id="idleTimeLabel" class="chilliLabel"><strong><?php echo $R_idle_time_label; ?></strong></td>
240
<td id="idleTimeLabel" class="chilliLabel"><strong><?php echo $R_idle_time_label; ?></strong></td>
174
<td id="idleTime" class="chilliValue">Not available</td>
241
<td id="idleTime" class="chilliValue"><?php echo $R_not_available; ?></td>
175
</tr>
242
</tr>
176
<tr id="inputOctetsRow">
243
<tr id="inputOctetsRow">
177
<td id="inputOctetsLabel" class="chilliLabel"><strong><?php echo $R_downloaded_label; ?></strong></td>
244
<td id="inputOctetsLabel" class="chilliLabel"><strong><?php echo $R_downloaded_label; ?></strong></td>
178
<td id="inputOctets" class="chilliValue">N/A</td>
245
<td id="inputOctets" class="chilliValue"><?php echo $R_na; ?></td>
179
</tr>
246
</tr>
180
<tr id="outputOctetsRow">
247
<tr id="outputOctetsRow">
181
<td id="outputOctetsLabel" class="chilliLabel"><strong><?php echo $R_uploaded_label; ?></strong></td>
248
<td id="outputOctetsLabel" class="chilliLabel"><strong><?php echo $R_uploaded_label; ?></strong></td>
182
<td id="outputOctets" class="chilliValue">N/A</td>
249
<td id="outputOctets" class="chilliValue"><?php echo $R_na; ?></td>
183
</tr>
250
</tr>
184
<tr id="originalURLRow">
251
<tr id="originalURLRow">
185
<td id="originalURLLabel" class="chilliLabel"><strong><?php echo $R_original_url_label; ?></strong></td>
252
<td id="originalURLLabel" class="chilliLabel"><strong><?php echo $R_original_url_label; ?></strong></td>
186
<td id="originalURL" class="chilliValue">N/A</td>
253
<td id="originalURL" class="chilliValue"><?php echo $R_na; ?></td>
187
</tr>
254
</tr>
188
</table>
255
</table>
189
</div>
256
</div>
190
<div id="waitPage">
257
<div id="waitPage">
191
<table id="waitTable">
258
<table id="waitTable">
Line 199... Line 266...
199
</div>
266
</div>
200
<div id="errorPage">
267
<div id="errorPage">
201
<table id="errorTable">
268
<table id="errorTable">
202
<tr>
269
<tr>
203
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
270
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
204
<td><span id="errorMessage">Error</span></td>
271
<td><span id="errorMessage"><?php echo $R_error; ?></span></td>
205
</tr>
272
</tr>
206
</table>
273
</table>
207
</div>
274
</div>
208
</div>
275
</div>
209
<!--div id="debugPage" style="display:inline;">
276
<!--div id="debugPage" style="display:inline;">