<? error_reporting(0);
		require 'include/configurations.php'; // ITECHBIDS Configuration File 
		require 'include/datemanu.php'; 
		$moto="SELECT * FROM `genaralsettings` WHERE set_id=2";
	    $moto_row=mysql_query($moto);
		$moto_res=mysql_fetch_array($moto_row);
                $site_moto =$moto_res['set_value'];
                $s_title="SELECT * FROM `genaralsettings` WHERE set_id=2";
	        $s_title_row=mysql_query($s_title);
		$s_title_res=mysql_fetch_array($s_title_row);
                $site_title=$s_title_res['set_value'];
$username=$_SESSION[username];
error_reporting(0);
?>

<!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"  xml:lang="en" lang="en" >


<head>

<title><?=$site_title ?></title>

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
<script type="text/javascript" src="js/preview.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/highlight.js"></script>
<script type="text/javascript" src="js/countdown.js"></script>
<script type="text/javascript" src="js/jquery.curvycorners.source.js"></script>
<link rel="stylesheet" type="text/css" href="templates/<? echo "$tfold" ?>/cssfiles/theme1.css">
<script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="998" id="AutoNumber1">
  <tr>
    <td width="60%" rowspan="3" valign="middle"><a href="index.php"><img border="0" src="sitelogo/<?=$logo?>"></a></td>
    <td width="60%" colspan="3">&nbsp;</td>
  </tr>
  <tr>
<? if(empty($_SESSION[userid])) { ?>
    <form method="post" name="login" action="signin.php" style="padding:0px; border:0px;MARGIN: 0px;">
    <td width="17%" height="30"><div class="h_text_cell_small"><input type="text" name="txtUsername" class="h_text_small" value="<?=$lang_684?>" onclick="document.login.txtUsername.value='';"></div></td>
    <td width="17%"><div class="h_text_cell_small"><input type="password" name="txtPassword"  class="h_text_small" value="Password" onclick="document.login.txtPassword.value='';"></div></td>
    <td width="70" valign="middle"><input style="border:0px;margin;5px;" type="image" src="templates/<? echo "$tfold" ?>/img_files/login-btn.gif">
    <input type="hidden" name=mode value=check>
    <input type="hidden" name="seccode" value="<?=$num?>">
    </td>
    </form>
  </tr>
  <tr>
    <td width="50%" colspan="3">Forgot Password? <a href="forgot.php">Click Here</a>&nbsp;&nbsp;&nbsp;&nbsp;Not a Member? <a href="user_reg.php">Sign Up Now</a></td>
  </tr>
<? } ?>
<? if(!empty($_SESSION[userid])) { ?>
<?
$user_sqlh="select user_name as us, bid_num as bn from member_details where user_id=$_SESSION[userid]";
$user_resulth=mysql_query($user_sqlh);
$rowh=mysql_fetch_array($user_resulth);
$user_name=$rowh[us];
$bid_num=$rowh[bn];
$userid = $_SESSION[userid];
?>
<SCRIPT LANGUAGE='javascript'>GetBidNum(<?=$userid?>)</SCRIPT>
    <td width="17%" height="30" class="ct"><B><?=$lang_50?> <?=$username?></b></td>
    <td width="17%" class="ct"><B><?=$lang_753?>:<span id="bid_num"><?=$bid_num?></span></b></td>
    <td width="16%"><a href="signout.php"><img border="0" src="templates/<? echo "$tfold" ?>/img_files/logout-btn.gif"></a>
    <input type="hidden" name=mode value=check>
    <input type="hidden" name="seccode" value="<?=$num?>">
    </td>
  </tr>
  <tr>
    <td width="50%" colspan="3">&nbsp;</td>
  </tr>
<? } ?>

  <tr>
    <td width="110%" valign="middle" colspan="4">
		    <div id="mainnav">
<table><tr><td>
			<div class="nav">
			<ul> 
				<li><a href="index.php" class="active"><font color="white">Home</font></a></li>
				<li><a href="myauction.php"><font color="white">MY <?=$mysitename?></font></a></li>
<? if(empty($_SESSION[userid])) { ?>
				<li><a href="signin.php"><font color="white">SIGNIN</font></a></li>
<? } ?>
<? if(!empty($_SESSION[userid])) { ?>
				<li><a href="signout.php"><font color="white">SIGNOUT</font></a></li>
<? } ?>
				<li><a href="contact.php"><font color="white">CONTACT</font></a></li>
				<li><a href="help.php"><font color="white">HELP</font></a></li>
		   	</ul>
		    </div></td><TD>
