<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 pay_slip_add_form(url)
	{
	onmouseover4= window.open(url,'onmouseover4','height=500,width=1100,scrollbars=yes,resizable=no,left=50,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no');
	}
</script>

<script>
function wages_operator(from_date,to_date,operator_type)
 {
  jQuery.ajax({
  type: "GET",
  url: "production/pay_slip/pay_slip_entry_list.php",
  data: "from_date="+from_date+"&to_date="+to_date+"&operator_type="+operator_type,
  success: function(msg){jQuery("#pay_slip_entry_list_div").html(msg);
 }
    });
 }

var po = jQuery.noConflict();
po().ready(function() 
{ 
	po("#operator_type").autocomplete("include/autocomplete/wages_type_auto_complete.php", {
	width: 200,
	matchContains: true,
		selectFirst: true
	});
});
</script><?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include ("include/db.php");
if($_GET['edit_id']!='')
{
$measurement_table_display_style='style="display:inline;"';
} 
else
{
$measurement_table_display_styles='style="display:none;"';
}
?>
<style type="text/css">
.style2 {color: #FF0000}
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px;}
.style8{ text-align:center;font-family:Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; padding:40px; font-weight: 500;color:#32328e;letter-spacing: 1px;}
.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;}
.style10{font-family:Verdana, Arial, Helvetica, sans-serif;font-size: 14px;}
</style>
<style type="text/css">
.txt{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size:13px;}
 .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;
  } 
</style>
<style type="text/css">
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px; color:#000}
.style9{ text-align:left;font-family:Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; padding:0px; font-weight: 600;color:#000;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="group_creation"  id="group_creation" 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">Pay Slip Form Entry&nbsp;&nbsp;
<td width="12%" colspan="8" align="left"><img src="img/plus.png" name="add_button" id="add_button" title="ADD" onclick="javascript:pay_slip_add_form('production/pay_slip/pay_slip_entry_form.php?edit_id=<?php echo $_GET['edit_id'];?>')" align="top" width="30" height="30" border="0" tabindex="4" style="cursor:pointer; margin-left:15%; margin-top:-34px;" class="button green-button" >
</td></div><tr>
<tr>
<td width="8%" align="left" class="style7">&nbsp;&nbsp;<strong>From Date</strong></td> 
<td width="14%" align="left"><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"); }?>"  /></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="8%" align="left" class="style15"><span class="style7">&nbsp;<strong>Operator Name</strong></span></td>
<td width="16%" align="left" class="style15"><input type="text" class="types_class1" name="operator_type" id="operator_type" style="height:23px;width:150px;" value="<?php if($_GET['operator_type']!='') { echo $_GET['operator_type']; } ?>" /></td>
<td width="9%" align="left" class="style15"><a href="#"  onClick="wages_operator(from_date.value,to_date.value,operator_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="3" align="center"><div id="pay_slip_entry_list_div">
        <?php include("pay_slip_entry_list.php"); ?>
    </div></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>