<?
	include("config/connect.php");
	include("functions.php");
	$uid  = $_SESSION["userid"];
	$qryauc = "select *, p.productID as pid, p.".$lng_prefix."name as name from auction a left join products p on a.productID=p.productID left join auc_due_table adt on a.auctionID=adt.auction_id where adt.auc_due_time!=0 and a.auc_status=2 order by adt.auc_due_time limit 0,3";
	$resauc = mysql_query($qryauc);
	$totalauc = mysql_num_rows($resauc);
	header("Content-type: text/html; charset=utf-8");
?>
			<div id="already-registered" style="width: 370px;">
					<form name="f1" method="post" action="password_dialog.php">
					<div style="margin-left: 15px; margin-top: 25px; padding-right: 5px;">
						<div style="margin-top:4px; color:#0548a5; font-size:16px; font-family: 'Arial Narrow'"><strong><?=$lng_alreadyregister;?></strong></div>
						<div style="margin-top:10px; font-size:14px; font-family:'Arial Narrow'"><strong><?=$lng_logindata;?></strong></div>
						<div style="margin-top:15px; font-size:14px; margin-left: 20px;">
							<div style="margin-top: 10px;"><?=$lng_username;?>:<input type="text" style="width:200px; margin-left:10px" name="username" id="username" class="logintextboxclas" /></div>
							<div style="margin-top: 10px;"><?=$lng_password;?>:<input type="password" style="width:200px; margin-left:8px" name="password" id="password" class="logintextboxclas" /></div>
							<div style="margin-top: 15px;"><input type="image" src="<?=$lng_imagepath;?>LOGIN_btn.png" onmouseover="this.src='<?=$lng_imagepath;?>LOGIN_btn-over.png'" onmouseout="this.src='<?=$lng_imagepath;?>LOGIN_btn.png'" /></div>
							<div style="margin-top: 10px;"><?=$lng_forgotdata;?><span style="margin-left:10px"><a href="javascript:parent.location.href='simreg.html'"><?=$lng_re;?></a></span></div>
							<?
								if($_GET["err"]==1)
								{
							?>
								<div style="margin-top: 10px;" class="red-text-12-b"><?=$lng_invaliddata;?></div>
							<?
								}
								elseif($_GET['err']==2)
								{
							?>	
									<div style="margin-top: 10px;" class="red-text-12-b"><?=$lng_accountsuspend;?></div>
							<?		
								}
								elseif($_GET['err']==3)
								{
							?>	
									<div style="margin-top: 10px;" class="red-text-12-b"><?=$lng_accountdelete;?></div>
							<?		
								}
								elseif($_GET['err']==4)
								{
							?>	
									<div style="margin-top: 10px;" class="red-text-12-b"><?=$lng_enterdata;?></div>
							<?		
								}
								elseif($_GET['err']==5)
								{
							?>	
									<div style="margin-top: 10px;" class="red-text-12-b"><?=$lng_enterpassword;?></div>
							<?		
								}
							?>
						</div>
					</div>
					</form>
				</div>
		 <div id="cleaner"></div>
</body>
</html>
