//The source code of the management program is as follows:
<? session_start() ?>
<? if($session_power==""||$session_power<1)
{
header("location: ../?redirect=&message=You are not an administrator");
break;
}?>
<?require ("../");?>
<?
if($step=="1")
{
if(!($rs=mysql_fetch_array(mysql_query("select * from download where id='".$id."'",$cn))))
echo "Error in extracting data";
else
{
?>
<html>
<head>
<title>Modify information</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">Your location: <a href="../">Home</a>->><a href="?action=show">Download base</a>->>>Modify information</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="?step=2&id=<?=$id?>">
<tr>
<td height="35" width="19%"><font size="2">Software name</font></td>
<td height="35" width="81%">
<input name="title" value="<?=$rs["title"];?>" >
</td>
</tr>
<tr>
<td height="36" width="19%"><font size="2">Software Address</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">size</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">Classification</font></div>
</td>
<td height="42" width="81%"><font size="2">
<select name="type">
<?if($rs["type"]==1) echo "selected"; ?> value="1">Password cracking</option>
<?if($rs["type"]==2) echo "selected"; ?> value="2">Remote control</option>
<?if($rs["type"]==3) echo "selected"; ?> value="3">port scan</option>
<?if($rs["type"]==4) echo "selected"; ?> value="4">Dictionary Tool</option>
<?if($rs["type"]==5) echo "selected"; ?> value="5">System Security</option>
<?if($rs["type"]==6) echo "selected"; ?> value="6">various dangers</option>
<?if($rs["type"]==7) echo "selected"; ?> value="7">Encryption software</option>
<?if($rs["type"]==8) echo "selected"; ?> value="8">Source Code</option>
<?if($rs["type"]==9) echo "selected"; ?> value="9">Other software</option>
</select>
</font> </td>
</tr>
<tr>
<td height="31" width="19%"><font size="2">Introduction:</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="get it" 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 location:?action=show&type=$type");
}
?>
<? session_start() ?>
<? if($session_power==""||$session_power<1)
{
header("location: ../?redirect=&message=You are not an administrator");
break;
}?>
<?require ("../");?>
<?
if($step=="1")
{
if(!($rs=mysql_fetch_array(mysql_query("select * from download where id='".$id."'",$cn))))
echo "Error in extracting data";
else
{
?>
<html>
<head>
<title>Modify information</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">Your location: <a href="../">Home</a>->><a href="?action=show">Download base</a>->>>Modify information</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="?step=2&id=<?=$id?>">
<tr>
<td height="35" width="19%"><font size="2">Software name</font></td>
<td height="35" width="81%">
<input name="title" value="<?=$rs["title"];?>" >
</td>
</tr>
<tr>
<td height="36" width="19%"><font size="2">Software Address</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">size</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">Classification</font></div>
</td>
<td height="42" width="81%"><font size="2">
<select name="type">
<?if($rs["type"]==1) echo "selected"; ?> value="1">Password cracking</option>
<?if($rs["type"]==2) echo "selected"; ?> value="2">Remote control</option>
<?if($rs["type"]==3) echo "selected"; ?> value="3">port scan</option>
<?if($rs["type"]==4) echo "selected"; ?> value="4">Dictionary Tool</option>
<?if($rs["type"]==5) echo "selected"; ?> value="5">System Security</option>
<?if($rs["type"]==6) echo "selected"; ?> value="6">various dangers</option>
<?if($rs["type"]==7) echo "selected"; ?> value="7">Encryption software</option>
<?if($rs["type"]==8) echo "selected"; ?> value="8">Source Code</option>
<?if($rs["type"]==9) echo "selected"; ?> value="9">Other software</option>
</select>
</font> </td>
</tr>
<tr>
<td height="31" width="19%"><font size="2">Introduction:</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="get it" 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 location:?action=show&type=$type");
}
?>