<? 
require_once "include/application.php"; 
require_once "include/function.php";


if(!$fdate)!$fdate=	date("d/m/Y",mktime(0,0,0,date("m"),1,date("Y")));	
if(!$tdate)!$tdate=	date("d/m/Y");	
?>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="sddm.css" >
<script src="include/validation.js" type="text/javascript"></script>
  <link rel="stylesheet" href="datepicker/themes/winter.css" />
<!-- Loading Calendar JavaScript files -->
    <script type="text/javascript" src="datepicker/zapatec.js"></script>
    <script type="text/javascript" src="datepicker/calendar.js"></script>
<!-- Loading language definition file -->
    <script type="text/javascript" src="datepicker/calendar-en.js"></script>

<script language="javascript1.2"> 
function generate() 
{
	var count = 0 ;
 	for ( var i = 0 ; i < document.form.personclm.length ; i++ )
 	{ 
 		if ( document.form.personclm.options[i].selected ){
			var c=document.form.personclm.options[i].value;

		}
	}
} 
</script> 


<title><? echo TITLE?></title>
</head>
<body>

<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f1efd8">
  <tr>
    <td  colspan="2" align="center"><? require_once "include/header.php"; ?></td>
  </tr>
  <tr>
    <td colspan="2" align="center">&nbsp;</td>
  </tr>
  <tr>
    <td width="185" valign="top" bgcolor="e6f3f9">
	
<? require_once "include/columnLeft.php"; ?>	</td>
    <td width="834" valign="top">
	<form name="form" method="post" action="reservListRpt.php" target="_blank" >
	  <table width="810" border="0" align="center" cellpadding="0" cellspacing="0">
      
      <tr>

        <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100%" height="30" class="TitleH3">Reservation List Report </td>
          </tr>
          <tr>
            <td height="1" bgcolor="#B8ED83"></td>
          </tr>
          <tr>
            <td ><? echo "<div class='Msg'>$action_msg</div>" ?>&nbsp;</td>
          </tr>

        </table>
          <table border="0" cellpadding="1" width="100%" cellspacing="2" class="small">
            <tr>
              <td height="7" colspan="2" class="TextH1">Reservation From Date:
                  <input name="fdate" type="text" class="small" id="fdate"   value="<? echo $fdate ?>" size="10" maxlength="10" />
                  <button id="trigger_fdate">...</button>
                  <script type="text/javascript">//<![CDATA[
      Zapatec.Calendar.setup({
        weekNumbers       : false,
        electric          : false,
        inputField        : "fdate",
        button            : "trigger_fdate",
        ifFormat          : "%d/%m/%Y",
        daFormat          : "%Y/%m/%d"
      });
    //]]></script>
To Date:
<input name="tdate" type="text" class="small" id="tdate"   value="<? echo $tdate ?>" size="10" maxlength="10" />
<button id="trigger_tdate">...</button>
<script type="text/javascript">//<![CDATA[
      Zapatec.Calendar.setup({
        weekNumbers       : false,
        electric          : false,
        inputField        : "tdate",
        button            : "trigger_tdate",
        ifFormat          : "%d/%m/%Y",
        daFormat          : "%Y/%m/%d"
      });
    //]]></script>              </td>
            </tr>
            
            <tr>
              <td height="17" colspan="2" class="TextH1"><select name="sType" id="sType">
  <option value="Name">Name</option>
  <option value="Card No">Card No</option>
  <option value="CardName">Name on the Card</option>
  <option value="NRIC">NRIC/Passport</option>
              </select>
<input name="sReferral" type="text" id="sReferral" value="<? echo $sReferral ?>" />
Book is confirm : 
<select name="sStatus" id="sStatus">
  <option value="Y">Yes</option>
  <option value="N">No</option>
</select>
 <span class="TextH2"><span class="text12">
 <input name="btnSearch" type="submit" class="btn150" id="btnSearch" value="Generate" />
</span></span></td>
            </tr>
          
            <tr>
              <td colspan="2" class="TextH2">&nbsp;</td>
            </tr>
            <tr>
              <td height="60" colspan="2" class="TextH2">&nbsp;</td>
            </tr>
          </table></td>

      </tr>
 
    </table>
	  <br />
	</form>	</td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="#333333"><div align="center"><span class="Footer">
      <br />
      <? require_once "footer.php"; ?>
    </span></div></td>
  </tr>
</table>
</body>
</html>
<?
if(array_search("Report",$menulist)==false)
		print("<script type='text/javascript'>location.href='index.php'</script>");
?>