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_add.php
<? include_once("../../config/config_epm.inc.php"); ?>
<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">
<!--
.style6 {color: #000000}
-->
</style>
<div>
<link rel="stylesheet" type="text/css" href="hiliterow.css" />
<script>

var gFiles = 0;
function addFile() {
var subb = "ตำแหน่งงาน : ";
var subS = "จำนวน : ";
var subS1 = " อัตรา  ";
var subS2 = "<br> คุณสมบัติของพนักงานที่ต้องการ : ";
var subS3 = "<br> เงินเดือน : ";
var subS4 = " บาท : ";
var li = document.createElement('li');
li.setAttribute('id', 'file-' + gFiles);
li.innerHTML =subb+'<select name="select" id="select[]"></select>'+subS+'<input type="text" name="position[]" size="3">'+subS1+subS2+'<input type="text"  name="option[]" size="50"> '+subS3+'<input type="text" name="salary[]" size="10">'+subS4+'<span onclick="removeFile(\'file-' + gFiles + '\')" style="cursor:pointer;"> <img src=img/nolines_minus.gif  width="18" height="18" border="0" align="absmiddle"></span>';
document.getElementById('files-root').appendChild(li);
gFiles++;
}




function removeFile(aId){
var obj = document.getElementById(aId);
obj.parentNode.removeChild(obj);
}
<!-- 
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="99%" border="0" cellspacing="5" cellpadding="0"  bordercolor="#999999">

  <tr>
    <td><table width="99%" border="0" cellpadding="3" cellspacing="0" align="center">  
      <?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 */?>
      
      <td align="left" valign="top" class="style9"><p><SPAN style="cursor:pointer;" onClick="addFile()" ><font size="+2"><strong>เพิ่มข้อมูล </strong></font><IMG src="../../images_sys/icon.plus.gif" border="0"  width="18" height="15"></SPAN>
      <ol id="files-root">
      </ol></td>
      <TD width="1%" align="left" valign="top"  ><LABEL></LABEL>
        </p>      </td>
    </tr>
    <tr><td height="25">
    <table width="100%" border="1" cellspacing="1" cellpadding="0"  bordercolor="#999999">
    <tr>
      <td width="9%" bgcolor="#999999"><div align="center" class="style6">ครั้งที่</div></td>
      <td width="34%" bgcolor="#999999"><div align="center" class="style6">ตำแหน่ง</div></td>
      <td width="25%" bgcolor="#999999"><div align="center" class="style6">จำนวน</div></td>
      <td width="18%" bgcolor="#999999"><div align="center" class="style6">วันที่ประกาศ</div></td>
      <td width="14%" bgcolor="#999999"><div align="center" class="style6">การจัดการ</div></td>
    </tr>
    <tr>
      <td width="9%"><div align="center">1</div></td>
      <td width="34%"><div align="center">บัญชี</div></td>
      <td width="25%"><div align="center">2</div></td>
      <td width="18%"><div align="center">15-05-2553</div></td>
      <td width="14%"><div align="center"><a href="form_surway_preview.php?runid=<?=$Result_1['run_id']?>&amp;view=1"><img src="img/Preview-icon.png" alt="ดูข้อมูล" title="ดูข้อมูล" width="16" height="16" border="0" align="absmiddle" /></a>&nbsp; <a href="form_surway.php?runid=<?=$Result_1['run_id']?>&amp;code=<?=$Result_1['code']?>&amp;edit=1"><img src="img/icon-write.png" alt="แก้ไข" title="แก้ไข" width="16" height="16" border="0" align="absmiddle" /></a>&nbsp; <a href="" onclick="return Conf(this)"><img src="img/icon-delete.png" alt="ลบ" title="ลบ" width="16" height="16" border="0" align="absmiddle" /></a></div></td>
    </tr>
      </table>


</td>
    </tr>
 
      
       
       
      
    </table></td>
  </tr>
</table>

Anon7 - 2021