|
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 : /home/pathumthani_integration/integration/application/labor/ |
Upload File : |
<?php
session_start();
set_time_limit(0);
include_once("../../config/config_epm.inc.php");
include_once("manage_user.inc.php");
header("Content-Type: text/html; charset=windows-874");
if ( $_GET['PositionGroupID'] ) {
$strSEL = "<select name=\"".$_GET['objID']."\" id=\"".$_GET['objID']."\" style=\"width:500px\"><option value=\"\">...</option>";
$strSQL = "SELECT * FROM labor_master_position WHERE parent_id='".$_GET['PositionGroupID']."' ORDER BY position_id";
$Fetch = mysql_query($strSQL);
while ( $Result = mysql_fetch_object($Fetch) ) {
//if ( $_GET['valSlted'] ) $Slted = ( $Result->ccDigi == $_GET['valSlted'] ) ? "selected" : "";
$strSEL .= "<option value='".$Result->position_id."' $Slted>".$Result->position_name."</option>";
$intRow++;
}
$strSEL .= "</select>";
echo $strSEL;
}
?>