⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soft_edit.asp

📁 gmaple软件下载系统1.0Beta 具有一下功能: 1.模板功能,前台的呈现更加灵活. 2.支持静态生成,可在动态与静态间随时切换. 3.在静态模式下,可自定义生成目录,生成方式灵活.
💻 ASP
📖 第 1 页 / 共 2 页
字号:
	)
}

function SetDefaultAddr(objTo,obj2To,obj){
	var AddrVar = obj.options[obj.selectedIndex].text;
	var AddrId = obj.options[obj.selectedIndex].value;
	//alert("op.asp?n=6&id="+AddrId);
	$.get(
		"op.asp?n=6&id="+AddrId,
		function(Re){
			if (Re!="$$$$$"){
				document.getElementById(obj2To).value=Re;
				document.getElementById(obj2To).className="TextBox3";
			}
		}
	)
	if (AddrVar != "无"){
		document.getElementById(objTo).value=AddrVar;
		document.getElementById(objTo).className="TextBox2";
	}
	if (AddrVar == "无"){
		document.getElementById(objTo).value="";
		document.getElementById(objTo).className="TextBox2";	
		document.getElementById(obj2To).value="";	
	}
}
-->
</script>
<title>软件修改</title>
</head>

<body>
<form action="Soft_Edit.asp" id="SoftEditForm" name="SoftEditForm" method="post" onsubmit="return false;">
<input type="hidden" name="id" value="<%=id%>" />
<table width="97%" cellpadding="2" cellspacing="1" style="border:1px #FFFFFF solid">
  <tr>
    <td colspan="5" class="table_caption">软件修改</td>
  </tr>
  <tr>
    <td colspan="5" bgcolor="#CCCCCC" class="intro"><a href="Soft_Add.asp">下载添加</a> | <a href="Soft.asp">软件管理</a></td>
  </tr>
  <tr>
    <td width="20%" class="leftbg">软件名称</td>
    <td class="rightbg">
    	<input type="text" class="TextBox2" name="SoftName1" value="<%=Soft_Name1%>" onclick="ChkVal(this,'名称','TextBox2')" />
      <input type="text" class="TextBox2" name="SoftName2" value="<%=Soft_Name2%>" onclick="ChkVal(this,'说明','TextBox2')" />
      <input type="text" class="TextBox2" name="SoftName3" value="<%=Soft_Name3%>" onclick="ChkVal(this,'版本','TextBox2')" />
      状态<select name="Soft_Commend">
      	<option value="0" <%=Check_id12(Soft_Commend,0)%>>无</option>
        <option value="1" <%=Check_id12(Soft_Commend,1)%>>推荐</option>
        <option value="2" <%=Check_id12(Soft_Commend,2)%>>固顶</option>
      </select>
    	<span class="tip_red">*</span>
    </td>
  </tr>
  <tr>
    <td class="leftbg">软件分类</td>
    <td class="rightbg">
    	<select name="ParentId" onchange="GetClass(this.value)">
        <%
				sql="select * from [S_Class] where SD_S_Class_Parent=0 order by SD_S_Class_Id"
				rs.open sql,conn,1,1
					while not rs.eof
				%>
        <option value="<%=rs("SD_S_Class_Id")%>" <%=Check_id12(S_Class_Parent,rs("SD_S_Class_Id"))%>><%=rs("SD_S_Class_Name")%></option>
        <%
					rs.movenext
					wend
				rs.close
				%>
      </select>
    	<span id="ClassList"><select name="Soft_Class" id="ClassAddTo">
      	<%
				sql="select * from [S_Class] where SD_S_Class_Parent="&S_Class_Parent
				'debug(sql)
				rs.open sql,conn,1,1
					while not rs.eof
				%>
      	<option value="<%=rs("SD_S_Class_Id")%>" <%=Check_id12(Soft_Class,rs("SD_S_Class_Id"))%>><%=rs("SD_S_Class_Name")%></option>
        <%
					rs.movenext
					wend
				rs.close
				%>
      </select></span>
      <span class="tip_red">*</span>
    </td>
  </tr>
  <tr>
    <td class="leftbg">软件等级</td>
    <td class="rightbg">
    	<select name="Soft_Level">
      	<%for j = 1 to 5%>
      	<option <%=Check_id12(Soft_Level,j)%> value="<%=j%>"><%=j%></option>
        <%next%>
      </select>
    </td>
  </tr>
  <tr>
    <td class="leftbg">缩略图</td>
    <td class="rightbg" style="overflow-y:hidden;">
    	<iframe name="ifrName" src="UploadFile2.asp?ImgSrc=<%=Soft_Img%>&id=<%=Soft_Id%>" frameborder="0" width="100%" height="100%" onload="document.all['ifrName'].style.height=ifrName.document.body.scrollHeight"></iframe>
    </td>
  </tr>
  <tr>
    <td class="leftbg">大小</td>
    <td class="rightbg">
    	<input type="text" class="TextBox2" style="width:30px;" name="Soft_Size_1" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=left(Soft_Size_1,len(Soft_Size_1)-1)%>" />
    	<select name="Soft_Size_2">
      	<option value="K" <%=Check_id12(right(Soft_Size_1,1),"K")%>>K</option>
        <option value="M" <%=Check_id12(right(Soft_Size_1,1),"M")%>>M</option>
        <option value="G" <%=Check_id12(right(Soft_Size_1,1),"G")%>>G</option>
      </select>
      <span class="tip_red">*</span>
    </td>
  </tr>
  <tr>
    <td class="leftbg">软件语言</td>
    <td class="rightbg">
    	<select name="Soft_Language">
      	<option value="简体中文" <%=Check_id12(Soft_Language,"简体中文")%>>简体中文</option>
         <option value="繁体中文" <%=Check_id12(Soft_Language,"繁体中文")%>>繁体中文</option>
        <option value="英语" <%=Check_id12(Soft_Language,"英语")%>>英语</option>
        <option value="日文" <%=Check_id12(Soft_Language,"日文")%>>日文</option>
        <option value="多语言版" <%=Check_id12(Soft_Language,"多语言版")%>>多国语言</option>
        <option value="其他语言" <%=Check_id12(Soft_Language,"其他语言")%>>其他语言</option>
      </select>
    </td>
  </tr>
  <tr>
    <td class="leftbg">运行环境</td>
    <td class="rightbg">
    	<input type="checkbox" name="Soft_Operation" id="Os0" value="Win9x" <%=IfCheck("Win9x",Soft_Operation)%> /><label for="Os0">Win9x</label>
    	<input type="checkbox" name="Soft_Operation" id="Os1" value="Me" <%=IfCheck("Me",Soft_Operation)%> /><label for="Os1">Me</label>
      <input type="checkbox" name="Soft_Operation" id="Os2" value="NT" <%=IfCheck("NT",Soft_Operation)%> /><label for="Os2">NT</label>
      <input type="checkbox" name="Soft_Operation" id="Os3" value="2000" <%=IfCheck("2000",Soft_Operation)%> /><label for="Os3">2000</label>
      <input type="checkbox" name="Soft_Operation" id="Os4" value="2003" <%=IfCheck("2003",Soft_Operation)%> /><label for="Os4">2003</label>
      <input type="checkbox" name="Soft_Operation" id="Os5" value="XP" <%=IfCheck("XP",Soft_Operation)%> /><label for="Os5">XP</label>
      <input type="checkbox" name="Soft_Operation" id="Os6" value="Vista" <%=IfCheck("Vista",Soft_Operation)%> /><label for="Os6">Vista</label>
    </td>
  </tr>
  <tr>
    <td class="leftbg">开发商</td>
    <td class="rightbg"><input type="text" class="TextBox3" name="Soft_Developer" value="<%=Soft_Developer%>" /></td>
  </tr>
  <tr>
    <td class="leftbg">授权方式</td>
    <td class="rightbg">
    	<select name="Soft_Right">
      	<option value="免费版" <%=Check_id12(Soft_Right,"免费版")%>>免费版</option>
        <option value="收费版" <%=Check_id12(Soft_Right,"收费版")%>>收费版</option>
        <option value="限时版" <%=Check_id12(Soft_Right,"限时版")%>>限时版</option>
        <option value="特别版" <%=Check_id12(Soft_Right,"特别版")%>>特别版</option>
        <option value="绿色版" <%=Check_id12(Soft_Right,"绿色版")%>>绿色版</option>
        <option value="汉化版" <%=Check_id12(Soft_Right,"汉化版")%>>汉化版</option>
      </select>    
    </td>
  </tr>
  <tr>
    <td class="leftbg">插件情况</td>
    <td class="rightbg">
    	<select name="Soft_Annex">
      	<option value="1" <%=Check_id12(Soft_Annex,"1")%>>无插件</option>
      	<option value="2" <%=Check_id12(Soft_Annex,"2")%>>有插件,提示安装</option>
        <option value="3" <%=Check_id12(Soft_Annex,"3")%>>有插件,不提示安装</option>
        <option value="4" <%=Check_id12(Soft_Annex,"4")%>>插件情况不详</option>
      </select>
    </td>
  </tr>
  <tr>
    <td class="leftbg">更新时间</td>
    <td class="rightbg">
    	<input type="text" name="Soft_Update" onClick="setDayHM(this);" value="<%=Soft_Update%>" />
      <span class="tip_red">*</span>
    </td>
  </tr>
  <tr>
    <td class="leftbg">下载地址</td>
    <td class="rightbg">
    <%
			Url = split(Soft_Url,"$$$$$")
			Url_name = split(Url(0),"; ")
			Url_Server = split(Url(1),"; ")
			Url_add = split(Url(2),"; ")
		%>
      <span id="DownUrl">
      <select name="Addr_Server" onpropertychange="SetDefaultAddr('Addr_auto','Addr_url',this);">
      	<option value="-1" <%=Check_id12("-1",Url_Server(0))%>>无</option>
        <%
				sql="select * from [Server] order by SD_Server_Id desc"
				rs.open sql,conn,1,1
				if not rs.eof then
					while not rs.eof
						response.Write("<option value="""&rs("SD_Server_Id")&""""&Check_id12(""&Url_Server(0)&"",""&rs("SD_Server_Id")&"")&">"&rs("SD_Server_Name")&"</option>")
					rs.movenext
					wend
				end if
				rs.close
				%>
      </select>
      <input name="Addr_name" id="Addr_auto" class="TextBox2" onclick="ChkVal(this,'下载点名称','TextBox2')" value="<%=Url_name(0)%>" />
      <input name="Addr_url" id="Addr_url" class="TextBox3" onclick="ChkVal(this,'下载点链接','TextBox3')" value="<%=Url_add(0)%>" /></span>
      <a href="#" onclick="Asp_Clone('Addr_name','Addr_Server','Addr_url','DownUrl2')">下一个</a><span class="tip_red">*</span>
      <input type="button" class="submitCmd" onclick="SoftUpTextCmd()" value="上传文件" />
      <div id="DownUrl2">
    <%

			for i = 1 to ubound(Url_name)
				rehtml="<span class=""tip_red"" ondblclick=""this.parentNode.removeChild(this)""><div>"
				rehtml=rehtml&"<select name=""Addr_Server"" onpropertychange=""SetDefaultAddr('Addr_auto"&i&"','Addr_url"&i&"',this);"">"
				rehtml=rehtml&"	<option value=""-1"" "&Check_id12("-1",Url_Server(i))&">无</option>"
					sql="select * from [Server] order by SD_Server_Id desc"
					rs.open sql,conn,1,1
					if not rs.eof then
						while not rs.eof
							rehtml=rehtml&"<option value="""&rs("SD_Server_Id")&""" "&Check_id12(""&rs("SD_Server_Id")&"",Url_Server(i))&">"&rs("SD_Server_Name")&"</option>"
						rs.movenext
						wend
					end if
					rs.close
				rehtml=rehtml&"</select>"
				rehtml=rehtml&"<input name=""Addr_name"" id=""Addr_auto"&i&""" class=""TextBox2"" value='"&Url_name(i)&"' />"
				rehtml=rehtml&"&nbsp;<input name=""Addr_url"" id=""Addr_url"&i&""" class=""TextBox3"" value='"&Url_add(i)&"' />&nbsp;"
				rehtml=rehtml&""
				rehtml=rehtml&"×双击删除</div></span>"
				response.Write(rehtml)
			next
		%>
      </div>
    </td>
  </tr>
  <tr>
    <td class="leftbg">简介</td>
    <td class="rightbg">
    	<textarea name="Soft_Info" style="display:none;"><%=Soft_Info%></textarea>
      <IFRAME ID="eWebEditor1" SRC="../edit/ewebeditor.htm?id=Soft_Info&style=mini" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
      <span class="tip_red">*</span>
    </td>
  </tr>
  <tr>
    <td colspan="2" class="header text_nor">
    	<input type="submit" class="submitCmd" value="修 改" onClick="return AddClass_Submit()" />
      <input type="button" class="submitCmd" value="重 置" id="ResetCmd" onclick="ReSetBut()">
    </td>
  </tr>
</table>
</form>
<%
call pagend
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -