📄 bs_download_edit.asp
字号:
<!--#include file="bsconfig.asp"-->
<!--#include file="Inc/articleCHAR.INC"-->
<!--#include file="Inc/Function.asp"-->
<%
'=========================================================
'
' 产品名称:良精软件科技 公司(企业)网站管理系统(简称:liangjing.net)
' 版权所有:liangjing.net
' 程序制作:liangjing开发团队
' 联系 方式:QQ :2113269
' Copyright 2004-2005 liangjing.net - All Rights Reserved.
'
'========================================================
%>
<%
dim Bs_DownID,rsDown,FoundErr,ErrMsg
Bs_DownID=trim(request("Bs_DownID"))
FoundErr=False
if Bs_DownID="" then
response.Redirect("Bs_Download.asp")
end if
sql="select * from Bs_Download where Bs_DownID=" & Bs_DownID & ""
Set rsDown= Server.CreateObject("ADODB.Recordset")
rsDown.open sql,conn,1,1
if FoundErr=True then
call WriteErrMsg()
else
%>
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from Bs_DownSmallClass order by Bs_SmallClassID asc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("Bs_SmallClassName"))%>","<%= trim(rs("Bs_BigClassName"))%>","<%= trim(rs("Bs_SmallClassName"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.myform.Bs_SmallClassName.length = 1;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.Bs_SmallClassName.options[document.myform.Bs_SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
function CheckForm()
{
if (document.myform.Title.value=="")
{
alert("标题名称不能为空!");
document.myform.Bs_Title.focus();
return false;
}
if (document.myform.Bs_FileSize.value == "")
{
alert("软件大小不能为空!");
document.myform.Bs_FileSize.focus();
return false;
}
if (document.myform.Bs_DownloadUrl.value=="")
{
alert("下载连接不能为空!");
document.myform.Bs_DownloadUrl.focus();
return false;
}
if (document.myform.Bs_Content.value=="")
{
alert("下载内容不能为空!");
document.myform.Bs_Content.focus();
return false;
}
return true;
}
</script>
<!-- #include file="Inc/Head.asp" -->
<BR>
<table cellpadding="2" cellspacing="1" border="0" width="610" align="center" class="a2">
<tr>
<td class="a1" height="25" align="center"><strong>修 改 下 载</strong></td>
</tr>
<tr class="a4">
<td align="center">
<form method="POST" name="myform" onSubmit="return CheckForm();" action="Bs_Download_Save.asp?action=Modify">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr align="center">
<td class="tdbg">
<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="100" height="22" align="right" bgcolor="#C0C0C0">所属栏目:</td>
<td width="500" bgcolor="#E3E3E3">
<%
if session("purview")=3 or session("purview")=4 then
response.write rsDown("Bs_BigClassName") & "<input name='Bs_BigClassName' type='hidden' value='" & rsDown("Bs_BigClassName") & "'>>>"
else
sql = "select * from Bs_DownBigClass"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
else
%>
<select name="Bs_BigClassName"
onChange="changelocation(document.myform.Bs_BigClassName.options[document.myform.Bs_BigClassName.selectedIndex].value)" size="1">
<%
do while not rs.eof
%>
<option <% if rs("Bs_BigClassName")=rsDown("Bs_BigClassName") then response.Write("selected") end if%>
value="<%=trim(rs("Bs_BigClassName"))%>"><%=trim(rs("Bs_BigClassName"))%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
<%
end if
if session("purview")=4 then
response.write rsDown("Bs_SmallClassName") & "<input name='Bs_SmallClassName' type='hidden' value='" & rsDown("Bs_SmallClassName") & "'>"
else
%>
<select name="Bs_SmallClassName">
<option value="" <%if rsDown("Bs_SmallClassName")="" then response.write "selected"%>>不指定小类</option>
<%
sql="select * from Bs_DownSmallClass where Bs_BigClassName='" & rsDown("Bs_BigClassName") & "'"
rs.open sql,conn,1,1
if not(rs.eof and rs.bof) then
do while not rs.eof
%>
<option <% if rs("Bs_SmallClassName")=rsDown("Bs_SmallClassName") then response.Write("selected") end if%>
value="<%=rs("Bs_SmallClassName")%>"><%=rs("Bs_SmallClassName")%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
<%
end if
%>
</td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">标题名称:</td>
<td bgcolor="#E3E3E3"> <input type="text" name="Bs_Title" id="Bs_Title" value="<%=trim(rsDown("Bs_Title"))%>" size="50" maxlength="80">
<font color="#FF0000">!</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">文件大小:</td>
<td bgcolor="#E3E3E3"> <input type="text" name="Bs_FileSize" id="Bs_FileSize" value="<%=trim(rsDown("Bs_FileSize"))%>" size="50" maxlength="80">
<FONT color=#ff0000>!</FONT> </td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">软件语言:</td>
<td bgcolor="#E3E3E3"> <input type="text" name="Bs_Language" id="Bs_Language" value="<%=trim(rsDown("Bs_Language"))%>" size="50" maxlength="80">
<font color="#FF0000">!</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">授权类型:</td>
<td bgcolor="#E3E3E3"> <input type="text" name="Bs_LicenceType" id="Bs_LicenceType" value="<%=trim(rsDown("Bs_LicenceType"))%>" size="50" maxlength="80">
<font color="#FF0000">!</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">运行环境:</td>
<td bgcolor="#E3E3E3"> <input type="text" name="Bs_System" id="Bs_System" value="<%=trim(rsDown("Bs_System"))%>" size="50" maxlength="80">
<font color="#FF0000">!</font></td>
</tr>
<tr>
<td width="100" height="25" align="right" bgcolor="#C0C0C0">图片地址:</td>
<td width="500" bgcolor="#E3E3E3">
<input type="text" name="Bs_PhotoUrl" id="Bs_PhotoUrl" value="<%=trim(rsDown("Bs_PhotoUrl"))%>" size="50" maxlength="120">
</td>
</tr>
<tr>
<td width="100" align="right" bgcolor="#C0C0C0">图片上传:</td>
<td width="500" height="30" bgcolor="#E3E3E3"><div align="center"
><iframe name="ad" frameborder=0 width=100% height=30 scrolling=no src="../WebEdit/Upload_SoftPic.asp"></iframe></div></td>
</tr>
<tr>
<td height="50" align="right" valign="middle" bgcolor="#C0C0C0">UBB代码:</td>
<td bgcolor="#E3E3E3">
<script src=Inc/eshopcode.js></script>
<!--#include file=Inc/Ubb.inc -->
</td>
</tr>
<tr bgcolor="#E3E3E3">
<td height="25" align="right" bgcolor="#C0C0C0">软件简介:</td>
<td align="right" valign="middle"> <div align="left">
<textarea name="Bs_Content" cols="66" rows="12">
<%if rsDown("html")=false then
Bs_Content=replace(rsDown("Bs_Content"),"<br>",chr(13))
Bs_Contentt=replace(Bs_Content," "," ")
else
Bs_Content=rsDown("Bs_Content")
end if
response.write Bs_Content%></textarea>
</div></td>
</tr>
<tr>
<td width="100" align="right" bgcolor="#C0C0C0">下载地址一</td>
<td width="500" height="25" bgcolor="#E3E3E3">
<input type="text" name="Bs_DownloadUrl" id="Bs_DownloadUrl" value="<%=trim(rsDown("Bs_DownloadUrl"))%>" size="50" maxlength="120">
<font color="#FF0000">!</font></td>
</tr>
<tr>
<td width="100" align="right" bgcolor="#C0C0C0">下载地址二</td>
<td width="500" height="25" bgcolor="#E3E3E3">
<input type="text" name="Bs_DownloadUrl2" id="Bs_DownloadUrl2" value="<%=trim(rsDown("Bs_DownloadUrl2"))%>" size="50" maxlength="120">
</td>
</tr>
<tr>
<td width="100" align="right" bgcolor="#C0C0C0">下载上传:</td>
<td width="500" height="30" bgcolor="#E3E3E3"><div align="center"
><iframe name="ad" frameborder=0 width=100% height=30 scrolling=no src="../WebEdit/Upload_Soft.asp"></iframe></div></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">已通过审核:</td>
<td bgcolor="#E3E3E3">
<input type="checkbox" name="Bs_Passed" id="Bs_Passed" value="yes" <% if rsDown("Bs_Passed")=true then response.Write("checked") end if%>>
<font color="#0000FF">(如果选中的话将直接发布)</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">下载推荐:</td>
<td bgcolor="#E3E3E3">
<input type="checkbox" name="Bs_Elite" id="Bs_Elite" value="yes" <% if rsDown("Bs_Elite")=true then response.Write("checked") end if%>>
<font color="#0000FF">(是否设为推荐)</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#C0C0C0">加入时间:</td>
<td bgcolor="#E3E3E3">
<input type="text" name="Bs_UpDateTime" id="Bs_UpDateTime" value="<%=trim(rsDown("Bs_UpDateTime"))%>" maxlength="50">
当前时间为:<%=now()%> 注意不要改变格式。</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center"><p>
<input name="Bs_DownID" type="hidden" id="Bs_DownID" value="<%=rsDown("Bs_DownID")%>">
<input name="Save" type="submit" id="Save" value="保存修改结果" style="cursor: hand;background-color: #cccccc;">
<input name="Cancel" type="button" id="Cancel" value=" 取 消 " onClick="window.location.href='Bs_Download.asp'" style="cursor: hand;background-color: #cccccc;">
</p></div>
</form>
</td>
</tr>
</table>
<BR>
<%
end if
rsDown.close
set rsDown=nothing
call CloseConn()
%>
<%htmlend%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -