<?php
include ("../session.php");
include("../connect.php");
$user=$_SESSION['admin'];
$id=$_GET['id'];
?>

<html>
<head>
<link href="header.css" rel="stylesheet" type="text/css"/>
<link type="text/css" rel="stylesheet" href="overflow.css" />
<script type="text/javascript" src="jquery.js"></script>

 
<style type="text/css"> 
div.panel,p.flip
{
margin:0px;
padding:5px;
text-align:center;
background:#e5eecc;
border:solid 1px #c3c3c3;
}
p.flip2,div.panel2,p.flip3,div.panel3
{
margin:0px;
padding:5px;
text-align:left;
background:#FFFFFF;
border:solid 1px #c3c3c3;
}
div.panel
{
height:70px;
display:none;
}
div.panel2,div.panel3
{
height:70px;
}
</style>
</head>
<body>
<div id="content2">
<!-----------------Outer table--------------->
<table width=1000 border=0 cellspacing=10 cellpadding=3  >
<tr>
	<td colspan=2><?php include("head.php");?></td>
	</tr>
<tr>
	<td colspan=2>
		<div class=main>&nbsp;&nbsp;>>
			<a href="<?php echo"admin.php";?>">&nbsp;Home&nbsp;</a>>>
			<a href="<?php echo"register.php";?>">&nbsp;Register New&nbsp;</a>>>
			&nbsp;Successful Register&nbsp;
			</div></td>
	</tr>
<tr>
	<td width=200 valign=top>
	<!-----------Inner table 1----------------->
	<?php include("adminSide.php");?>
	<!-----------------End inner table 1----------------------->
	</td>
	<td valign=top>
	<!--------------------Inner table 2----------------------->
	<table class=corners cellspacing=1 cellpadding=10 width=98% align=right>
	<tr>
		<td>
	<?php  
		$query=mysql_query("select * from company where id='$id'");
		$display=mysql_fetch_array($query);
		
		$name=$display['cName'];
		$class=$display['class'];
		$address=$display['address'];
		$post=$display['postcode'];
		$country=$display['country'];
		$code=$display['countryCode'];
		$telNo=$display['telNo'];
		$email=$display['email'];
		$cPerson=$display['cPerson'];
		$rDate=$display['registerDate'];
		$eDate=$display['expireDate'];
		$password=$display['password'];
	
	?>
	<form>
	<fieldset>
		<legend><font color=red><b>Successful Register</b></font></legend>
		<br/>
		<table align=center width=500 cellpadding=5 cellspacing=3 border=0>
		<tr>
			<td><b>Company ID :</b></td>
			<td><b><?php echo $id;?></b></td>
			</tr>
		<tr>
			<td><b>Password :</b></td>
			<td><b><?php echo $password;?></b></td>
			</tr>
		<tr>
			<td><b>Company Name :</b></td>
			<td><?php echo $name;?></td>
			</tr>
		<tr>
			<td><b>Company Class :</b></td>
			<td><?php echo $class;?></td>
			</tr>
		<tr>
			<td><b>Company Address :</b></td>
			<td><?php echo $address;?></td>
			</tr>
		<tr>
			<td><b>Postcode :</b></td>
			<td><?php echo $post;?></td>
			</tr>
		<tr>
			<td><b>Country :</b></td>
			<td><?php echo $country;?></td>
			</tr>
		<tr>
			<td><b>Contact No :</b></td>
			<td><?php echo "(+".$code.") ".$telNo;?></td>
			</tr>
		<tr>
			<td><b>Email :</b></td>
			<td><?php echo $email;?></td>
			</tr>
		<tr>
			<td><b>In Charge Person :</b></td>
			<td><?php echo $cPerson;?></td>
			</tr>
		<tr>
			<td><b>Register Date :</b></td>
			<td><?php echo $rDate;?></td>
			</tr>
		<tr>
			<td><b>Expire Date :</b></td>
			<td><font color=red><?php echo $eDate;?></font></td>
			</tr>
		<tr>
			<td colspan=2 align=center class=button>
				<a href="<?php echo "register.php";?>">Back</a>&nbsp;&nbsp;&nbsp;
				<a href="<?php echo "receipt.php?id=$id";?>">Print Receipt</a>
				</td>
			</tr>
		</table>
		<br/>
		<address>*User id and password will send to company through the email.</address>
	</fieldset>
	</form>
		
		</td>
		</tr>
	</table>
	
	</td>
	</tr>
</table>
</div>
</body>
</html>