<?
ob_start();
session_start();
if($_SESSION['uname']=='' || $_SESSION['pwd']=='')
		{
			header("location:login.php");
		}
 include("../include/db.inc.php"); 
 include("../include/bit_functions.inc.php");
   $db1=new db;
   $db1->open();
    mysql_query("SET NAMES 'utf8'");  
		
$id=$_GET['id'];
	$sel_qry=mysql_query("select * from newsletter_subscribe where id=".$id);
	$myrow=mysql_fetch_array($sel_qry);
?> 
<HTML>
<title><?=_TITLE1_?> ADMINISTRATOR</title>
<link href="../css/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #093A9C}
.style2 {color: #FE6905}
-->
</style>

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="text2">
<center>
<table height="100%" width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="text3">	
    <tr>
	  <td align="center" valign="top">
	  <table  width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
  <tr> 
    <td width="1" valign="top">&nbsp;</td>
    <td width="957" valign="top"><br> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
        <tr> 
          <td width="33" valign="top"><img src="img/03.gif" width="33" height="23"></td>
                  <td background="img/bg01.gif"><strong>&nbsp;USER INFORMATION</strong></td>
          <td width="35"><img src="img/04.gif" width="35" height="23"></td>
        </tr>
      </table>
      <table  width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
        <tr> 
          <td width="22" valign="top" background="img/tbl-left04.gif"><img src="img/tbl-left04.gif" width="22" height="13"></td>
          <td valign="top" align="center">		  
		  <br>	             
  
<table cellspacing="2" cellpadding="1"  border="0" width="98%" bordercolor="#CCCCCC" bgcolor="#E6F2FF">
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">Status</td>
                        <td height="35"  align="left"><? if($myrow['blocked']=='1')
															{
															echo "UnBlocked";
															
															}else{
															
															echo "Blocked";
															}
																		;?></td>
                      </tr>
                      
                      
                      
					  <tr bgcolor="#FFFFFF"> 
                        <td height="35">Firstname</td>
                        <td height="35"  align="left"><?=get_fieldval(id,first_name,user,$myrow['uid'])?></td>
                      </tr>
					  <tr bgcolor="#FFFFFF"> 
                        <td width="17%" height="35">Lastname</td>
                        <td width="83%" height="35"  align="left"><?=get_fieldval(id,last_name,user,$myrow['uid'])?></td>
                      </tr>
					  
				        <tr bgcolor="#FFFFFF"> 
                        <td width="17%" height="35">Username</td>
                        <td width="83%" height="35"  align="left"><?=get_fieldval(id,uname,user,$myrow['uid'])?></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">Password</td>
                        <td height="35"  align="left"><?=$myrow['password']?></td>
                      </tr>
                      
                     <tr bgcolor="#FFFFFF"> 
                        <td height="35">Email</td>
                        <td height="35"  align="left"><?=$myrow['email']?></td>
                      </tr>
                    
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">Gender</td>
                        <td height="35"  align="left"><?=$myrow['gender']?></td>
                      </tr>

                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">Date of Birth</td>
                        <td height="35"  align="left"><?=$myrow['bday']?></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">No.of bids</td>
                        <td height="35"  align="left"><?=$myrow['no_bids']?></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">User Image</td>
                        <td height="35"  align="left"><?=get_product_image_admin($myrow['image'],100,80)?></td>
                      </tr>
                         </table>                     

		            <br>
		  
			</td>
          <td width="19" valign="top" background="img/tbl-right04.gif"><img src="img/tbl-right04.gif" width="19" height="9"></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
              <tr> 
                <td width="33"><img src="img/tbl-bot01.gif" width="33" height="12"></td>
                <td  width="709" align="right" background="img/tbl-bg.gif"></td>
                <td width="33"><img src="img/tbl-right05.gif" width="35" height="12"></td>
              </tr>
            </table>
      
    </td>
    <td width="20" valign="top">&nbsp;</td>
  </tr>
</table></td>
    </tr>
  </table>
</center>
</body>
</html>
<? ob_end_flush();?>