<? include("si_confi.php"); ?>
<? include("ad_head.php"); ?>
  <div class="container">
<? include("mn_option.php");

$select_count_emp=mysql_query("select count(*) as num from `certificate_mng` where `emp_id`='$vel_empl_id'");
$fetch_count_emp=mysql_fetch_array($select_count_emp);
$total_emp_result=$fetch_count_emp['num'];
 ?>
   <div style="border:groove;margin-top:10px;border-width:thin;padding:20px;border-radius:4px;border-color:#cccccc;box-shadow: 10px 9px 90px #000;">
   <h2>My Certificates&nbsp;&nbsp;&nbsp;(Total&nbsp;:&nbsp;<? echo $total_emp_result; ?>)</h2>
   
  
    <table width="100%" cellpadding="9" cellspacing="0" border="1">
  <tr bgcolor="#CCCCCC">
  <td>EMP ID</td>
  <td>EMP Name</td>
  <td>File</td>
  <td>Title</td>
  
  </tr>
  <? $select_employee_details=mysql_query("select * from `certificate_mng` where `emp_id`='$vel_empl_id'");
  while($fetch_employee_details=mysql_fetch_array($select_employee_details)){
	  
	  $empid_id=$fetch_employee_details['emp_id'];
	  
	  $select_empname=mysql_query("select * from `employee_mng` where `emp_id`='$empid_id'");
	  $fetchemployeename=mysql_fetch_array($select_empname); ?>
  <tr bgcolor="#FFFFFF">
  <td><? echo ucwords($fetch_employee_details['emp_id']); ?></td>
  <td><? echo ucwords($fetchemployeename['name']); ?></td>
  <td><a href="<? echo $fetch_employee_details['filen'] ?>" target="_blank"><img src="ad_img/pdf-icon.png"></a></td>
  <td><? echo ucwords($fetch_employee_details['title']); ?></td>
  <!--<td><a href="edit_certfi.php?isd=<? echo base64_encode($fetch_employee_details['id']); ?>"><img src="ad_img/edit-male-user-icon.png" width="40"></a></td>
  <td><a href="viw_certfi.php?isd=<? echo base64_encode($fetch_employee_details['id']); ?>&&action=trsh&&flname=<? echo base64_encode($fetch_employee_details['filen']) ?>" onClick="return confirm('Are you sure you want to confirm delete?');"><img src="ad_img/Remove-Male-User.png" width="40"></a></td>-->
  </tr>
  <? } ?>
  <script type="text/javascript">
function newPopup(url) {
	popupWindow = window.open(
		url,'popUpWindow','height=580,width=700,left=140,top=60,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
  </table>  
  </div>
</div><!-- container -->
  </body>
</html>