| Server IP : 104.21.73.108 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 User : paphayomho ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/paphayomho/domains/paphayomhospital.go.th/private_html/hrm/user/ |
Upload File : |
<?php include('userheader.php'); ?>
<?php
include_once('../controller/connect.php');
$dbs = new database();
$db=$dbs->connection();
$empid = $_SESSION['User']['EmpId'];
$leavedetails = @mysqli_query($db,"select * from leavedetails where EmpId='$empid'");
?>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: center;
background-color: #04AA6D;
color: white;
}
</style>
<div class="s-12 l-10">
<h1 style="color: #858282;">ประวัติการประชุม/อบรม</h1><hr>
<div class="clearfix"></div>
<table align="center" cellpadding="2" cellspacing="2" id="customers">
<tr>
<th width="4%">ลำดับ</th>
<th width="8%">ปีงบประมาณ</th>
<th width="28%">หลักสูตร</th>
<th width="11%">เริ่มวันที่</th>
<th width="12%">ถึงวันที่</th>
<th width="9%">ค่าใช้จ่าย</th>
<th width="18%">แหล่งงบประมาณ</th>
<th width="10%">สถาบันผู้จัด</th>
</tr>
<?php $i=1; while($rom = mysqli_fetch_assoc($leavedetails)) { //print_r($rom);exit;
$typeid = $rom['TypesLeaveId'];
$typename = @mysqli_query($db,"select * from type_of_leave where LeaveId='$typeid' ");
$typen = @mysqli_fetch_assoc($typename); ?> <tr>
<td><?php $i=$i; echo $i; $i++;?></td>
<td><?php echo ucfirst((isset($typen['Type_of_Name']))?$typen['Type_of_Name']:""); ?></td>
<td><?php echo(isset($rom['Reason']))?$rom['Reason']:""; ?></td>
<td><?php echo(isset($rom['StateDate']))?$rom['StateDate']:""; ?></td>
<td><?php echo(isset($rom['EndDate']))?$rom['EndDate']:""; ?></td>
<td><?php echo(isset($rom['mon']))?$rom['mon']:""; ?></td>
<td><?php echo(isset($rom['buj']))?$rom['buj']:""; ?></td>
<td><?php echo(isset($rom['pa']))?$rom['pa']:""; ?></td>
<?php }?>
</tr>
</table>
<script>
$(".la").mouseover(function (e)
{
$(this).removeClass('fa fa-refresh')
$(this).addClass('fa fa-refresh fa-spin')
}).mouseout(function (e)
{
$(this).removeClass('fa fa-refresh fa-spin')
$(this).addClass('fa fa-refresh')
})
</script>
<?php include('userfooter.php'); ?>