一个个人网页自动化生成系统(2)
时间:2007-02-17 来源:PHP爱好者
模板提交,文件名:muban.PHP
<HTML>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=gb2312">
</head> <body bgcolor="#FFFFFF" background="image/b-graingr1.jpg">
<form method="post" action="muobanshen.PHP">
<table width="750" border="1">
<tr>
<td width="155">标题之前:</td>
<td width="579">
<textarea name="muban1" cols="70" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="155">正文之前:</td>
<td width="579">
<textarea name="muban2" cols="70" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="155">正文之后:</td>
<td width="579">
<textarea name="muban3" cols="70" rows="5"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="提 交">
<input type="button" name="Submit2" value="复 位">
</div>
</td>
</tr>
</table>
</form>
</body>
</HTML>
模板生成,文件名:muobanshen.PHP
<HTML>
<head>
<title>测试</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=gb2312"> <link rel="stylesheet" href=http://www.blue1000.com/article/"image/yifanCSS.CSS">
</head>
<body leftmargin="0" topmargin="0" link="#000066" vlink="#000068" alink="#000068" background="image/b-graingr1.jpg">
<p>
<?
$fdd=fopen("muoban1.txt","w");
fwrite($fdd,$muban1);
fclose($fdd);
$fdd=fopen("muoban2.txt","w");
fwrite($fdd,$muban2);
fclose($fdd);
$fdd=fopen("muoban3.txt","w");
fwrite($fdd,$muban3);
fclose($fdd);
echo "模板修改成功!<p>";
?>
<br>
<center><a href=http://www.blue1000.com/article/"guanli.PHP">管理文件</a></center>
</p>
</body>
</HTML>
php爱好者 站 http://www.phpfans.net 网页制作|网站建设|数据采集.
<HTML>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=gb2312">
</head> <body bgcolor="#FFFFFF" background="image/b-graingr1.jpg">
<form method="post" action="muobanshen.PHP">
<table width="750" border="1">
<tr>
<td width="155">标题之前:</td>
<td width="579">
<textarea name="muban1" cols="70" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="155">正文之前:</td>
<td width="579">
<textarea name="muban2" cols="70" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="155">正文之后:</td>
<td width="579">
<textarea name="muban3" cols="70" rows="5"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="提 交">
<input type="button" name="Submit2" value="复 位">
</div>
</td>
</tr>
</table>
</form>
</body>
</HTML>
模板生成,文件名:muobanshen.PHP
<HTML>
<head>
<title>测试</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=gb2312"> <link rel="stylesheet" href=http://www.blue1000.com/article/"image/yifanCSS.CSS">
</head>
<body leftmargin="0" topmargin="0" link="#000066" vlink="#000068" alink="#000068" background="image/b-graingr1.jpg">
<p>
<?
$fdd=fopen("muoban1.txt","w");
fwrite($fdd,$muban1);
fclose($fdd);
$fdd=fopen("muoban2.txt","w");
fwrite($fdd,$muban2);
fclose($fdd);
$fdd=fopen("muoban3.txt","w");
fwrite($fdd,$muban3);
fclose($fdd);
echo "模板修改成功!<p>";
?>
<br>
<center><a href=http://www.blue1000.com/article/"guanli.PHP">管理文件</a></center>
</p>
</body>
</HTML>
php爱好者 站 http://www.phpfans.net 网页制作|网站建设|数据采集.
相关阅读 更多 +