Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 483 → Rev 484

/web/status.php
27,6 → 27,9
$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";
}
else if($Language == 'de'){
$R_login1 = "Erfolgreiche Authentifizierung.";
44,6 → 47,9
$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";
}
else if($Language == 'nl'){
$R_login1 = "Succesvolle authenticatie.";
61,6 → 67,9
$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";
}
else if($Language == 'fr'){
$R_login1 = "Authentification réussie.";
78,6 → 87,9
$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_error = "erreur";
}
else {
$R_login1 = "Successful authentication.";
95,14 → 107,10
$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";
}
/*
Connected
logout
Connected
Not available
N/A
*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="fr">
109,18 → 117,77
<!-- written by steweb57 -->
<head>
<title>Alcasar - <?php echo $organisme; ?></title>
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="./js/ChilliLibrary.js">
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
<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 logout() {
alcasarLogoff();
window.setTimeout("closePopup()",1000);
}
function logoutWithConfirmation(msg) {//"Are you sure you want to disconnect now?"
if (confirm(msg)) {
logout();
}
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>
<script type="text/javascript" src="./js/statusControler.js">
</script>
<link type="text/css" href="./css/status.css" rel="stylesheet">
</head>
<body>
<body OnbeforeUnload="javascript:alcasarLogoff();">
<div id="Chilli">
<div id="locationName"></div>
<div id="chilliPage">
<div id="logonPage" class="c1">
<div id="loggedOutPage" class="c1">
<table id="disconnectTable">
<tr>
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
142,7 → 209,7
</tr>
<tr>
<td align="center"><br>
<a href="#" onclick="return disconnect();" class="lien_deco"><?php echo $R_logout; ?></a><br>
<a href="#" onclick="return logoutWithConfirmation('Are you sure you want to disconnect now?');" class="lien_deco"><?php echo $R_logout; ?></a><br>
<br></td>
</tr>
<!--tr id="connectRow">
151,39 → 218,39
</tr-->
<!--tr id="sessionIdRow">
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $R_session_id_label; ?></strong></td>
<td id="sessionId" class="chilliValue">Not available</td>
<td id="sessionId" class="chilliValue"><?php echo $R_not_available; ?></td>
</tr-->
<tr id="sessionTimeoutRow">
<td id="sessionTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_session_time_label; ?></strong></td>
<td id="sessionTimeout" class="chilliValue">Not available</td>
<td id="sessionTimeout" class="chilliValue"><?php echo $R_not_available; ?></td>
</tr>
<tr id="idleTimeoutRow">
<td id="idleTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_idle_time_label; ?></strong></td>
<td id="idleTimeout" class="chilliValue">Not available</td>
<td id="idleTimeout" class="chilliValue"><?php echo $R_not_available; ?></td>
</tr>
<tr id="startTimeRow">
<td id="startTimeLabel" class="chilliLabel"><strong><?php echo $R_start_time_label; ?></strong></td>
<td id="startTime" class="chilliValue">Not available</td>
<td id="startTime" class="chilliValue"><?php echo $R_not_available; ?></td>
</tr>
<tr id="sessionTimeRow">
<td id="sessionTimeLabel" class="chilliLabel"><strong><?php echo $R_session_time_label; ?></strong></td>
<td id="sessionTime" class="chilliValue">Not available</td>
<td id="sessionTime" class="chilliValue"><?php echo $R_not_available; ?></td>
</tr>
<tr id="idleTimeRow">
<td id="idleTimeLabel" class="chilliLabel"><strong><?php echo $R_idle_time_label; ?></strong></td>
<td id="idleTime" class="chilliValue">Not available</td>
<td id="idleTime" class="chilliValue"><?php echo $R_not_available; ?></td>
</tr>
<tr id="inputOctetsRow">
<td id="inputOctetsLabel" class="chilliLabel"><strong><?php echo $R_downloaded_label; ?></strong></td>
<td id="inputOctets" class="chilliValue">N/A</td>
<td id="inputOctets" class="chilliValue"><?php echo $R_na; ?></td>
</tr>
<tr id="outputOctetsRow">
<td id="outputOctetsLabel" class="chilliLabel"><strong><?php echo $R_uploaded_label; ?></strong></td>
<td id="outputOctets" class="chilliValue">N/A</td>
<td id="outputOctets" class="chilliValue"><?php echo $R_na; ?></td>
</tr>
<tr id="originalURLRow">
<td id="originalURLLabel" class="chilliLabel"><strong><?php echo $R_original_url_label; ?></strong></td>
<td id="originalURL" class="chilliValue">N/A</td>
<td id="originalURL" class="chilliValue"><?php echo $R_na; ?></td>
</tr>
</table>
</div>
201,7 → 268,7
<table id="errorTable">
<tr>
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
<td><span id="errorMessage">Error</span></td>
<td><span id="errorMessage"><?php echo $R_error; ?></span></td>
</tr>
</table>
</div>