
	<? 
	require 'templates/'.$tfold.'/header.php';?>
	</td>
  </tr>
  
 
	<table width="980" cellpadding="0" cellspacing="0">
	<tr>
<tr class="tdhead_main"><td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_l.gif></td>
<td width="98%" height="24" valign="middle">&nbsp;<B>My Auction</b></td>
<td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_r.gif></td></tr>
	</table>
<table width="100%" align="center" cellpadding="0" cellspacing="0" border=0 class="ft_right"  style="padding-left : 10px; padding-right : 10px; padding-bottom : 10px; padding-top : 10px;" >
  <tr> 
    <td valign="top" >
  <? require 'include/usermenu.php';?></td>
<td valign="top">
  <table border="0" align="center" cellpadding="3" cellspacing="0" width=750 class="ft2">
      <table border="0" align="center" cellpadding="0" cellspacing="0" width="100%">
	<tr><td class="ct" colspan="6" height="23"><font size="2">
	<b><div align="left">
&nbsp;&nbsp;Alert Messages </b></font> </td></tr>
<tr><td>
<table cellpadding="15" cellspacing="0" align="center" width=100%>
<form name="alert_form" action="alert.php" method="post">
<? if($msg)
{
?>
<tr><td colspan=3><font size="2" ><b><?= $msg; ?></font></b></td></tr>
<?
$msg="";
}
?>
<?
	$alert_tot_sql="select * from user_alert where alert_type='P' or alert_type='R' and seller_id=$_SESSION[userid]"; 
	$alert_recordset_tot=mysql_query($alert_tot_sql);
	$alert_tot=mysql_num_rows($alert_recordset_tot);

if ($alert_tot > 0)
	{
	
	 $alert_sql="select * from user_alert where alert_type='P' and seller_id=$_SESSION[userid]"; 
	 $alert_recordset=mysql_query($alert_sql);

	?>
<tr height=10 class=tr_border>
<td><input type="checkbox" name="chkMain" id="chkbox" onClick="selectall()"></td><td><B><? echo "$lang_493" ?></B> </td>
<td><B>Subject</b></td> 
</tr>

<?    while($alert_records=mysql_fetch_array($alert_recordset))
	{
?>
<tr>
<td><input type="checkbox" name="chkbox[]" id="chkbox" value="<?=$alert_records[alert_id];?>"></td>
<td>
ITech Bids
</td>
<td>
<a href="alert_itechd.php?productid=<?= $alert_records[productid]; ?>&type=unpaid&seller_id=<?= $alert_records[seller_id]; ?>"><? echo "$lang_51" ?>#<?= $alert_records[productid]; ?></a></td></tr>
<?
}
 	$postsql="select * from user_alert where alert_type='R' and seller_id=$_SESSION[userid]"; 
	$postrecordset=mysql_query($postsql);
	$posttot=mysql_num_rows($postrecordset);
	while($postrecord=mysql_fetch_array($postrecordset))
	{
  	if(!empty($postrecord[productid]))
	{
	?>
	<tr>
<td><input type="checkbox" name="chkbox[]" id="chkbox" value=<?=$postrecord[alert_id]; ?>></td>
<td>
Administrator
</td>
<td><a href="alert_itechd.php?productid=<?= $postrecord[productid]; ?>&type=sell&buyer_id=<?= $postrecord[buyer_id]; ?>"><? echo "$lang_52" ?>#<?= $postrecord[productid]; ?></a></td></tr>
	<?
	    }
 		} 
	?>
			<input type="hidden" name=delete1>
	<input type="hidden" name="len" value="<?= $alert_tot+$posttot; ?>">
<tr><td align="center" colspan="3"><input type="button" value="Delete" onClick="del()"ss></td></tr>
</table>
<? }
else
{ ?>
<table cellpadding="15" cellspacing="0" align="center" width=100%>
<tr><td align="center"><b><? echo "$lang_53" ?></b></td></tr>
</table>
<? }?>
</form>
<td></tr></table>
</td>
</td></tr></table>
<tr align="center"><td>
	<table width="980" cellpadding="0" cellspacing="0" >
<tr>
<td width="98%" height="5" valign="middle"><img src=templates/<?=$tfold?>/img_files/t_bot.gif border="0"></b></td>
</tr>
	</table>
<? require 'templates/'.$tfold.'/footer.php'?></td></tr></td></tr></table>
</table>