⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messageadd.asp

📁 软件介绍:国内最完善功能最齐全的多级会员程序.主要功能涵盖所有多级会员管理所需,超强大会员自定义编辑功能
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
user=session("user")
admin=session("admin")
if user="" and admin="" then
%>
<script language="javascript">
alert("登陆超时,请重新登陆!")

document.location="../index.asp?id=mm1"
</script>
<%
response.end
end if
if admin<>"" then
user=admin
end if
stat=request("stat")
titl=request("titl")
id=request("id")
if stat="" then
stat="标题"
end if
if id="" then
id=0
end if
mm=request("mm")
if mm="1" then
Set rs=Server.CreateObject("ADODB.recordset")
rs.open "bbs",cn,3,2
rs.addnew
rs("reid")=id
rs("user")=user
rs("stat")=request("stat")
rs("titl")=request("titl")
rs("bbstxt")=request("bbstxt")
rs.update
rs.close
set rs=nothing
cn.close
set cn=nothing
mm=""
response.Redirect("messageview.asp")
end if
%>

<HTML><HEAD><TITLE>问题解答</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=JavaScript><!-- Begin
function checkRequired(f){
for(var j=1;j<f.elements.length;j++){
if(f.elements[j].value=="") {alert(f.elements[j].name+"不能为空。");return false;break;}
}
return true;
}
// End -->
</SCRIPT>
<LINK href="images/index.css" rel=stylesheet>
</HEAD>
<BODY leftMargin=0 topMargin=1 background="../images/bg.gif">
<div align="center">
  <center>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" height="66">
  <tr> 
    <td width="168" height="80">
    <img src="../images1/logo.gif" width="168" height="70"></td>
    <td width="2" height="66"></td>
    <td height="66"> 
      <table border=0 cellpadding=0 cellspacing=0 width="590">
        <tr> 
          <td height=70 width="478" align="center"><!--[if gte vml 1]><v:roundrect id="_x0000_s1025"
 alt="" style='position:absolute;left:216.75pt;top:0;width:365.25pt;height:56.25pt;
 z-index:3' arcsize="10923f" strokecolor="silver">
 <v:fill color2="fill darken(118)" rotate="t" method="linear sigma" focus="50%"
  type="gradient"/>
 <v:shadow on="t" opacity=".5" offset="-6pt,6pt"/>
 <v:textbox>
<table cellspacing="0" cellpadding="0" width="90%" height="100%">
  <tr>
    <td align="center"><span style="font-size: 9pt; background-color:#FFFFFF">
    <img src="../images1/banner.gif" width="450" height="50"></span></td>
  </tr>
</table>
 </v:textbox>
</v:roundrect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;
position:absolute;z-index:3;left:181px;top:-1px;width:480px;height:80px'><img
width=480 height=80 src="setad.files/image001.gif" v:shapes="_x0000_s1025"></span><![endif]></td>
          <td height=70 width="92" align="center" bgcolor="#FFFFFF"> 
                      <a href="index.asp?id=<%=id%>" style="text-decoration: none">
                      <font color="#000000">
                      <img border="0" src="../images1/b7.jpg" width="100" height="80"></font></a></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=755>
  <TBODY>

              <TR> 
                <TD width="100%"> 
                  <TABLE bgColor=#75BBFF border=0 cellPadding=0 cellSpacing=1      
                  width="100%">
                    <TBODY> 
                    <TR> 
                      <TD bgColor=#ffffff vAlign=top width="100%"> 
                        <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                          <TBODY> 
                          <TR> 
                            <TD width="100%" align="center"> 
                              <table width="97%" border="0" cellspacing="0" cellpadding="1" bgcolor="#75BBFF">
                                <tr>
                                  <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF">
                                      <tr> 
                                        <td bgcolor="#D0F2F2" background="../soho/images/hard_03.gif">
                                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td align="right"><input id="mybutton2" type="button" name="myall" value="预览全部" onclick="document.location='messageview.asp'"></td>
                                              <td align="center"><input id="mybutton2" type="button" name="mywrite" value="创建新帖" onclick="document.location='messageadd.asp'"></td>
                                              <td>
                                              <input style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #ffffff 1px solid; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px solid; BACKGROUND-COLOR: #ffffff; TEXT-DECORATION: underline" onclick="history.back(-1)" type="button" value="返回上一步"></td>
                                            </tr>
                                          </table>
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td>
										<form method="post" action="messageadd.asp" onsubmit="return checkRequired(this)">
                                          <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
                                            <tr>
                                              <td bgcolor="#75BBFF">
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4">
                                                  <tr bgcolor="#FFFFFF">
                                                  	<td><font color="#FF5908">状态:</font></td> 
                                                                <td><font color="#0000FF" size="2"> 
                                                                  <%if stat="标题" then%>
                                                                  创建新帖 
                                                                  <%else%>
                                                                  回复 
                                                                  <%end if%>
                                                                  <input name="stat" type="hidden" id="stat" value="<%=stat%>">
                                                                  <input name="mm" type="hidden" id="mm" value="1">
                                                                  <input name="id" type="hidden" id="id" value="<%=id%>">
                                                                  </font></td>
                                                  </tr>
                                                  <tr bgcolor="#FFFFFF"> 
                                                    <td><font color="#FF5908">标题:</font></td>
                                                    <td>
<input name="titl" id="titl" value="<%=titl%>" size="30" maxlength="42">

</td>
                                                  </tr>
                                                  <tr bgcolor="#FFFFFF"> 
                                                    <td><font color="#FF5908">作者:</font></td>
                                                    <td><input name="user" id="user" value="<%=user%>" size="30" maxlength="14" readonly></td>
                                                  </tr>
                                                  <tr bgcolor="#FFFFFF"> 
                                                    <td align="center">
                                                    <font color="#FF5908">内<br><br><br><br>&nbsp;&nbsp;容:</font></td>
                                                    <td><textarea name="bbstxt" cols="57" rows="20" id="bbstxt"></textarea></td>
                                                  </tr>
                                                  <tr bgcolor="#FFFFFF"> 
                                                    <td align="center" colspan="2"><input id="mybutton1" type="submit" value="完成" name="submit">    
<input id="mybutton1" type="reset" value="重填" name="reset">      
<input id="mybutton1" type="button" value="返回" name="back" onclick="window.location.href='messageview.asp'"></td>
                                                  </tr>
                                                </table>
                                              </td>
                                            </tr>
                                          </table></form>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                            </TD>
                          </TR>
                          <TR> 
                            <TD width="100%"> </TD>
                          </TR>
                          <TR> 
                            <TD width="100%" align="right"> 
                              <TABLE border=0 cellPadding=0 cellSpacing=1 width=160>
                                <TBODY> 
                                <TR> 
                                    <TD bgColor=#fff7f7 height=20 width="12%"> </TD>
                                    <TD bgColor=#ffebe7 height=20 width="12%"> </TD>
                                    <TD bgColor=#ffdbce height=20 width="12%"> </TD>
                                    <TD bgColor=#ffcfbd height=20 width="12%"> </TD>
                                    <TD bgColor=#ffb69c height=20 width="13%"> </TD>
                                    <TD bgColor=#ff9e73 height=20 width="13%"> </TD>
                                    <TD bgColor=#ff7542 height=20 width="13%"> </TD>
                                    <TD bgColor=#ff5918 height=20 width="13%"> </TD>
                                  </TR>
                                  </TBODY> 
                                </TABLE>
                            </TD>
                          </TR>
                          </TBODY> 
                        </TABLE>
                      </TD>
                    </TR>
                    </TBODY>
                  </TABLE>
                </TD>
              </TR>
              </TBODY>
            </TABLE>
          </TD></TR>     
        <TR>     
          <TD height=10 width=570></TD></TR></TBODY></TABLE></TD></TR>
  </TABLE>     
<table width="770" border="0" cellspacing="0" cellpadding="5" align="center" height="36">
  <tr> 
    <td align="center" background="../soho/images/hard_03.gif" height="26"><span style="font-size: 9pt; background-color: #FFFFFF">
会员内部交流-请不要发表无关话题-多谢合作!</td>
    </tr>
  </table>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -