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

📄 comment.asp

📁 大家好
💻 ASP
字号:
<%@ language="vbscript" %>
<!--#include file="adovbs.inc"-->
<% 
   DbPath = SERVER.MapPath("forum.mdb")
   Set conn = Server.CreateObject("ADODB.Connection")
   conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DbPath
   sql="update forum set hitnumber=hitnumber+1 where id=cdbl('"&request("id")&"')  "
   conn.execute sql
   set rs=server.createobject("adodb.recordset")
   sqltext="select * from forum where id=cdbl('"&request("id")&"')"
    rs.open sqltext,conn,adOpenkeyset,adlockoptimistic,adcmdtext 
%>
<html>
<head>
<title>论坛</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.link1 {  color: #FFFFFF}
.link2 {  color: #FF0000}
.link3 {  color: #006600}
.big1 {  font-size: 14px; text-align: justify; vertical-align: 1%; line-height: 18px}
.title {  font-size: 14px; background-color: #CCFFCC; font-weight: bold}
.botton {  color: #000066; background-color: #FFCC99; font-size: 12px; cursor: hand;}
-->
</style>
<link rel="stylesheet" href="3508.css">
</head>

<body bgcolor="#FFFFdf" background="../images/bg1.gif">
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center" height="15">
  <tr> 
    <td width="176" align="center" background="../images/coner.gif" height="19"><%=formatdatetime(now,vblongdate)%></td>
    <td width="564" height="19">&nbsp; </td>
  </tr>
</table>
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center" height="17">
  <tr> 
    <td width="71">&nbsp;</td>
    <td><a href="default.asp">论坛</a>&gt;&gt;查看帖子 </td>
  </tr>
</table>
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="20" align="left"><img src="../images/leftcorner.gif" width="20" height="20"></td>
    <td width="720" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="97%"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="1" bgcolor="#006600"></td>
              </tr>
              <tr>
                <td height="19">&nbsp;</td>
              </tr>
            </table>
              </td>
          <td width="3%">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height="329" valign="top" width="1" bgcolor="#006600"></td>
    <td valign="top" width="739" align="center"> 
      <table width="95%" bgcolor="#eff5f3" border="0" cellpadding="10">
                    <tr> 
                      <td width="100%" valign="top">
                        <p align="center"><font size="3" face="宋体" color="#FF0000"><% =rs("title") %></font><font color="#000000" size="3" face="宋体"><br>
                          </font><% =rs("comment") %></p>
                        <table border="0" width="100%" cellpadding="0" bgcolor="#ACC4B0">
                              
              <tr align="center"> 
                <td width="100%"><!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --> 
                  <script language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.comment.value.length > 1000)
  {
    alert("Please enter at most 1000 characters in the \"comment\" field.");
    theForm.comment.focus();
    return (false);
  }
  return (true);
}
//--></script>
                                  <!--webbot BOT="GeneratedScript" endspan -->
                                  <form action="response.asp" method="POST" onSubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
                                    <input type="hidden" name="action" value="postreply">
                                    <input type="hidden" name="number" value="4">
                                    <input type="hidden" name="topic" value="000382-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-073199-002.msg">
                                    <input type="hidden" name="Browser" value>
                                    <input type="hidden" name="HTMLAllowed" value>
                                    <input type="hidden" name="id" value="<% =rs("id") %>">
                                    <input type="hidden" name="child" value="<% =rs("child") %>">
                                    <input type="hidden" name="xl" value="<% =rs("xl") %>">
                                    <table border="0" width="402" align="center">
                                      <tr> 
                                        <td><font color="#000080">用户*:</font> 
                                          <input name="username" VALUE size="25" maxlength="25">
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td><font color="#000080">题目*: 
                                          <input name="title" value="Re: <% =rs("title") %>" size="45" maxlength="45">
                                          </font></td>
                                      </tr>
                                      <tr> 
                                        <td valign="top"><font color="#000080">回复内容:</font></td>
                                      </tr>
                                      <tr> 
                                        <td><!--webbot bot="Validation" I-Maximum-Length="1000" -->
                                          <textarea name="comment" rows="6" cols="50" wrap="VIRTUAL"></textarea>
                                        </td>
                                      </tr>
                                    </table>
                                    <table cellspacing="1" cellpadding="1" align="center">
                                      <tr> 
                                        <td width="400" colspan="3">表情:</td>
                                      </tr>
                                      <tr> 
                                        <td nowrap>
                                          <input type="radio" value="0" name="brow">
                                          <img src="browimage/0.gif" alt="随便说说啦" width="15" height="15">随便说说啦</td>
                                        <td nowrap>
                                          <input type="radio" value="1" name="brow" checked>
                                          <img src="browimage/1.gif" alt="我来回答你。" width="15" height="15">我来回答你</td>
                                        <td nowrap>
                                          <input type="radio" value="2" name="brow">
                                          <img src="browimage/2.gif" alt="号外!号外!" width="15" height="15">号外!号外!</td>
                                        <td nowrap>
                                          <input type="radio" value="3" name="brow">
                                          <img src="browimage/3.gif" alt="好奇怪哟!" width="15" height="15">好奇怪哟!</td>
                                      </tr>
                                      <tr> 
                                        <td nowrap>
                                          <input type="radio" value="4" name="brow">
                                          <img src="browimage/4.gif" alt="大家过来.." width="15" height="15">.大家过来.</td>
                                        <td nowrap>
                                          <input type="radio" value="5" name="brow">
                                          <img src="browimage/5.gif" alt="大家小心!" width="15" height="15">大家小心!</td>
                                        <td nowrap>
                                          <input type="radio" value="6" name="brow">
                                          <img src="browimage/6.gif" alt="我得意的笑^_^" width="15" height="15">我得意的笑</td>
                                        <td nowrap>
                                          <input type="radio" value="7" name="brow">
                                          <img src="browimage/7.gif" alt="没劲!" width="15" height="15">没劲!</td>
                                      </tr>
                                      <tr> 
                                        <td nowrap>
                                          <input type="radio" value="8" name="brow">
                                          <img src="browimage/8.gif" alt="气死我了!" width="15" height="15">气死我了!</td>
                                        <td nowrap>
                                          <input type="radio" value="9" name="brow">
                                          <img src="browimage/9.gif" alt="坚决同意!" width="15" height="15">坚决同意!</td>
                                        <td nowrap>
                                          <input type="radio" value="10" name="brow">
                                          <img src="browimage/10.gif" alt="反对反对!" width="15" height="15">反对反对!</td>
                                        <td nowrap>
                                          <input type="radio" value="11" name="brow">
                                          <img src="browimage/11.gif" alt="管它呢:--{" width="15" height="15">管它呢:--{</td>
                                      </tr>
                                    </table>
                                        <p>
                                          <input type="submit" name="SUBMIT" value="回应该文章" class="botton">
                                          <input type="RESET" name="RESET" value="清除" class="botton">
                    </p>
                                    </form>
                                </td>
                              </tr>
                            </table>
                      </td>
                    </tr>
                  </table>
              <form method="POST" action="delete.asp">
                <input type="hidden" name="action2" value="dell">
                <input type="hidden" name="number" value="4">
                <input type="hidden" name="topic" value="000382-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-080199-100.msg">
                <input type="hidden" name="Browser" value>
                <input type="hidden" name="id" value="<% =rs("id") %>">
                <table border="0" width="600">
                  <tr bgcolor="#D5E6E1"> 
                    <td width="22">账号:</td>
                    <td width="210">
                      <input type="text" name="adm" size="20">
                    </td>
                    <td width="22">密码:</td>
                    <td width="190">
                      <input type="password" name="pw" size="20">
                    </td>
                    <td width="16"></td>
                    <td width="116"> 
                      <p> 
                        <input type="submit" value="删去该贴子" name="submit" class="botton">
                    </td>
                  </tr>
                </table>
              </form>
              <% rs.close
   conn.close
%> 
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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