Vous êtes sur la page 1sur 5

<!doctype html public "-//w3c//dtd html 4.

01 transitional//en"
"http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<title>PAGE_ADMIN_LOGIN_HEAD</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type='text/javascript' src='/comm/users.sjs'></script>
<script type="text/javascript" src="/comm/jquery-1.1.js"></script>
<script type="text/javascript" src="/comm/jquery.i18n.js"></script>
<script type="text/javascript" src="/comm/languages.js"></script>
<script type="text/javascript" src="/comm/loadlang.sjs"></script>
<script type="text/javascript" src="/comm/global_variable.sjs"></script>
<link rel="stylesheet" type="text/css"
href="/gui_style/generic/layout/styles.css">

<script language='javascript'>
var forbiddentime = 0;

function initparameter() {
var parameter_array = location.search.substring(1).split('&');
for(i=0;i<parameter_array.length;i++) {
single_var = parameter_array[i].split('=');
if (single_var.length == 2) {
if(single_var[0] == "time")
forbiddentime = parseInt(single_var[1]);
}
}
}

function countdown()
{
if (forbiddentime > 0){
document.authform.user.disabled = true;
document.authform.password.disabled = true;
document.authform.ok.disabled = true;
document.authform.cancel.disabled = true;
document.getElementById("forbidden").style.display = "";
document.getElementById("forbidden").innerHTML = "forbidden login in "
+ forbiddentime + " seconds"
forbiddentime--;
setTimeout(countdown, 1000);
}else{
document.authform.user.disabled = false;
document.authform.password.disabled = false;
document.authform.ok.disabled = false;
document.authform.cancel.disabled = false;
document.getElementById("forbidden").style.display = "none";
}
}

function admininit()
{
initparameter();
if(forbiddentime > 0)
countdown();
return true;
}
function doenter(event) {
var KEY_ENTER = 13;
if (event.keyCode == KEY_ENTER) {
document.getElementsByName("ok")[0].onclick();
}
}

</script>
</head>
<body height="100%" style="margin:0px;" onload="admininit();">
<noscript>
<h1><span class="trad" key="PAGE_NOSCRIPT_HEAD"></span></h1>
<h4><span class="trad" key="PAGE_NOSCRIPT_BODY"></span></h4>
</noscript>

<script type="text/javascript">
//<![CDATA[
function disable_fields(theForm)
{
var len = theForm.elements.length;
for (var i = 0; i < len; i++) {
// Don't disable "hidden" fields
if(theForm.elements[i].type.toLowerCase()!="hidden")
theForm.elements[i].disabled = 1;
}
}

function setLanguage(langCode)
{
document.langSelect.elements[0].value = langCode;
document.langSelect.submit();
disable_fields(document.langSelect);
}

function noenter(e) {
var keycode;

if (window.event)
keycode = window.event.keyCode;
else if (e)
keycode = e.which;
else
return true;

if (keycode == 13)
return false;
else
return true;
}

function submitAuthentication()
{
document.authform.submit();
disable_fields(document.authform);
}

function cancelLogin()
{
if (window.opener || window.name == "userpage")
window.close(); // Close pop-up login window
else
location.href="/";
}
//]]>
</script>

<table cellspacing="0" cellpadding="0" border="0" class="main">


<tr>
<td>
<table cellspacing="0" cellpadding="0" class="banner" width="100%">
<tr>
<td>
<p id="productName" class="product">
<script type="text/javascript">
var headerText = ModelName;
document.write(headerText.replace(" ","&nbsp;"));
</script>
</p>
<p class="displaySettings" id="displaySettings">
<span class="langSelect" id="langSelect">
<form name="langSelect" action=""
method="post"><input type="hidden" name="6" value="en">
<input type="hidden" name="rn" value="-1163067184">

</form>
</span>
</p>
<script type="text/javascript">

document.getElementById('displaySettings').style.visibility = "hidden";

</script>
</td>
<td class="logo">
<img src="/images/logo.gif"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="page" width="760">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td>

<div class='contentcontainer'>
<hr>
<div class='contentitem'>
<table cellspacing='0' cellpadding='0'>
<tr><td class='icon' valign='top' width='100px'><img src='/images/user__xl.gif'
alt='Login !'></td>
<td class='data' valign='top'><table cellspacing='0' cellpadding='0'><tr><td
align='left'><span class='trad itemtitle_wizard'
key='PAGE_ADMIN_LOGIN_HEAD'></span></td><td align='right'></td></tr>
<tr><td colspan='2'>
<p class='trad' key='PAGE_ADMIN_LOGIN_HELP'></p>

<form method="post" action="/cgi-bin/basicauth.cgi?index.html" name="authform"


id="authform">
<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td width="40" valign="top"></td>
<td valign="top">
<table width='100%' class="datatable" cellspacing='0' cellpadding='0'>
<tr><td></td><td width='30px'></td><td width='220px'></td><td
width='50px'></td></tr>
<tr><td colspan='4' height='7'><img src='/images/spacer.gif' alt=''
border='0' height='7' width='1'></td></tr>
<tr>
<td width='120px'><span class="trad"
key="PAGE_ADMIN_LOGIN_USRNAME"></span></td>
<td colspan='3'><input type="text" name="user" id="user" style="width:
250px;" onkeypress="return doenter(event)" maxlength="63" /></td>
</tr>
<tr><td colspan='4' height='7'><img src='/images/spacer.gif' alt=''
border='0' height='7' width='1'></td></tr>
<tr>
<td width='120px'><span class="trad"
key="PAGE_ADMIN_LOGIN_USRPASS"></span></td>
<td colspan='3'><input type="password" name="password" id="password"
maxlength="64" style="width: 250px;" onkeypress="return doenter(event)"
/></td></td>
</tr>
<tr><td colspan='4' height='7'><img src='/images/spacer.gif' alt=''
border='0' height='7' width='1'></td></tr>
<tr><td colspan='4' id=forbidden
style="display:none"align=center></td></tr>
<tr>
<td colspan="4" align="right">
<input type=hidden name=userlevel value=15>
<input type=hidden name=refer value=/index.html>
<input type=hidden name=failrefer value="/admin.html">
<input name="ok" type="button" onclick='submitAuthentication()'
class='mlipt' key='PAGE_BTN_OK' />
<input name="cancel" type="button" onclick='cancelLogin()'
class='mlipt' key='PAGE_BTN_CANCEL' />
</td>
</tr>
</table>
</td></tr>
</table>
</form>
</td></tr></table>
</td></tr></table>
</div>

<script type="text/javascript">
//<![CDATA[
document.authform.user.focus();
//]]>
</script>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>