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

数据库编程

开发平台:

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. <!--#include file="../../FS_Inc/Func_page.asp" -->
  7. <%
  8. response.buffer=true
  9. Response.CacheControl = "no-cache"
  10. Dim Conn,User_Conn
  11. MF_Default_Conn
  12. 'session判断
  13. MF_Session_TF 
  14. if not MF_Check_Pop_TF("WS002") then Err_Show
  15. Dim TellRs,Tellsql,ID,strShowErr
  16. %>
  17. <html>
  18. <HEAD>
  19. <TITLE>FoosunCMS</TITLE>
  20. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  21. </HEAD>
  22. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  23. <BODY>
  24. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  25.   <tr>
  26.     <td height="1"></td>
  27.   </tr>
  28. </table>
  29. <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
  30.   <tr>
  31.     <td align="left" colspan="2" class="xingmu">公告管理&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../help?Lable=Message" target="_blank" style="cursor:help;'" class="sd"><img src="../Images/_help.gif" border="0"></a></td>
  32.   </tr>
  33.   <tr>
  34.     <td colspan="2" class="hback"><a href="NewTell.asp">返回</a></td>
  35.   </tr>
  36. </table>
  37. <%
  38. if NoSqlHack(Request.QueryString("Act"))="Edits" then
  39. ID=trim(Request.QueryString("ID"))
  40. Set TellRs=Server.createobject(G_FS_RS)
  41. if ID="" then
  42. strShowErr = "<li>参数错误</li>"
  43. Response.Redirect("../error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=BBS/NewTell.asp")
  44. Response.end
  45. end if
  46. TellRs.open "Select ID,Topic,Content,Person,IsUse,PV,AddUser,AddDate From FS_WS_NewsTell Where ID="&ID&"",Conn,1,1
  47. if TellRs.eof and TellRs.bof then
  48. Set TellRs=nothing
  49. strShowErr = "<li>你在修改的公告已不存了,可能已被别人删除!</li>"
  50. Response.Redirect("../error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=BBS/NewTell.asp")
  51. Response.end
  52. end if
  53. end if
  54. %>
  55. <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
  56.   <form action="EditNewsTellDeal.asp?Act=Edit" method="post" name="Addform">
  57.     <tr>
  58.       <td class="hback" width="10%" align="right">添 加 者</td>
  59.       <td class="hback" width="80%"><input type="text" id="AddUser" name="AddUser" size="40" value="<%=TellRs("AddUser")%>" readonly></td>
  60.     </tr>
  61.     <tr>
  62.       <td class="hback" align="right">公告标题</td>
  63.       <td class="hback"><input name="Topic" type="text" id="Topic" size="40" maxlength="50" value="<%=TellRs("Topic")%>">
  64.         <font color="#FF0000">*必须填写项目</font></td>
  65.     </tr>
  66.     <tr>
  67.       <td class="hback" align="right"> 内  容 </td>
  68.       <td class="hback"><textarea name="Content" rows="8" style="width:80%"><%=TellRs("Content")%></textarea>
  69.         <font color="#FF0000">*必须填写项目</font>
  70. </td>
  71.     <tr>
  72.       <td class="hback" >&nbsp;
  73.         <input type="hidden" name="ID" ID="ID" value='<%=TellRs("ID")%>'></td>
  74.       <td class="hback">&nbsp;
  75.         <input type="submit" name="submit" value="保  存">
  76.         &nbsp;&nbsp;
  77.         <input type="reset" name="reset" value="重  置">
  78.   </td>
  79. </tr>
  80.   </form>
  81. </table>
  82. <%
  83. Set Conn=nothing
  84. %>
  85. </body>
  86. </html>