<?php 
require_once('config/config.php');
require_once(CLASS_DIR.'dbClass.php');
require_once(INCLUDES_DIR.'header.php');
include('checklogin.php');
$obj = new DBClass();
if(isset($_GET['action']) && $_GET['action'] == 'upd'){
	$info[] = "Profile Updated Successfully...!";
}
$sql = "SELECT * FROM ".TBL_USER." WHERE (id = '".$_COOKIE['memberID']."' OR id = '".$_SESSION['memberID']."')";
$rs = $obj->executeQry($sql,$link);
$row = $obj->fetchrow();	 

?>


<div class="workarea">

            <div class="workareatop">

                <img src="images/workareatopcorner_03.PNG" alt="" />

            </div>

            

            <!--workareamid start--------------------->

            <div class="workareamid">

                <div id="floatleft" style="width:590px; float:left;">

                    <div class="welcomediv">

<h2>Profile</h2>
<?php ShowError($error); ShowInfo($info);?>
<div align="right" class="catname"><a href="edit_profile.php">Edit Profile</a></div>
		<table>
	 		<tr>
				<td align="right" class="formtxt">Name : </td>
				<td align="left" class="form_field"><?php echo $row['fname'].' '.$row['lname'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Email : </td>
				<td align="left" class="form_field"><?php echo $row['email'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Company Name : </td>
				<td align="left" class="form_field"><?php echo $row['company_name'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Customer Receipt Number : </td>
				<td align="left" class="form_field"><?php echo $row['crs'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Address1 : </td>
				<td align="left" class="form_field"><?php echo $row['address1'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Address2 : </td>
				<td align="left" class="form_field"><?php echo $row['address2'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">City : </td>
				<td align="left" class="form_field"><?php echo $row['city'];?></td>
			</tr>
			<tr>
				<td align="right" class="formtxt">State : </td>
				<td align="left" class="form_field"><?php echo $row['state'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Zip : </td>
				<td align="left" class="form_field"><?php echo $row['zip'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Phone : </td>
				<td align="left" class="form_field"><?php echo $row['phone'];?></td>
			</tr>
	 		<tr>
				<td align="right" class="formtxt">Fax : </td>
				<td align="left" class="form_field"><?php echo $row['fax'];?></td>
			</tr>
		</table>
	</div>

</div>


<?php require_once(INCLUDES_DIR.'left_bar.php');?>

                <!--floatright close-------------------->

                <div style="clear:both;"></div>

            </div>

            <!--workareamid close--------------------->

            

            <div class="workareabottom">

                <img src="images/workareabottomcorner_03.PNG" alt="" />

            </div>

        </div>

    <!--workarea close------------------------->



<?php require_once(INCLUDES_DIR.'footer.php');?>