<link rel="stylesheet" href="css/jquery-ui.css" />
<link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
<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>
 function porforma_billing_search(from_date,to_date,cus_name,billing_type)
 {
    
  jQuery.ajax({
  type: "GET",
  url: "production/porforma_invoice/proforma_billing_unbill_entry_list.php",
  data: "from_date="+from_date+"&to_date="+to_date+"&cus_name="+cus_name+"&billing_type="+billing_type,
  success: function(msg){
    
      jQuery("#proforma_billing_main_list_div").html(msg);
 }
    });
 }
 
 var sm = jQuery.noConflict();
sm().ready(function() 
{ 
	sm("#cus_name").autocomplete("include/autocomplete/customer_name.php", {
	width: 250,
	matchContains: true,
	selectFirst: true
	});	
});
</script>
<style> 
.someclass{ 
background:url(img/plus.png) no-repeat 0 0 ; 
} 
</style> 
<?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include ("include/db.php");
ob_start();
session_start();
?>
<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: 200px; 
    background-color: transparent;  
    border-style: solid;  
    border-width: 0px 0px 1px 0px;  
    border-color:#CCC; 
    outline:0;
	font-size:14px;
	font-weight:normal
  } 
  
  .types_class1 { 
    height: 25px; 
    width: 200px; 
    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="company_form"  id="company_form" method="post" action=""  enctype="multipart/form-data">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-top:solid 1px; color:#ddd;">
<tr align="left" style="font-size:14px"><div class="style9">Porforma Billing List</div></tr>
<td width="12%" align="left">&nbsp;</td>
<tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="8%" height="45" align="right" class="style15"><span class="style7"><strong>From Date</strong></span></td>
<td width="12%" align="right" class="style7"><input type="date" class="types_class1" name="from_date" id="from_date"  style="height:23px; width:150px" value="<?php  echo date("Y-m-d");?>"  /></td> 
<td width="9%" align="right"><span class="style7"><strong>To Date</strong></span></td>
<td width="12%" align="right" class="style7"><span class="style15">
  <input type="date" class="types_class1" name="to_date" id="to_date" style="height:23px;width:150px;" value="<?php echo date("Y-m-d");?>" />
</span></td>
<td width="11%" align="center" class="style15"><strong>Customer Name</strong></td>
<td width="15%" align="center" class="style15"> <input type="text" name="cus_name" id="cus_name" class="types_class" style="height:23px;width:150px;" value="" /></td>
<td width="11%" align="center" class="style15"><strong>Billing Type</strong>&nbsp;</td>
<td width="2%" align="left"><select style="width:150px;height:30px" name="billing_type" id="billing_type">
<option value="Proforma Invoice">Proforma Invoice</option>
</select></td><td width="8%" align="center"><a href="#"  onClick="porforma_billing_search(from_date.value,to_date.value,cus_name.value,billing_type.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="10" align="center">
      <div id="proforma_billing_main_list_div" >
        <?php include("proforma_billing_unbill_entry_list.php"); ?>
        </div>
    </td>
  </tr>
</table>
</form>
</div>
</div>
</div>
</div>