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

数据库编程

开发平台:

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,FileName,str_FileName,rs_sys,str_FileExtName
  9. str_CurrPath = Replace("/"&G_VIRTUAL_ROOT_DIR &"/"&G_USERFILES_DIR&"/"&Session("FS_UserNumber"),"//","/")
  10. set rs_sys=User_Conn.execute("select top 1 FileName,FileExtName From FS_ME_iLogSysParam")
  11. if rs_sys.eof then
  12. response.Write("系统配置出错!")
  13. response.End
  14. rs_sys.close:set rs_sys=nothing
  15. else
  16. FileName=rs_sys("FileName")
  17. str_FileExtName=rs_sys("FileExtName")
  18. rs_sys.close:set rs_sys=nothing
  19. end if
  20. if FileName=0 then
  21. str_FileName=GetRamCode(8)
  22. elseif  FileName=1 then
  23. str_FileName="自动编号"
  24. else
  25. str_FileName=right(year(now),2)&month(now)&day(now)&hour(now)&minute(now)&second(now)&"_"&GetRamCode(3)
  26. end if
  27. %>
  28. <html xmlns="http://www.w3.org/1999/xhtml">
  29. <title>User Manage Center-网站内容管理系统</title>
  30. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  31. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  32. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  33. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  34. <head></head>
  35. <body>
  36. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  37.   <tr>
  38.     <td>
  39.       <!--#include file="../top.asp" -->
  40.     </td>
  41.   </tr>
  42. </table>
  43. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  44.     <tr class="back"> 
  45.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="../Top_navi.asp" -->
  46.     </td>
  47.     </tr>
  48.     <tr class="back"> 
  49.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  50.           <!--#include file="../menu.asp" -->
  51.         </div></td>
  52.       <td width="82%" valign="top" class="hback">
  53.   <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  54.         <tr class="hback"> 
  55.           <td  valign="top">你的位置:<a href="../../">网站首页</a> &gt;&gt; <a href="../main.asp">会员首页</a> 
  56.             &gt;&gt; <a href="index.asp">日志管理</a> &gt;&gt;日志管理</td>
  57.         </tr>
  58.         <tr class="hback"> 
  59.           <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>
  60.         </tr>
  61.       </table>
  62.         
  63.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  64.         <form name="s_form" method="post" action="Public_Save.asp">
  65.           <tr> 
  66.             <td colspan="2" class="xingmu">发表日志</td>
  67.           </tr>
  68.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  69.             <td class="hback"><div align="right">日志标题</div></td>
  70.             <td class="hback"><input name="Title" type="text" id="Title" size="57" 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')})"> 
  71.               <span id="span_Title"></span></td>
  72.           </tr>
  73.           <tr> 
  74.             <td width="13%" class="hback"><div align="right">主分类</div></td>
  75.             <td width="87%" class="hback">
  76. <select name="MainID" id="MainID">
  77.                 <!--<option value="">选择系统分类</option>-->
  78. <%
  79. dim c_rs
  80. set c_rs = Server.CreateObject(G_FS_RS)
  81. c_rs.open "select ID,ClassName From FS_ME_iLogClass Order by id asc",User_Conn,1,3
  82. do while not c_rs.eof
  83. %>
  84.                 <option value="<%=c_rs("id")%>"><%=c_rs("ClassName")%></option>
  85. <%
  86. c_rs.movenext
  87. loop
  88. c_rs.close:set c_rs=nothing
  89. %>
  90.               </select>
  91.               专栏 <select name="ClassID" id="ClassID" style="width:38%">
  92.                 <option value="0">选择我的专栏</option>
  93.                 <%
  94.   dim obj_zl_rs
  95.   set obj_zl_rs= Server.CreateObject(G_FS_RS)
  96.   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
  97.   do while not obj_zl_rs.eof 
  98.    Response.Write"<option value="""& obj_zl_rs("ClassID")&""">"& obj_zl_rs("ClassCName")&"</option>"
  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" selected>日志</option>
  109.                 <option value="1">网摘</option>
  110.               </select> </td>
  111.           </tr>
  112.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  113.             <td class="hback"><div align="right">Tags(关键字)</div></td>
  114.             <td class="hback"><input name="keyword1" type="text" id="keyword1" size="15" maxlength="15">
  115.               , 
  116.               <input name="keyword2" type="text" id="keyword2" size="15" maxlength="15">
  117.               , 
  118.               <input name="keyword3" type="text" id="keyword3" size="15" maxlength="15"></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"></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%"></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"></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"> <img src="../../sys_images/emot/face3.gif" width="19" height="19"> 
  137.               <input type="radio" name="EmotFace" value="face5.gif"> <img src="../../sys_images/emot/face5.gif" width="19" height="19"> 
  138.               <input type="radio" name="EmotFace" value="face8.gif"> <img src="../../sys_images/emot/face8.gif" width="19" height="19"> 
  139.               <input type="radio" name="EmotFace" value="face18.gif"> <img src="../../sys_images/emot/face18.gif" width="19" height="19"> 
  140.               <input type="radio" name="EmotFace" value="face11.gif"> <img src="../../sys_images/emot/face11.gif" width="19" height="19"> 
  141.               <input type="radio" name="EmotFace" value="face47.gif"> <img src="../../sys_images/emot/face47.gif" width="19" height="19"> 
  142.               <input type="radio" name="EmotFace" value="face15.gif"> <img src="../../sys_images/emot/face15.gif" width="19" height="19"> 
  143.               <input type="radio" name="EmotFace" value="face22.gif"> <img src="../../sys_images/emot/face22.gif" width="19" height="19"> 
  144.               <input type="radio" name="EmotFace" value="face29.gif"> <img src="../../sys_images/emot/face29.gif" width="19" height="19"> 
  145.               <input type="radio" name="EmotFace" value="face34.gif"> <img src="../../sys_images/emot/face34.gif" width="19" height="19"></td>
  146.           </tr>
  147.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  148.             <td class="hback"><div align="right">图片地址</div></td>
  149.             <td class="hback"><table width="100%" border="0" cellspacing="1" cellpadding="5">
  150.                 <tr> 
  151.                   <td width="29%"><div align="center"> 
  152.                       <table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
  153.                         <tr> 
  154.                           <td class="hback"><img src="../Images/nopic_supply.gif" width="90" height="90" id="pic_p_1"></td>
  155.                         </tr>
  156.                       </table>
  157.                       <input name="pic_1" type="hidden" id="pic_1" size="40" >
  158.                     </div></td>
  159.                   <td width="36%"><div align="center"> 
  160.                       <table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
  161.                         <tr> 
  162.                           <td class="hback"><img src="../Images/nopic_supply.gif" width="90" height="90" id="pic_p_2"></td>
  163.                         </tr>
  164.                       </table>
  165.                       <input name="pic_2" type="hidden" id="pic_2" size="40">
  166.                     </div></td>
  167.                   <td width="35%"><div align="center"> 
  168.                       <table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
  169.                         <tr> 
  170.                           <td class="hback"><img src="../Images/nopic_supply.gif" width="90" height="90" id="pic_p_3"></td>
  171.                         </tr>
  172.                       </table>
  173.                       <input name="pic_3" type="hidden" id="pic_3" size="40">
  174.                     </div></td>
  175.                 </tr>
  176.                 <tr> 
  177.                   <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;"> 
  178.                        <img src="../Images/del_supply.gif" width="44" height="22" onClick="dels_1();" style="cursor:hand;"> 
  179.                     </div></td>
  180.                   <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;"> 
  181.                        <img src="../Images/del_supply.gif" width="44" height="22" onClick="dels_2();" style="cursor:hand;"> 
  182.                     </div></td>
  183.                   <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;"> 
  184.                        <img src="../Images/del_supply.gif" width="44" height="22" onClick="dels_3();" style="cursor:hand;"> 
  185.                     </div></td>
  186.                 </tr>
  187.               </table></td>
  188.           </tr>
  189.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  190.             <td class="hback"><div align="right">图片放入相册</div></td>
  191.             <td class="hback"><input name="PutInPhoto" type="checkbox" id="PutInPhoto" value="1"></td>
  192.           </tr>
  193.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  194.             <td class="hback"><div align="right">日志密码</div></td>
  195.             <td class="hback"><input name="Password" type="password" id="Password"></td>
  196.           </tr>
  197.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  198.             <td class="hback"><div align="right">文件名</div></td>
  199.             <td class="hback"><input name="FileName" type="text" id="FileName" value="<%=str_FileName%>" 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')})"><span id="span_FileName"></span>
  200.               扩展名 
  201.               <select name="FileExtName" id="FileExtName">
  202.                 <option value="html" <%if str_FileExtName="html" then response.Write"selected"%>>html</option>
  203.                 <option value="htm" <%if str_FileExtName="htm" then response.Write"selected"%>>htm</option>
  204.                 <option value="shtm" <%if str_FileExtName="shtm" then response.Write"selected"%>>shtm</option>
  205.                 <option value="shtml" <%if str_FileExtName="shtml" then response.Write"selected"%>>shtml</option>
  206.                 <option value="asp" <%if str_FileExtName="asp" then response.Write"selected"%>>asp</option>
  207.               </select></td>
  208.           </tr>
  209.           <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> 
  210.             <td class="hback"><div align="right"></div></td>
  211.             <td class="hback"><input name="Action" type="hidden" id="Action"> 
  212.               <input type="button" name="Submit4" value="保存日志/网摘"  onClick="document.s_form.Action.value='Save';{if(confirm('确定保存日志吗?')){this.document.s_form.submit();return true;}return false;}"> 
  213.               <input type="button" name="Submit22" value="保存为草稿"  onClick="document.s_form.Action.value='isDraft';{if(confirm('确定保存为草稿吗?n保存后前台不会限制,方便以后修改')){this.document.s_form.submit();return true;}return false;}"> 
  214.               <input type="reset" name="Submit3" value="重新填写"></td>
  215.           </tr>
  216.         </form>
  217.       </table>
  218.        </td>
  219.     </tr>
  220.     <tr class="back"> 
  221.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  222.           <!--#include file="../Copyright.asp" -->
  223.         </div></td>
  224.     </tr>
  225. </table>
  226. </body>
  227. </html>
  228. <script language="JavaScript" type="text/JavaScript">
  229. new Form.Element.Observer($('pic_1'),1,pics_1);
  230. function pics_1()
  231. {
  232. if ($('pic_1').value=='')
  233. {
  234. $('pic_p_1').src='../Images/nopic_supply.gif'
  235. }
  236. else
  237. {
  238. $('pic_p_1').src=$('pic_1').value
  239. }
  240. new Form.Element.Observer($('pic_2'),1,pics_2);
  241. function pics_2()
  242. {
  243. if($('pic_2').value=='')
  244. {
  245. $('pic_p_2').src='../Images/nopic_supply.gif'
  246. }
  247. else
  248. {
  249. $('pic_p_2').src=$('pic_2').value
  250. }
  251. new Form.Element.Observer($('pic_3'),1,pics_3);
  252. function pics_3()
  253. {
  254. if($('pic_3').value=='')
  255. {
  256. $('pic_p_3').src='../Images/nopic_supply.gif'
  257. }
  258. else
  259. {
  260. $('pic_p_3').src=$('pic_3').value
  261. }
  262. }
  263. function dels_1()
  264. {
  265. document.s_form.pic_1.value=''
  266. }
  267. function dels_2()
  268. {
  269. document.s_form.pic_2.value=''
  270. }
  271. function dels_3()
  272. {
  273. document.s_form.pic_3.value=''
  274. }
  275. </script>
  276. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->