设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源分享平台

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

来源:网络收集 作者:佚名 时间:2007-04-25 21:22:56
网站管理,文件名: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=/images/NullPic.gif" width="103" height="60"></p>
      <p><img src=/images/NullPic.gif" width="100" height="35"></p>
      <p><a href="muban.php"><img src=/images/NullPic.gif" width="100" height="35"  border="0"></a></p>
      <p><img src=/images/NullPic.gif" width="100" height="35"></p>
      <p><img src=/images/NullPic.gif" width="100" height="35"></p>
      <p><img src=/images/NullPic.gif" width="100" height="35"></p>
      <p><img src=/images/NullPic.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="75%" border="0" align="center">
  <tr>  
    <td class=p9>  
      <div align="center">作者:<font color="#306800">$zuozhe</font> 来源:<font color="#306800">$laiyuan</font>  
        时间:<font color="#336600">$t</font> </div>
    </td>
  </tr>
</table></p>";
$muoban4=fread($muoban1,1000);
$muoban5=fread($muoban2,1000);
$muoban6=fread($muoban3,1000);
fclose($muoban1);
fclose($muoban2);
fclose($muoban3);
$main="$muoban4 $timu $qita $muoban5 $textt $muoban6";
// 文章生成
$ttt=".html";
$n=$id.$ttt;
$f = fopen($n,"w");
fwrite($f,$main);
fclose($f);
   
  echo "记录修改成功!<p>";
   
   
   

}  

// 我们是否进入编辑修改状态
  if ($id) {


    // 我们是在编辑修改状态,因些选择一条记录

    $sql = "SELECT * FROM wenzhang WHERE id=$id";

[1] [2]  下一页

Tags:

  • 好的评价 如果您觉得好,就请您
      0%(0)
  • 差的评价 如果您觉得差,就请您
      0%(0)
  • 相关文章
    广告赞助

    文章随便看看 设计素材 建站学院 网页模板 视频教程

    网友评论

    共有 0 位网友发表了评论,得分 0 分,平均 0 分    查看完整评论

    用户名: 查看更多评论

    分 值:100分 85分 70分 55分 40分 25分 10分 1分

    内 容:

             通知管理员 验证码: