-
Notifications
You must be signed in to change notification settings - Fork 0
/
articlereview.php
53 lines (51 loc) · 1.25 KB
/
articlereview.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php require_once('Connections/weblib.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章审核</title>
</head>
<body>
<?php
$sql = "select * from article where status=0 order by date desc";
$result = mysql_query($sql);
$num = mysql_num_rows($result);
if($num){
echo"<table align='center' border='1' cellpadding='10'>";
echo"<tr>";
echo"<th>文章</th>";
echo"<th>模块</th>";
echo"<th>提交时间</th>";
echo"<th>操作</th>";
echo"</tr>";
while($row = mysql_fetch_assoc($result)){
echo "<tr>";
echo "<td>".$row["title"]."</td>";
switch($row["module"]){
case 1:
echo "<td>科技快讯</td>";
break;
case 2:
echo "<td>主机技术</td>";
break;
case 3:
echo "<td>科普乐园</td>";
break;
default:
echo "<td>知识问答</td>";
}
echo "<td>".$row["date"]."</td>";
echo "<td>";
$aid = $row["aid"];
echo "<a href='checkandreview.php?aid=".$aid."target='_blank'>查看</a> ";
echo "</td>";
echo "</tr>";
}
echo"</table>";
}
else{
echo "<p>当前没有需要审核的文章</p>";
}
?>
</body>
</html>