<?
	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);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$lng_characset;?>" />
<title><?=$AllPageTitle;?></title>
<link href="css/style_youbid.css" rel="stylesheet" type="text/css" />
<link href="css/menu.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="function.js"></script>
</head>

<body onload="OnloadPage();">
<div id="main_div">
<?
	include("d1.php");
?>
		<div id="middle_div">
		
	 <div id="cleaner"></div>
		<div class="openAuction_bar_mainDIV">
			<div class="openAction_bar-left"></div>
			<div class="openAction_bar-middle"><div class="page_title_font"><?=$lng_aucavenuelogin;?></div></div>
			<div class="openAction_bar-right"></div>
		 </div>		 

		 <div class="openAuction_bar_mainDIV2" style="height: 380px;">
			<div id="register-now-box" style="background: url(<?=$lng_imagepath;?>login_voucher.jpg) no-repeat;">
					<div style="margin-left: 20px; margin-top: 20px;">
						<div style="margin-top:8px; width:200px;" class="page_title_font"><strong><?=$lng_newtoaucavenue;?></strong></div>
						<div style="margin-top:40px; width:240px;"><?=$lng_exciteauctions;?></div>
						<div style="margin-top:10px; width:240px;">
							<ul type="square">
								<li><?=$lng_newestproduct;?></li>
								<li><?=$lng_loginvoucher;?></li>
								<li><?=$lng_freeregister;?></li>
							</ul>
							<div style="margin-top: 40px;"><a href="simreg.html"><img src="<?=$lng_imagepath;?>register_btn.gif" border="0" onmouseover="this.src='<?=$lng_imagepath;?>register_btn-hover.gif'" onmouseout="this.src='<?=$lng_imagepath;?>register_btn.gif'" /></a></div>
						</div>
						<div style="height:330px; width:225px; float:right; margin-top:-200pt;clear:left" align="right"></div>
						<div style="height: 10px;">&nbsp;</div>
					</div>
				</div>		 
				
			<div id="already-registered" style="width: 370px;">
					<form name="f1" method="post" action="password.html">
					<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><?=$lng_username;?>£º</div>
							<div style="margin-top: 10px;"><input type="text" name="username" id="username" class="logintextboxclas" /></div>
							<div style="margin-top: 15px;"><?=$lng_password;?>:</div>
							<div style="margin-top: 10px;"><input type="password" 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;?></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>
		 <div id="cleaner"></div>
		 <div class="openAuction_bar_bottom">
		 	<div class="openAuction_leftcorner"></div>
			<div class="openAuction_bar_middle"></div>
		 	<div class="openAuction_rightcorner"></div>
		 </div>

		</div>
<?
	include("footer2.php");
?>		
<span style="display: none;" class="firstimagebold" id="firstimage_bold"><?=$totalauc;?></span>
</div>
<script language="javascript" src="jquery.js"></script>
<script language="javascript" src="effect.js"></script>
<script language="javascript" src="default.js"></script>
<script language="javascript" src="jqModal.js"></script>
</body>
</html>
