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


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 相关文章推荐
PHP4中实现动态代理
Oct 09 PHP
PHP 字符截取 解决中文的截取问题,不用mb系列
Sep 29 PHP
phpStudy访问速度慢和启动失败的解决办法
Nov 19 PHP
PHP正则表达式入门教程(推荐)
May 18 PHP
PHP内存缓存功能memcached示例
Oct 19 PHP
php 反斜杠处理函数addslashes()和stripslashes()实例详解
Dec 25 PHP
php大小写转换函数(strtolower、strtoupper)用法介绍
Nov 17 PHP
PHP实现数组转JSon和JSon转数组的方法示例
Jun 14 PHP
PHP实现的ID混淆算法类与用法示例
Aug 10 PHP
php函数式编程简单示例
Aug 08 PHP
PHP强制转化的形式整理
May 22 PHP
ThinkPHP6.0如何利用自定义验证规则规范的实现登陆
Dec 16 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 Notice: Undefined index 错误提示解决方法
2010/08/29 PHP
PHP 类相关函数的使用详解
2013/05/10 PHP
php导入excel文件到mysql数据库的方法
2015/01/14 PHP
php截取html字符串及自动补全html标签的方法
2015/01/15 PHP
PHP自定义错误处理的方法分析
2018/12/19 PHP
laravel利用中间件做防非法登录和权限控制示例
2019/10/21 PHP
禁止F5等快捷键的JS代码
2007/03/06 Javascript
推荐10个超棒的jQuery工具提示插件
2011/10/11 Javascript
js去除输入框中所有的空格和禁止输入空格的方法
2014/06/09 Javascript
JavaScript通过this变量快速找出用户选中radio按钮的方法
2015/03/23 Javascript
封装好的javascript前端分页插件pagination
2016/01/04 Javascript
Markdown+Bootstrap图片自适应属性详解
2016/05/21 Javascript
Vue.js鼠标悬浮更换图片功能
2017/05/17 Javascript
微信小程序自定义tab实现多层tab嵌套功能
2018/06/15 Javascript
Javascript数组方法reduce的妙用之处分享
2019/06/10 Javascript
Flutter部件内部状态管理小结之实现Vue的v-model功能
2019/06/11 Javascript
[03:55]2014DOTA2国际邀请赛 Fnatic经理采访赢DK在情理之中
2014/07/10 DOTA
[51:36]Optic vs Newbee 2018国际邀请赛小组赛BO2 第一场 8.17
2018/08/18 DOTA
基于Python的关键字监控及告警
2017/07/06 Python
Python排序搜索基本算法之冒泡排序实例分析
2017/12/09 Python
django数据库migrate失败的解决方法解析
2018/02/08 Python
对python中的argv和argc使用详解
2018/12/15 Python
pandas通过字典生成dataframe的方法步骤
2019/07/23 Python
python进行参数传递的方法
2020/05/12 Python
Python使用内置函数setattr设置对象的属性值
2020/10/16 Python
HTML5实践-图片设置成灰度图
2012/11/12 HTML / CSS
Viking Direct爱尔兰:办公用品和家具
2019/11/21 全球购物
物流专业毕业生推荐信范文
2013/11/18 职场文书
医院护士的求职信
2014/01/03 职场文书
上课迟到检讨书
2014/01/19 职场文书
九年级科学教学反思
2014/01/29 职场文书
自我管理的活动方案
2014/08/25 职场文书
护士求职简历自我评价
2015/03/10 职场文书
小学生安全保证书
2015/05/09 职场文书
申请吧主发表的感言
2015/08/03 职场文书
小学学习委员竞选稿
2015/11/20 职场文书