📄 user_softadd.asp
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true
%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/func.asp"-->
<!--#include file="inc/ad_code_soft.asp"-->
<%
if CheckUserLogined()=False then
response.Redirect "User_Login.asp"
end if
dim ClassID,SpecialID
dim SkinID,LayoutID,SkinCount,LayoutCount,ClassMaster,BrowsePurview,AddPurview
ClassID=session("ClassID")
SpecialID=session("SpecialID")
if ClassID="" then
ClassID=0
else
ClassID=Clng(ClassID)
end if
if SpecialID="" then
SpecialID=0
else
SpecialID=Clng(SpecialID)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>添加软件</title>
<link rel="stylesheet" type="text/css" href="Ad_Style.css">
<script language = "JavaScript">
function CheckForm()
{
if (document.myform.ClassID.value=="")
{
alert("软件所属栏目不能指定为含有子栏目的栏目!");
document.myform.ClassID.focus();
return false;
}
if (document.myform.ClassID.value==0)
{
alert("软件所属栏目不能指定为外部栏目!");
document.myform.ClassID.focus();
return false;
}
if (document.myform.ClassID.value=="-1")
{
alert("你没有在此栏目添加软件的权限,请选择其他栏目!");
document.myform.ClassID.focus();
return false;
}
if (document.myform.SoftName.value=="")
{
alert("软件名称不能为空!");
document.myform.SoftName.focus();
return false;
}
if (document.myform.SoftVersion.value=="")
{
alert("软件版本不能为空!");
document.myform.SoftVersion.focus();
return false;
}
if (document.myform.Author.value=="")
{
alert("软件作者/开发商不能为空!");
document.myform.SoftVersion.focus();
return false;
}
if (document.myform.OperatingSystem.value=="")
{
alert("系统平台不能为空!");
document.myform.SoftVersion.focus();
return false;
}
if (document.myform.Keyword.value=="")
{
alert("关键字不能为空!");
document.myform.Keyword.focus();
return false;
}
if (document.myform.SoftIntro.value=="")
{
alert("软件简介不能为空!");
document.myform.SoftIntro.focus();
return false;
}
if (document.myform.DownloadUrl1.value=="")
{
alert("软件下载地址1不能为空!");
document.myform.DownloadUrl1.focus();
return false;
}
}
function ToSystem(addTitle)
{
document.myform.OperatingSystem.value=document.myform.OperatingSystem.value+addTitle;
document.myform.OperatingSystem.focus();
return;
}
</script>
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<form method="POST" name="myform" onSubmit="return CheckForm();" action="User_SoftSave.asp" target="_self">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr class="title">
<td height="22" align="center"><b>添 加 软 件</b></td>
</tr>
<tr align="center">
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr class="tdbg">
<td width="100" align="right"><strong>所属栏目:</strong></td>
<td>
<select name='ClassID'>
<%call Admin_ShowClass_Option(4,ClassID)%>
</select>
</td>
<td colspan="2"><font color='#0000FF'>不能指定为含有子栏目的栏目,或者外部栏目,或者带“<font color="#FF0000">*</font>”的栏目<br>
带“<font color="#FF0000">*</font>”的栏目表示你没有在此栏目发表文章的权限</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>软件名称:</strong></td>
<td colspan="2">
<input name="SoftName" type="text" id="SoftName" value="" size="50" maxlength="255">
<font color="#FF0000">*</font></td>
<td><strong>软件版本:</strong>
<input name="SoftVersion" type="text" id="SoftVersion3" size="30" maxlength="100">
<font color="#FF0000">*</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>软件类别:</strong></td>
<td>
<select name="SoftType" id="SoftType">
<option value="1" selected>国产软件</option>
<option value="2">国外软件</option>
<option value="3">汉化补丁</option>
<option value="4">程序源码</option>
<option value="5">电影下载</option>
<option value="6">FLASH动画</option>
<option value="7">其他</option>
</select>
<font color="#FF0000">*</font></td>
<td><strong>软件语言:</strong>
<select name="SoftLanguage" id="SoftLanguage">
<option value="1">英文</option>
<option value="2" selected>简体中文</option>
<option value="3">繁体中文</option>
<option value="4">简繁中文</option>
<option value="5">多国语言</option>
<option value="6">其他语言</option>
</select>
<font color="#FF0000">*</font></td>
<td><strong>授权形式:</strong>
<select name="CopyrightType" id="CopyrightType">
<option value="1">免费版</option>
<option value="2" selected>共享版</option>
<option value="3">试用版</option>
<option value="4">演示版</option>
<option value="5">注册版</option>
<option value="6">破解版</option>
<option value="7">零售版</option>
<option value="8">OEM版</option>
</select>
<font color="#FF0000">*</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>软件平台:</strong></td>
<td colspan="3">
<input name="OperatingSystem" type="text" id="OperatingSystem" value="Win9x/NT/2000/XP/" size="80" maxlength="200">
<font color="#FF0000"> *</font><br>
<font color="#808080">平台选择:<a href='javascript:ToSystem("Linux/")'>Linux</a>/<a href='javascript:ToSystem("DOS/")'>DOS</a>/<a href='javascript:ToSystem("9x/")'>9x</a>/<a href='javascript:ToSystem("95/")'>95</a>/<a href='javascript:ToSystem("98/")'>98</a>/<a href='javascript:ToSystem("Me/")'>Me</a>/<a href='javascript:ToSystem("NT/")'>NT</a>/<a href='javascript:ToSystem("2000/")'>2000</a>/<a href='javascript:ToSystem("XP/")'>XP</a>/<a href='javascript:ToSystem(".Net/")'>.NET</a>/</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>作者/开发商:</strong></td>
<td>
<input name="Author" type="text"
id="Author" size="20" maxlength="100">
<font color="#FF0000">*</font> </td>
<td><strong>信箱:</strong>
<input name="AuthorEmail" type="text" id="AuthorEmail" size="30" maxlength="100">
</td>
<td><strong>主页:
<input name="AuthorHomepage" type="text"
id="CopyFrom2" value="http://" size="30" maxlength="100">
</strong></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>软件演示地址:</strong></td>
<td colspan="3">
<input name="DemoUrl" type="text" id="DemoUrl" value="http://" size="80" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>软件注册地址:</strong></td>
<td colspan="3">
<input name="RegUrl" type="text" id="RegUrl" value="http://" size="80" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>软件图片:</strong></td>
<td colspan="3">
<input name="SoftPicUrl" type="text" id="SoftPicUrl" size="80" maxlength="200">
<font color="#FF0000"> </font> </td>
</tr>
<tr class="tdbg">
<td> </td>
<td align="right">上传软件图片:</td>
<td colspan="2"><iframe style="top:2px" ID="UploadFiles" src="upload_SoftPic.asp" frameborder=0 scrolling=no width="450" height="25"></iframe></td>
</tr>
<tr class="tdbg">
<td width="100" align="right" valign="middle"><strong>软件简介:</strong><br>
支持各种UBB代码</td>
<td colspan="3">
<textarea name="SoftIntro" cols="80" rows="15" id="SoftIntro"></textarea>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>关键字:</strong></td>
<td colspan="3">
<input name="Keyword" type="text"
id="Keyword" size="50" maxlength="255">
<font color="#FF0000">*</font><br>
<font color="#0000FF">用来查找相关软件,可输入多个关键字,中间用<font color="#FF0000">“|”</font>隔开。不能出现""'*?,.()等字符。</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>解压密码:</strong></td>
<td colspan="2">
<input name="DecompressPassword" type="text" id="DecompressPassword" size="30" maxlength="100">
</td>
<td><strong>软件大小:
<input name="SoftSize" type="text" id="SoftSize" size="10" maxlength="10">
K</strong></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>上传软件:</strong></td>
<td colspan="3">系统提供的上传功能只适合上传比较小的软件(如ASP源代码压缩包)。如果软件比较大(2M以上),请先使用FTP上传,而不要使用系统提供的上传功能,以免上传出错或过度占用服务器的CPU资源。FTP上传后请将地址复制到下面的地址框中。<br>
<iframe style="top:2px" ID="UploadFiles" src="upload_soft.asp" frameborder=0 scrolling=no width="450" height="25"></iframe></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>下载地址1:</strong></td>
<td colspan="3">
<input name="DownloadUrl1" type="text" id="DownloadUrl1" size="80" maxlength="200">
<font color="#FF0000">* </font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>下载地址2:</strong></td>
<td colspan="3">
<input name="DownloadUrl2" type="text" id="DownloadUrl2" value="http://" size="80" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>下载地址3:</strong></td>
<td colspan="3">
<input name="DownloadUrl3" type="text" id="DownloadUrl3" value="http://" size="80" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>下载地址4:</strong></td>
<td colspan="3">
<input name="DownloadUrl4" type="text" id="DownloadUrl4" value="http://" size="80" maxlength="200">
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<p>
<input name="Action" type="hidden" id="Action" value="Add">
<input
name="Add" type="submit" id="Add" value=" 添 加 " style="cursor:hand;">
<input name="Cancel" type="button" id="Cancel" value=" 取 消 " onClick="window.location.href='User_SoftManage.asp'" style="cursor:hand;">
</p>
</div>
</form>
</body>
</html>
<%
call CloseConn()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -