?? detail.php
字號:
<html><head><title>圖書詳細信息</title>
<meta content="text/html;charset=gb2312" http-equiv=Content-Type><head>
<?
require("index.html.inc");
?>
<body>
<table width="70%" align=center>
<tbody>
<tr>
<td valign=center width="15%">
<?
function conndb()
{
$db=@mysql_pconnect("localhost","root","307910");
if($db==false)
{
print "Database failed!";
exit();
}
return $db;
}
$db=conndb();
$res=@mysql_db_query("bookseller","select summary,directory,snap from books_extra where isdn=$isdn;",$db);
$row=@mysql_fetch_row($res);
print "<img border=0 src=\"row[2]\"></td>\n";
?></td>
<td>
<?
print " ".$row[0];
?></td></tr>
<tr>
<td align=right colspan=2>
<?
$db=conndb();
$res=@mysql_db_query("bookseller","select publisher,price,title from books where isdn=$isdn;",$db);
$row2=@mysql_fetch_row($res);
$res=@mysql_db_query("bookseller","select fullname from publishers where id=$row2[0];",$db);
$row3=@mysql_fetch_row($res);
print "出版社 <font color=#cc0066>$row3[0]</font>";
print " 定價 <font color=#cc0066>$row2[1]";
print "</font> <A href=\"order.php?isdn=$isdn&action=add\">";
print "<font color=#8cc9ec>加到購物車中</font></A> ";
?>
<tr>
<td colspan=2><textarea rows=8 cols=72 readonly>
<?
if(!file_exists($row[1]))
{
print "對不起,目錄信息暫時還沒有準備好!";
}
else
{
$dir=file($row[1]);
for($i=0;$i<count($dir);$i++)
{
print $dir[$i];
}
}
?>
</textarea></td></tr>
</tbody>
</table>
</body>
<?
require("foot.html.inc");
?>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -