<link rel="stylesheet" href="css/font.css" type="text/css" />
<style type="text/css">
.style1 {font-size: 16px}
</style>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="table-responsive">
<div class="CSSTableGenerator">  
<table border="0" width="98%"  align="center" cellpadding="0" cellspacing="0" style="border:1px solid #ddd" >
<thead>
<tr>
    <th  align="center" width="57"  style="border:1px solid #ddd" >S.no</th>
    <th  align="left" style="border:1px solid #ddd" >Operatort Name</th>
    <th  align="left" style="border:1px solid #ddd" >Operator Type </th>
    <th  width="258"  align="left" style="border:1px solid #ddd" >Department</th>
    <th  width="326"  align="left" style="border:1px solid #ddd" >Labour Type</th>
    <th  width="97" style="border:1px solid #ddd" >Edit</th>
    <th  width="96" style="border:1px solid #ddd" >Delete</th>
</tr>
  <?php
  include("../../include/db.php");
  $party_name=$_GET['party_name'];
   if($party_name!="")
   {
    $sql="select * from  operator_creation where operator_name='$party_name'";
   }
   if($party_name=="")
   {
    $sql="select * from  operator_creation  ";
   }
    $rs=mysql_query($sql);
	$sno=0;
   while($rsdata=mysql_fetch_array($rs))
  {
   $sno=$sno+1;
   $id=$rsdata['id'];
   $operator_name=$rsdata['operator_name'];
   $operator_type=$rsdata['operator_type'];
   $labour_type=$rsdata['labour_type'];
   $department=$rsdata['department'];
 ?>
  <tr>
    <td width="57"  align="center" style="border:1px solid #ddd" ><?php echo $sno; ?></td>
    <td width="209" align="left" style="border:1px solid #ddd" >&nbsp;<?php echo ucfirst($operator_name);?></td>
    <td width="256" align="left" style="border:1px solid #ddd" >&nbsp;<?php echo ucfirst($operator_type);?></td>
    <td align="left" style="border:1px solid #ddd;" >&nbsp;&nbsp;<?php echo ucfirst($department);?></td>
    <td align="left" style="border:1px solid #ddd;" >&nbsp;&nbsp;<?php echo ucfirst($labour_type);?></td>
    <td align="center" style="border:1px solid #ddd"  ><img src="img/edit.png" style="cursor:pointer"width="13" height="15" title="EDIT" onclick="javascript:addd_party_creation('master_entry/operator_creation/operator_entry.php?edit_id=<?php echo $id;?>')"/></td>
    <td align="center" style="border:1px solid #ddd" ><a href="#" onClick="delete_list('<?php echo $id;?>');"><img src="img/cross_deletes.png" alt="delete" title="DELETE" border="0" width="13px;" height="14px;" /></a></td>
  </tr>
  <?php } ?>
  </thead>
</table>
</div>
</div>
</div>
</div>