|
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['provinceID'] ) {
$strSEL = "<select name=\"".$_GET['amphur']."\" id=\"".$_GET['amphur']."\" style=\"width:200px\" onchange=\"getTambol(this.value, '".$_GET['tambol']."', '".$_GET['moo']."', '')\"><option value=\"\">...</option>";
$strSQL = "SELECT * FROM ccaa WHERE ccDigi LIKE '".substr($_GET['provinceID'], 0, 2)."%' AND ccType='Aumpur' ORDER BY ccDigi";
$Fetch = mysql_query($strSQL);
while ( $Result = mysql_fetch_object($Fetch) ) {
if ( $_GET['valSlted'] ) $Slted = ( $Result->ccDigi == $_GET['valSlted'] ) ? "selected" : "";
$strSEL .= "<option value='".$Result->ccDigi."' $Slted>".$Result->ccName."</option>";
$intRow++;
}
$strSEL .= "</select>";
echo $strSEL;
}
?>