<?php
/** ensure this file is being included by a parent file */
defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' );
echo "<meta name = 'viewport' content = 'width = device-width'>";
$sql_permission = "select * from person_permission where person_id='$_SESSION[login_user_id]'";
$dbquery_permission = mysqli_query($connect,$sql_permission);
$result_permission = mysqli_fetch_array($dbquery_permission);
if(!(isset($_SESSION['admin_person']))){
$_SESSION['admin_person']="";
}
echo "<table class='$myMenuModule' width=100%>";
echo "<th colspan=2 onclick=\"window.open('./', '_self')\" style='cursor: pointer; text-align:center;'>กลับ - หนัาหลัก</th>";
echo "<tr><td width=25> </td><td onclick=\"window.open('?option=person&task=person_report1_mobile', '_self')\" style='cursor: pointer; text-align:left;'>รายงาน บุคลากรสำนักงาน</td></tr>";
echo "<tr><td width=25> </td><td onclick=\"window.open('?option=person&task=person_sch_report1_mobile', '_self')\" style='cursor: pointer; text-align:left;'>รายงาน บุคลากรสถานศึกษา</td></tr>";
$month=date("n");
if($month<=9){
$year=date("Y");
}else{
$year=date("Y")+1;
}
$year_thai=$year+543;
echo "<tr><td width=25> </td><td onclick=\"window.open('?option=person&task=retire_report_mobile&year=$year', '_self')\" style='cursor: pointer; text-align:left;'>บุคลากรเกษียณอายุราชการ ปี ".$year_thai."</td></tr>";
echo "</table>";
/*
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr bgcolor='#FFCC00'><td>";
echo "<ul id='nav' class='dropdown dropdown-horizontal'>";
echo "<li><a href='./'>รายการหลัก</a></li>";
echo "<li><a href='?option=person&task=person_report1_mobile'' class='dir'>สำนักงานฯ</a></li>";
echo "<li><a href='?option=person&task=person_sch_report1_mobile'' class='dir'>สถานศึกษา</a></li>";
echo "</ul>";
echo "</td></tr>";
echo "</table>";
*/
?>