<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 addd_party_creation(url)
	{
	onmouseover4= window.open(url,'onmouseover4','height=400,width=600,scrollbars=yes,resizable=no,left=300,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no');
	}
	function addd_party_print(url)
	{
	onmouseover41= window.open(url,'onmouseover41','height=600,width=1000,scrollbars=yes,resizable=no,left=300,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no');
	}

	function addd_rate_fixing(url)
	{
	onmouseover5= window.open(url,'onmouseover5','height=400,width=690,scrollbars=yes,resizable=no,left=300,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no');
	}

  function party_report_2(unapprove_1)
 {
  jQuery.ajax({
  type: "GET",
  url: "master_entry/party_creation/party_entry_list_filter.php",
  data: "unapprove_1="+unapprove_1,
  success: function(msg){jQuery("#report12_list_div").html(msg);
 }
    });
 }
	
function party_report(cus_name,status_type)
 {
  // var status_type = $('#status_type').val();
  
// alert(status_type);
// alert(status_type);
  jQuery.ajax({
  type: "GET",
  url: "master_entry/party_creation/party_entry_list.php",
  data: "cus_name="+cus_name+"&status_type="+status_type,
  success: function(msg){ jQuery("#report12_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 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;}
.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>
<?php
error_reporting(0);

include ("include/db.php");
ob_start();
session_start();
$user_id = $_SESSION['login_user_id'];
$edit_id=$_GET['edit_id'];
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>

<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">Party Creation &nbsp;&nbsp;
<td width="12%" align="left"><img src="img/plus.png" name="add_button" id="add_button" title="ADD" onclick="javascript:addd_party_creation('master_entry/party_creation/party_creation.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></table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
  <td width="11%" height="45" align="center" class="style15"><strong>Party Name</strong></td>
  <td width="15%" align="center" class="style15">
    <input type="text" name="cus_name" id="cus_name" class="types_class" style="height:30px;width:300px;" value="" />
  </td>
 
  <td width="11%" height="45" align="center" class="style15"><strong>Active Status</strong></td>
  <td width="15%" align="center" class="style15">
    <select id="status_type" style="height:30px;width:150px;">
      <option value="Active">Active</option>
      <option value="In-active">Inactive</option>
    </select>
  </td>

  <td width="8%" align="center">
    <a href="#" onClick="party_report(cus_name.value,status_type.value)">
      <img src="img/search_icon.png" width="40" height="35" title="Search" alt="Search" />
    </a>
  </td>
</tr>

<tr>
<td width="11%" height="45" align="center" class="style15"><strong>Md Approved or Unapproved</strong></td>
<td width="15%" align="center" border class="style15">
  
<select name="unapprove_1" class="types_class1" id="unapprove_1" style="height:23px;width:180px;" value="">
<option value="" disabled selected>Select</option>
<option value="0">Waiting for MD Approval</option><option value="1">MD Approve list</option></select></td>
<td width="8%" align="center"><a href="#"  onClick="party_report_2(unapprove_1.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="report12_list_div">
        <?php include("party_entry_list.php"); ?>
    
    </div></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>