MINI SHELL

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 :  /proc/self/root/home/pathumthani_integration/integration/application/labor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/home/pathumthani_integration/integration/application/labor/labor_position_data.php
<? include_once("../../config/config_epm.inc.php"); ?>
<style type="text/css">
<!--
.style2 {color: #FF0000}
-->
</style>
<SCRIPT language='javascript' src='js/daily_popcalendar.js'></SCRIPT>
<SCRIPT language='javascript' src='js/displayelement.js'></SCRIPT>
<link rel="stylesheet" type="text/css" href="js/style.css" />
<style type="text/css">
<!--
.style3 {font-size: 10px}
.style4 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
<div>
<link rel="stylesheet" type="text/css" href="hiliterow.css" />
<script>


<!-- 
function checkQuantity(MyID, maxValue){
	var q = document.getElementById(MyID);
	if(parseInt(q.value)>maxValue){
		alert("กรุณาตรวจสอบตัวเลขที่กรอก\nตัวเลขอาจเกินกว่าความเป็นจริง");
	}
}
function open_win(win_file, win_title)
{
window.open(win_file, win_title, 'resizable=yes,width=900,height=500,toolbar=no,scrollbars=yes,location=no,menubar=no,status=no');
}

-->
</script>
<SCRIPT language="javascript1.2">
	function CreateXmlHttp(){
		//Creating object of XMLHTTP in IE
		try {
			XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e){
			try{
				XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch(oc) {
				XmlHttp = null;
			}
		}
		//Creating object of XMLHTTP in Mozilla and Safari 
		if(!XmlHttp && typeof XMLHttpRequest != "undefined") {
			XmlHttp = new XMLHttpRequest();
		}
	} // end function CreateXmlHttp

	function chgAmphur(e, defa_v) {
		if ( e ) {
			CreateXmlHttp();
			XmlHttp.open("get", "ajax.chgamphur.php?PvID="+e+"&DfVal="+defa_v, true);
			XmlHttp.onreadystatechange=function() {//alert("Aussy!!");
				if (XmlHttp.readyState==4) {
					
					if (XmlHttp.status==200) {
						var res = XmlHttp.responseText; //alert(res);
						document.getElementById("lblAmphur").innerHTML = res;
						if(e==""){
							document.getElementById("lblTambon").innerHTML = 	"กรุณาเลือกอำเภอก่อน";
						}
						chgTambon(defa_v, tambon);
					} else if (XmlHttp.status==404) {
						alert("ไม่สามารถทำการดึงข้อมูลได้");
					} else {
						alert("Error : "+XmlHttp.status);
					}
				}
			};
			XmlHttp.send(null);
		}
	   }
	function chgTambon(e, defa_v) {
		if ( e ) {
			CreateXmlHttp();
			
			XmlHttp.open("get", "ajax.chgtambon.php?TbID="+e+"&DfVal="+defa_v, true);
			XmlHttp.onreadystatechange=function() {
				if (XmlHttp.readyState==4) {
					if (XmlHttp.status==200) {
						var res = XmlHttp.responseText; 
						document.getElementById("lblTambon").innerHTML = res;
						
					} else if (XmlHttp.status==404) {
						alert("ไม่สามารถทำการดึงข้อมูลได้");
					} else {
						alert("Error : "+XmlHttp.status);
					}
				}
			};
			XmlHttp.send(null);
		} else {
			document.getElementById("lblTambon").innerHTML = 	"(กรุณาเลือกอำเภอก่อน)";
			document.getElementById("lblSubTambon").innerHTML = "(กรุณาเลือกตำบลก่อน)";
			document.getElementById("lblMun").innerHTML = "(กรุณาเลือกเทศบาลก่อน)";
			document.getElementById("muni_name").innerHTML="";
		}
	}
	function chgMun(e, defa_v) {
    //  alert ('chgMun');
	
		if ( e ) {
			//alert ('เข้าchgMun');
			CreateXmlHttp();
			XmlHttp.open("get", "ajax.chgmun.php?MooID="+e+"&DfVal="+defa_v, true);
			
			XmlHttp.onreadystatechange=function() {
				if (XmlHttp.readyState==4) {
					if (XmlHttp.status==200) {
						var res = XmlHttp.responseText; 
						document.getElementById("lblMun").innerHTML = res;
						 //chgMooname(e);
						 chgMoo(e,'');
					} else if (XmlHttp.status==404) {
						alert("ไม่สามารถทำการดึงข้อมูลได้");
					} else {
						alert("Error : "+XmlHttp.status);
					}
				}
			};
			XmlHttp.send(null);
			//chgMoo(e, defa_v);
		}else {
			document.getElementById("muni_name").innerHTML="";
			document.getElementById("lblSubTambon").innerHTML = "(กรุณาเลือกตำบลก่อน)";
			document.getElementById("lblMun").innerHTML = "(กรุณาเลือกเทศบาลก่อน)";
		}
		
	}
	
	function chgMoo(e, defa_v) {
	// alert ('chgMoo');
		if ( e ) {
			CreateXmlHttp();
			XmlHttp.open("get", "ajax.chgmoo.php?MooID="+e+"&DfVal="+defa_v, true);
			
			XmlHttp.onreadystatechange=function() {
				if (XmlHttp.readyState==4) {
					if (XmlHttp.status==200) {
						var res = XmlHttp.responseText; 
						document.getElementById("lblSubTambon").innerHTML = res
						//alert (res);
						 //chgMooname(e);
					} else if (XmlHttp.status==404) {
						alert("ไม่สามารถทำการดึงข้อมูลได้");
					} else {
						alert("Error : "+XmlHttp.status);
					}
				}
			};
			XmlHttp.send(null);
		}else {
			document.getElementById("muni_name").innerHTML="";
			document.getElementById("lblSubTambon").innerHTML = "(กรุณาเลือกตำบลก่อน)";
		}
	}
	
	function chgMooname(e) {
		if ( e ) {
			CreateXmlHttp();
			XmlHttp.open("get", "ajax.chgmooname.php?MooID="+e, true);
			XmlHttp.onreadystatechange=function() {
				if (XmlHttp.readyState==4) {
					if (XmlHttp.status==200) {
						var res = XmlHttp.responseText; //alert(res);
						arrMoo = res;
						
						document.getElementById("muni_name").innerHTML="("+arrMoo+")";
					} else if (XmlHttp.status==404) {
						alert("ไม่สามารถทำการดึงข้อมูลได้");
					} else {
						alert("Error : "+XmlHttp.status);
					}
				}
			};
			XmlHttp.send(null);
		}
	}
	
	<? if ( $objMB->addr_province && $objMB->addr_amphur && $objMB->addr_tambon ) echo "chgAmphur('$objMB->addr_province', '$objMB->addr_amphur', '$objMB->addr_tambon');"; ?>
</SCRIPT>
<table width="92%" border="0" cellpadding="3" cellspacing="0" align="center">  
<tr>
            <td width="21%" height="24"><span class="style2 style3">*</span> ชื่อ บริษัท/สถานประกอบการ:</td>
          <td width="78%"><input name="aname" type="text" id="aname" size="35" value="<?=($_POST['aname']=='')?$Result_3['name_meeting']:$_POST['aname']?>" />
          &nbsp;</td>
  </tr> 
       <tr>
      <td>เบอร์โทรติดต่อบริษัท/สถานประกอบการ:</td>
      <td><input type="text" name="textfield" id="textfield"  size="11"/></td>
      </tr>
       <tr>
            <td width="21%" height="38">ที่ตั้งของบริษัท/สถานประกอบการ:</td>
         <td>
             <?php
				
					$province = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccType='Changwat' AND ccDigi LIKE '13000000' ");
					while( $ram = mysql_fetch_array($province) )  { 
						$id=$ram['ccDigi'];
					
					?>
จังหวัด
            <input type="readonly" name="public_province1" id="public_province1"  value="ปทุมธานี"  size="6" disabled="disabled"/>
  <input name="public_province"  type="hidden"  value="<? echo $ram['ccDigi'];?>"  />
                      <?  } ?>&nbsp;&nbsp;</td>
      </tr>
    
      <tr>
            <td width="21%" height="24"><span class="style2 style3">* </span>อำเภอ:</td>
            
          <td><select name="public_amphur" id="public_amphur" onchange="chgTambon(this.value, 13);">
              <option value="">กรุณาเลือก อำเภอ</option>
              <?php   $slted= $Result_3['aumpher_id'];
					$am = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccType='Aumpur' AND ccDigi LIKE '13%' ");
					while( $ram = mysql_fetch_array($am) ) {
					if($ram['ccDigi']==$slted){ ?>
              <option value="<?=$ram['ccDigi']?>"selected>
                <?=$ram['ccName']?>
              </option>
              ;
			
              <?		}else{	?>
              <option value="<?=$ram['ccDigi']?>">
                <?=$ram['ccName']?>
              </option>
              ;	
					
              <?		
					}
					}
					?>
            </select></td>
      </tr>
       <tr>
            <td width="21%" height="24"><span class="style2 style3">* </span>ตำบล:</td>
          <td>
          <LABEL id="lblTambon">
          <? if ($Result_3['tambol_id'] !="") {?>
          <select name="public_tambol2" id="public_tambol2" onchange="chgMun(this.value,<?=$Result_3['tambol_id']?>)" >
            <?php     $t_id = substr($_GET['MooID'],0,6);
		  			$slted=$Result_3['tambol_id'];
					$amm = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa_pathumthani WHERE ccType='Tamboon' AND ccDigi LIKE '$t_id%' ");
					while( $ram = mysql_fetch_array($amm) ) {
					if($ram['ccDigi']==$slted){ ?>
            <option value="<?=$ram['ccDigi']?>"selected>
            <?=$ram['ccName']?>
            </option>
            
              
              ;
			
              
              
            <?		}else{	?>
            <option value="<?=$ram['ccDigi']?>">
            <?=$ram['ccName']?>
            </option>
            
              
              ;	
					
              
              
            <?		
					}
					}
					?>
          </select>
          <?
			}  else {
				echo "(กรุณาเลือกอำเภอก่อน)";
			}
			?>
          </LABEL>          </td>
      </tr>
      <?php /*?> <tr>
            <td width="13%" height="24"><span class="style1 style2">*</span>เทศบาล</td>
            <td>
          <LABEL id="lblMun">
          <? if ($Result_3['tambol_id'] !="") {?> 
            <select name="public_Mun" id="public_Mun" onchange="chgMoo(this.value,<?=$Result_3['tambol_id']?>)" >
              <?php     $t_id = substr($_GET['TbID'],0,4);
		  			$slted=$Result_3['mun_id'];
					$amm = mysql_query("SELECT 
												ccaa_pathumthani.ccDigi,
ccaa_pathumthani.ccName,
ccaa_pathumthani.ccType,
ccaa_pathumthani.ccMoo,
ccaa_pathumthani.ccMun,
ccaa_municipality.municipality_name
FROM
ccaa_pathumthani
Inner Join ccaa_municipality ON ccaa_pathumthani.ccMun = ccaa_municipality.municipality_id
WHERE ccDigi LIKE('$st_id%') AND ccType='Village'
GROUP BY ccMun ");
					while( $ram = mysql_fetch_array($amm) ) {
					if($ram['municipality_id']==$slted){ ?>
              <option value="<?=$ram['municipality_id']?>"selected>
              <?=$ram['municipality_name']?>
              </option>
              
              ;
			
              
              <?		}else{	?>
              <option value="<?=$ram['ccDigi']?>">
              <?=$ram['ccName']?>
              </option>
              
              ;	
					
              
              <?		
					}
					}
					?>
            </select>
            <?
			}  else {
				echo "(กรุณาเลือกตำบลก่อน)";
			}
			?>
          </LABEL> </td>
      </tr>
       <tr>
            <td width="13%" height="24"><span class="style1 style2">*</span>หมู่บ้าน/ชุมชน</td>
          <td><LABEL id="lblSubTambon">
          <?php if($Result_3['village_name']=""){?>
          <select name="public_Subtambol" id="public_Subtambol">
            <?php     $st_id = substr($_GET['MooID'],0,6);
		  			$slted=$Result_3['village_name'];
					$amms = mysql_query("SELECT ccDigi,ccName,ccType,ccMun FROM ccaa_pathumthani WHERE ccType='village' AND ccDigi= '$st_id' ");
					while( $rams = mysql_fetch_array($amms) ) {
					if($rams['ccDigi']==$slted){ ?>
            <option value="<?=$rams['ccDigi']?>"selected>
            <?=$rams['ccName']?>
            </option>
            
              ;
			
              
            <?		}
					}
					?>
          </select>
          <?php }else{ echo "(กรุณาเลือกเทศบาลก่อน)";}?>
          </LABEL>          </td>
      </tr><?php */?>
      <tr>
            <td width="21%" height="24">บ้านเลขที่:</td>
    <td><input type="text" name="ban_id" id="ban_id" size="7" value="<?=($_POST['ban_id']=='')?$Result_3['ban_id']:$_POST['ban_id']?>" onblur="return checkNumber(this,document.getElementById('ban'));" /><span id="ban"></span>
              หมู่ที่
            <input type="text" name="moo" id="moo"  size="5" value="<?=($_POST['moo']=='')?$Result_3['moo']:$_POST['moo']?>"  onblur="return checkNumber(this,document.getElementById('moo_id'));"/><span id="moo_id"></span></td>
      </tr>
     
    <tr>
      <td  valign="top">สวัสดิการ:</td>
      <td><textarea name="textarea" id="textarea" cols="45" rows="5"></textarea></td>
  </tr>
      
       <tr>
      <td width="21%" align="left" valign="middle" class="style9">วันประกาศรับสมัคร:</td>
      <td width="78%" align="left" class="style9">
        <span class="style6">
      <input name="TimeLineDate" type="text" id="TimeLineDate" size="10" maxlength="10" onFocus="this.select();" onKeyPress="chkDateFormat(this.id, this.value);"  onKeyUp="autoTab(this)"  value="<? if($TimeLineDate == "--543"){ echo date("d-m-").(date("Y")+543);}else{ echo ($TimeLineDate!="")?$TimeLineDate:date("d-m-").(date("Y")+543);}?>"/>
      <img src="js/calendar/calendar2.gif" title="วัน-เดือน-ปี" width="22" height="22" border="0" align="absmiddle"  
onclick="popUpCalendar(this, document.getElementById('TimeLineDate'), 'dd-mm-yyyy')" onMouseOver="this.style.cursor='pointer'"value="" />      </span></td>
    </tr>
       <tr>
      <td width="21%" align="left" valign="middle" class="style9">วันหมดเขตรับสมัคร:</td>
      <td width="78%" align="left" class="style9">
        <span class="style6">
      <input name="TimeLineDate" type="text" id="TimeLineDate" size="10" maxlength="10" onFocus="this.select();" onKeyPress="chkDateFormat(this.id, this.value);"  onKeyUp="autoTab(this)"  value="<? if($TimeLineDate == "--543"){ echo date("d-m-").(date("Y")+543);}else{ echo ($TimeLineDate!="")?$TimeLineDate:date("d-m-").(date("Y")+543);}?>"/>
      <img src="js/calendar/calendar2.gif" title="วัน-เดือน-ปี" width="22" height="22" border="0" align="absmiddle"  
onclick="popUpCalendar(this, document.getElementById('TimeLineDate'), 'dd-mm-yyyy')" onMouseOver="this.style.cursor='pointer'"value="" />      </span></td>
    </tr>
   <tr>
      <td width="21%" align="left" valign="middle" class="style9">&nbsp; </td>
      <td width="78%" align="left" class="style9">        </td>
  </tr>
        
      
</table>

Anon7 - 2021