<?
require_once('includes/configure.php');
require_once "includes/$lang/reservappr.php";
//require_once "../admin/include/function.php";
//require_once "../admin/include/paginator.php";
//require_once "../admin/include/paginator_html.php";

?>
<!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" <?= HTML_PARAMS ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= CHARSET ?>" />
<title><?=TITLE?></title>
<!-- SmartMenus 6 config and script core files -->
<? if($_SESSION["egoLang"]=="ENG"){ ?>
<script type="text/javascript" src="c_config.js"></script>
<? }else if($_SESSION["egoLang"]=="CH"){ ?>
<script type="text/javascript" src="ch_config.js"></script>
<? } ?>
<script type="text/javascript" src="c_smartmenus.js"></script>

<!-- SmartMenus 6 config and script core files -->
 
<link rel="stylesheet" type="text/css" href="../styles.css" >
</head>

<body>
<table width="1000" height="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="82" background="../images/iconic_01.jpg"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="91%" height="30" align="right" valign="bottom" class="topmenu"><? include_once "includes/topmenu.php"; ?></td>
        <td width="9%" rowspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td height="4"></td>
      </tr>
      <tr>
        <td height="14" align="right">
          <? include_once "includes/menu.php"; ?>
</td>
        <td height="29" rowspan="2"></td>
      </tr>
      <tr>
        <td height="3" align="right"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="500" valign="top" background="../images/vacation_08.jpg" style="background-repeat:no-repeat"><p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <table width="76%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="789" height="40" valign="bottom" class="title1"><?=RESERV_APPR;?></td>
      </tr>
      
      <tr>
        <td >
		<form name="form" method="post" action="<?=$PHP_SELF ?>" >
	   <table width="820" height="250" border="0" align="center" cellpadding="0" cellspacing="0">
      
      <tr>
        
        <td valign="top"><br />
          <table border="0" cellpadding="1" width="100%" cellspacing="2" class="small">

          <tr>
            <td width="128" height="23" bgcolor="#03A1BC" class="text2"><div align="center">Membership No </div></td>
            <td width="215" bgcolor="#03A1BC" class="text2"><div align="center">Membership Name </div></td>
            <td width="143" bgcolor="#03A1BC" class="text2"><div align="center">NRIC/Passport</div></td>
            <td width="155" bgcolor="#03A1BC" class="text2"><div align="center">Reservation Request</div></td>
            <td width="108" bgcolor="#03A1BC" class="text2"><div align="center">Date Apply </div></td>
            <td width="35" bgcolor="#03A1BC" class="footer">&nbsp;</td>
          </tr>
          <?
/*
	$sql="select irs_id, irs_memberno,irs_created,irs_for,im_name,im_ic from ivc_reservation left join ivc_members on irs_memberno=im_cardno  
	where irs_confirm_choice='0' ";
	if($sReferral){
		if($sType=="Name")$sql.=" and im_name like '%$sReferral%'";			
		else if($sType=="FormNo")$sql.=" and im_formno like '%$sReferral%'";				
		else if($sType=="CardNo")$sql.=" and im_cardno like '%$sReferral%'";				
		else if($sType=="CardName")$sql.=" and im_cardname like '%$sReferral%'";				
		else if($sType=="NRIC")$sql.=" and im_ic like '%$sReferral%'";				
	}	

	$result=mysql_query($sql);
	$num_rows=mysql_num_rows($result);

	$pass="so=1&sReferral=$sReferral&sType=$sType";
    $a =& new Paginator_html($_GET['page'],$num_rows,$pass);	
	$a->set_Limit(15);
	$a->set_Links(10);  	
	$limit1 = $a->getRange1();  
	$limit2 = $a->getRange2();  
	$sql.=" order by irs_id limit $limit1,$limit2 ";	
	$result=mysql_query($sql) or die(mysql_error());

	while($myrow=MySQL_fetch_array($result,MYSQL_ASSOC))
	{
		echo "<tr bgcolor='#ffffff' class='TextH1'>"; 
		$id=$myrow["irs_id"];
	    echo "<td height='20' align='center' class='text12'>".$myrow["irs_memberno"]."</td>";	  				
	    echo "<td height='20' align='center' class='text12'>".$myrow["im_name"]."</td>";	  				
	    echo "<td align='center' class='text12'>".$myrow["im_ic"]."</td>";	  										
	    echo "<td align='center' class='text12'>".$myrow["irs_for"]."</td>";	  		
	    echo "<td align='center' class='text12'>".window_date($myrow["irs_created"])."</td>";	  										
		echo "<td align='center' class='text12'><a href='reservConfirmEdit.php?id=$id'><img src='images/view.png' border='0'></a>";
		echo "</td>";	  								
		echo "</tr>";

	}
*/
?>
          <tr>
            <td colspan="9" class="TextH2"><? //echo "Total Record :[".$num_rows."] "; 
			//if($num_rows)$a->previousNext();
			?></td>
          </tr>
        </table>
          <!--        <div class="scroll"> --></td>
      </tr>
    </table>
		</form>		</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><? include_once "includes/bottom.php" ?></td>
  </tr>
</table>
</body>
</html>