1.PHP后台管理系统内容列表页admin_news_list.php
<?phpinclude_once ('admin_global.php');$r=$db->Get_user_shell_check($uid, $shell);$query=$db->findall("p_newsclass");while ($row=$db->fetch_array($query)){$news_class_arr[$row[id]]==$row[name];}if(isset($_GET[del])){mysql_query("DELETE FROM `p_newsbase` WHERE `id` = '$_GET[del]' LIMIT 1;");mysql_query("DELETE FROM `p_newscontent` WHERE `nid` = '$_GET[del]' LIMIT 1;");$db->Get_admin_msg("admin_news_list.php", "添加成功");}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE>后台管理</TITLE><META http-equiv=Content-Type content="text/html; charset=gb2312"><META content=Alan name=Author><LINK rev=MADE href="mailto:haowubai@hotmail.com" mce_href="mailto:haowubai@hotmail.com"><LINK href="images/private.css" mce_href="images/private.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD><BODY><TABLE class=navi cellSpacing=1 align=center border=0><TBODY><TR><TH>后台 >> 新闻管理</TH></TR></TBODY></TABLE><BR><table border=0 cellspacing=1 align=center class=form><tr><th width='100'>新闻分类</th><th>新闻标题</th><th width='100'>作者</th><th width='100'>日期</th><th width='100'>操作</th></tr><tr><?php $result = mysql_query("select id from p_newsbase"); $total = mysql_num_rows($result); pageft($total,20); if ($firstcount < 0) $firstcount = 0; $query = $db->findall("p_newsbase limit$firstcount, $displaypg"); while ($row = $db->fetch_array($query)){ ?> <td><?php echo $news_class_arr[$row[cid]]?></td><td><?php echo $row[title]?></td><td><?php echo $row[author]?></td><td><?php echo date("Y-m-d H:i",$row[date_time])?></td><td><a href='?del=<?php echo $row[id]?>'>删除</a> / <a href='admin_news_edit.php?id=<?php echo $row[id]?>'>修改</a></td></tr><?php}?><tr><th colspan="5"><?php echo $pagenav;?></th></tr></table><br></BODY></HTML>
2.PHP后台管理系统之后台登陆页index.php
<?phpinclude_once ('admin_global.php');if(!empty($_POST[username])&& !empty($_POST[password])) $db->Get_user_login($_POST[username],$_POST[password]);?><html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><meta name='Author' content='Alan'><link rev=MADE href="mailto:haowubai@hotmail.com" mce_href="mailto:haowubai@hotmail.com"><title>后台管理</title><link rel='stylesheet' type='text/css' href="images/private.css" mce_href="images/private.css"><mce:script type="text/javascript"><!-- if(self!=top){ window.open(self.location,'_top'); } // --></mce:script></head><body><br><br><br><form action="" method="post"><table border=0 cellspacing=1 align=center class=form><tr><th colspan="2">用户登录</th></tr> <tr><td align="right">登录用户:</td><td><input type="text" name="username" value="" size="20" maxlength="40"/></td></tr> <tr><td align="right">登录密码:</td><td><input type="password" name="password" value="" size="20" maxlength="40"/></td></tr><tr><td colspan="2" align="center" height='30'><input type="submit" name="update" value=" 登录 "/></td></form></tr></table></body></html>