网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > PHP实例
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.不用数据库的多用户文件自由上传.
.Flash+PHP+Mysql简单留言本制作实.
.基于mysql的论坛(7).
.用PHP制作静态网站的模板框架(一).
.WindowsXP+IIS+PHP5+MySQL5+Zend.
.用Flash图形化数据(二).
.非常好的目录导航文件代码.
.一个域名查询的程序.
.无数据库的详细域名查询程序PHP版.
.php上传、管理照片示例.
.用PHP构建一个留言本.
.基于PHP的聊天室(一).
.通过html表格发电子邮件.
.基于mysql的bbs设计(五).
.最省空间的计数器.
.采用行写方式的聊天程序(之一).
.社区(php&&mysql)五.
.用PHP编写PDF文档生成器.
.杏林同学录(四).
.BBS(php & mysql)完整版(三).

一个程序下载的管理程序(四)

发表日期:2001-5-25


//管理程序chang.php源代码如下:
<? session_start() ?>
<? if($session_power==""||$session_power<1)
{
header("location: ../message.php?redirect=default.php&message=你不是理员");
break;
}?>
<?require ("../opendata.php");?>
<?
if($step=="1")
{
if(!($rs=mysql_fetch_array(mysql_query("select * from download where id='".$id."'",$cn))))
   echo "提取资料出错";
else
{

?>
<html>
<head>
<title>修改资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29"><font size="2">你的位置:<a href="../default.php">首页</a>-&gt;&gt;<a href="download.php?action=show">下载基地</a>-&gt;&gt;修改资料</font></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="446">
  <tr>
    <td height="335" width="77%" bgcolor="#99cc00">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="335">
        <tr>
          <td colspan="2" height="42">&nbsp;</td>
        </tr>
        <form method="post" action="chang.php?step=2&id=<?=$id?>">
          <tr>
            <td height="35" width="19%"><font size="2">软件名称</font></td>
            <td height="35" width="81%">
              <input name="title" value="<?=$rs["title"];?>" >
            </td>
          </tr>
          <tr>
            <td height="36" width="19%"><font size="2">软件地址</font></td>
            <td height="36" width="81%">
              <input name="url" size="50" value="<?=$rs["url"];?>"
           >
            </td>
          </tr>
          <tr>
            <td height="34" width="19%"><font size="2">大小</font></td>
            <td height="34" width="81%"> <font size="2">
              <input type="text" name="size" size="12" value="<?=$rs["size"]?>">
              </font></td>
          </tr>
          <tr>
            <td height="42" width="19%">
              <div align="left"><font size="2">分类</font></div>
            </td>
            <td height="42" width="81%"><font size="2">
              <select name="type">
                <option <?if($rs["type"]==1) echo "selected"; ?> value="1">密码破解</option>
                <option <?if($rs["type"]==2) echo "selected"; ?> value="2">远程控制</option>
                <option <?if($rs["type"]==3) echo "selected"; ?> value="3">端口扫描</option>
                <option <?if($rs["type"]==4) echo "selected"; ?> value="4">字典工具</option>
                <option <?if($rs["type"]==5) echo "selected"; ?> value="5">系统安全</option>
                <option <?if($rs["type"]==6) echo "selected"; ?> value="6">各种炸弹</option>
                <option <?if($rs["type"]==7) echo "selected"; ?> value="7">加密软件</option>
                <option <?if($rs["type"]==8) echo "selected"; ?> value="8">源代码</option>
                <option <?if($rs["type"]==9) echo "selected"; ?> value="9">其它软件</option>
              </select>
              </font> </td>
          </tr>
          <tr>
            <td height="31" width="19%"><font size="2">简介:</font></td>
            <td height="31" width="81%">
              <textarea name="say" cols="50" rows="10"><?=$rs["say"];?></textarea>
            </td>
          </tr>
          <tr>
            <td height="37" colspan="2">
              <div align="center">
                <input type="submit" value="搞定" name="submit">
              </div>
            </td>
          </tr>
        </form>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
<?
}
}
if($step=="2")
{
mysql_query("update download set title='".$title."', say='".$say."',url='".$url."',size='".$size."',type='".$type."' where id=".$id,$cn);
header("location:download.php?action=show&type=$type");
}
?>
上一篇:计数器详细设计 人气:12076
下一篇:PHP下MAIL的另一解决方案 人气:10445
浏览全部的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