include("../php_scripts/connect_database.php");
$PATH_MAIN = "../attachments";
$NUMBER_DISPLAY = 2;
$PRINT_FONT = 3;
if($VIEW=="" && $_GET['VIEW']!="") $VIEW = $_GET['VIEW'];
if($UPD=="" && $_GET['UPD']!="") $UPD = $_GET['UPD'];
if($_GET['VIEW_DTL']) $VIEW_DTL = $_GET['VIEW_DTL'];
if($_GET['UPD_DTL']) $UPD_DTL = $_GET['UPD_DTL'];
if($_GET['VIEW_PER']) $VIEW_PER = $_GET['VIEW_PER'];
if($_GET['UPD_PER']) $UPD_PER = $_GET['UPD_PER'];
// echo "bf search_department_id=$search_department_id--$search_department_name , COM_ID=$COM_ID
";
//echo "command=$command , show_topic=$show_topic
";
if(!isset($show_topic)) $show_topic = 1; //echo $show_topic;
if($show_topic==1){
include("php_scripts/data_req_command.php");
}elseif($show_topic==2){
$include_confirm = "php_scripts/data_transfer_req_comdtl_confirm.php";
$include_check = 'P0203';
include("php_scripts/data_req_comdtl.php");
}elseif($show_topic==3){
include("php_scripts/data_transfer_req_comdtl_form.php");
if ($show_topic==2) {
$include_confirm = "php_scripts/data_transfer_req_comdtl_confirm.php";
include("php_scripts/data_req_comdtl.php");
} else {
//echo $form1command;
if ($form1command=="personal") {
include("php_scripts/find_transfer_req_comdtl_personal.php");
} else if ($form1command=="pertype1") {
$POS_ID = $sendPOS;
$PROGRAM_NAME = "data_transfer_req";
// echo "pertype1
";
include("php_scripts/find_move_req_comdtl_position.php"); // ?POS_ID=$sendPOS&PROGRAM_NAME=data_transfer_req&MOV_NAME=$MOV_NAME
} else if ($form1command=="pertype2") {
$POEM_ID = $sendPOS;
$PROGRAM_NAME = "data_transfer_req";
// echo "pertype2
";
include("php_scripts/find_move_req_comdtl_posemp.php"); // ?POEM_ID=$sendPOS&PROGRAM_NAME=data_transfer_req&MOV_NAME=$MOV_NAME
} else if ($form1command=="pertype3") {
$POEMS_ID = $sendPOS;
$PROGRAM_NAME = "data_transfer_req";
// echo "pertype3
";
include("php_scripts/find_move_req_comdtl_posempser.php"); // ?POEMS_ID=$sendPOS&PROGRAM_NAME=data_transfer_req&MOV_NAME=$MOV_NAME
}
}
}
if($CH_ADD=="" && $_POST['CH_ADD']!="") $CH_ADD = $_POST['CH_ADD'];
$prefix_name = "data_transfer_req_comdtl";
if (!$COM_SITE) $COM_SITE = "data_transfer_req_comdtl";
if (!$COM_TYPE_NM) $COM_TYPE_NM="ºÃèØ/áµè§µÑé§/ÃѺâ͹";
if (!$COM_GROUP_IN) $COM_GROUP_IN = "'01','501','503'";
else $COM_GROUP_IN=stripslashes($COM_GROUP_IN);
if(!$print_order_by) $print_order_by=1;
$COM_PER_TYPE = (trim($COM_PER_TYPE))? $COM_PER_TYPE : 1;
$PER_TYPE = (trim($PER_TYPE))? $PER_TYPE : $COM_PER_TYPE; //¨Ò¡ COM_PER_TYPE.form11 (à¾ÔèÁ/á¡é䢺ѪÕ) Êè§ÁÒãËé PER_TYPE.form1
if(!$search_per_type && $COM_PER_TYPE){ $search_per_type = $COM_PER_TYPE; }
if(!$search_per_type && $PER_TYPE){ $search_per_type = $PER_TYPE; }
if (!$search_org_id && $_POST[search_org_id]) $search_org_id = $_POST[search_org_id];
if (!$search_org_name && $_POST[search_org_name]) $search_org_name = $_POST[search_org_name];
//----------------------------------------------------------------------------------------------------------------------------------------------
switch($CTRL_TYPE){
case 2 :
$PV_CODE = $PROVINCE_CODE;
$PV_NAME = $PROVINCE_NAME;
break;
case 3 :
$search_ministry_id = $MINISTRY_ID;
$search_ministry_name = $MINISTRY_NAME;
if($BKK_FLAG==1) $ORG_SHORT_TITLE = $MINISTRY_SHORT." ·Õè";
break;
case 4 :
$search_ministry_id = $MINISTRY_ID;
$search_ministry_name = $MINISTRY_NAME;
$search_department_id = $DEPARTMENT_ID;
$search_department_name = $DEPARTMENT_NAME;
if($BKK_FLAG==1) $ORG_SHORT_TITLE = $DEPARTMENT_SHORT." ·Õè";
break;
} // end switch case
$COM_SEND_STATUS = "";
switch($SESS_USERGROUP_LEVEL){
case 2 :
$PV_CODE = $PROVINCE_CODE;
$PV_NAME = $PROVINCE_NAME;
break;
case 3 :
$search_ministry_id = $MINISTRY_ID;
$search_ministry_name = $MINISTRY_NAME;
if($BKK_FLAG==1) $ORG_SHORT_TITLE = $MINISTRY_SHORT." ·Õè";
break;
case 4 :
$search_ministry_id = $MINISTRY_ID;
$search_ministry_name = $MINISTRY_NAME;
$search_department_id = $DEPARTMENT_ID;
$search_department_name = $DEPARTMENT_NAME;
if($BKK_FLAG==1) $ORG_SHORT_TITLE = $DEPARTMENT_SHORT." ·Õè";
break;
case 5 :
$search_ministry_id = $MINISTRY_ID;
$search_ministry_name = $MINISTRY_NAME;
$search_department_id = $DEPARTMENT_ID;
$search_department_name = $DEPARTMENT_NAME;
$search_org_id = $ORG_ID;
$search_org_name = $ORG_NAME;
$ORG_ID_DTL = $ORG_ID;
$ORG_NAME_DTL = $ORG_NAME;
if($BKK_FLAG==1) $ORG_SHORT_TITLE = $ORG_SHORT." ·Õè";
$COM_SEND_STATUS = "S";
break;
case 6 :
$search_ministry_id = $MINISTRY_ID;
$search_ministry_name = $MINISTRY_NAME;
$search_department_id = $DEPARTMENT_ID;
$search_department_name = $DEPARTMENT_NAME;
$search_org_id = $ORG_ID;
$search_org_name = $ORG_NAME;
$ORG_ID_DTL = $ORG_ID;
$ORG_NAME_DTL = $ORG_NAME;
$search_org_id_1 = $ORG_ID_1;
$search_org_name_1 = $ORG_NAME_1;
if($BKK_FLAG==1) $ORG_SHORT_TITLE = $ORG1_SHORT." ·Õè";
$COM_SEND_STATUS = "S";
break;
} // end switch case
// echo "af search_department_id=$search_department_id--$search_department_name
";
?>
if ($UPD) $OPTIONAL_TITLE.=" > á¡é䢢éÍÁÙÅ"; elseif ($VIEW) $OPTIONAL_TITLE.=" > ´Ù¢éÍÁÙÅ"; include("current_location.html"); ?> | |||||||
|