|
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/industry/ |
Upload File : |
<style type="text/css">
<!--
.style2 {color: #FF0000}
-->
</style>
<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');
}*/
function chkNumber(e){
//alert(e.id);
if(e.value != '1' && e.value != '') {
alert("! กรอกได้เพียงตัวเลข 1 หรือไม่กรอกใดๆ เท่านั้น กรุณากรอกให้ถูกต้อง");
document.getElementById(e.id).value='';
}
}
function showPlantID(e){
document.getElementById('ind_code').value=e.value;
}
function sumPeople(e){
document.getElementById(e.id).value=parseInt(document.getElementById('man').value)+parseInt(document.getElementById('women').value);
}
</script>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="15%" height="24">วัตถุดิบ</td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="209"><textarea name="raw" id="raw" <?=($_GET['view']=='1')?'disabled="disabled"':''?> cols="30" rows="2"><?=($_POST['raw']=='')?$Result_3['raw']:$_POST['raw']?></textarea></td>
<td width="40"></td>
<td width="112" align="right">กำลังการผลิต </td>
<td width="281"><textarea name="capacity" id="capacity" <?=($_GET['view']=='1')?'disabled="disabled"':''?> cols="30" rows="2"><?=($_POST['capacity']=='')?$Result_3['capacity']:$_POST['capacity']?></textarea></td>
<td width="1"></td>
<td width="45">จำพวก</td>
<td width="145"><input name="fact_class1" disabled="disabled" type="text" id="fact_class1" size="3" value="<?=($_POST['fact_class']=='')?$Result_3['fact_class']:$_POST['fact_class']?>" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="24">เงินทุน</td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<input name="capital" type="text" id="capital" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="20" value="<?=($_POST['capital']=='')?$Result_3['capital']:$_POST['capital']?>" onKeyPress="return isNumber(event,this.id);"/> บาท
กำลังม้า
<input name="hp" type="text" id="hp" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="20" value="<?=($_POST['hp']=='')?$Result_3['hp']:$_POST['hp']?>" onKeyPress="return isNumber(event,this.id);"/>
ชาย <input name="man" type="text" id="man" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="10" value="<?=($_POST['man']=='')?$Result_3['man']:$_POST['man']?>" onKeyPress="return isNumber(event,this.id);"/><span id="txt_man"></span>
หญิง <input name="women" type="text" id="women" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="10" value="<?=($_POST['women']=='')?$Result_3['women']:$_POST['women']?>" onKeyPress="return isNumber(event,this.id);"/>
รวม <input name="men" type="text" id="men" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="10" value="<?=($_POST['men']=='')?$Result_3['men']:$_POST['men']?>" onKeyPress="return isNumber(event,this.id);" onfocus="sumPeople(this);"/>
</td>
</tr></table>
</td>
</tr>
<tr>
<td height="24">ค่าธรรมเนียมใบอนุญาต</td>
<td>
<input name="licen_fee" type="text" id="licen_fee" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="20" value="<?=($_POST['licen_fee']=='')?$Result_3['licen_fee']:$_POST['licen_fee']?>" onKeyPress="return isNumber(event,this.id);"/> บาท
ค่าธรรมเนียมรายปี <input name="year_fee" type="text" id="year_fee" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="20" value="<?=($_POST['year_fee']=='')?$Result_3['year_fee']:$_POST['year_fee']?>" onKeyPress="return isNumber(event,this.id);"/> บาท
</td>
</tr>
<tr>
<td height="24"></td>
<td>
<? echo "(ใช่ = เลือก , ไม่ใช่ = ว่าง)"; ?>
</td>
</tr>
<tr>
<td height="24" colspan="2">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr height="24">
<td width="4%" align="center"><input name="panmaung" id="panmaung" type="checkbox" value="1" <?=($Result_3['panmaung']=='1')?'checked="checked"':''?>/></td>
<td width="12%">เขตผังเมือง</td>
<td width="4%" align="center"><input name="boiler" id="boiler" type="checkbox" value="1" <?=($Result_3['boiler']=='1')?'checked="checked"':''?>/></td>
<td width="17%">หม้อไอน้ำ</td>
<td width="4%" align="center"><input name="iz" id="iz" type="checkbox" value="1" <?=($Result_3['iz']=='1')?'checked="checked"':''?>/></td>
<td width="13%">เขต อก.</td>
<td width="4%" align="center"><input name="water" id="water" type="checkbox" value="1" <?=($Result_3['water']=='1')?'checked="checked"':''?>/></td>
<td width="12%">น้ำบาดาล</td>
<td width="4%" align="center"><input name="iso18" id="iso18" type="checkbox" value="1" <?=($Result_3['iso18']=='1')?'checked="checked"':''?>/></td>
<td width="12%">ISO18000</td>
<td width="4%" align="center"><input name="waste" id="waste" type="checkbox" value="1" <?=($Result_3['waste']=='1')?'checked="checked"':''?>/></td>
<td width="10%">น้ำทิ้ง</td>
</tr>
<tr height="24">
<td align="center"><input name="tesaban" id="tesaban" type="checkbox" value="1" <?=($Result_3['tesaban']=='1')?'checked="checked"':''?>/></td>
<td>เขตเทศบาล</td>
<td align="center"><input name="pressure" id="pressure" type="checkbox" value="1" <?=($Result_3['pressure']=='1')?'checked="checked"':''?>/></td>
<td>ระบบทำความเย็น</td>
<td align="center"><input name="export" id="export" type="checkbox" value="1" <?=($Result_3['export']=='1')?'checked="checked"':''?>/></td>
<td>เขตส่งออก</td>
<td align="center"><input name="chemical" id="chemical" type="checkbox" value="1" <?=($Result_3['chemical']=='1')?'checked="checked"':''?>/></td>
<td>วัตถุอันตราย</td>
<td align="center"><input name="haccp" id="haccp" type="checkbox" value="1" <?=($Result_3['haccp']=='1')?'checked="checked"':''?>/></td>
<td>HACCP</td>
<td align="center"><input name="smell" id="smell" type="checkbox" value="1" <?=($Result_3['smell']=='1')?'checked="checked"':''?>/></td>
<td>กลิ่น</td>
</tr>
<tr height="24">
<td align="center"><input name="sukhapiban" id="sukhapiban" type="checkbox" value="1" <?=($Result_3['sukhapiban']=='1')?'checked="checked"':''?>/></td>
<td>เขตสุขาภิบาล</td>
<td align="center"><input name="boi" id="boi" type="checkbox" value="1" <?=($Result_3['boi']=='1')?'checked="checked"':''?>/></td>
<td>BOI</td>
<td align="center"><input name="sme" id="sme" type="checkbox" value="1" <?=($Result_3['sme']=='1')?'checked="checked"':''?>/></td>
<td>SME</td>
<td align="center"><input name="iso9" id="iso9" type="checkbox" value="1" <?=($Result_3['iso9']=='1')?'checked="checked"':''?>/></td>
<td>ISO9000</td>
<td align="center"><input name="waste_ref" id="waste_ref" type="checkbox" value="1" <?=($Result_3['waste_ref']=='1')?'checked="checked"':''?>/></td>
<td>กากของเสีย</td>
<td align="center"><input name="noise" id="noise" type="checkbox" value="1" <?=($Result_3['noise']=='1')?'checked="checked"':''?>/></td>
<td>เสียง</td>
</tr>
<tr height="24">
<td align="center"><input name="tis" id="tis" type="checkbox" value="1" <?=($Result_3['tis']=='1')?'checked="checked"':''?>/></td>
<td>มอก.</td>
<td align="center"><input name="ieat" id="ieat" type="checkbox" value="1" <?=($Result_3['ieat']=='1')?'checked="checked"':''?>/></td>
<td>เขตนิคม อก.</td>
<td align="center"><input name="co3" id="co3" type="checkbox" value="1" <?=($Result_3['co3']=='1')?'checked="checked"':''?>/></td>
<td>รับช่วงการผลิต</td>
<td align="center"><input name="iso14" id="iso14" type="checkbox" value="1" <?=($Result_3['iso14']=='1')?'checked="checked"':''?>/></td>
<td>ISO14000</td>
<td align="center"><input name="status" id="status" type="checkbox" value="1" <?=($Result_3['status']=='1')?'checked="checked"':''?>/></td>
<td>มลภาวะทุกอย่าง</td>
<td align="center"><input name="dust" id="dust" type="checkbox" value="1" <?=($Result_3['dust']=='1')?'checked="checked"':''?>/></td>
<td>ฝุ่น</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" height="24">ชื่อนิคม/เขตประกอบการ</td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="25%"><select name="ind_name" id="ind_name" <?=($_GET['view']=='1')?'disabled="disabled"':''?> onchange="showPlantID(this);">
<option value="">เลือกชื่อนิคม/เขตประกอบการ</option>
<?
$strSQL_22 = "SELECT * FROM industry_plant
";
$rsConn_22 = mysql_db_query($dbname,$strSQL_22);
while($Result_22 = mysql_fetch_assoc($rsConn_22)){
?>
<option value="<?=$Result_22['plant_id']?>" <? if($Result_3['ind_name']==$Result_22['plant_name']){ echo "selected"; } ?>>
<?=$Result_22['plant_name']?>
</option>
<?
}
?>
</select></td>
<td width="4%"><!--รหัส--></td>
<td width="49%"><input name="ind_code" type="hidden" id="ind_code" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="5" value="<?=($_POST['ind_code']=='')?$Result_3['ind_code']:$_POST['ind_code']?>" onblur="return checkNumber(this,document.getElementById('txt_ind_code'));"/><span id="txt_ind_code"></span></td>
<td width="9%" align="right"> <input name="mech" id="mech" type="checkbox" value="1" <?=($Result_3['mech']=='1')?'checked="checked"':''?>/> </td>
<td width="13%"> ทะเบียนเครื่องจักร</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" height="24" align="right">ตู้ที่ </td>
<td>
<input name="cabinet_no" type="text" id="cabinet_no" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="3" value="<?=($_POST['cabinet_no']=='')?$Result_3['cabinet_no']:$_POST['cabinet_no']?>" onKeyPress="return isNumber(event,this.id);"/>
ชั้นที่ <input name="shelf_no" type="text" id="shelf_no" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="3" value="<?=($_POST['shelf_no']=='')?$Result_3['shelf_no']:$_POST['shelf_no']?>" onKeyPress="return isNumber(event,this.id);"/>
ลำดับที่(ใส่ 4 ตำแหน่ง เช่น 0001) <input name="file_no" type="text" id="file_no" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="5" value="<?=($_POST['file_no']=='')?$Result_3['file_no']:$_POST['file_no']?>" maxlength="4" onKeyPress="return isNumber(event,this.id);"/>
</td>
</tr>
<tr>
<td width="10%" height="24">รหัสแฟ้ม(เดิม)</td>
<td>
<input name="file_code" type="text" id="file_code" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="10" value="<?=($_POST['file_code']=='')?$Result_3['file_code']:$_POST['file_code']?>" /> รหัสแฟ้ม(ใหม่) <input name="file_code1" type="text" id="file_code1" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="10" value="<?=($_POST['file_code1']=='')?$Result_3['file_code1']:$_POST['file_code1']?>" />
</td>
</tr>
</table></td>
</tr>
</table>