点击这里给我发消息 点击这里给我发消息

一个个人网页自动化生成系统(2)

添加时间:2010-1-5
    相关阅读: 网页 模板 系统

模板提交,文件名: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="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="guanli.php">管理文件</a></center>
</p>
</body>
</html>

本文作者:
咨询热线:020-85648757 85648755 85648616 0755-27912581 客服:020-85648756 0755-27912581 业务传真:020-32579052
广州市网景网络科技有限公司 Copyright◎2003-2008 Veelink.com. All Rights Reserved.
广州商务地址:广东省广州市黄埔大道中203号(海景园区)海景花园C栋501室
= 深圳商务地址:深圳市宝源路华丰宝源大厦606
研发中心:广东广州市天河软件园海景园区 粤ICP备05103322号 工商注册