www.gusucode.com > 超文本多用户论坛程序 1.1 > bbs/xhnewtopic.asp
<!--#include file="conn.asp"--> <!--#include file="gyhs.asp"--> <% menu=request("menu") id=request("id") yhuser=request.cookies("username") cnuser=request("user") if gly<>true or sfbz(id,yhuser)=true or yhuser=cnuser then if menu="tz" then sql="select cncount from zwtizi where id="&id&" and ltbh='"<bh&"'" set rs=conn.execute(sql) cncount=rs("cncount") end if if menu="htz" then sql1="select htcount from zwhtz where id="&id&" and ltbh='"<bh&"'" set rs1=conn.execute(sql1) cncount=rs1("htcount") end if else %> <script language=vbscript> <!-- window.alert"你还没有此权限管理论坛帖子操作!" window.location="index.asp?ltbh=<%=ltbh%>" --> </script> <% end if %> <% '判断登陆 if dlhs=true then %> <script language=vbscript> <!-- window.alert"对不起!你还没有登陆" window.location="index.asp?ltbh=<%=ltbh%>" --> </script> <%end if%> <head> <title><%=request.cookies("mc")%></title> <meta name="keywords" content="<%=request.cookies("gjz")%>"> </head> <body topmargin=0> <!--#include file="gyym.asp"--> <table class="a2" cellSpacing="1" cellPadding="4" width="97%" align="center" border="0"> <tr class="a3"> <td height="25"> <img src="imgs/Forum_nav.gif" width="9" height="9"> <a href="index.asp?ltbh=<%=ltbh%>"><%=request.cookies("mc")%></a> >> 修改帖子 </td> </tr> </table> </p> <script language=javascript> function doSubmit(){ // getHTML()为eWebEditor自带的接口函数,功能为取编辑区的内容 if (eWebEditor1.getHTML()==""){ alert("帖子内容不能为空!"); return false; } document.myform.submit(); } </Script> <SCRIPT>valigntop()</SCRIPT> <table class="a2" cellSpacing="1" cellPadding="6" width="97%" align="center" border="0"> <form action="xgaddsave.asp?ltbh=<%=ltbh%>&menu=<%=menu%>" method="post" name="myform"> <input type="hidden" name="id" value="<%=id%>"> <input type="hidden" name="ltbqxh" value="<%=request("forumid")%>"> <input type="hidden" name="ltbh" value="<%=ltbh%>"> <tr> <td class="a1" vAlign="left" colSpan="2" height="25"><b>发表文章</b></td> </tr> <tr> <td class="a4" width="160" height="25"><b>用户名称</b></td> <td class="a4" width="570" height="25"><%=request.cookies("username")%> [<a href="tuichu.asp">退出登录</a>]</td> </tr> <tr> <td class="a4" vAlign="top" align="left" width="100%" colspan="2"><INPUT type="hidden" name="47" value="<%=cncount%>"><IFRAME ID="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=47&style=luntan" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="350"></IFRAME> <p align=center><input type=button name=btnSubmit value=" 提 交 " onclick="doSubmit()"> <input type=reset name=btnReset value=" 重 填 "> </form> </td> </tr> </table> <SCRIPT>valignbottom()</SCRIPT> </p> <% call bq dbjl.close set dbjl=nothing rs.close set rs=nothing rs1.close set rs1=nothing %> <%dbclose%>