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

$query=mysql_query("SELECT * FROM agent where agentID='$id'");
$display=mysql_fetch_array($query);

$name = $display['name'];
$code = $display['countryCode'];
$cNo = $display['contactNo'];
$ic = $display['ic'];
$pic = $display['pic'];
$email = $display['email'];
$password = $display['password'];
$joinDate = $display['joinDate'];

?>
<html>
<head>
<link href="../header.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="content2">
<table width=1000 border=0 cellspacing=10 cellpadding=3 class=outer >
<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 "newAgent.php";?>">&nbsp;New Agent&nbsp;</a>>>
			<a href="<?php echo "success.php?id=$id";?>">&nbsp;Successful&nbsp;</a>
			</div></td>
	</tr>
<tr>
	<td>
<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>Agent ID :</b></td>
			<td><b><?php echo $id;?></b></td>
			</tr>
		<tr>
			<td><b>Password :</b></td>
			<td><?php echo $password;?></td>
			</tr>
		<tr>
			<td><b>Agent Name :</b></td>
			<td><?php echo $name;?></td>
			</tr>
		<tr>
			<td><b>I/C :</b></td>
			<td><?php echo $ic;?></td>
			</tr>
		<tr>
			<td><b>Contact No :</b></td>
			<td><?php echo "(+".$code.") ".$cNo;?></td>
			</tr>
		<tr>
			<td><b>Email :</b></td>
			<td><?php echo $email;?></td>
			</tr>
		<tr>
			<td><b>Register Date :</b></td>
			<td><?php echo $joinDate;?></td>
			</tr>
		<tr>
			<td colspan=2 align=center class=button><a href="<?php echo "newAgent.php";?>">Back</a></td>
			</tr>
		</table>
	</fieldset>
	</form>
	</td>
	</tr>
</table>
</div>
</body>
</html>