|
|
|
[PHP] ผมจะเปลี่ยน Font ใน dreamweaver ให้แสดงผลเป็น ไทยสารบรรณ |
|
|
|
|
|
|
|
เอา HTML Code มาดูครับ
|
|
|
|
|
Date :
2012-12-12 09:25:34 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code
<?
include("core.php");
if($Submit == "Clear"){
session_unregister("id_emergency_pre_ss");
session_register("id_emergency_pre_ss");
$id_emergency_pre_ss = $id_emergency_pre;
$Sql = "select * from tb_emergency_pre where id_emergency_pre = '" . $id_emergency_pre_ss . "' " ;
$Tmp = $IDBN->query($Sql);
$Rs = $Tmp->fetchRow();
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<? include("../../active_script/table_hilight/table_hilight.php");?>
<? include("../../active_script/fckeditor/editor_control.php"); ?>
<link href="../../style/css-backend/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {
font-size: 14px;
font-weight: bold;
}
.style4 {
font-size: 18px;
font-family: "TH Sarabun New";
}
.style5 {
font-size: 18px;
font-weight: bold;
font-family: "TH Sarabun New";
}
.style1 {font-size: 16px}
.style15 {font-size: 14px; font-weight: bold; font-family: "TH Sarabun New"; }
.style17 {font-size: 16px; font-weight: bold; font-family: "TH Sarabun New"; }
.style19 {font-size: 16px; font-family: "TH Sarabun New"; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="950" border="0" cellpadding="2" >
<tr>
<td height="17"> </td>
<td bordercolor="#FFFFFF" > </td>
<td align="right"> </td>
</tr>
<tr>
<td width="1%" height="51"> </td>
<td width="80%" align="center" valign="middle" bordercolor="#FFFFFF" ><?=str_repeat(" " , 5)?>
<table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#000000" >
<tr>
<td height="51" align="center" valign="middle"><div align="center" class="style3"><?=str_repeat(" " , 5)?>
<span class="style4">แบบรายงานเหตุการณ์ภาวะฉุกเฉินเบื้องต้น</span></div>
</td>
</tr>
</table></td>
<td width="19%" align="right"><span class="style5">กนอ. EMER 01 </span></td>
</tr>
<tr>
<td height="47"> </td>
<td colspan="2" valign="bottom"><span class="style5">เรียน ผวก. (โทรศัพท์ (081) 923-1989/ (02) 650-0909 โทรสาร (02) 650-0429)<br>
<?=str_repeat(" " , 9)?>
ศูนย์รับแจ้งเหตุ กระทรวงอุตสาหกรรม (โทรศัพท์ (02) 202-3059 โทรสาร (02) 202-3060)</span></td>
</tr>
<tr>
<td height="42"> </td>
<td colspan="2" align="center"> <?=str_repeat(" " , 5)?><span class="style15"><u>รายงานเบื้องต้นเหตุการณ์ภาวะฉุกเฉินจากการประกอบกิจการในนิคมอุตสาหกรรม</u></span></td>
</tr>
<tr>
<td> </td>
<td colspan="2" rowspan="16" valign="top"><table width="100%" border="0" cellpadding="2">
<tr>
<td height="50" colspan="2"><table width="100%" border="0" cellpadding="2">
<tr>
<td width="3%"><input type="checkbox" name="topic_1" value="1" <? if($Rs["topic_1"] == '1'){ echo "checked";}?>></td>
<td width="14%"><span class="style17">ไฟไหม้</span></td>
<td width="4%"><input type="checkbox" name="topic_2" value="1" <? if($Rs["topic_2"] == '1'){ echo "checked";}?>></td>
<td width="20%"><span class="style17">สารเคมีรั่วไหล</span></td>
<td width="4%"><input type="checkbox" name="topic_3" value="1" <? if($Rs["topic_3"] == '1'){ echo "checked";}?>></td>
<td width="18%"><span class="style17">ระเบิด</span></td>
<td width="3%"><input type="checkbox" name="topic_4" value="1" <? if($Rs["topic_4"] == '1'){ echo "checked";}?>></td>
<td width="34%"><?=$Rs["topic_4_des"]?> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="19%" height="39" valign="top"><span class="style17">สถานที่เกิดเหตุ</span></td>
<td width="81%" valign="top"> </td>
</tr>
<tr>
<td height="38" valign="top"><span class="style17">ชื่อโรงงาน</span></td>
<td valign="top"><span class="style19"><?=$Rs["factory_name"]?></span> </td>
</tr>
<tr>
<td height="36" valign="top"><span class="style17">สถานที่ตั้ง</span></td>
<td valign="top"><span class="style19"><?=$Rs["factory_address"]?></span> </td>
</tr>
<tr>
<td height="39" valign="top"><span class="style17">ประกอบกิจการ</span></td>
<td valign="top"><span class="style19"><?=$Rs["factory_product"]?></span> </td>
</tr>
<tr>
<td height="38" valign="top"><span class="style17">ทะเบียนโรงงานเลขที่</span></td>
<td valign="top"><span class="style19"><?=$Rs["factory_num"]?></span> </td>
</tr>
<tr>
<td height="63" valign="top"><span class="style17">(แนบแผนผัง/ ภาพถ่ายแสดงจุดเกิดเหตุ)</span></td>
<td valign="top"> </td>
</tr>
<tr>
<td height="39" valign="top"><span class="style17">วัน/เวลา ที่เกิดเหตุ </span></td>
<td valign="top"><span class="style19"><?=$Tools->HM_Date( $Rs["event_date"] , "th")?></span> </td>
</tr>
<tr>
<td height="119" valign="top"><span class="style17">เหตการณ์ที่เกิดขึ้น</span></td>
<td valign="top"><span class="style19"><?=wordwrap($Rs["event_description"] , 140 , "\n" , 1 )?></span> </td>
</tr>
<tr>
<td height="87" valign="top"><span class="style17">ความเสียหาย</span></td>
<td valign="top"><table width="100%" border="0" cellpadding="2" >
<tr>
<td width="33%" height="27"><span class="style19"><strong>ผู้บาดเจ็บ</strong></span></td>
<td width="17%"><span class="style19"><?=$Rs["sufferer"]?></span> <span class="style19">คน</span></td>
<td width="13%"><span class="style19"><strong>เสียชีวิต</strong></span></td>
<td width="37%"><span class="style19"><?=$Rs["life"]?></span> <span class="style19">คน</span></td>
</tr>
<tr>
<td height="31"><span class="style19"><strong>ประมาณการค่าความเสียหาย</strong></span></td>
<td colspan="2"><span class="style19"><?=$Rs["value_damage"]?></span> <span class="style19">บาท</span></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="137" valign="top"><span class="style17">สันนิษฐานเบื่องต้น</span></td>
<td valign="top"><span class="style19"><?=wordwrap($Rs["assuming"] , 140 , "\n" , 1 )?></span></td>
</tr>
<tr>
<td height="108" valign="top"><span class="style17">การดำเนินการ</span></td>
<td valign="top"><span class="style19"><?=wordwrap($Rs["operation"] , 140 , "\n" , 1 )?></span></td>
</tr>
<tr>
<td height="40" valign="bottom"> </td>
<td valign="middle"><table width="100%" border="0" cellpadding="2" >
<tr>
<td width="28%" height="36"> </td>
<td width="16%"><span class="style17">ผู้รายงาน</span></td>
<td width="56%"><span class="style19"><?=$Rs["reporter"]?></span> </td>
</tr>
<tr>
<td height="28"> </td>
<td><span class="style17">ตำแหน่ง</span></td>
<td><span class="style19"><?=$Rs["position"]?></span> </td>
</tr>
<tr>
<td height="27"> </td>
<td><span class="style17">หน่วยงาน</span></td>
<td><span class="style19"><?=$Rs["department"]?></span> </td>
</tr>
<tr>
<td height="28"> </td>
<td><span class="style17">วันที่รายงาน</span></td>
<td><span class="style19"><?=$Tools->HM_Date( $Rs["report_date"] , "th")?></span> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="38" colspan="2" valign="bottom"><span class="style19"><strong><u>สำเนาเรียน</u></strong> <strong>รผก ปก.1 / รผก.ปก.2 / รผก.ทร. / รผก.บส.</strong></span></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="17"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" >
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
|
|
|
|
|
Date :
2012-12-12 09:40:27 |
By :
KONG |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
code ประมานข้างบนครับ ผมไม่รู้วิธีใส่ ขอโทษด้วยครับ ขอบคุณครับ
|
|
|
|
|
Date :
2012-12-12 09:41:56 |
By :
KONG |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|