Viewing file: Pi_List.php (13.22 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" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "qa_project_tb";
$myTableFK = "Stand_code";
$myTable2 = "qa_standard_tb";
$myTable3 = " qa_project_tb";
$myTable3FK = "projectId";
$Username = $valid_user;
/** Query เพื่อหา Numrows ก่อน */
$query = " SELECT * FROM $myTable2 WHERE codeId='$codeId' and Stand_code='$Stand_code' ";
$result0 = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result0);
$query = " SELECT * FROM $myTable3 WHERE codeId='$codeId' and Stand_code='$Stand_code ' ";
$result0 = $dbObj->execQuery($query);
$rs3 = $dbObj->fetchArray($result0);
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
$param = "Stand_code=$Stand_code&codeId=$codeId";
/** Botton Name Action */
$action = $_REQUEST['action'];
$id = $_REQUEST['id'];
if( isset($action) && !empty($action) ) {
switch($action) {
case "Delete" :
$num = count($id);
for( $i=0; $i<$num; $i++ ) {
//--- training_tb
$qryDel = " DELETE FROM $myTable WHERE projectId='$id[$i]' ";
$resultDel = $dbObj->runQuery($qryDel);
$dbObj->freeresult($resultDel);
} # for
break;
} # switch
} # if
} # else
?>
Q.A. - มาตรฐานการประกันคุณภาพการศึกษา
|
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |