<!--#include file="../utf-8.asp" -->
<!--#include file="../js/Function.asp" -->
<!--#include file="../html/yidacms_htmlurl.asp" -->
<!--#include file="../js/admin_vipkp.asp" -->
<!--#include file="../CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../js/admin.css" rel="stylesheet" type="text/css">
<title>下载配置！</title>

	<link rel="stylesheet" href="../js/reveal.css">	
	<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../js/jquery.reveal.js"></script>

</head>

<body>
<%
		'版权：世纪伟成(http://yidacms.com)
		'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
		'如果您删除了这里的版权信息,将追究法律责任.
		yidacms_id = cint(Request("id"))
        if request("t")="down" Then
			if len(trim(request.Form("shuaiweb_downname")))<1 then
				response.write ("<script language=javascript> alert('名称必填且不能少于1个字符！');history.back(-1);</script>")
				response.end
			end if
		  
			if len(trim(request.Form("shuaiweb_downcontent")))<1 then
				response.write ("<script language=javascript> alert('内容不能为空，且不少于1个字符！');history.back(-1);</script>")
				response.end
			end if 
		  
		dim rs,sql
		set rs=server.createobject("adodb.recordset")
		sql="select * from shuaiweb_down WHERE id= "&yidacms_id&"" 
		rs.open sql,dbok,1,3
			rs("shuaiweb_downname")=trim(request.form("shuaiweb_downname"))
			rs("shuaiweb_downversion")=trim(request.form("shuaiweb_downversion"))
			rs("shuaiweb_downsize")=trim(request.form("shuaiweb_downsize"))
			rs("shuaiweb_downxp")=trim(request.form("shuaiweb_downxp")) & trim(request.form("shuaiweb_downxp1")) &_
						trim(request.form("shuaiweb_downxp2")) & trim(request.form("shuaiweb_downxp3")) &_
						trim(request.form("shuaiweb_downxp4")) & trim(request.form("shuaiweb_downxp5")) &_
						trim(request.form("shuaiweb_downxp6"))
			rs("shuaiweb_downupload")=trim(request.form("shuaiweb_downupload"))
			rs("shuaiweb_downweb")=trim(request.form("shuaiweb_downweb"))
			rs("shuaiweb_downcontent")=trim(request.form("shuaiweb_downcontent"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('成功修改！');location.replace('admin_down.asp');</script>"
		End If

	set rs = server.createobject("adodb.recordset")
	sql="select * from shuaiweb_down WHERE id = "&yidacms_id&""
	rs.open sql,dbok,1,1
%>

		<table width="98%" height="100%" border="0"cellpadding="10" cellspacing="0" bordercolor="#666666" bgcolor="ffffff" style="border-collapse:collapse" align="center">
		   <form id="form1" name="form1" method="post" action="admin_downedit.asp?t=down&id=<%=rs("id")%>">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">文档名称<br /><input name="shuaiweb_downname" type="text" class="win" value="<%=rs("shuaiweb_downname")%>" /> <font color=red>(必填)</font>
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">文档版本<br /><input name="shuaiweb_downversion" type="text" class="win" value="<%=rs("shuaiweb_downversion")%>" />
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">文档大小<br /><input name="shuaiweb_downsize" type="text" class="win" value="<%=rs("shuaiweb_downsize")%>" />
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">运行环境<br /><input type="checkbox" name="shuaiweb_downxp" value="WinXp|" <%if Instr(rs("shuaiweb_downxp"),"WinXp|") > 0 then response.write "checked" end if %> />WinXp <input type="checkbox" name="shuaiweb_downxp1" value="Vista|" <%if Instr(rs("shuaiweb_downxp"),"Vista|") > 0 then response.write "checked" end if %> />Vista <input type="checkbox" name="shuaiweb_downxp2" value="Win7|" <%if Instr(rs("shuaiweb_downxp"),"Win7|") > 0 then response.write "checked" end if %> />Win7 <input type="checkbox" name="shuaiweb_downxp3" value="Win2000|" <%if Instr(rs("shuaiweb_downxp"),"Win2000|") > 0 then response.write "checked" end if %> />Win2000 <input type="checkbox" name="shuaiweb_downxp4" value="Win2003|" <%if Instr(rs("shuaiweb_downxp"),"Win2003|") > 0 then response.write "checked" end if %> />Win2003 <input type="checkbox" name="shuaiweb_downxp5" value="Linux|" <%if Instr(rs("shuaiweb_downxp"),"Linux|") > 0 then response.write "checked" end if %>/>Linux <input type="checkbox" name="shuaiweb_downxp6" value="Java|" <%if Instr(rs("shuaiweb_downxp"),"Java|") > 0 then response.write "checked" end if %>/>Java 
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc"><div class="uppic">内部上传<br /><input name="shuaiweb_downupload" type="text" class="win" value="<%=rs("shuaiweb_downupload")%>" id="yidacms_adpic"/></div><div class="uppic2"><iframe width="305" height="34" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="../../uploadclass/upload/upfile.asp?class=1&upload_class=down" allowtransparency="true" ></iframe></div>
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">外部链接<br /><input name="shuaiweb_downweb" type="text" class="win" value="<%=rs("shuaiweb_downweb")%>" />
                        </tr>
			<tr>
			  <td width="90%" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">文档详情<br /><textarea name="shuaiweb_downcontent" style="width:98%;height:100px;"><%=rs("shuaiweb_downcontent")%></textarea><font color=red>(必填)</font></td>
			</tr>
			<tr>

			  <td><input type="submit" name="Submit" value="提交" class="inanniu"/> <input type=button onclick="window.location.href('admin_down.asp')"value="返 回" class="inanniu"></td>
			</tr>
			</form>
		</table>

</body>
</html>
