<link rel="stylesheet" href="css/jquery-ui.css" />
<link href="style1.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
<link rel="stylesheet" href="CalendarControl.css" type="text/css" />
<script language="javascript" src="CalendarControl.js"></script>
<script src="js/jquery/jquery.js" type="text/javascript"></script>
<script src="js/jquery/jquery-1.8.2.js"></script>
<script src="js/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery/autocomplete_jquery_plugin.js"></script>
<script src="js/enter_event_ajax.js" type="text/javascript"></script>
<script>
function job_card_report(from_date,to_date,customer_name)
 {
// alert( "from_date="+from_date+"&to_date="+to_date+"&job_card_no="+job_card_no+"&customer_name="+customer_name);
  jQuery.ajax({
  type: "GET",
  url: "report/customer_wise_printer/customer_wise_list.php",
  data: "from_date="+from_date+"&to_date="+to_date+"&customer_name="+customer_name,
  success: function(msg){jQuery("#customer_wise_div1").html(msg);
 }
    });
 }

 var po = jQuery.noConflict();
po().ready(function() 
{ 
	po("#customer_name").autocomplete("include/autocomplete/printer_cust_name_auto_complete.php", {
	width: 150,
	matchContains: true,
		selectFirst: true
	});
});

</script>
<style type="text/css">
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px;}
.style9{ text-align:left;font-family:Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; padding:0px; font-weight: 600;color:#333;letter-spacing: 1px;padding:10px; background-color:#f7f7f7;}
.types_class { 
    height: 25px; 
    width: 230px; 
    background-color: transparent;  
    border-style: solid;  
    border-width: 0px 0px 1px 0px;  
    border-color:#CCC; 
    outline:0;
	font-size:14px;
  } 
  
  .types_class1 { 
    height: 25px; 
    width: 140px; 
    background-color: transparent;  
    border-style: solid;  
    border-width: 0px 0px 1px 0px;  
    border-color:#CCC; 
    outline:0;
	font-size:14px;
  } 
.textbox:focus {
    border-color: #C9C9C9;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0 0 8px;
}  
</style>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="table-responsive">
<form name="inward_outward_report"  id="inward_outward_report" method="post" action=""  enctype="multipart/form-data">
<table width="100%" border="0" align="center" style="border-top:solid 1px; color:#ddd;">
<tr align="left"><div class="style9">Customer Wise Report&nbsp;&nbsp;</div><tr></table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="8%" align="left" class="style7">&nbsp;&nbsp;<strong>From Date</strong></td> 
<td width="14%" align="left"><span class="style7"><input type="date" class="types_class1" name="from_date" id="from_date"  style="height:23px; width:150px" value="<?php if($_GET['from_date']!='') { echo $_GET['from_date']; } else { echo date("Y-m-d"); }?>"  /></span></td>
<td width="7%" align="left" class="style7"><strong>To Date</strong></td> 
<td width="13%" align="left" class="style15"><input type="date" class="types_class1" name="to_date" id="to_date" style="height:23px;width:150px;" value="<?php if($_GET['to_date']!='') { echo $_GET['to_date']; } else { echo date("Y-m-d"); }?>" /></td>
<td width="10%" align="left" class="style15"><span class="style7"><strong>Customer Name</strong></span></td>
<td width="15%" align="left" class="style15"><div id="cust_div">
  <input type="text" class="types_class1" name="customer_name" id="customer_name" style="height:23px;width:150px;" value="<?php if($_GET['customer_name']!='') { echo $_GET['customer_name']; } ?>" /></div></td>
<td width="9%" align="left" class="style15"><a href="#"  onClick="job_card_report(from_date.value,to_date.value,customer_name.value)"><img src="img/search_icon.png" width="40" height="35" title="Search" value="Search" /></a></td> 
</tr>
</table>
<table width="100%" >
<tr>
   <td colspan="3" align="center"><div id="customer_wise_div1"><?php include("customer_wise_list.php"); ?></div></td>
</tr>
</table>
</form>

</div>
</div>
</div>
</div>