 




<?php
require("../connection.php");
include("../user.php");
$user_id=$_SESSION['user'];
$username=$_SESSION['user_name'];

$search1=$_REQUEST['employee_name'];


?> 
			 
			 <?php
				$item_row=mysqli_query($con,"SELECT im.id,em.employee_name,im.emp_code,im.issue_date,lm.location FROM non_consumable_issue im left join location_master lm on lm.id=im.location left join employee_master em on em.emp_no=im.emp_name where em.employee_name like '%$search1%' or lm.location like '%$search1%' order by im.id desc");			
				$s1=1;
			 ?>
				<!-- /.box-header -->
						<ul class="nav nav-pills" style="float:left;max-height:450px;overflow-y:scroll; width:100%; " >
						<?php 
							while($item_res=mysqli_fetch_array($item_row))
							{
							?>
							<li style="border-top:1px solid #ddd; cursor:pointer;width:97%;"  class="active1" onClick="clic(this.id);" id="<?php echo $s1;?>" > 
							<input type="hidden" name="invoice" id="invoice<?php echo $s1;?>" value="<?php echo $item_res['id'];?>"  />
							<?php $s1++;?>
							<div id="attrib-advanced" class="tab-pane active">
								<div style="position:relative; color:blue; float:left; line-height: 80px;">
									<b><img alt=" img" class="user-image" src="/asset_temp/images/user.png" height="70" width="80"></b>
								</div><br>
					 			<div style="text-transform: uppercase;font-size: 16px;padding-top: 1px;color: #000;line-height: 18px; font-weight:bold;float:right; position:relative;" >
									<span style="font-weight:bold;font-size:13px;">
									<?php 
										echo $item_res['id'];
									?>
								</div><br>
								<div class="emp_name">
									<div style="text-transform: uppercase;line-height: 18px; font-weight:bold;float:right; position:relative;" >&nbsp;||
										<span style="font-weight:normal;font-size:12px; color:#0000ff;">
										<?php echo $item_res['employee_name']; echo " ";
										echo $item_res['location'];?> </span>
									</div>
								</div><br>		
								<div class="date">
									<div style="text-transform: uppercase;line-height: 18px; font-weight:bold;float:right; position:relative;" >&nbsp;||
										<span style="font-weight:normal;font-size:12px; color:#0000ff;">
										<?php echo $item_res['issue_date'];?> </span>
									</div>
								</div>								
							</div>
							</li>
							<?php
							}
							?>      
							</ul>
					
              