content.php
来自「发布管理系统(sps)v2.0」· PHP 代码 · 共 35 行
PHP
35 行
<?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>
<center>
<table width=100%>
<?php
$type_rst = mysql_query("SELECT * FROM $table_type WHERE 1");
while ($type_row = mysql_fetch_array($type_rst)) {
echo "<tr><th colspan=3 bgcolor=#FFFFFF>".$type_row["type"];
$db_rst = mysql_query("SELECT * FROM $table_db WHERE type='".$type_row["type"]."' ORDER BY id");
while ($db_row = mysql_fetch_array($db_rst)) {
echo "<tr><td bgcolor=#CCFFFF>".$db_row["id"];
echo "<td bgcolor=#CCFFFF><a href=view.php?id=";
echo $db_row["id"];
echo">";
echo $db_row["prog_name"]."</a>";
echo "<td bgcolor=#CCFFFF>".$db_row["last_update"];
echo "<tr><td colspan=3 bgcolor=#99FFFF>".$db_row["introduction"];
}
}
?>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?