<?php
include("../session.php");
include("../connect.php");

$id=$_GET['id'];
$user=$_SESSION['admin'];
?>
<html>
<head>
<link href="header.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<?php

$query=mysql_query("SELECT * from company where id='$id'");
		
$display=mysql_fetch_array($query);

$class=$display['class'];
$cName=$display['cName'];
$address=$display['address'];
$telNo=$display['telNo'];
$email=$display['email'];
$cPerson=$display['cPerson'];
$registerDate=$display['registerDate'];
$expireDate=$display['expireDate'];

echo "<b>".$id."</b>";

?>
<br/>
<table width=500 border=1 cellpadding=5 cellspacing=3 align=center>
	<tr>
		<td colspan=2 align=center><address>The company of your viewing is <b><?php echo $id?></b>.</address></td>
		</tr>
	<tr>
		<td>Company Name :</td>
		<td><?php echo $cName; ?></td>
		</tr>
	<tr>
		<td>Class :</td>
		<td><?php echo $class; ?></td>
		</tr>
	<tr>
		<td>Contact No :</td>
		<td><?php echo $telNo; ?></td>
		</tr>
	<tr>
		<td>Email :</td>
		<td><?php echo $email; ?></td>
		</tr>
	<tr>
		<td>In Charge Person :</td>
		<td><?php echo $cPerson; ?></td>
		</tr>
	<tr>
		<td>Address :</td>
		<td><?php echo $address; ?></td>
		</tr>
	<tr>
		<td>Register Date :</td>
		<td><?php echo $registerDate; ?></td>
		</tr>
	<tr>
		<td>Expire Date :</td>
		<td><?php echo $expireDate; ?></td>
		</tr>
	<table>


</body>
</html>