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

📄 add.asp

📁 一个功能很全面的设计网站,可以作为工作室、个人主页、技术网站等
💻 ASP
📖 第 1 页 / 共 2 页
字号:
              <tr> 
                <td height="183" valign="top" > <div align="center"></div>
                  <table width="488" border="0" align="center" cellpadding="0" cellspacing="0" class="tde">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="484" height="25" valign="top"><table width="498%" border="0" cellpadding="0" cellspacing="0">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="498" height="25" valign="bottom" background="../img/wz-bg.jpg"> 
                              <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td width="86%" height="18">&nbsp;&nbsp;&nbsp;&nbsp;添加留言 
                                    <div align="right"></div></td>
                                  <td width="14%">&nbsp;</td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td width="484" height="158" valign="top"> <table width="483" border="0" align="center" cellpadding="0" cellspacing="5">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="473" height="154" valign="top" class="tde"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
                                <tr bgcolor="#F9F9F9"> 
                                  <td width="100%" height="100" valign="top" bgcolor="#F9F9F9" > 
                                    <table width="100%" height="180" border="0" cellpadding="1" cellspacing="1" align="center">
                                      <tr> 
                                        <th width="487" height="40" align="center" valign="middle" bgcolor="#FFFFFF"><img src="img/error.gif" width="17" height="17" align="absmiddle"> 
                                          出错了!</th>
                                      </tr>
                                      <tr height="140"> 
                                        <td bgcolor="#FFFFFF"> <br> <BR> 
                                          <%if adderr=true then%>
                                          &nbsp;&nbsp;<b>以下内容没有填写</b><BR> 
                                          <%end if%>
                                          <%if uiderr=true then%>
                                          &nbsp;&nbsp;用户名没有填写<BR> 
                                          <%end if%>
                                          <%if titleerr=true then%>
                                          &nbsp;&nbsp;留言标题没有填写<BR> 
                                          <%end if%>
                                          <%if contenterr= true then%>
                                          &nbsp;&nbsp;留言内容没有填写<BR> <BR> 
                                          <%end if%>
                                          <%if adderr2=true then%>
                                          &nbsp;&nbsp;<b>以下内容超过限制的字符</b><BR> 
                                          <%end if%>
                                          <%if uiderr2=true then%>
                                          &nbsp;&nbsp;用户名太长了,改短一点哦!<BR> 
                                          <%end if%>
                                          <%if titleerr2=true then%>
                                          &nbsp;&nbsp;留言标题太长了,试着改短一点哦<BR> 
                                          <%end if%>
                                          <%if contenterr2=true then%>
                                          &nbsp;&nbsp;留言内容太长了,请长话短说!<BR> 
                                          <%end if%>
                                          <%if adderr3= true then%>
                                          &nbsp;&nbsp;<b>以下格式有误</b><BR> 
                                          <%end if%>
                                          <%if urlerr=true then%>
                                          &nbsp;&nbsp;主页地址有可能错了,请查看一下改写<BR> 
                                          <%end if%>
                                          <%if emailerr=true then%>
                                          &nbsp;&nbsp;邮件地址可能写错了,请改写一下哦<BR> 
                                          <%end if%>
                                          <%if qqerr=true then%>
                                          &nbsp;&nbsp;QQ号码是不是写错了,请改一下哦<BR> 
                                          <%end if%>
                                          <div align="center"><a href="javascript:history.back(1)">返回填写</a></div></td>
                                      </tr>
                                    </table>
                                    <%
	 	 exit sub	  
end if 
set rs = server.createobject("adodb.recordset")
sql="select * from mainbook"
rs.open sql,db,3,2
rs.addnew
rs("uid")=uid
rs("sex")=sex
rs("home")=home
rs("email")=email
rs("qq")=qq
rs("utime")=now()
rs("title")=title
rs("ip")=ip
rs("content")=content
rs("top")="0"
rs("reply")="0"
rs.update
rs.close
%>
                                  </td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="5" Class="tdbg_left2"></td>
              </tr>
            </table>
            </td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
  <!--DWLayoutTable-->
  <tr> 
    <td width="1" height="236" align="left" valign="top" class="tdbg_leftall">&nbsp; 
    </td>
    <td width="601" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr> 
                <td height="183" valign="top" > <div align="center">
                    <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td height="5" Class="tdbg_left2"></td>
                      </tr>
                    </table>
                  </div>
                  <table width="488" border="0" align="center" cellpadding="0" cellspacing="0" class="tde">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="484" height="25" valign="top"><table width="498%" border="0" cellpadding="0" cellspacing="0">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="498" height="25" valign="bottom" background="../img/wz-bg.jpg"> 
                              <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td width="86%" height="18">&nbsp;&nbsp;&nbsp;&nbsp;添加留言 
                                    <div align="right"></div></td>
                                  <td width="14%">&nbsp;</td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td width="484" height="158" valign="top"> <table width="483" border="0" align="center" cellpadding="0" cellspacing="5">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="473" height="154" valign="top" class="tde"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
                                <tr bgcolor="#F9F9F9"> 
                                  <td width="100%" height="100" valign="top" bgcolor="#F9F9F9" > 
                                    <table width="100%" border="0" cellpadding="1" cellspacing="1">
                                      <tr> 
                                        <td height="300" align="center" valign="top" bgcolor="#FFFFFF"> 
                                          <BR> <BR> <BR> <BR> <P>留言成功 
                                          <p><a href="index.asp">返回</a> </td>
                                      </tr>
                                    </table>
                                    <%
session("in")="0"
end sub
%>
                                  </td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="5" Class="tdbg_left2"></td>
              </tr>
            </table>
            </td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%" height="15" align="center" cellspacing="0">
  <tr> 
    <td height="10"></td>
  </tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <!--DWLayoutTable-->
  <tr> 
    <td width="5" height="5"></td>
    <td width="750"></td>
    <td width="5"></td>
  </tr>
  <tr> 
    <td width="8" height="46"></td>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="f2f2f2"  class="tde">
        <!--DWLayoutTable-->
        <tr> 
          <td width="491" height="44"><div align="left"><font color="#999999">&nbsp;&nbsp;|</font> 
              <font color="#999999"><span  onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.dadayu.com');"  style="CURSOR: hand">设为首页</span> 
              | 
              <script language="JavaScript">
function bookmarkit(){window.external.addFavorite('http://www.dadayu.com','│ DaDaYu │ 易天网络 │')}
if (document.all)document.write('<a href="#" onClick="bookmarkit()"><font color="#999999">加入收藏</font></a>')
</script>
              | <a href="mailto:www@dadayu.com">联系站长</a> | <a href="../FriendSite.asp">友情链接</a> 
              | <a href="../Copyright.asp" target="_blank">版权申明</a> | 易天留言 |&nbsp;&nbsp;&nbsp;&nbsp;</font></div></td>
        </tr>
      </table></td>
    <td width="8"></td>
  </tr>
  <tr> 
    <td height="5"></td>
    <td></td>
    <td></td>
  </tr>
</table>
<div align="center"> </div>
</body>

⌨️ 快捷键说明

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