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


Posted in PHP onOctober 09, 2006

//管理程序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>->><a href="download.php?action=show">下载基地</a>->>修改资料</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"> </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");
}
?>

PHP 相关文章推荐
PHP 中的一些经验积累
Oct 09 PHP
如何在PHP中使用Oracle数据库(1)
Oct 09 PHP
在PHP中使用Sockets 从Usenet中获取文件
Jan 10 PHP
PHP中for与foreach的区别分析
Mar 09 PHP
ThinkPHP之R方法实例详解
Jun 20 PHP
php学习笔记之面向对象
Nov 08 PHP
PHP中使用array函数新建一个数组
Nov 19 PHP
PHP基于cookie与session统计网站访问量并输出显示的方法
Jan 15 PHP
php实现三级级联下拉框
Apr 17 PHP
thinkPHP引入类的方法详解
Dec 08 PHP
详解php与ethereum客户端交互
Apr 28 PHP
gearman管理工具GearmanManager的安装与php使用方法示例
Feb 27 PHP
PHP下MAIL的另一解决方案
Oct 09 #PHP
一个程序下载的管理程序(二)
Oct 09 #PHP
在php中取得image按钮传递的name值
Oct 09 #PHP
PHP4之COOKIE支持详解
Oct 09 #PHP
一个程序下载的管理程序(一)
Oct 09 #PHP
一个程序下载的管理程序(三)
Oct 09 #PHP
计数器详细设计
Oct 09 #PHP
You might like
让PHP支持页面回退的两种方法
2008/01/10 PHP
php的XML文件解释类应用实例
2014/09/22 PHP
php从文件夹随机读取文件的方法
2015/06/01 PHP
PHP中empty和isset对于参数结构的判断及empty()和isset()的区别
2015/11/15 PHP
php封装的验证码类分享
2017/02/26 PHP
laravel unique验证、确认密码confirmed验证以及密码修改验证的方法
2019/10/16 PHP
NodeJS的模块写法入门(实例代码)
2012/03/07 NodeJs
javascript学习笔记(十四) window对象使用介绍
2012/06/20 Javascript
jQuery DOM插入节点操作指南
2015/03/03 Javascript
jQuery Ajax 实例代码 ($.ajax、$.post、$.get)
2016/04/29 Javascript
jQuery多文件异步上传带进度条实例代码
2016/08/16 Javascript
JS实现“隐藏与显示”功能(多种方法)
2016/11/24 Javascript
jquery插入兄弟节点的操作方法
2016/12/07 Javascript
JS FormData上传文件的设置方法
2017/07/05 Javascript
深入理解Vue transition源码分析
2017/07/30 Javascript
NodeJs form-data格式传输文件的方法
2017/12/13 NodeJs
node版本管理工具n包使用教程详解
2018/11/09 Javascript
JavaScript和TypeScript中的void的具体使用
2019/09/12 Javascript
js验证账户名是否重复
2020/05/26 Javascript
JavaScript实现图片放大预览效果
2020/11/02 Javascript
使用Python脚本在Linux下实现部分Bash Shell的教程
2015/04/17 Python
在python中使用requests 模拟浏览器发送请求数据的方法
2018/12/26 Python
Python 做曲线拟合和求积分的方法
2018/12/29 Python
Python3内置函数chr和ord实现进制转换
2020/06/05 Python
python爬虫scrapy图书分类实例讲解
2020/11/23 Python
CSS3实现多背景展示效果通过CSS3定位多张背景
2014/08/10 HTML / CSS
CSS3制作酷炫的三维相册效果
2016/07/01 HTML / CSS
香港唯港荟酒店预订:Hotel ICON
2018/03/27 全球购物
Holland & Barrett爱尔兰:英国领先的健康零售商
2019/03/31 全球购物
中药专业大学生医药工作求职信
2013/10/25 职场文书
计算机系毕业生推荐信
2013/11/06 职场文书
临床医师专业个人自我评价范文
2013/11/07 职场文书
数字化校园建设方案
2014/05/03 职场文书
学习优秀党员杨宗兴先进事迹材料思想汇报
2014/09/14 职场文书
村干部四风问题整改措施
2014/09/30 职场文书
HTML基础-标签分类(闭合标签,空标签,块级元素,行内元素,行级块元素,可替换元素)
2021/03/31 HTML / CSS