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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_Inc/Function.asp" -->
  5. <!--#include file="../lib/strlib.asp" -->
  6. <!--#include file="../lib/UserCheck.asp" -->
  7. <%
  8. Dim str_CurrPath,rs
  9. str_CurrPath = Replace("/"&G_VIRTUAL_ROOT_DIR &"/"&G_USERFILES_DIR&"/"&Session("FS_UserNumber"),"//","/")
  10. set rs= Server.CreateObject(G_FS_RS)
  11. rs.open "select * From FS_ME_Infoilog where iLogID="&NoSqlHack(Request.QueryString("id")),User_Conn,1,3
  12. if rs.eof then
  13. strShowErr = "<li>错误的参数!</li>"
  14. Response.Redirect("../lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../i_Blog/index.asp")
  15. Response.end
  16. rs.close:set rs = nothing
  17. end if
  18. %>
  19. <html xmlns="http://www.w3.org/1999/xhtml">
  20. <title>User Manage Center-网站内容管理系统</title>
  21. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  22. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  23. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  24. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  25. <head></head>
  26. <body>
  27. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  28.   <tr>
  29.     <td>
  30.       <!--#include file="../top.asp" -->
  31.     </td>
  32.   </tr>
  33. </table>
  34. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  35.     <tr class="back"> 
  36.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="../Top_navi.asp" -->
  37.     </td>
  38.     </tr>
  39.     <tr class="back"> 
  40.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  41.           <!--#include file="../menu.asp" -->
  42.         </div></td>
  43.       <td width="82%" valign="top" class="hback">
  44.   <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  45.         <tr class="hback"> 
  46.           <td  valign="top">你的位置:<a href="../../">网站首页</a> &gt;&gt; <a href="../main.asp">会员首页</a> 
  47.             &gt;&gt; <a href="index.asp">日志管理</a> &gt;&gt;日志管理</td>
  48.         </tr>
  49.         <tr class="hback"> 
  50.           <td  valign="top"><a href="index.asp">日志首页</a>┆<a href="PublicLog.asp">发表日志</a>┆<a href="index.asp?type=box">草稿箱</a>┆<a href="../PhotoManage.asp">相册管理</a>┆<a href="PublicParam.asp">参数设置</a>┆<a href="../Review.asp">评论管理</a></td>
  51.         </tr>
  52.       </table>
  53.         
  54.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  55.         <form name="s_form" method="post" action="Public_Save.asp">
  56.           <tr> 
  57.             <td colspan="2" class="xingmu">发表日志</td>
  58.           </tr>
  59.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  60.             <td class="hback"><div align="right">日志标题</div></td>
  61.             <td class="hback"><input name="Title" type="text" id="Title" size="57" value="<% = rs("Title")%>" maxlength="100" onFocus="Do.these('Title',function(){return CheckContentLen('Title','span_Title','3-100')})" onKeyUp="Do.these('Title',function(){return CheckContentLen('Title','span_Title','3-100')})"> 
  62.               <span id="span_Title"></span></td>
  63.           </tr>
  64.           <tr> 
  65.             <td width="13%" class="hback"><div align="right">主分类</div></td>
  66.             <td width="87%" class="hback">
  67. <select name="MainID" id="MainID">
  68.                 <!--<option value="">选择系统分类</option>-->
  69.                 <%
  70. dim c_rs
  71. set c_rs = Server.CreateObject(G_FS_RS)
  72. c_rs.open "select ID,ClassName From FS_ME_iLogClass Order by id asc",User_Conn,1,3
  73. do while not c_rs.eof
  74. if rs("MainId")=c_rs("id") then
  75. %>
  76.                 <option value="<%=c_rs("id")%>" selected><%=c_rs("ClassName")%></option>
  77. <%else%>
  78.                 <option value="<%=c_rs("id")%>"><%=c_rs("ClassName")%></option>
  79.                 <%
  80. end if
  81. c_rs.movenext
  82. loop
  83. c_rs.close:set c_rs=nothing
  84. %>
  85.               </select>
  86.               专栏 
  87.               <select name="ClassID" id="ClassID" style="width:38%">
  88.                 <option value="0">选择我的专栏</option>
  89.                 <%
  90.   dim obj_zl_rs
  91.   set obj_zl_rs= Server.CreateObject(G_FS_RS)
  92.   obj_zl_rs.open "select ClassID,ClassCName,ClassEName,ParentID,UserNumber,ClassTypes From FS_ME_InfoClass  where ParentID=0 and ClassTypes=7 and UserNumber='"& Fs_User.UserNumber&"' order by ClassID desc",User_Conn,1,3
  93.   do while not obj_zl_rs.eof 
  94.    if rs("ClassID")=obj_zl_rs("ClassID") then
  95. Response.Write"<option value="""& obj_zl_rs("ClassID")&""" selected>"& obj_zl_rs("ClassCName")&"</option>"
  96. else
  97. Response.Write"<option value="""& obj_zl_rs("ClassID")&""">"& obj_zl_rs("ClassCName")&"</option>"
  98. end if
  99.   obj_zl_rs.movenext
  100.   Loop
  101.   obj_zl_rs.close:set obj_zl_rs =nothing
  102.   %>
  103.               </select></td>
  104.           </tr>
  105.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  106.             <td class="hback"><div align="right">类型</div></td>
  107.             <td class="hback"><select name="iLogStyle" id="iLogStyle">
  108.                 <option value="0" <%if rs("iLogStyle")=0 then response.Write"selected"%>>日志</option>
  109.                 <option value="1" <%if rs("iLogStyle")=1 then response.Write"selected"%>>网摘</option>
  110.               </select> </td>
  111.           </tr>
  112.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  113.             <td class="hback"><div align="right">关键字</div></td>
  114.             <td class="hback"><input name="keyword1" type="text" id="keyword1" size="15" maxlength="15" value="<%=split(rs("Keywords"),",")(0)%>">
  115.               , 
  116.               <input name="keyword2" type="text" id="keyword2" size="15" maxlength="15" value="<%=split(rs("Keywords"),",")(1)%>">
  117.               , 
  118.               <input name="keyword3" type="text" id="keyword3" size="15" maxlength="15" value="<%=split(rs("Keywords"),",")(2)%>"></td>
  119.           </tr>
  120.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  121.             <td class="hback"><div align="right">来源</div></td>
  122.             <td class="hback"><input name="iLogSource" type="text" id="iLogSource" size="57" maxlength="60" value="<%=rs("iLogSource")%>"></td>
  123.           </tr>
  124.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  125.             <td class="hback"><div align="right">内容</div></td>
  126.             <td class="hback"><textarea name="Content" rows="12" style="width:95%"><%=rs("Content")%></textarea></td>
  127.           </tr>
  128.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  129.             <td class="hback"><div align="right">首页置顶</div></td>
  130.             <td class="hback"><input name="isTop" type="checkbox" id="isTop" value="1" <%if rs("isTop")=1 then response.Write("checked")%>></td>
  131.           </tr>
  132.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  133.             <td class="hback"><div align="right">心情</div></td>
  134.             <td class="hback"><input name="EmotFace" type="radio" value="face1.gif" checked> 
  135.               <img src="../../sys_images/emot/face1.gif" width="19" height="19"> 
  136.               <input type="radio" name="EmotFace" value="face3.gif" <%if rs("EmotFace")="face3.gif" then response.Write("checked")%>> 
  137.               <img src="../../sys_images/emot/face3.gif" width="19" height="19"> 
  138.               <input type="radio" name="EmotFace" value="face5.gif" <%if rs("EmotFace")="face5.gif" then response.Write("checked")%>> 
  139.               <img src="../../sys_images/emot/face5.gif" width="19" height="19"> 
  140.               <input type="radio" name="EmotFace" value="face8.gif" <%if rs("EmotFace")="face8.gif" then response.Write("checked")%>> 
  141.               <img src="../../sys_images/emot/face8.gif" width="19" height="19"> 
  142.               <input type="radio" name="EmotFace" value="face18.gif" <%if rs("EmotFace")="face18.gif" then response.Write("checked")%>> 
  143.               <img src="../../sys_images/emot/face18.gif" width="19" height="19"> 
  144.               <input type="radio" name="EmotFace" value="face11.gif" <%if rs("EmotFace")="face11.gif" then response.Write("checked")%>> 
  145.               <img src="../../sys_images/emot/face11.gif" width="19" height="19"> 
  146.               <input type="radio" name="EmotFace" value="face47.gif" <%if rs("EmotFace")="face47.gif" then response.Write("checked")%>> 
  147.               <img src="../../sys_images/emot/face47.gif" width="19" height="19"> 
  148.               <input type="radio" name="EmotFace" value="face15.gif" <%if rs("EmotFace")="face15.gif" then response.Write("checked")%>> 
  149.               <img src="../../sys_images/emot/face15.gif" width="19" height="19"> 
  150.               <input type="radio" name="EmotFace" value="face22.gif" <%if rs("EmotFace")="face22.gif" then response.Write("checked")%>> 
  151.               <img src="../../sys_images/emot/face22.gif" width="19" height="19"> 
  152.               <input type="radio" name="EmotFace" value="face29.gif" <%if rs("EmotFace")="face29.gif" then response.Write("checked")%>> 
  153.               <img src="../../sys_images/emot/face29.gif" width="19" height="19"> 
  154.               <input type="radio" name="EmotFace" value="face34.gif" <%if rs("EmotFace")="face34.gif" then response.Write("checked")%>> 
  155.               <img src="../../sys_images/emot/face34.gif" width="19" height="19"></td>
  156.           </tr>
  157.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  158.             <td class="hback"><div align="right">图片地址</div></td>
  159.             <td class="hback"><table width="100%" border="0" cellspacing="1" cellpadding="5">
  160.                 <tr> 
  161.                   <td width="29%"><div align="center"> 
  162.                       <table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
  163.                         <tr> 
  164.                           <%if not isnull(rs("pic_1")) then%>
  165.                           <td class="hback"><img src="<%=rs("pic_1")%>" width="90" height="90" id="pic_p_1"></td>
  166.                           <%else%>
  167.                           <td class="hback"><img src="../Images/nopic_supply.gif" width="90" height="90" id="pic_p_1"></td>
  168.                           <%end if%>
  169.                         </tr>
  170.                       </table>
  171.                       <input name="pic_1" type="hidden" id="pic_1" size="40" value="<%=rs("pic_1")%>">
  172.                     </div></td>
  173.                   <td width="36%"><div align="center"> 
  174.                       <table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
  175.                         <tr> 
  176.                           <%if not isnull(rs("pic_2")) then%>
  177.                           <td class="hback"><img src="<%=rs("pic_2")%>" width="90" height="90" id="pic_p_2"></td>
  178.                           <%else%>
  179.                           <td class="hback"><img src="../Images/nopic_supply.gif" width="90" height="90" id="pic_p_2"></td>
  180.                           <%end if%>
  181.                         </tr>
  182.                       </table>
  183.                       <input name="pic_2" type="hidden" id="pic_2" size="40" value="<%=rs("pic_2")%>">
  184.                     </div></td>
  185.                   <td width="35%"><div align="center"> 
  186.                       <table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
  187.                         <tr> 
  188.                           <%if not isnull(rs("pic_3")) then%>
  189.                           <td class="hback"><img src="<%=rs("pic_3")%>" width="90" height="90" id="pic_p_3"></td>
  190.                           <%else%>
  191.                           <td class="hback"><img src="../Images/nopic_supply.gif" width="90" height="90" id="pic_p_3"></td>
  192.                           <%end if%>
  193.                         </tr>
  194.                       </table>
  195.                       <input name="pic_3" type="hidden" id="pic_3" size="40" value="<%=rs("pic_3")%>">
  196.                     </div></td>
  197.                 </tr>
  198.                 <tr> 
  199.                   <td><div align="center"><img  src="../Images/upfile.gif" width="44" height="22" onClick="OpenWindowAndSetValue('../CommPages/SelectPic.asp?CurrPath=<% = str_CurrPath %>&f_UserNumber=<% = session("FS_UserNumber")%>',500,320,window,document.s_form.pic_1);" style="cursor:hand;"> 
  200.                        <img src="../Images/del_supply.gif" width="44" height="22" onClick="dels_1();" style="cursor:hand;"> 
  201.                     </div></td>
  202.                   <td><div align="center"><img  src="../Images/upfile.gif" width="44" height="22" onClick="OpenWindowAndSetValue('../CommPages/SelectPic.asp?CurrPath=<% = str_CurrPath %>&f_UserNumber=<% = session("FS_UserNumber")%>',500,320,window,document.s_form.pic_2);" style="cursor:hand;"> 
  203.                        <img src="../Images/del_supply.gif" width="44" height="22" onClick="dels_2();" style="cursor:hand;"> 
  204.                     </div></td>
  205.                   <td><div align="center"><img  src="../Images/upfile.gif" width="44" height="22" onClick="OpenWindowAndSetValue('../CommPages/SelectPic.asp?CurrPath=<% = str_CurrPath %>&f_UserNumber=<% = session("FS_UserNumber")%>',500,320,window,document.s_form.pic_3);" style="cursor:hand;"> 
  206.                        <img src="../Images/del_supply.gif" width="44" height="22" onClick="dels_3();" style="cursor:hand;"> 
  207.                     </div></td>
  208.                 </tr>
  209.               </table></td>
  210.           </tr>
  211.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  212.             <td class="hback"><div align="right">日志密码</div></td>
  213.             <td class="hback"><input name="Password" type="password" id="Password">
  214.               不修改请保持为空</td>
  215.           </tr>
  216.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  217.             <td class="hback"><div align="right">文件名</div></td>
  218.             <td class="hback"><input name="FileName" type="text" id="FileName" value="<%=rs("FileName")%>" readonly maxlength="20"  onFocus="Do.these('FileName',function(){return CheckContentLen('FileName','span_FileName','3-18')})" onKeyUp="Do.these('FileName',function(){return CheckContentLen('FileName','span_FileName','3-18')})">
  219.               <span id="span_FileName"></span> 扩展名 
  220.               <select name="FileExtName" id="FileExtName">
  221.                 <option value="html" <%if rs("FileExtName")="html" then response.Write("selected")%>>html</option>
  222.                 <option value="htm" <%if rs("FileExtName")="htm" then response.Write("selected")%>>htm</option>
  223.                 <option value="shtm" <%if rs("FileExtName")="shtm" then response.Write("selected")%>>shtm</option>
  224.                 <option value="shtml" <%if rs("FileExtName")="shtml" then response.Write("selected")%>>shtml</option>
  225.                 <option value="asp" <%if rs("FileExtName")="asp" then response.Write("selected")%>>asp</option>
  226.               </select></td>
  227.           </tr>
  228.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
  229.             <td class="hback"><div align="right">保存到草稿箱</div></td>
  230.             <td class="hback"><input name="isDraft" type="checkbox" id="isDraft" value="1" <%if rs("isDraft")=1 then response.Write("checked")%>></td>
  231.           </tr>
  232.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  233.             <td class="hback"><div align="right"></div></td>
  234.             <td class="hback"><input name="Action" type="hidden" id="Action" value="Edit"> 
  235.               <input name="Id" type="hidden" id="Id" value="<%=rs("iLogID")%>"> 
  236.               <input type="submit" name="Submit" value="修改"> </td>
  237.           </tr>
  238.         </form>
  239.       </table>
  240.       <%rs.close:set rs=nothing%>
  241.        </td>
  242.     </tr>
  243.     <tr class="back"> 
  244.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  245.           <!--#include file="../Copyright.asp" -->
  246.         </div></td>
  247.     </tr>
  248. </table>
  249. </body>
  250. </html>
  251. <script language="JavaScript" type="text/JavaScript">
  252. new Form.Element.Observer($('pic_1'),1,pics_1);
  253. function pics_1()
  254. {
  255. if ($('pic_1').value=='')
  256. {
  257. $('pic_p_1').src='../Images/nopic_supply.gif'
  258. }
  259. else
  260. {
  261. $('pic_p_1').src=$('pic_1').value
  262. }
  263. new Form.Element.Observer($('pic_2'),1,pics_2);
  264. function pics_2()
  265. {
  266. if($('pic_2').value=='')
  267. {
  268. $('pic_p_2').src='../Images/nopic_supply.gif'
  269. }
  270. else
  271. {
  272. $('pic_p_2').src=$('pic_2').value
  273. }
  274. new Form.Element.Observer($('pic_3'),1,pics_3);
  275. function pics_3()
  276. {
  277. if($('pic_3').value=='')
  278. {
  279. $('pic_p_3').src='../Images/nopic_supply.gif'
  280. }
  281. else
  282. {
  283. $('pic_p_3').src=$('pic_3').value
  284. }
  285. }
  286. function dels_1()
  287. {
  288. document.s_form.pic_1.value=''
  289. }
  290. function dels_2()
  291. {
  292. document.s_form.pic_2.value=''
  293. }
  294. function dels_3()
  295. {
  296. document.s_form.pic_3.value=''
  297. }
  298. </script>
  299. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->