<?php
	//Start session
	session_start();
	error_reporting(E_ALL ^ E_NOTICE ^E_WARNING);
	//Check whether the session variable SESS_MEMBER_ID is present or not
	if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
		header("location: index.html");
		exit();
	}
	/*if($_SESSION['SESS_BOOKING']==0) {
		header("location: logout.php");
		exit();
	}*/

?>


<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
<title>Debit Note</title>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script type="text/javascript" src="../../javascript/jquery.js"></script>
<script type="text/javascript" src="../../javascript/debitreg_rel.js"></script>
<script type="text/javascript" src="../../javascript/jquery.sticktableheader.js"></script>
<script type="text/javascript" src="../../javascript/jquery.php_excel.js"></script>
<script type="text/javascript" src="../../javascript/picnet.table.filter.min.js"></script>
<script type="text/javascript" src="../../javascript/jquery.balloon.min.js"></script>
<script type="text/javascript" src="../../javascript/jquery.datepick.min.js"></script>
<script type="text/javascript" src="../../javascript/jquery.autocomplete.js"></script>
<script type="text/javascript" src="../../javascript/common_rel.js"></script>
<script type="text/javascript" src="../../javascript/jNotify.jquery.js"></script>
<script type="text/javascript" src="../../javascript/jNotify.jquery.min.js"></script>
<link rel="stylesheet" href="../../css/jNotify.jquery.css" type="text/css" />

<link rel="stylesheet" href="../../css/redmond.datepick.css">
<link rel="icon" href="../../images/infosollogosmall.gif" type="image/x-icon" />

<link rel="stylesheet" href="../../css/jquery.autocomplete.css" type="text/css" >
</link>
<link rel="stylesheet" href="../../css/style.css"  type="text/css">
</link>

</head>

<body >

<div id="excel_interstep"  style=" display:none">
</div>

<div id="transperent" >
</div>
    

<div class="main">
  <div class="page">
    <?php include '../../header.php';?>

    <div class="gap"></div>
  </div>
  <div class="left-panel">
  <?php include '../../side_menu.php';?>
    
    <div class="gap"></div>
  </div>
  <div class="sidemenu_hide"><<</div>
<div class="sidemenu_show" style="display:none">>></div>
  <div class="right-panel">
  
      <table cellspacing="5px">
        <tr>
          <td width=""><fieldset class="bookingdetail" id="bookingdetail" >
              <legend>Boking Details</legend>
              <table>
                <tr>
                  <td>From:                    </td>
                  <td><input autocomplete="off" class="from" id="from" type="text" placeholder="<?php echo date('d/m/Y')?>" size="10"    /></td>
                  <td>To:                    </td>
                  <td><input autocomplete="off" class="to" id="to" type="text" placeholder="<?php echo date('d/m/Y')?>" size="10"/></td>
                </tr>
              </table>
            </fieldset></td>
          <td width=""><fieldset class="cmp" id="cmp" >
              <legend>Company</legend>
              <table >
                <tr>
                  <td><select name="cmpsort" id="cmpsort">
                 <!--     <option  value="<?php //echo $_SESSION['SESS_CMPC']; ?>"><?php //echo $_SESSION['SESS_CMPC']; ?></option>
                      <option selected="selected" value="ALL">ALL</option>
                      -->
                    </select></td>
                </tr>
              </table>
            </fieldset></td>
          <td width="" style="display:none"><fieldset class="branch" id="branch" >
              <legend>Branch</legend>
              <table>
                <tr>
                  <td><select name="brasort" id="brasort">
                      <option>HO</option>
                     
                    </select></td>
                </tr>
              </table>
            </fieldset></td>
          <td width="" ><fieldset class="sort_by" id="sort_by" >
              <legend>Sort By</legend>
              <table>
                <tr>
                  <td><select name="sortby" id="sortby">
                     <option selected="selected">ALL</option>
                      <option value="BUYER">BUYER</option>
                      <option value="ORDERID">ORDER ID</option>
                    </select>
                    
                    </td>
                    <td><input class="searchtype" id="searchtype" type="text"  title="Search Booking" /></td>
                </tr>
              </table>
            </fieldset></td> 
          <td >
		  <table>
              <tr>
                <td ><input class="search button" id="search" type="button"  value="View" title="Search Booking" /></td>
              </tr>
			  
            </table>
		  </td>
			
			<td ><input name="New" type="button" class="button" id="New"  value="New" title="Enter New Duty" />
        </td>
			<td ><input type="button" value="Excel" id="ex_excel" class="ex_excel button" title="Export as Excel"/><!--<form action="book_export_excel.php" method ="post" > 
<input type="hidden" name="csv_text" id="csv_text">
<input type="submit" value="Excel" id="ex_excel" class="ex_excel button" onClick="getCSVData()" />
</form>--></td>
		  <td ><input type="button" name="ex_pdf" class="ex_pdf button" id="ex_pdf" value="Pdf" title="Export as PDF" /></td>
			<td  ><span class="currenttab" style="float:right"></span><!--<div style="background-image: url(images/3d_button.gif); width:74px; height:28px;border: thin solid; " ><input type="checkbox" style="position:relative; top:5px"; name="process_bill" id="process_bill" />
		    <label style="position:relative; top:4px"  for="process_bill">Process&nbsp;</label></div>-->
            <div>
<!--              <form enctype="multipart/form-data" method="POST" action="bookinghome.php">
<input name="userfile" type="file" style=" font-size: .9em;">    
<input type="submit" value="Upload" class="filter_table">
  </form>-->
  </div>
            
            </td>

        </tr>
      </table>
   
    <div id="demo">
    
    <div id="form_bookdetails">
      
      </div>
    </div>
     <div id="div_page" style="width:100%">
      
      </div>
  </div>
</div>
</div>
<script language="javascript" type="text/javascript">
/*$("#searchtype").autocomplete(
      "sortby.php?",
      {
  			delay:10,
  			minChars:1,
  			matchSubset:1,
  			matchContains:1,
  			cacheLength:10,
			mustMatch:1,
  			autoFill:false
  		}
    );*/
  $(window).load(function() {
	  	  	$('.left-content ul li a[href="bookinghome.php"]').css({'font-size':'18px'});

    $('#transperent').hide();
	//window.open ("jSuccesss.php","mywindow","menubar=1,resizable=1,width=870,height=480,left=150,top=220");
	//positionedPopup("jSuccesss.php",480);
	
	 $.post("../../data.php?mode=getcode",{},function(result){
		 var cmp=result.split('\n');
		for(i=0;i<cmp.length-1;i++)
	$("#cmpsort").append('<option>'+cmp[i]+'</option>');
	 });

  });
  
 
</script>
</body>
</html>
