<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="../styles/main.css" />
<link rel="stylesheet" type="text/css" href="../styles/main1.css" />
<link rel="stylesheet" type="text/css" href="../templates/default/login.css" />
<script type="text/javascript" src="../l10n/<?php echo __LANG;?>/lang.js?v=<?php echo __POSHVERSION;?>" ></script>
<script type="text/javascript" src="../includes/config.js?v=<?php echo __rand;?>" ></script>
<script type="text/javascript" src="../tools/mootools.js?v=1.2.1"></script>
<script type="text/javascript" src="../includes/ajax<?php if (!__debugmode) echo '_compressed';?>.js?v=<?php echo __POSHVERSION;?>" ></script>
<script type="text/javascript" src="../includes/php/ajax-urls.js?v=<?php echo __POSHVERSION;?>"></script>
<?php 
	launch_hook('userinterface_header',$pagename);
?>
</head>
<body onKeyPress="$p.navigator.keyPressed(event);">
<div id="cache" style="position:absolute;left:0;top:0;z-index:8;display:none;"></div>

<div class="noportal">

<div width="100%">
	<div align="center" style="padding-top:150px">
		<div class="raised">
			<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
			<div class="boxcontent">
				<div id="loginbox">
                
					<div align="left" id="header" bgcolor="#ffffff">
						<div id="logo" style="float: left;">
							<a href="../portal/index.php">
							<img src="../images/s.gif" width="140" height="60" />
							</a>
						</div>
					</div>
                    <div id="loginscreen" style="padding-top: 10px">
					 
                        <div id="msg_conn"></div>
                       
						<div id="displayPart">
<?php
	if ($message!='') echo '<font color="#ff0000"><script type="text/javascript">document.write(lg("'.$message.'"));</script></font><br /><br />';
?>
							<form method="post" action="" onsubmit="return $p.app.connection.set(this,$p.app.pages.isPageExisting)">
							<table cellspacing="6">
								<tr>
									<td class="label"><label><?php echo (__accountType=="mail"?lg("email"):lg("login"));?> :</label></td>
									<td><input type="text" name="username" maxlength="64" style="width: 260px;" class="thinbox" /></td>
								</tr>
								<tr>
									<td></td><td></td>
								</tr>
								<tr>
									<td class="label"><label><?php echo lg("password");?> :</label></td>
									<td><input type="password" name="password" maxlength="16" style="width: 260px;" class="thinbox" /></td>
								</tr>
								<tr>
									<td></td>
									<td>
										<div id="passhlp" style="float: right;padding-top:4px;font-color: #fff;"></div>										
										<input type="checkbox" name="autoconn" /> <?php echo lg("automaticConnection");?>
									</td>
								</tr>
								<tr>
									<td colspan="2"  id="exppass"></td><td></td>
								</tr>
								<tr>
									<td>&nbsp;</td><td></td>
								</tr>
								<tr>
									<td></td>
									<td>
										<div style="float: right;"><input type="submit" class="btn" style="font-size: 14pt;height: 30px;"value="<?php echo lg("connection");?>" /></div>
									</td>
								</tr>
							</table>
							</form>
						</div>
                        <?php launch_hook('display_login_form'); ?>
                    </div>
				</div>
			</div>
			<b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b>
		</div>
	</div>
</div>

</div>
<div style="display:none"><disconnected>1</disconnected></div>
<div id="debug"></div>
<?php 
if ( defined('__passwordChangePermission')  && (__passwordChangePermission) ) 
{ ?>
    <script type="text/javascript">
    if ( windowLocationObject.search.match('passwdupdated\=ok')) {
       $p.print("passhlp", lg('passwordModified') );
    }  else {
       $p.print("passhlp",$p.app.connection.link2MissingPassword() );
    }
    </script>
    <?php
}
?>
</body>
</html>