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

📄 addbbs.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" --> 
<!--#INCLUDE FILE="encode.asp" --> 
<%if Request.ServerVariables("Request_Method")="POST" then
    encodetext=encode(request("text"))
     set rs=server.createobject("adodb.recordset")
	 ipaddress=request.servervariables("remote_addr")
	 sql="select * from bbs where id=1"
	 rs.open sql,conn,1,3
	 rs.addnew
	 rs("name")=request("name")
	 rs("uid")=session("uid")
	 rs("title")=request("title")
	 rs("bbs")=encodetext
	 rs("bbstime")=CDate(now())
	 rs("ipaddress")=ipaddress
rs.update 
rs.close
set rs=nothing
response.write("<script>opener.location=opener.location;window.close()</script>")
response.end
end if
%>
<html>
<head>
<title>发表文章</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="outplan.css" type="text/css">
</head>
<script language="javascript" src="apply.js"></script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form action="" method="POST" name="form" >
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="35">
    <tr> 
      <td background="images/outplan4.gif" valign="top"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
          <tbody> 
          <tr> 
            <td width="30" align="right"><img src="images/outplan7.gif" width="22" height="35"></td>
            <td width="70" align="center"> <a href="#" class="wlink" onClick="return checkaddbbs()">添 
              加</a></td>
             <td width="3"><img src="images/outplanline.gif" width="16" height="35"></td>
            <td width="22"><img src="images/outplan5.gif" width="22" height="35"></td>
            <td width="70" align="center"> <a href="#" onClick="window.close()" class="wlink">关 
              闭</a></td>
            <td width="6"><img src="images/outplanline.gif" width="16" height="35"></td>
            <td class="wnolink">&nbsp;</td>
          </tr>
          </tbody> 
        </table>
      </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
    <tbody> 
    <tr> 
      <td width="210" background="images/outplan1.gif" class="outtitle">&nbsp;&nbsp;发表文章</td>
      <td width="91"><img src="images/outplan11.gif" width="91" height="40"></td>
      <td background="images/outplan3.gif" valign="top" width="45">&nbsp; </td>
      <td width="2"><img src="images/outplan8.gif" width="2" height="40"></td>
      <td background="images/outplan9.gif" width="75" align="center" valign="middle"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
          <tbody> 
          <tr height="6"> 
            <td align="center" height="6"></td>
          </tr>
          <tr> 
            <td align="center" class="whitetd">详细内容</td>
          </tr>
          </tbody> 
        </table>
      </td>
      <td width="2"><img src="images/outplan8.gif" width="2" height="40"></td>
      <td background="images/outplan3.gif" valign="top">&nbsp; </td>
    </tr>
    </tbody> 
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="123">
    <tr> 
      <td valign="top"> 
        <div align="center"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td width="30">&nbsp;</td>
              <td valign="top">
                <table width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" align="center">
                  <tr> 
                    <td width="100" height="50" align="left">&nbsp;</td>
                    <td height="50">&nbsp;</td>
                  </tr>
                  <tr> 
                    <td width="100" height="35" align="left"> 姓 名: </td>
                    <td height="35"> 
                      <input type="text" class="noinput" name="name" maxlength="25" size="25" value="<%=session("username")%>">
                    </td>
                  </tr>
                  <tr> 
                    <td width="100" height="35" align="left">标 题: </td>
                    <td height="35"> 
                      <input class="noinput" type="text" name="title" maxlength="40" size="70">
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
   
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr height="10"> 
              <td ></td>
              <td></td>
            </tr>
            <tr> 
              <td width="30">&nbsp;</td>
              <td> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="100" align="left">内 容:</td>
                    <td> 
                      <textarea name="text" rows="12" cols="69" class="body1"></textarea>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          
        </div>
      </td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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