Viewing file: MoneyByYear.php (7.37 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
";
echo " กรุณาทำการ Login ก่อน ";
echo "";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../include/Function.php" );
/** Chart */
include ("../includes/charts.php");
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "salary_repot_tb";
$myTable2PK = "Start_year";
$Username = $valid_user;
//=== personal_tb
$query1 = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result1 = $dbObj->runQuery($query1);
$rs1 = $dbObj->fetchArray($result1);
$Teacher_code = $rs1[Teacher_code];
//=== salary_repot_tb
$query = " SELECT * FROM $myTable2 WHERE Teacher_code='$rs1[Teacher_code]' GROUP BY $myTable2PK ";
$result = $dbObj->execQuery($query);
$num = $dbObj->_numrows;
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
} # else
?>
ข้อมูลประวัติส่วนตัว - ข้อมูลประวัติเงินเดือน แสดงรายปี
|
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|