<script type="text/javascript" src="templates/<? echo "$tfold" ?>/cssfiles/dropdowntabs.js"></script>

 <div id="colortab" class="ddcolortabs">
<table cellspacing="0" cellpadding="0" style="padding-top:0px; border-collapse: collapse;"><TR>
  <td width="1" style="border:0px; padding-left:4px; padding-right:0px;">
  <img src="templates/<? echo "$tfold" ?>/img_files/blockactive_left.gif"></td>
<td width="190" style="padding-top:0px; color: black; font-weight:bold; background-image: url(templates/<? echo "$tfold" ?>/img_files/blockactive.gif);">
<a href="index.php" rel="dropmenu1_a" style="padding-top:0px; color: black; font-weight:bold; text-decoration: none;">All Categories</a>
</td>
<td width="10" style="padding-top:0px; color: black; font-weight:bold; background-image: url(templates/<? echo "$tfold" ?>/img_files/blockactive.gif);">
<a href="index.php" rel="dropmenu1_a" style="padding-top:0px; color: black; font-weight:bold; text-decoration: none;"><img src="templates/<? echo "$tfold" ?>/img_files/ul.gif" border="0"></a>
</td>
<td width="1" style="border:0px; padding-left:0px; padding-right:0px;">
  <img src="templates/<? echo "$tfold" ?>/img_files/blockactive_right.gif"></td></tr></table>
</div>
<!--1st drop down menu -->                                                   
<div id="dropmenu1_a" class="dropmenudiv_a" style="font-weight:bold; color:#FFFFFF;">
<?
require 'include/tot_cat.php';

		$category_sql="select * from site_categories where category_head_id=0 order by serial";
		$category_result=mysql_query($category_sql);
		while($category_row=mysql_fetch_array($category_result))
		 {
		$categoryname= $category_row['category_name'];
		$category_id= $category_row['category_id'];


	?>
<a href="all_live.php?cats_id=<?= $category_row['category_id']; ?>&list_type=0">&nbsp;&nbsp;<?=$categoryname?>&nbsp;(<? echo tot_cat($category_id); ?>)</a>
	<?	
	} selling_method!='11' and
$datecheck=date("Y-m-d H:i:s");
$feature_sql_a="select productid from auction_details where selling_method!='11' and picture1!='' and (bid_starting_date <= '$datecheck') and (expire_date > '$datecheck')";
$feature_res_a=mysql_query($feature_sql_a);
$tot_count_main_a=mysql_num_rows($feature_res_a);

$feature_sql_s="select productid from auction_details where selling_method='11' and picture1!='' and (bid_starting_date <= '$datecheck') and (expire_date > '$datecheck')";
$feature_res_s=mysql_query($feature_sql_s);
$tot_count_main_s=mysql_num_rows($feature_res_s);

$feature_sql_c="select productid from auction_details where picture1!='' and (bid_starting_date <= '$datecheck') and (expire_date < '$datecheck')";
$feature_res_c=mysql_query($feature_sql_c);
$tot_count_main_c=mysql_num_rows($feature_res_c);

$feature_sql_f="select productid from auction_details where picture1!='' and (bid_starting_date > '$datecheck') and (expire_date > '$datecheck')";
$feature_res_f=mysql_query($feature_sql_f);
$tot_count_main_f=mysql_num_rows($feature_res_f);

	?>
<a href="all_live.php?cats_id=0&list_type=0"><?=$lang_772?>&nbsp;(<? echo $tot_count_main_a; ?>)</a>
<a href="all_live.php?cats_id=0&list_type=0">Scratch Auction&nbsp;(<? echo $tot_count_main_s; ?>)</a>
<a href="all_live.php?cats_id=0&list_type=1"><?=$lang_773?>&nbsp;(<? echo $tot_count_main_f; ?>)</a>
<a href="all_live.php?cats_id=0&list_type=3"><?=$lang_274?>&nbsp;(<? echo $tot_count_main_c; ?>)</a>
</div>
</td>
  </tr>

</table>
</div>

</td>
  </tr>

</table>
<script type="text/javascript">
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("colortab", 3)
</script>
<table align="center" border="0" cellpadding="0" cellspacing="0" style="text-align:center;color:white; border-collapse: collapse" bordercolor="#111111" width="998">
  <tr>
    <td width="998" valign="middle" class="mainbody"><BR>