Viewing file: BuildingDetail1.php (5.12 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("./include/FunctionDB.php");
include("./include/Function.php");
ConnectDB();
$sql ="Select * From building_tb Where BuildD_No='$BuildD_No'";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs = mysql_fetch_array($result);
?>
<html>
<head>
<title>Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="css/style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="607" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="607" scope="col"><form name="form1" method="post" action="">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#DDDDDD" style=" border:1px solid gray"size="12">
<tr bgcolor="#BFD0E6">
<td colspan="3"><div align="center"><font color="#999999" size="4" face="Tahoma"><strong><font color="#000000">รายละเอียด
ข้อมูล</font><font color="#000000" size="4" face="Tahoma"> สิ่งก่อสร้าง
และ อาคารสถานที่</font><font color="#000000">ี่</font></strong></font></div></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">เลขที่แบบก่อสร้าง</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[BuildD_ID]?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="24%" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ชื่ออาคาร</font></div></td>
<td width="2%" bordercolor="#FFFFCC"> </td>
<td width="74%" bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Build_name]?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ประเภทอาคาร</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Build_type]?></font> </td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ชื่อย่ออาคาร</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Short_name]?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">จำนวนชั้น</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Class_unit]?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">จำนวนห้อง</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Room_unit]?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ปีที่สร้างแล้วเสร็จ</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003366" size="2" face="Tahoma">
<?php
$sday = $rs[BuildD_Yr];
$yearthai = explode("-",$sday);
$day = intval($yearthai[2]);
$month = intval($yearthai[1]);
$year = intval($yearthai[0]);
//////////////////
// $yearthai = $day ;
$m = getThaiSubMonth($month);
echo"$day"." "."$m"." "."$year";
?>
</font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ราคา/หน่วย</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"> <? echo number_format($rs['BuildD_Pr'],2,'.',','); ?> <font color="#000000">บาท</font></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">แหล่งเงิน</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[MoneyS_C]?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">รายละเอียด</font></div></td>
<td bordercolor="#FFFFCC"> </td>
<td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo nl2br($rs[Description])?></font> </td>
</tr>
<tr bgcolor="#BFD0E6">
<td height="20" colspan="3"><div align="center">
<input type="button" name="Submit" value=" ปิดหน้าต่าง" onClick="javascript:parent.close();" class="button1">
</div></td>
</tr>
</table>
</form>
</th>
</tr>
</table>
<p> </p>
</body>
</html>
|