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/application/labor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/pathumthani_integration/integration/application/labor/labor_jobless_page8.php
<style type="text/css">
<!--
.style2 {color: #FF0000}
-->
</style>
<?
if($_GET['edit']=='1' || $_GET['id_card']!=''){
		$strSQL_unemployed = "SELECT *
								FROM	labor_unemployed
								WHERE id_card='".$_GET['id_card']."'
								";
		$rsConn_unemployed = mysql_db_query($dbname,$strSQL_unemployed);
		$Result_unemployed = mysql_fetch_assoc($rsConn_unemployed);
}
?>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="3" cellspacing="0">
      <tr>
            <td width="270" height="24" align="left" valign="top"><strong>ต้องการที่พักจากนายจ้างหรือไม่</strong></td>
            <td align="left">
            <select name="want_room" id="want_room" style="width:170px">
                <option value="1" <?=($Result_unemployed['want_room']=='1')?'selected="selected"':''?>>ไม่จำกัด</option>
                <option value="2" <?=($Result_unemployed['want_room']=='2')?'selected="selected"':''?>>ต้องการ</option>
                <option value="3" <?=($Result_unemployed['want_room']=='3')?'selected="selected"':''?>>ไม่ต้องการ</option>
          </select>
          	</td>
      </tr>
      <tr>
            <td height="24" align="left" valign="top"><strong>ทำงานจังหวัดอื่นได้หรือไม่</strong></td>
            <td align="left">
            <select name="work_country" id="work_country" style="width:170px">
                <option value="1" <?=($Result_unemployed['work_country']=='1')?'selected="selected"':''?>>ได้</option>
                <option value="2" <?=($Result_unemployed['work_country']=='2')?'selected="selected"':''?>>ไม่ได้</option>
          </select>
          	</td>
      </tr>
      <tr>
            <td height="24" align="left" valign="top"><strong>กรณีลาออก ลาออกจากงานครั้งสุดท้ายเนื่องจาก</strong></td>
            <td align="left">
            <select name="reason_resign" id="reason_resign" style="width:170px"  onchange="chkRetrie(this);">
                <option value="ต้องการเปลี่ยนงาน" <?=($Result_unemployed['reason_resign']=='ต้องการเปลี่ยนงาน')?'selected="selected"':''?>>ต้องการเปลี่ยนงาน</option>
                <option value="ต้องการพักผ่อน" <?=($Result_unemployed['reason_resign']=='ต้องการพักผ่อน')?'selected="selected"':''?>>ต้องการพักผ่อน</option>
                <option value="สิ้นสุดโครงการหรือหมดสัญญาจ้าง" <?=($Result_unemployed['reason_resign']=='สิ้นสุดโครงการหรือหมดสัญญาจ้าง')?'selected="selected"':''?>>สิ้นสุดโครงการหรือหมดสัญญาจ้าง</option>
                <option value="เกษียนอายุ" <?=($Result_unemployed['reason_resign']=='เกษียนอายุ')?'selected="selected"':''?>>เกษียนอายุ</option>
                <option value="อื่น ๆ" <?=($Result_unemployed['reason_resign']=='อื่น ๆ')?'selected="selected"':''?>>อื่น ๆ</option>
          </select>
          <span id="chkRETRIE"  <?=($Result_unemployed['reason_resign']=='อื่น ๆ')?'':'style="display:none;"'?>>
          			ระบุ <input name="reason_resign_etc" type="text" id="reason_resign_etc" size="40"  value="<?=($_POST['reason_resign_etc']=='')?$Result_unemployed['reason_resign_etc']:$_POST['reason_resign_etc']?>"  />
          </span>
          	</td>
      </tr>
      <tr>
            <td height="24" align="left" valign="top"><strong>กรณีถูกเลิกจ้าง ถูกเลิกจ้างครั้งสุดท้าย เนื่องจาก</strong></td>
            <td align="left">
            <select name="reason_layoff" id="reason_layoff" style="width:170px"  onchange="chkRetrieEnd(this);">
                <option value="นายจ้างปิดกิจการ" <?=($Result_unemployed['reason_layoff']=='นายจ้างปิดกิจการ')?'selected="selected"':''?>>นายจ้างปิดกิจการ</option>
                <option value="นายจ้างลดจำนวนพนักงาน" <?=($Result_unemployed['reason_layoff']=='นายจ้างลดจำนวนพนักงาน')?'selected="selected"':''?>>นายจ้างลดจำนวนพนักงาน</option>
                <option value="นายจ้างใช้เครื่องจักรที่ทันสมัยแทน" <?=($Result_unemployed['reason_layoff']=='นายจ้างใช้เครื่องจักรที่ทันสมัยแทน')?'selected="selected"':''?>>นายจ้างใช้เครื่องจักรที่ทันสมัยแทน</option>
                <option value="มีความผิด" <?=($Result_unemployed['reason_layoff']=='มีความผิด')?'selected="selected"':''?>>มีความผิด</option>
                <option value="ไม่ผ่านการประเมิน" <?=($Result_unemployed['reason_layoff']=='ไม่ผ่านการประเมิน')?'selected="selected"':''?>>ไม่ผ่านการประเมิน</option>
                <option value="อื่น ๆ" <?=($Result_unemployed['reason_layoff']=='อื่น ๆ')?'selected="selected"':''?>>อื่น ๆ</option>
          </select>
          <span id="chkRETRIEend" <?=($Result_unemployed['reason_layoff']=='อื่น ๆ')?'':'style="display:none;"'?>>
          			ระบุ <input name="reason_layoff_etc" type="text" id="reason_layoff_etc" size="40"  value="<?=($_POST['reason_layoff_etc']=='')?$Result_unemployed['reason_layoff_etc']:$_POST['reason_layoff_etc']?>"  />
          </span>
          	</td>
      </tr>
      <tr>
            <td height="24" align="left" valign="top"><strong>กรณีมีความพิการ</strong></td>
            <td align="left">
            		<table width="100%" border="0" cellpadding="0" cellspacing="0">
                    		<tr>
                            		<td width="150" height="24">ทะเบียนคนพิการเลขที่ </td>
                                    <td align="left"><input name="deformed_register" type="text" id="deformed_register" size="20" maxlength="13" value="<?=($_POST['deformed_register']=='')?$Result_unemployed['deformed_register']:$_POST['deformed_register']?>"  onKeyPress="return isNumber(event,this.id);" /></td>
                            </tr>
                            <tr>
                            		<td height="24">ระดับความพิการ </td>
                                    <td align="left"><input name="deformed_level" type="text" id="deformed_level" size="40" value="<?=($_POST['deformed_level']=='')?$Result_unemployed['deformed_level']:$_POST['deformed_level']?>" /></td>
                           </tr>
                           <tr>
                            		<td valign="top">ความพิการประเภท </td>
                                    <td align="left" height="100">
                                              <?
											  $sqldeformed2="	SELECT
																				labor_personal_deformed.id_card,
																				labor_personal_deformed.deformed_id,
																				labor_personal_deformed.deformed_detail
																				FROM labor_personal_deformed
																			WHERE		labor_personal_deformed.id_card =  '".$_GET['id_card']."'
																			";
												$rsdeformed2=mysql_db_query($dbname,$sqldeformed2);
												while($resdeformed2=mysql_fetch_assoc($rsdeformed2)){
														$arrDeformed22[]=$resdeformed2['deformed_id'];														
												}
						
                                            $sqldeformed= mysql_query("SELECT
																								labor_master_deformed.deformed_id,
																								labor_master_deformed.deformed_type
																								FROM labor_master_deformed
                                                                                    ");
                                            while( $resdeformed= mysql_fetch_array($sqldeformed) ) {
												//$arrDeformed22[]
													$a=0;
													$numA=count($arrDeformed22);
													for($b=0;$b<$numA;$b++){
															if($arrDeformed22[$b]==$resdeformed['deformed_id']){
																	$a=1;
															}
													}
                                            ?>
                                             <input type="checkbox" name="deformed_id[]" id="deformed_id[]"  value="<?=$resdeformed['deformed_id']?>" <?=($a==1)?'checked="checked"':''?>  /> <?=$resdeformed['deformed_type']?>
                                             <br />
                                            <?
                                            }
                                            ?>
                                    </td>
                          </tr>
                          <tr>
                            		<td height="24">ระบุลักษณะความพิการ </td>
                                    <td align="left"><input name="deformed_kind" type="text" id="deformed_kind" size="40" value="<?=($_POST['deformed_kind']=='')?$Result_unemployed['deformed_kind']:$_POST['deformed_kind']?>" /></td>
                           </tr>
                           <tr>
                            		<td height="24">ต้องการฟื้นฟูสมรรถภาพหรือไม่ </td>
                                    <td align="left">
                                    <select name="deformed_reactivate" id="deformed_reactivate" style="width:170px">
                                            <option value="ต้องการ" <?=($Result_unemployed['deformed_reactivate']=='ต้องการ')?'selected="selected"':''?>>ต้องการ</option>
                                            <option value="ไม่ต้องการ" <?=($Result_unemployed['deformed_reactivate']=='ไม่ต้องการ')?'selected="selected"':''?>>ไม่ต้องการ</option>
                                            <option value="ฟื้นฟูแล้ว" <?=($Result_unemployed['deformed_reactivate']=='ฟื้นฟูแล้ว')?'selected="selected"':''?>>ฟื้นฟูแล้ว</option>
                                      </select>
                                    </td>
                           </tr>
                    </table>
          	</td>
      </tr>
      <tr>
            <td height="150" align="left" valign="top"><strong>ถ้าไม่ได้รับการบรรจุงาน ประสงค์<br>(เลือกได้มากกว่า 1 ข้อ)</strong></td>
            <td align="left">
            		<table width="100%" border="0" cellpadding="0" cellspacing="0">                    		
            <?
										 	$sqlobjective2="	SELECT
																			labor_unemployed_objective.id_card,
																			labor_unemployed_objective.objective_type_id,
																			labor_unemployed_objective.objective_detail
																			FROM labor_unemployed_objective
																			WHERE		labor_unemployed_objective.id_card =  '".$_GET['id_card']."'
																			";
												$rsobjective2=mysql_db_query($dbname,$sqlobjective2);
												while($resobjective2=mysql_fetch_assoc($rsobjective2)){
														$arrObjective22[]=$resobjective2['objective_type_id'];
														$arrObjectiveDetail[]=$resobjective2['objective_detail'];
												}
												
                                            $sqlobjective= mysql_query("SELECT
																							labor_master_notwork_objective.notwork_objective_id,
																							labor_master_notwork_objective.notwork_objective_name
																							FROM labor_master_notwork_objective
                                                                                    ");
                                            while( $resobjective= mysql_fetch_array($sqlobjective) ) {
													$a=0;
													$c=-1;
													$numA=count($arrObjective22);
													for($b=0;$b<$numA;$b++){
															if($arrObjective22[$b]==$resobjective['notwork_objective_id']){
																	$a=1;
																	$c=$b;
															}
													}
                                            ?>
                              <tr>
                            		<td width="250" height="24">
                                             <input type="checkbox" name="objective_type_id[]" id="objective_type_id[]"  value="<?=$resobjective['notwork_objective_id']?>"  <?=($a==1)?'checked="checked"':''?>  /> <?=$resobjective['notwork_objective_name']?>
                                             <br />
                                    </td>
                                    <td>
                                    <input name="objective_detail[]" type="text" id="objective_detail[]" size="40" value="<?=($_POST['objective_detail']=='')?$arrObjectiveDetail[$c]:$_POST['objective_detail']?>" />
                                    </td>
                               </tr>
                                            <?
                                            }
                                            ?>                              
                     </table>
          	</td>
      </tr>
      <tr>
            <td height="48" align="left" valign="top"><strong>ผลการทดสอบความสามารถทางด้าน<br />ภาษาอังกฤษของกรมการจัดหางาน</strong></td>
            <td align="left" valign="top">
            <select name="result_test_en" id="result_test_en" style="width:170px">
            	<option value="0">เลือก</option>
                <option value="ดีมาก" <?=($Result_unemployed['result_test_en']=='ดีมาก')?'selected="selected"':''?>>ดีมาก</option>
                <option value="ดี" <?=($Result_unemployed['result_test_en']=='ดี')?'selected="selected"':''?>>ดี</option>
                <option value="พอใช้" <?=($Result_unemployed['result_test_en']=='พอใช้')?'selected="selected"':''?>>พอใช้</option>
          </select>
          <input name="result_test_score" type="text" id="result_test_score" size="10" value="<?=($_POST['result_test_score']=='')?$Result_unemployed['result_test_score']:$_POST['result_test_score']?>"   onKeyPress="return isNumber(event,this.id);"/> คะแนน
          	</td>
      </tr>
      <tr>
            <td height="70" align="left" valign="top"><strong>ผู้ขึ้นทะเบียนหางานยินยอมให้เปิดเผย<br />ข้อมูลแก่นายจ้าง / สถานประกอบการ เพื่อพิจารณาบรรจุงาน</strong></td>
            <td align="left" valign="top">
            <select name="stu_open_contracting" id="stu_open_contracting" style="width:170px">
            	<option value="0">เลือก</option>
                <option value="1" <?=($Result_unemployed['stu_open_contracting']=='1')?'selected="selected"':''?>>ยินยอม</option>
                <option value="2" <?=($Result_unemployed['stu_open_contracting']=='2')?'selected="selected"':''?>>ไม่ยินยอม</option>
          </select>
          เปิดเผยต่อนายจ้างประเภทจ้างเหมาแรงงาน
          <br />
          <select name="stu_open_directsale" id="stu_open_directsale" style="width:170px">
            	<option value="0">เลือก</option>
                <option value="1" <?=($Result_unemployed['stu_open_directsale']=='1')?'selected="selected"':''?>>ยินยอม</option>
                <option value="2" <?=($Result_unemployed['stu_open_directsale']=='2')?'selected="selected"':''?>>ไม่ยินยอม</option>
          </select>
          เปิดเผยต่อนายจ้างประเภทขายประกัน / ขายตรง
          	</td>
      </tr>
      <tr>
            <td height="24" align="left" valign="top"><strong>วันที่ขึ้นทะเบียน</strong></td>
            <td align="left">
            		<input name="register_date" type="text" id="register_date" maxlength="10"  size="15" value="<?=($_POST['register_date']=='')?dateFormat($Result_unemployed['register_date'],'engthai_slash'):$_POST['register_date']?>" onblur=" checkThaiDate(this,document.getElementById('div_txt_register_date')); "  onkeypress="chkDateFormat(this,event)" /><img src="js/calendar/calendar2.gif" align="top" border="0" onClick="popUpCalendar(this, document.getElementById('register_date'), 'dd/mm/yyyy')" title="วัน เดือน ปี" style="cursor:pointer;" /><span id='div_txt_register_date'></span>
          	</td>
      </tr>
      
    </table></td>
  </tr>
  
</table>
<script>
function chkRetrie(e){
	//alert(e.value);
		if(e.value=='อื่น ๆ'){				
				document.getElementById('chkRETRIE').style.display='';
		}else{
				document.getElementById('chkRETRIE').style.display='none';
				document.getElementById('reason_resign_etc').value='';
		}
}

function chkRetrieEnd(e){
	//alert(e.value);
		if(e.value=='อื่น ๆ'){				
				document.getElementById('chkRETRIEend').style.display='';
		}else{
				document.getElementById('chkRETRIEend').style.display='none';
				document.getElementById('reason_layoff_etc').value='';
		}
}

</script>

Anon7 - 2021