网站管理,文件名:guanli.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" background="image/b-graingr2.jpg">
<table width="775" border="0">
<tr>
<td width="101" height="463" valign="top">
<p><img src="/upload/tech/20091102/20091102235700_6883966fd8f918a4aa29be29d2c386fb.gif"" width="103" height="60"></p>
<p><img src="/upload/tech/20091102/20091102235700_06138bc5af6023646ede0e1f7c1eac75.gif"" width="100" height="35"></p>
<p><a href="muban.php"><img src="/upload/tech/20091102/20091102235701_9bf31c7ff062936a96d3c8bd1f8f2ff3.gif"" width="100" height="35" border="0"></a></p>
<p><img src="/upload/tech/20091102/20091102235702_7eabe3a1649ffa2b3ff8c02ebfd5659f.gif"" width="100" height="35"></p>
<p><img src="/upload/tech/20091102/20091102235702_d516b13671a4179d9b7b458a6ebdeb92.gif"" width="100" height="35"></p>
<p><img src="/upload/tech/20091102/20091102235703_6c3cf77d52820cd0fe646d38bc2145ca.gif"" width="100" height="35"></p>
<p><img src="/upload/tech/20091102/20091102235703_b9228e0962a78b84f3d5d92f4faa000b.gif"" width="100" height="35"></p>
</td>
<td width="663" height="463" valign="top">
<table width="95%" border="0" align="center" height="234">
<tr>
<td height="43">
<div align="center"><b><font color="#480000" size="6">页面管理</font></b></div>
</td>
</tr>
<tr valign="top">
<td height="267">
<?php
// 程序开始
$db = mysql_connect("localhost", "root");
mysql_select_db("study",$db);
// 判断是不是修改文件
if ($submit) {
$sql = "UPDATE wenzhang SET timu='$timu',zuozhe='$zuozhe',
laiyuan='$laiyuan',textt='$textt' WHERE id=$id";
// 向数据库发出SQL命令
$result = mysql_query($sql);
// 文章生成
$t = date("Y-m-d h:i:s");
$muoban1 = fopen("muoban1.txt","r");
$muoban2 = fopen("muoban2.txt","r");
$muoban3 = fopen("muoban3.txt","r");
$qita = "<p><table width=&quo