📄 content.php
字号:
<?php
@include("global.inc");
@include("database.inc");
?>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body background="background.gif">
<center>
<table width=100% bgcolor="#E0E0E0" cellspacing="0" cellpadding="0">
<?php
$type_rst = mysql_query("SELECT * FROM $table_type WHERE 1 ORDER BY tid");
while ($type_row = mysql_fetch_array($type_rst)) {
echo "<tr><td align=center colspan=4 bgcolor=#808080 style=\"border-width:thin; border-style:outset;border-color:#C0C0C0;\"><font color=#FFFFFF>".$type_row["type"]."</font>";
$db_rst = mysql_query("SELECT * FROM $table_db WHERE type='".$type_row["type"]."' ORDER BY last_update DESC");
while ($db_row = mysql_fetch_array($db_rst)) {
echo "<tr onmouseover=\"className='tr1'\" onmouseout=\"className='tr2'\"><td>".$db_row["id"]." ";
echo "<td align=center style=\"text-justify : auto;\" ><a href=view.php?id=".$db_row["id"].">".$db_row["prog_name"]."</a>";
echo "<td>".$db_row["introduction"];
echo "<td>".$db_row["last_update"];
}
}
?>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -