Visit_sysPara.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:5k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_InterFace/NS_Function.asp" -->
  5. <!--#include file="../../FS_Inc/Function.asp" -->
  6. <%
  7. Response.Buffer = True
  8. Response.Expires = -1
  9. Response.ExpiresAbsolute = Now() - 1
  10. Response.Expires = 0
  11. Response.CacheControl = "no-cache"
  12. Dim Conn,User_Conn,tmp_type,strShowErr
  13. MF_Default_Conn
  14. MF_User_Conn
  15. MF_Session_TF
  16. if not MF_Check_Pop_TF("SS_site") then Err_Show
  17. if not MF_Check_Pop_TF("SS001") then Err_Show
  18. Dim RsOCObj,TempFlag
  19. Set RsOCObj = Conn.Execute("Select top 1 * from FS_SS_SysPara")
  20. If RsOCObj.eof then
  21. TempFlag = false
  22. Else
  23. TempFlag = true
  24. End If
  25. %>
  26. <html>
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  29. <title>网站维护</title>
  30. </head>
  31. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  32. <body topmargin="2" leftmargin="2">
  33. <script language="JavaScript" src="../../FS_Inc/PublicJS.js" type="text/JavaScript"></script>
  34. <table width="98%"  border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  35.   <form action="" method="post" name="VOForm">
  36.     <tr  class="xingmu"> 
  37.       <td colspan="2" class="xingmu"><strong>参数设置</strong></td>
  38.     </tr>
  39.     <tr class="hback"> 
  40.       <td width="24%">&nbsp;&nbsp;&nbsp;&nbsp; <div align="right">网站名称</div></td>
  41.       <td width="76%"> <input name="WebName" type="text" id="WebName" style="width:90%" value="<%If TempFlag = true then Response.Write(RsOCObj("WebName")) end if%>"></td>
  42.     </tr>
  43.     <tr class="hback"> 
  44.       <td>&nbsp;&nbsp;&nbsp;&nbsp; <div align="right">网站地址</div></td>
  45.       <td> <input name="WebUrl" type="text" id="WebUrl" style="width:90%" value="<%If TempFlag = true then Response.Write(RsOCObj("WebUrl")) end if%>"></td>
  46.     </tr>
  47.     <tr class="hback"> 
  48.       <td>&nbsp;&nbsp;&nbsp;&nbsp; <div align="right">管理员</div></td>
  49.       <td> <input name="WebAdmin" type="text" id="WebAdmin" style="width:90%" value="<%If TempFlag = true then Response.Write(RsOCObj("WebAdmin")) end if%>"></td>
  50.     </tr>
  51.     <tr class="hback"> 
  52.       <td>&nbsp;&nbsp;&nbsp;&nbsp; <div align="right">网站信箱</div></td>
  53.       <td> <input name="WebEmail" type="text" id="WebEmail" style="width:90%" value="<%If TempFlag = true then Response.Write(RsOCObj("WebEmail")) end if%>"></td>
  54.     </tr>
  55.     <tr class="hback"> 
  56.       <td>&nbsp;&nbsp;&nbsp;&nbsp; <div align="right">开始统计时间</div></td>
  57.       <td> <input name="WebCountTime" type="text" readonly id="WebCountTime" style="width:71%" value="<%If TempFlag = true then Response.Write(RsOCObj("WebCountTime")) end if%>"> 
  58.         <input type="button" name="dfgdf" value="选择日期" onClick="OpenWindowAndSetValue('../CommPages/SelectDate.asp',280,150,window,document.VOForm.WebCountTime);"></td>
  59.     </tr>
  60.     <tr class="hback">
  61.       <td><div align="right">统计防刷新时间</div></td>
  62.       <td><input name="ExpTime" type="text" id="ExpTime" style="width:90%" value="<%If TempFlag = true then Response.Write(RsOCObj("ExpTime")) end if%>" onKeyUp="if(isNaN(value)||event.keyCode==32)execCommand('undo')"  onafterpaste="if(isNaN(value)||event.keyCode==32)execCommand('undo')">
  63.         分钟 </td>
  64.     </tr>
  65.     <tr class="hback"> 
  66.       <td>&nbsp;&nbsp;&nbsp;&nbsp; <div align="right">网站介绍</div></td>
  67.       <td> <textarea name="WebIntro" rows="5" id="WebIntro" style="width:90%"><%If TempFlag = true then Response.Write(RsOCObj("WebIntro")) end if%></textarea></td>
  68.     </tr>
  69.     <tr class="hback"> 
  70.       <td colspan="2"> <div align="center"> 
  71.           <input type="submit" name="Submit" value=" 确 定 ">
  72.           &nbsp;&nbsp; 
  73.           <input name="action" type="hidden" id="action" value="trues">
  74.           <input type="reset" name="Submit" value=" 还 原 ">
  75.           &nbsp;&nbsp; 
  76.           <input type="button" name="Submit" value=" 取 消 " onClick="history.back();">
  77.         </div></td>
  78.     </tr>
  79.   </form>
  80. </table>
  81. </body>
  82. </html>
  83. <%
  84. If Request.Form("action") = "trues" then
  85. Dim VOModObj,VoModSql
  86. Set VOModObj = Server.CreateObject(G_FS_RS)
  87. VoModSql = "Select top 1 * from FS_SS_SysPara"
  88. VOModObj.Open VoModSql,Conn,1,3
  89. If TempFlag = false then
  90. VOModObj.AddNew
  91. End If
  92. VOModObj("WebName") = Replace(Replace(Request.Form("WebName"),"""",""),"'","")
  93. VOModObj("WebUrl") = Request.Form("WebUrl")
  94. VOModObj("WebIntro") = Request.Form("WebIntro")
  95. VOModObj("WebEmail") = Request.Form("WebEmail")
  96. VOModObj("WebAdmin") = Request.Form("WebAdmin")
  97. VOModObj("WebCountTime") = Request.Form("WebCountTime")
  98. VOModObj("ExpTime") = Request.Form("ExpTime")
  99. VOModObj.Update
  100. VOModObj.Close
  101. Set VOModObj = Nothing
  102. strShowErr = "<li>修改成功</li>"
  103. Response.Redirect("../Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  104. Response.end
  105. End If
  106. Conn.Close
  107. Set Conn = Nothing
  108. %>