<?php
session_start();
ob_start();

require("../includes/config.php");
require("../includes/dbcon.php");
if($_SESSION['uid']==""){	
	header("location:index.php");
	exit();
}
$eId=$_REQUEST['eId'];
$enrolleeQuery = mysql_query("select * from enrollee where enrollee_id=".$eId);
$enrolleeValue = mysql_fetch_array($enrolleeQuery);

$enrolleeName=$enrolleeValue['fisrt_name']." ".$enrolleeValue['middle_name']." ".$enrolleeValue['last_name'];
if( !empty($_POST) )
{
	$status=trim($_REQUEST['status']);
	
	$update_sql="update enrollee SET current_status_code=".$status;
	$update_sql .= " WHERE enrollee_id=".$eId;		
	$rs=mysql_query($update_sql) or die(mysql_error());
	
	header("location:userList.php");
}
ob_end_flush();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../style/design.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
.style1 {font-size: 0.8em}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:::   Officer's Opinion Page   :::</title>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center" valign="top">
<?php
include_once("includes/header.php");
?>
		<form name="frm" method="post" action="">
			<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td width="30%" valign="top"><div class="bodySubHeader"> <span class="bsht03">Opinion of Officer on <?=$enrolleeName?> </span> </div></td>
				</tr>
			</table>
			<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0" class="DarkLightBox">		
			<tr>
			    <td width="30%" height="30" align="right" valign="top" class="browseEventContents"><b>Aprove:</b></td>
				<td height="30" align="left" valign="top" width="1%">&nbsp;</td>
				<td width="5%" height="30" align="left" valign="middle"><img src="../images/green.jpg" border="0" alt="Aprove" title="Aprove"></td>
				<td height="30" align="left" valign="top" width="1%">&nbsp;</td>
				<td align="left" valign="middle"><input type="radio" name="status" value="1" checked></td>
			 </tr>
			 <tr>
			    <td width="30%" height="30" align="right" valign="top" class="browseEventContents"><b>Need further Docs:</b></td>
				<td height="30" align="left" valign="top" width="1%">&nbsp;</td>
				<td width="5%" height="30" align="left" valign="middle"><img src="../images/orange.jpg" border="0" alt="Need further Docs" title="Need further Docs"></td>
				<td height="30" align="left" valign="top" width="1%">&nbsp;</td>
				<td align="left" valign="middle"><input type="radio" name="status" value="2"></td>
			 </tr>	
			 <tr>
			    <td width="30%" height="30" align="right" valign="top" class="browseEventContents"><b>Not Aprove:</b></td>
				<td height="30" align="left" valign="top" width="1%">&nbsp;</td>
				<td width="5%" height="30" align="left" valign="middle"><img src="../images/red.jpg" border="0" alt="Not Aprove" title="Not Aprove"></td>
				<td height="30" align="left" valign="top" width="1%">&nbsp;</td>
				<td align="left" valign="middle"><input type="radio" name="status" value="3"></td>
			 </tr>	
			 <tr>
			   <td height="30" align="right" valign="top" class="browseEventContents" colspan="5"><input name="Submit" type="submit" value="Next" /></td>
			 </tr>
		</table>
	</form>
<?php
include_once("../includes/footer.php");
?>
		</td>
	</tr>
</table>
</body>
</html>