|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/home/pathumthani_integration/integration/ |
Upload File : |
<?php
ob_start();
session_start();
date_default_timezone_set('Asia/Bangkok');extract($_POST);
extract($_GET);
extract($_COOKIE);
extract($_SERVER);
extract($_REQUEST);
$types_to_register = array('FILES','GET', 'POST', 'COOKIE', 'SESSION', 'SERVER');
foreach ($types_to_register as $type) {
$arr = @${'HTTP_' . $type . '_VARS'};
if (@count($arr) > 0)
extract($arr, EXTR_OVERWRITE);
}
?>
<?php
//echo $day;
$numR = $db->get_var("SELECT count(officer_id) FROM faceacc_images_tmp where officer_id='$u' and timeAccess!='' ");
//echo $numR;
$perpage = 10;
$ndiv = $numR % $perpage;
if($ndiv==0){
$npage = $numR /$perpage;
}else{
$npage = (int)($numR /$perpage)+1;
}
if($page==0) $page=1;
$start = ($page*$perpage)-$perpage;// like '%$search%'
$query1=$db->get_results("SELECT * FROM ".TBL_FACEACC_IMAGES_TMP." where officer_id='$u' LIMIT $start,$perpage");
$i=$start;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>Untitled Document</title>
</head>
<link rel="stylesheet" href="report/css/jq.css" type="text/css" media="print, projection, screen" />
<link rel="stylesheet" href="report/themes/blue/style.css" type="text/css" media="print, projection, screen" />
<style type="text/css">
<!--
-->
.body {
font-family: "Trebuchet MS";
font-size: 100%;
line-height: 130%;
font-weight: normal;
color: #666666;
text-decoration: none;
margin: 0px;
}
.style4 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.style6 {
color: #FFFFFF;
font-weight: bold;
}
.style7 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #FFFFFF; }
</style>
<script type="text/javascript" src="report/jquery-latest.js"></script>
<script type="text/javascript" src="report/jquery.tablesorter.js"></script>
<script type="text/javascript" src="report/addons/pager/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" src="report/js/chili/chili-1.8b.js"></script>
<script type="text/javascript" src="report/js/docs.js"></script>
<script type="text/javascript" src="report/js/examples.js"></script>
<script src="report/SpryAssets/SpryTooltip.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
// call the tablesorter plugin
$("table").tablesorter({
// change the multi sort key from the default shift to alt button
sortMultiSortKey: 'altKey'
});
});
</script>
<body><?php $user = $db->get_row("SELECT * FROM ".TBL_FACEACC_OFFICER." where officer_id='$u' ORDER BY officer_id ASC");?>
<span class="H1" style="margin-bottom:20px;">รายงานการทำงานของ <?php echo $user->firstname;?> <?php echo $user->surname;?> </span>
<p> </p>
<div style="float:left; "><img src="<? echo DIR_USER_IMAGES.'file:///D|/AppServ/www/'.$user->picture ?>" style="position:relative; margin:10px; width:160px; height:120px;" onMouseOver="showtrail('<?php echo DIR_USER_IMAGES.'/'.$user->picture ?>','',100,100,120,120,this,0,0,100,100);" onMouseOut="hidetrail();"";" ></div>
<div style=" width:80%; height:50%; margin-top:10px; padding:10px; margin-bottom:30px;">
<div style="width:auto; height:auto; margin-bottom:10px;">ชื่อ-นามสกุล: <?php echo $user->firstname;?> <?php echo $user->surname;?></div>
<div style="width:auto; height:auto; margin-bottom:10px;">ตำแหน่ง: <?php echo $user->office;?></div>
<div style="width:auto; height:auto; margin-bottom:10px;">เบอร์โทร <?php echo $user->phone_number;?></div>
</div>
<table cellspacing="1" class="tablesorter">
<thead>
<tr>
<th>วันที่</th>
<th>เวลาเข้าใช้งานระบบ</th>
<th>เวลารวม</th>
</tr>
</thead>
<tbody>
<?php
$w=0;
foreach ( $query1 as $rowOffice ){
$user = $db->get_row("SELECT * FROM ".TBL_FACEACC_OFFICER." where officer_id='$rowOffice->officer_id' ");
$w++;
?>
<tr>
<td class="style4"><?php echo $rowOffice->imgDate;?><br /></td>
<td class="style4"><a href="index.php?p=report/detail_faceLogin.php&u=<?php echo $rowOffice->officer_id;?>" style="text-decoration:none; color: #069;" title="ดูข้อมูล"><?php echo $user->firstname;?> <?php echo $rowOffice->timeAccess;?></a></td>
<td class="style4"><?php
if($timeMin or $timeMax!=""){
function TimeDiff($strTime1, $strTime2)
{
$second_diff = strtotime($strTime2) - strtotime($strTime1);
$hour_diff = floor($second_diff / 3600);
$remain_second = $second_diff % 3600;
$remain_minute = floor($remain_second / 60);
$remain_second %= 60;
return substr('0'.$hour_diff, -2).':'.substr('0'.$remain_minute, -2).':'.substr('0'.$remain_second, -2);
}
echo TimeDiff("$timeMin","$timeMax");
}else{ echo "-";}
;?></td>
</tr>
<?php }?>
</tbody>
</table>
<?
echo "มีทั้งหมด ";
echo number_format($npage,0,"",",");
?>
หน้า
<?
$pp = $page-1;
if($pp>0){
?>
<a href="<? echo "index.php?p=report/detail_faceLogin.php&page=$pp";?>" style="text-decoration:none;"><img src="images/icon/icon-first-page.png" width="10" height="12" border="0" /> </a>
<? }
$startP = 1;
$endP = $perpage;
if($npage <=($perpage-1)) $endP = number_format($npage,0,"",",");
if($page >$perpage){
$startP = $page ;
$endP = $page+$perpage;
if($endP>($numR/$perpage))
$endP =$numR/$perpage;
$endP = number_format($endP,0,"",",");
$startP = $endP- $perpage;
}
for($x=$startP;$x<=$endP;$x++){
if($page==$x)
echo " [<font color=#FF0000 class=normallink><strong>$x</strong></font>] ";
else
echo " [<a href=index.php?p=report/detail_faceLogin.php&page=$x>$x</a>] ";
}
$pp = $page+1;
if($pp<=$npage){
?>
<a href="<? echo "index.php?p=report/detail_faceLogin.php&page=$pp";?>" style="text-decoration:none;" ><img src="images/icon/icon-last-page.png" width="10" height="12" border="0" /> </a>
<? } ?>
<a href="index.php?p=report/index_all.php" style="text-decoration:none;"> <img src="images/icon/zoom.png" width="16" height="16" border="0" id="sprytrigger1" title="ดูทั้งหมด" style="margin-top:10px;" /></a>
<div id="pager" class="pager">
</div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-2189649-2";
urchinTracker();
</script>
</body>
</html>