|
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 : /var/www/html/pathumthani_vc/report/pdir/admin/ |
Upload File : |
<?
include ("inc/conndb.qpass.php");
$sql2 = " SELECT officer.title, officer.th_name, officer.th_sname, office_detail.th_name, office_detail.th_address, office_detail.tel1, officer.home_tel, officer.mobile ";
$sql2 = $sql2 ." FROM officer INNER JOIN office_detail ON officer.office_id = office_detail.office_id ";
$sql2 = $sql2 ." WHERE officer.ID = $id; ";
//echo $sql2;
$query_result1=mysql_db_query($dbname,$sql2);
$result2=mysql_fetch_array($query_result1);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE><?=$result[title]?><?=$result[2]?> <?=$result[th_sname]?></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<style type="text/css">
<!--
body {
font-family: "MS Sans Serif", Tahoma, sans-serif;
font-size: 11px;
}
-->
</style>
<link href="basiccss.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
color: #336699;
font-weight: bold;
}
-->
</style>
</HEAD>
<BODY bgColor=#ffffff leftMargin=1 text=#000000 topMargin=3><div align="left">
<form name="form2" method="post" action="">
<table width=465 height="169" border=0 align="left" cellpadding=4 cellspacing=1>
<tr>
<td height=20 align="left" bgcolor=#a3b2cc class=style1> ชื่อ-นามสกุล : </td>
<td bgcolor="#DDDDDD"><?=$result2[title]?><?=$result2[1]?> <?=$result2[th_sname]?></td>
</tr>
<tr>
<td height=20 align="left" bgcolor=#a3b2cc class=style1> ตำแหน่ง : </td>
<td bgcolor="#EFEFEF"><?=$result[position]?></td>
</tr>
<tr>
<td height=20 align="left" bgcolor=#a3b2cc class=style1> หน่วยงาน : </td>
<td bgcolor="#DDDDDD"><?=$result2[3]?></td>
</tr>
<tr>
<td height=20 align="left" bgcolor=#a3b2cc class=style1> ที่ตั้ง : </td>
<td bgcolor="#EFEFEF"><?=$result2[th_address]?></td>
</tr>
<tr>
<td height=20 align="left" bgcolor=#a3b2cc class=style1> โทร.(ที่ทำงาน)</td>
<td bgcolor="#DDDDDD"><?=$result2[tel1]?><?=$result2[tel2]?><?=$result2[tel3]?></td>
</tr>
<tr>
<td height=20 align="left" bgcolor=#a3b2cc class=style1> e-mail : </td>
<td bgcolor="#EFEFEF"><?=$result2[email]?></td>
</tr>
<tr>
<td width=90 height=20 align="left" bgcolor=#a3b2cc class=style1> โทร.(บ้านพัก) : </td>
<td width=356 bgcolor="#DDDDDD">
<?
if ($result2[home_tel] == 0 ){
echo "-----";
}else{
echo $result2[home_tel] ;
}
?>
</td>
</tr>
<tr>
<td width=90 height=20 align="left" bgcolor=#a3b2cc class=style1> มือถือ : </td>
<td width=356 bgcolor="#EFEFEF">
<?
if ($result2[mobile] == 0 ){
echo "-----";
}else{
echo $result2[mobile] ;
}
?>
</td>
</tr>
</table>
</form></div>
</body>
</html>