<?php include("connection.php");
error_reporting(E_ERROR | E_PARSE); 
 $pagename = basename($_SERVER['PHP_SELF']);

 $bill_no=$_REQUEST["bill_no"];


 $bill=mysqli_query($con,"select * from onshop where `bill_no`='".$bill_no."' and `status`='active' and `bill_status`='pending' "); $billr=mysqli_fetch_array($bill,MYSQLI_ASSOC);
  $billn=mysqli_num_rows($bill);

?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack --><head>
<!--
<link type="text/css" rel="stylesheet" href="javax.faces.resource/themeab55.css?ln=primefaces-aristo" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/dist-butterfaces-bootstrap.min4e5d.css?ln=butterfaces-dist-css" />
-->
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/default.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/cssLayout.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/popup.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/menu.css" />
<!--
<script type="text/javascript" src="javax.faces.resource/butterfaces-all-with-jquery-and-bootstrap-bundle.min686a.js?ln=butterfaces-dist-bundle-js"></script>
<script type="text/javascript" src="javax.faces.resource/js/jquery-3.4.0.min.js"></script>
<script type="text/javascript" src="javax.faces.resource/js/bootstrap.js"></script>
<script type="text/javascript" src="javax.faces.resource/js/jquery-1.11.2.js"></script>
<script type="text/javascript" src="javax.faces.resource/js/jssor.slider-27.5.0.min.js"></script>
<script type="text/javascript" src="javax.faces.resource/jquery8490.js?ln=js"></script>
<script type="text/javascript" src="javax.faces.resource/menu8490.js?ln=js"></script>
<script type="text/javascript" src="javax.faces.resource/js/canvasjs.min.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  -->     
        <script type="text/javascript">
            $(function() {
                $('ul.nav li.dropdown').hover(function() {
                    $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(500);
                }, function() {
                    $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(500);
                });
            });
        </script>
        <script type="text/javascript">
            $(function() {
                $("#notice").fadeIn("slow").append('');
                $(".dismis").click(function() {
                    $("#notice").fadeOut("slow");
                });
            });
        </script>
		
<script>
function lfn_SelectSection(p_Class)
    {
        document.getElementById('cusname').disabled=false;
		
  
        $.ajax({
		
                    type: "GET",
                    url: "ajax_location.html?classID=" + p_Class,
                    success: function(state) {
                    document.getElementById('cusname').innerHTML=state;    
					
                    }
        });
		
	 
		
		
    }

</script>
<style> 
        input.largerCheckbox { 
            width: 20px; 
            height: 20px; 
			
        } 
    </style> 
        <title>Katha O Cafe</title></head><body>

        <div id="top">


                    <div class="container-fluid text-center" style="margin-left: 5px"> 
                        <div class="row">
                            <div class="col-sm-1">
							<!-- Logo -->
							
							
                            </div>                           
                                       
                           
                        </div>
                    </div>

                    <!-- Menu start  -->

                    <nav class="navbar navbar-expand-lg header-m" role="navigation">
                        <div class="container-fluid">
                            <div class="navbar-header">
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                                    <span class="sr-only">Toggle navigation</span>
                                    <span class="icon-bar" style="background-color: #fff;"></span>
                                    <span class="icon-bar" style="background-color: #fff;"></span>
                                    <span class="icon-bar" style="background-color: #fff;"></span>
                                </button>
                                <a class="navbar-brand" href="#"> </a>
                            </div>

                            <!-- Collect the nav links, forms, and other content for toggling -->
                            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                <?php include("include/header.php"); ?>
                            </div>

                            <!-- /.navbar-collapse -->
                        </div>
                        <!-- /.container-fluid -->
                    </nav>

        </div>

        <div id="content" class="center_content ">

                    <div class="container-fluid text-center">    
                        <div class="row">
                            <div class="col-sm-2" style="padding-right: 0px;">
							
							
							
							
							
                                <?php include("include/left.php"); ?>

                                </div>

                            </div>

                            <div class="col-sm-8" style="padding-right: 2px; padding-left:2px;">

                                <div class="row" >
                                    <div class="col-sm-12" >

                                        <div class="panel panel-primary" style="background-color: rgb(186,233,254);border: 1px solid #000; margin-bottom: 0px; ">
                                            <div class="panel-heading" style="font-size: 20px; font-family: serif; background-color: #007de8; color:#CCFF00"> <b>Product List</b>  </div>
                                            <div class="panel-body" style="text-align: justify;padding-bottom: 0px; padding-top: 6px;"><p style="font-family: Cambria;"><strong>
					 
					 

<b><font color="red">Select Category : </font></b><select name="" id="cat" style="width:200px; height:25px; background-color:#99FF66" onChange="show_p();">

