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_page7.php
<table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="3" cellspacing="0">
      <tr>
            <td width="200" height="24" align="left" valign="top"><strong>คอมพิวเตอร์ (ระบูโปรแกรม)</strong></td>
            <td align="left"><textarea name="computer_ability" id="computer_ability"  cols="57" rows="3"><?=($_POST['computer_ability']=='')?$Result_3['computer_ability']:$_POST['computer_ability']?></textarea></td>
      </tr>
      <?
     					$sqlCarMas="	SELECT
													labor_personal_car.id_card,
													labor_personal_car.car_id,
													labor_personal_car.driver_license
													FROM labor_personal_car
													WHERE		labor_personal_car.id_card =  '".$_GET['id_card']."'
													";
						$rsCarMas=mysql_db_query($dbname,$sqlCarMas);
						while($resCarMas=mysql_fetch_assoc($rsCarMas)){
								$arrCarTempID[]=$resCarMas['car_id'];
								$arrCarTempLicense[]=$resCarMas['driver_license'];
						}
	  ?>
      <tr>
            <td height="24" align="left" valign="top"><strong>สามารถขับขี่ยานพาหนะ</strong></td>
            <td align="left">
            <?
            $sqlCar="	SELECT
								labor_master_car.car_id,
								labor_master_car.car_name
								FROM labor_master_car
										";
			$rsCar=mysql_db_query($dbname,$sqlCar);
			while($resCar=mysql_fetch_assoc($rsCar)){
						$a=0;
						$numA=count($arrCarTempID);
						for($b=0;$b<$numA;$b++){
								if($arrCarTempID[$b]==$resCar['car_id']){
										$a=1;
								}
						}
			?>
            <input type="checkbox" name="car_id[]" id="car_id[]"  value="<?=$resCar['car_id']?>"  <?=($a==1)?'checked="checked"':''?>   /> <?=$resCar['car_name']?>
            &nbsp;&nbsp;&nbsp;
            <? }?>
            </td>
      </tr>
       <tr>
            <td height="24" align="left" valign="top"><strong>ใบอนุญาตขับขี่</strong></td>
            <td align="left">
            <?
            $sqlCar="	SELECT
								labor_master_car.car_id,
								labor_master_car.car_name
								FROM labor_master_car
										";
			$rsCar=mysql_db_query($dbname,$sqlCar);
			while($resCar=mysql_fetch_assoc($rsCar)){
						$a=0;
						$numA=count($arrCarTempID);
						for($b=0;$b<$numA;$b++){
								if($arrCarTempLicense[$b]==$resCar['car_id']){
										$a=1;
								}
						}
			?>
            <input type="checkbox" name="driver_license[]" id="driver_license[]"  value="<?=$resCar['car_id']?>" <?=($a==1)?'checked="checked"':''?>  /> <?=$resCar['car_name']?>
            &nbsp;&nbsp;&nbsp;
            <? }?>
            </td>
      </tr>
      <tr>
            <td height="70" align="left" valign="top"><strong>ความรู้ความสามารถพิเศษอื่นๆ (ระบุ)</strong></td>
            <td align="left"><textarea name="other_ability" id="other_ability"  cols="57" rows="3"><?=($_POST['other_ability']=='')?$Result_3['other_ability']:$_POST['other_ability']?></textarea></td>
      </tr>
      
    </table></td>
  </tr>
  
</table>

Anon7 - 2021