<?php
	//Start session
	session_start();
	
	//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.php");
		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>Stock Register</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/stockreg_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>
<link rel="stylesheet" href="../../css/redmond.datepick.css">
<link rel="icon" href="../../images/infosollogosmall.gif" type="image/x-icon" />
<script type="text/javascript" src="../../tablesorter/js/jquery.tablesorter.js"></script>

<!-- tablesorter widgets (optional) -->
<script type="text/javascript" src="../../tablesorter/js/jquery.tablesorter.widgets.js"></script>
<script src="../../tablesorter/js/widgets/widget-scroller.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" />
<!-- choose a theme file -->
<link rel="stylesheet" href="../../tablesorter/css/theme.default.css">
<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="pendingRawMatList" class="pendingRawMatList" style="    width: 355px !important;">
<div style=" background-color:white; height:0px;overflow-y: auto;    width: 97.3%;" class="dataDiv dataTableContainer" > </div>

<div class="dragDown">Inventory Transfer</div >

</div>


<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>Date Range</legend>
              <table>
                <tr>
                  <td>From:                    </td>
                  <td><input class="from" id="from" type="text" value="<?php echo date('d/m/Y')?>" size="10"    /></td>
                  <td>To:                    </td>
                  <td><input class="to" id="to" type="text" value="<?php echo date('d/m/Y')?>" size="10"/></td>
                </tr>
              </table>
            </fieldset></td>
          <td width=""><fieldset class="cmp" id="cmp" >
              <legend>Cmp</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="NAME">NAME</option>
                      <option value="MOBILE">MOBILE</option>
                      <option value="JOBID">JOB 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>

  </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">

  $(window).load(function() {
	  	  	

    $('#transperent').hide();
	
	 $.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>
