15,6 → 15,7 |
$R_login1 = "El éxito de la autenticación."; |
$R_login2 = "Cierre esta ventana interrumpte la sesion."; |
$R_logout = "Conexión de cierre"; |
$R_logout_question = "Are you sure you want to disconnect now?"; //à traduire |
$R_loggedout = "Su sesión se cierra"; |
$R_wait = "Por favor, espere un momento ..."; |
$R_state_label = "State"; |
23,18 → 24,20 |
$R_max_idle_time_label = "Max Idle Time"; |
$R_start_time_label = "Start Time"; |
$R_session_time_label = "Tiempo de conexión"; |
$R_idle_time_label = "Idle Time"; |
$R_downloaded_label = "Downloaded"; |
$R_uploaded_label = "Uploaded"; |
$R_original_url_label = "Original URL"; |
$R_not_available = "Not available"; |
$R_na = "N/A"; |
$R_error = "error"; |
$R_idle_time_label = "Idle Time"; //à traduire |
$R_downloaded_label = "Downloaded"; //à traduire |
$R_uploaded_label = "Uploaded"; //à traduire |
$R_original_url_label = "Original URL"; //à traduire |
$R_not_available = "Not available"; //à traduire |
$R_na = "N/A"; //à traduire |
$R_error = "error"; //à traduire |
$R_welcome = "Welcome"; //à traduire |
} |
else if($Language == 'de'){ |
$R_login1 = "Erfolgreiche Authentifizierung."; |
$R_login2 = "Schlißen dieses fensters unterbricht die sitzung"; |
$R_logout = "Beenden der Verbindung"; |
$R_logout_question = "Are you sure you want to disconnect now?"; //à traduire |
$R_loggedout = "Ihre Sitzung ist geschlossen"; |
$R_wait = "Bitte warten Sie einen Moment ..."; |
$R_state_label = "State"; |
43,18 → 46,20 |
$R_max_idle_time_label = "Max Idle Time"; |
$R_start_time_label = "Start Time"; |
$R_session_time_label = "Online-zeit"; |
$R_idle_time_label = "Idle Time"; |
$R_downloaded_label = "Downloaded"; |
$R_uploaded_label = "Uploaded"; |
$R_original_url_label = "Original URL"; |
$R_not_available = "Not available"; |
$R_na = "N/A"; |
$R_error = "error"; |
$R_idle_time_label = "Idle Time"; //à traduire |
$R_downloaded_label = "Downloaded"; //à traduire |
$R_uploaded_label = "Uploaded"; //à traduire |
$R_original_url_label = "Original URL"; //à traduire |
$R_not_available = "Not available"; //à traduire |
$R_na = "N/A"; //à traduire |
$R_error = "error"; //à traduire |
$R_welcome = "Welcome"; //à traduire |
} |
else if($Language == 'nl'){ |
$R_login1 = "Succesvolle authenticatie."; |
$R_login2 = "Dit venster te sluiten onderbreekt uw sessie."; |
$R_logout = "Slotkoers verbinding"; |
$R_logout_question = "Are you sure you want to disconnect now?"; //à traduire |
$R_loggedout = "Uw sessie is gesloten"; |
$R_wait = "Wacht een moment ..."; |
$R_state_label = "State"; |
63,18 → 68,20 |
$R_max_idle_time_label = "Max Idle Time"; |
$R_start_time_label = "Start Time"; |
$R_session_time_label = "Online tijd"; |
$R_idle_time_label = "Idle Time"; |
$R_downloaded_label = "Downloaded"; |
$R_uploaded_label = "Uploaded"; |
$R_original_url_label = "Original URL"; |
$R_not_available = "Not available"; |
$R_na = "N/A"; |
$R_error = "error"; |
$R_idle_time_label = "Idle Time"; //à traduire |
$R_downloaded_label = "Downloaded"; //à traduire |
$R_uploaded_label = "Uploaded"; //à traduire |
$R_original_url_label = "Original URL"; //à traduire |
$R_not_available = "Not available"; //à traduire |
$R_na = "N/A"; //à traduire |
$R_error = "error"; //à traduire |
$R_welcome = "Welcome"; //à traduire |
} |
else if($Language == 'fr'){ |
$R_login1 = "Authentification réussie."; |
$R_login2 = "La fermeture de cette fenêtre interrompt votre session."; |
$R_logout = "Fermeture de la session"; |
$R_logout_question = "Etes vous sûre de vouloir vous déconnecter?"; |
$R_loggedout = "Votre session est fermée"; |
$R_wait = "Patientez un instant ...."; |
$R_state_label = "Etat"; |
87,14 → 94,16 |
$R_downloaded_label = "Données téléchargées"; |
$R_uploaded_label = "Données envoyées"; |
$R_original_url_label = "URL demandé"; |
$R_not_available = "Not available"; |
$R_na = "N/A"; |
$R_not_available = "Not available"; //à traduire |
$R_na = "N/A"; //à traduire |
$R_error = "erreur"; |
$R_welcome = "Bienvenue"; |
} |
else { |
$R_login1 = "Successful authentication."; |
$R_login2 = "Closing this window interrupts your session."; |
$R_logout = "Closing connection"; |
$R_logout_question = "Are you sure you want to disconnect now?"; |
$R_loggedout = "Your session is closed"; |
$R_wait = "Please wait a moment ..."; |
$R_state_label = "State"; |
110,6 → 119,7 |
$R_not_available = "Not available"; |
$R_na = "N/A"; |
$R_error = "error"; |
$R_welcome = "Welcome"; |
} |
?> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
124,20 → 134,24 |
<script type="text/javascript" src="./js/statusControler.js"></script> |
<link type="text/css" href="./css/status.css" rel="stylesheet"> |
<script language="JavaScript"> |
var blur = 0; |
var starttime = new Date(); |
var startclock = starttime.getTime(); |
var mytimeleft = 0; |
function closePopup(){ |
this.focus(); |
self.opener=this; |
self.close(); |
} |
function alcasarLogoff(){ |
chilliClock.stop(); |
chilliController.logoff(); |
//showWaitPage(5000); |
function closePopup(){ |
this.focus(); |
self.opener=this; |
self.close(); |
} |
|
var isloggedout = false; |
|
function alcasarLogoff(){ |
//pb sous Safari et Opera (OnbeforeUnload) |
if (isloggedout === false){ |
chilliClock.stop(); |
chilliController.logoff(); |
showWaitPage(5000); |
alert("<?php echo $R_loggedout; ?>"); |
} |
isloggedout = true; |
} |
function logout() { |
alcasarLogoff(); |
window.setTimeout("closePopup()",1000); |
148,39 → 162,6 |
} |
return false; |
} |
function logoutWithAlert(msg) {//"Are you sure you want to disconnect now?" |
alert(msg); |
logout(); |
} |
function doTime() { |
window.setTimeout( "doTime()", 1000 ); |
t = new Date(); |
time = Math.round((t.getTime() - starttime.getTime())/1000); |
if (mytimeleft) { |
time = mytimeleft - time; |
if (time <= 0) { |
alert("Votre session est terminée"); |
} |
} |
if (time < 0) time = 0; |
hours = (time - (time % 3600)) / 3600; |
time = time - (hours * 3600); |
mins = (time - (time % 60)) / 60; |
secs = time - (mins * 60); |
if (hours < 10) hours = "0" + hours; |
if (mins < 10) mins = "0" + mins; |
if (secs < 10) secs = "0" + secs; |
title = "$R_online_time : " + hours + ":" + mins + ":" + secs; |
if (mytimeleft) { |
title = "$R_remaining_time : " + hours + ":" + mins + ":" + secs; |
} |
if(document.all || document.getElementById){ |
document.title = title; |
} |
else { |
self.status = title; |
} |
} |
</script> |
</head> |
<body OnbeforeUnload="javascript:alcasarLogoff();"> |
202,7 → 183,7 |
<tr> |
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td> |
<td> |
<p class="text_auth">Bienvenue <span id="userName"></span>.</p> |
<p class="text_auth"><?php echo $R_welcome; ?> <span id="userName"></span>.</p> |
<p class="text_auth"><?php echo $R_login1; ?></p> |
<hr> |
<?php echo $R_login2; ?></td> |
209,7 → 190,7 |
</tr> |
<tr> |
<td align="center"><br> |
<a href="#" onclick="return logoutWithConfirmation('Are you sure you want to disconnect now?');" class="lien_deco"><?php echo $R_logout; ?></a><br> |
<a href="#" onclick="return logoutWithConfirmation('<?php echo $R_logout_question;?>');" class="lien_deco"><?php echo $R_logout; ?></a><br> |
<br></td> |
</tr> |
<!--tr id="connectRow"> |
259,7 → 240,7 |
<tr> |
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td> |
<td> |
<p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="wait..."><?php echo $R_wait; ?></p> |
<p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="<?php echo $R_wait; ?>"><?php echo $R_wait; ?></p> |
</td> |
</tr> |
</table> |