Viewing file: AccDetail.php (7.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
ConnectDB();
$sql = " SELECT * FROM accessories_tb WHERE code='$code' ";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ข้อมูลพัสดุครุภัณฑ์</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {color: #000000}
.style4 {
font-size: 14px;
font-weight: bold;
}
.style5 {font-size: 14px}
-->
</style>
</head>
<body bgcolor="#FFFFFF" topmargin="0">
<table width="610" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="610" scope="col"><form name="form1" method="post" action="">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE" style="border:0px solid gray"size="12">
<tr bgcolor="#CCCCFF">
<td height="34" colspan="2" bgcolor="#FFFFFF"><div align="center" class="style4"><font color="#000000" face="Tahoma">แสดงรายละเอียด</font></div></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="193" height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">รหัส</font></div></td>
<td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma">
<?php
echo"$rs[Acc_code]";
?>
</font></strong></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ชื่ออุปกรณ์/ยี่ห้อ</font></div></td>
<td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma">
<?php
echo"$rs[Acc_name]";
?>
</font></strong></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ชนิด</font></div></td>
<td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
<?php
$Acc_type_code = $rs["Acc_type_code"];
$sql = "Select * From accessories_type_tb Where Acc_type_code='$Acc_type_code'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[Acc_type] $rss[Acc_Etype]";
?>
</font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><span class="style3"><font face="Tahoma">หน่วยงาน /ฝ่าย ที่รับผิดชอบ </font></span></div></td>
<td bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
<?php
$Faculty_code = $rs["Faculty_code"];
$sql = "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[Faculty_name]";
?>
</font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ที่จัดเก็บ</font></div></td>
<td width="374" bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><? echo $rs[Store] ?></font><font color="#336600" size="2" face="Tahoma"> </font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ประวัติการซ่อม</font></div></td>
<td width="374" bgcolor="#FFFFFF" ><font color="#000000" size="2" face="Tahoma"> <? echo nl2br($rs[Fix_History])?> </font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">บริษัท
Contact</font></div></td>
<td width="374" bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><? echo $rs[Contact]?></font><font color="#003366" size="2" face="Tahoma"> </font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bgcolor="#FFFFFF" ><div align="center" class="style5"><font face="Tahoma">ปี พ.ศ.ที่ซื้อ</font></div></td>
<td bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
<?php
$sday = $rs[Date_buy];
$yearthai = explode("-",$sday);
$day = intval($yearthai[2]);
$month = intval($yearthai[1]);
$year = intval($yearthai[0]);
//////////////////
// $yearthai = $day ;
// $month = TxtThaiMonth($month);
echo"$day"."/"."$month"."/"."$year";
?>
</font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ราคา</font></div></td>
<td bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#993333" size="2" face="Tahoma"><?echo number_format($rs['Price'],2,'.',','); ?></font><font color="#000000" size="2" face="Tahoma"> บาท </font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"> <font face="Tahoma">งบประมาณการซ่อมแซม</font></div></td>
<td bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><? echo $rs[Fix_budget] ?> บาท </font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">สถานะการใช้งาน</font></div></td>
<td bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><? echo $rs[Status] ?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">สถิติการใช้งาน</font> </div></td>
<td bgcolor="#FFFFFF" ><font color="#000000" size="2" face="Tahoma"><? echo $rs[Statistic] ?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">บันทึกซ่วยจำ</font></div></td>
<td bgcolor="#FFFFFF" ><font color="#000000" size="2" face="Tahoma"><? echo nl2br($rs[Description]) ?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="22" colspan="2" bgcolor="#FFFFFF"><div align="center">
<table width="200" border="1" cellpadding="1" cellspacing="1">
<tr>
<td align="center"><?php
echo"<center>";
echo"<img src=\"$rs[Img1]\" width=\"250\" height=\"200\" >";
echo"</center>";
?></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br><input type="button" name="Submit" value=" ปิดหน้าต่าง" onClick="javascript:parent.close();" onMouseOver="this.style.cursor='hand'" />
</form></th>
</tr>
</table>
</body>
</html>
|