日期:2013-02-02  浏览次数:20433 次

//管理程序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>
   &n