<?php $c=mysqli_query($con,"select * from user"); while($cr=mysqli_fetch_array($c,MYSQLI_ASSOC)) {  $ct=$cr["id"]; ?>
<option  <?php if($_REQUEST["id"]==$ct) { ?> selected="selected" <?php } else {} ?> value="<?php echo $cr["id"]; ?>"><?php echo $cr["name"]; ?></option>

<?php } ?>
</select>
<a href="add_product_detail.php"><img src="add2.png" width="50"> <b><font color="#FF0000">Add new Product</font></b>	</a>
<script>
function show_p() {
 var v=document.getElementById("cat").value;
 window.location.href="?id="+v;
}
</script>	 	

			


	
<?php $id=$_REQUEST["id"]; $u=mysqli_query($con,"select * from user where `id`='".$id."'");
$ur=mysqli_fetch_array($u,MYSQLI_ASSOC); ?>				 
<table width="100%" border="0">
<tr><td width="20%" height="27"><b>Name</b></td>
<td width="30%" height="27"><?php echo $ur["name"]; ?></td>
<td rowspan="5"><img src="employee/dolphin.png" width="100"><br>Advance Due : 1000 /-</td></tr>
<tr><td height="28">Phone</td>
<td><?php echo $ur["phone"]; ?></td></tr>
<tr><td height="28">Date of Joining</td>
<td><?php echo $ur["doj"]; ?></td></tr>
<tr><td height="27">Employee Type</td>
<td><?php echo $ur["emp_type"]; ?></td></tr>
<tr><td height="28">Salary</td>
<td><?php echo $ur["salary"]; ?> /- </td></tr>
</table>	<hr>
<table width="100%" border="0" style="background-color:#C1FF84">
<tr><td width="20%"><img src="advance_payment.png" width="140" ></td><td width="20%"><img src="pay_history.png" width="110"></td><td width="20%"><img src="salary.png" width="110"></td><td width="20%"><img src="payment.png" width="110"></td></tr>
<tr><td><a href="?type=advance&id=<?php echo $_REQUEST['id']; ?>"><font color="#6600FF">Advance Payment</font></a></td><td><a href="?type=salary_history&id=<?php echo $_REQUEST['id']; ?>"><font color="#6600FF">Salary History</font></a></td><td width="10%"><a href="?type=salary&id=<?php echo $_REQUEST['id']; ?>"><font color="#6600FF">Update Salary</font></a></td><td width="10%"><a href="?type=pay_salary&id=<?php echo $_REQUEST['id']; ?>"><font color="#6600FF">Pay Salary</font></a></td></tr>
<tr height="10"></tr>
</table>		<hr>	
<?php  if($_REQUEST["type"]=="advance") { ?>
<div style="background-color:#FFCCFF">
<form>
	Receive Advance : <input type="text" name="advance" style="height:30px; width:72px;" value="1000"> <input type="submit" name="advance" style="height:30px; width:72px;" value="Receive"> <font color="red">Previous Due Advance Amount : Rs. 1258 /-</font>
	<hr width="40%">
	</form>
Advance Deduction History : <br> &nbsp;
<table width="100%" border="1">
<tr height="30" style="background-color:#FFFF99"><td align="center">SI No.</td><td align="center">Deduction Date</td><td align="center">Amount</td><td align="center">Deduction For</td><td align="center">Remain Rs.</td></tr>
</table> <br> &nbsp;
Advance Salary  : <br> &nbsp;
<table width="100%" border="1">
<tr height="30" style="background-color:#FFFF99"><td align="center">SI No.</td><td align="center">Amount</td><td align="center">Date of Receive</td></tr>
</table><p>&nbsp;</p>
</div>
<?php } else {} ?>	
<?php  if($_REQUEST["type"]=="salary_history") { ?>
<div style="background-color:#FFCCFF">
Payment History : <br> &nbsp;
<table width="100%" border="1">
<tr height="30" style="background-color:#FFFF99"><td align="center">SI No.</td><td align="center">Basic Salary</td><td align="center">Salary Received</td><td align="center">Deduction</td><td align="center">Date</td><td align="center">Salary For</td><td align="center">Due Advance</td></tr>
</table>
<p>&nbsp;</p>
</div>
<?php } else {} ?>				 
	<?php  if($_REQUEST["type"]=="salary") { ?>
	<div style="background-color:#FFCCFF">
	<form>
	Curent Salary : <input type="text" name="salary" style="height:30px; width:72px;" value="1000"> <input type="submit" name="ok" style="height:30px; width:72px;" value="Update">
	<hr width="40%">
	</form>
Salary Increment History : <br> &nbsp;
<table width="100%" border="1">
<tr height="30" style="background-color:#FFFF99"><td align="center">SI No.</td><td align="center">Basic Salary</td><td align="center">Date</td></tr>
</table>
<p>&nbsp;</p>
</div>
<?php } else {} ?>					 
					 
	<!--				 					
											 <select name="class" id="class" class="form-control" onChange="lfn_SelectSection(this.value);">
                                            <option value="">--- Please Select Class ----</option>
                                             <option value="A">A</option>
											 <option value="B">B</option>
											 <option value="C">C</option>
                                             </select>
											Section
											 <select type="text" name="secname" id="secname" class="form-control" >
                                        	<option value="0">------select Section_o------</option>

                                        </select> -->	
										
                                                    </strong></p></div>
                                        </div>



                                    </div>
                                </div>

                            <!--   <div class="well" style="padding: 5px;background-color: rgb(186,233,254); border: 1px solid #000; margin-bottom: 1px;">
                                    <div class="row">
                                        
                                        
                                       
                                        
                                        
                                        
                                    </div> 
                                </div>-->
                                <div class="row">
                                   <!-- <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: antiquewhite;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/school-educatione0f8.png?ln=img" width="50" />  </div>
                                            <div class="panel-footer" style="padding: 1px 2px; background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html"> School Education Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #7c5a5e;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/villagee0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html">P &amp; R D Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #f6f191;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/librarye0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html">UD &amp; MA Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #fff;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/images6e0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html"> MEE &amp; LS Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #ffdc6a;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/treasurye0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 10px 5px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html">Treasury Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #5cfef2;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/users-groupe0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 12px;"><a href="../e_Pension/AdminLogin.html">Other Departments Users</a>  </div>
                                        </div>
                                    </div>    -->
                                </div>
                            
                               

                            </div>
                            <div class="col-sm-2" style="padding-left:0px;">
                                <?php include("include/right.php"); ?>
                            </div>                     
                        </div>

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


       <?php include("include/footer.php"); ?>

		
		
		</body>



</html>