一个BBS的源代码(二)
程序员文章站
2022-04-13 15:32:30
打开set con = server.createobject("adodb.connection")con.open "" , application("conasp_runtimeusernam...
打开
set con = server.createobject("adodb.connection")
con.open "" , application("conasp_runtimeusername") , application("conasp_runtimepassword")
set recbbs = server.createobject("adodb.recordset")
set recreply = server.createobject("adodb.recordset")
set recmember = server.createobject("adodb.recordset")
%>
<html>
<head>
<meta name="generator" content="microsoft visual studio 6.0">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>经验交流</title>
<style type="text/css">
td {
color: #ffffff;
font-size: 9pt;
}
td.menu {
color: #000000;
background-color: #f0f0d0;
font-size: 12pt;
}
input {
color: #000000;
font-size: 9pt;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
select {
color: #000000;
font-size: 9pt;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
textarea {
color: #000000;
font-size: 9pt;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body bgcolor=#c0c0c0>
<p>
<table align=center valign=top bgcolor=#d0d0d0 border=1 bordercolordark=#f0f0f0 bordercolorlight=#505050 cellpadding=5 cellspacing=0 width=600 height=400>
<tr>
<td valign=top>
<%
job = request("job")
if job = "" then job = "list"
==============================
select case job
==============================
=============================
case "list"
==============================
显示文章
%>
<table align=center border=0 cellpadding=1 cellspacing=0 width=650>
<tr>
<td>
<table width="100%" align=center border=0 cellspacing=0 cellpadding=2 bgcolor=#f0f0d0>
<tr>
<td class=menu valign=top>
<a href="/">飞林庄</a>-><a href="<%= asp_file_name %>">经验交流</a>
</td>
<td class=menu></td>
<td align=right class=menu>
<form action="<%= asp_file_name %>" method=get>
<input type=hidden name=job value=list>
[<a href="<%= asp_file_name %>?job=write">发表文章</a>][<a href="<%= asp_file_name %>?job=apply">申请账号</a>]
<input id=keyword maxlength=20 name=keyword size=18>
<input type=submit value=主题搜索>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table align=center bgcolor=#000000 border=0 cellpadding=1 cellspacing=1 width=650>
<%
if request("keyword") <> "" then keyword = request("keyword") else keyword = ""
if request("page") = "" then
if isnumeric( session("bbs_page") ) then
page = int(session("bbs_page"))
else
page = 1
end if
else
page = int(request("page"))
end if
if page < 1 then page = 1
recbbs.pagesize = listsize
sql = "select * from bbs "
if keyword <> "" then
sql = sql + "where [题目] like %" & keyword & "% "
end if
sql = sql + "order by [序号] desc"
recbbs.open sql , con , 3
set con = server.createobject("adodb.connection")
con.open "" , application("conasp_runtimeusername") , application("conasp_runtimepassword")
set recbbs = server.createobject("adodb.recordset")
set recreply = server.createobject("adodb.recordset")
set recmember = server.createobject("adodb.recordset")
%>
<html>
<head>
<meta name="generator" content="microsoft visual studio 6.0">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>经验交流</title>
<style type="text/css">
td {
color: #ffffff;
font-size: 9pt;
}
td.menu {
color: #000000;
background-color: #f0f0d0;
font-size: 12pt;
}
input {
color: #000000;
font-size: 9pt;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
select {
color: #000000;
font-size: 9pt;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
textarea {
color: #000000;
font-size: 9pt;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body bgcolor=#c0c0c0>
<p>
<table align=center valign=top bgcolor=#d0d0d0 border=1 bordercolordark=#f0f0f0 bordercolorlight=#505050 cellpadding=5 cellspacing=0 width=600 height=400>
<tr>
<td valign=top>
<%
job = request("job")
if job = "" then job = "list"
==============================
select case job
==============================
=============================
case "list"
==============================
显示文章
%>
<table align=center border=0 cellpadding=1 cellspacing=0 width=650>
<tr>
<td>
<table width="100%" align=center border=0 cellspacing=0 cellpadding=2 bgcolor=#f0f0d0>
<tr>
<td class=menu valign=top>
<a href="/">飞林庄</a>-><a href="<%= asp_file_name %>">经验交流</a>
</td>
<td class=menu></td>
<td align=right class=menu>
<form action="<%= asp_file_name %>" method=get>
<input type=hidden name=job value=list>
[<a href="<%= asp_file_name %>?job=write">发表文章</a>][<a href="<%= asp_file_name %>?job=apply">申请账号</a>]
<input id=keyword maxlength=20 name=keyword size=18>
<input type=submit value=主题搜索>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table align=center bgcolor=#000000 border=0 cellpadding=1 cellspacing=1 width=650>
<%
if request("keyword") <> "" then keyword = request("keyword") else keyword = ""
if request("page") = "" then
if isnumeric( session("bbs_page") ) then
page = int(session("bbs_page"))
else
page = 1
end if
else
page = int(request("page"))
end if
if page < 1 then page = 1
recbbs.pagesize = listsize
sql = "select * from bbs "
if keyword <> "" then
sql = sql + "where [题目] like %" & keyword & "% "
end if
sql = sql + "order by [序号] desc"
recbbs.open sql , con , 3
上一篇: 关于requireJS和seaJS
推荐阅读
-
又一个php正则表达式的问题 匹配文本成二维数组 分数给力
-
php 将一个二维数组转换成有父子关系的数组_PHP教程
-
如上图所示,由正整数1,2,3……组成了一颗二叉树。我们已知这个二叉树的最后一个结点是n。现在的问题是,结点m所在的子树中一共包括多少个结点。
-
在一颗二叉树中寻找一个结点的后继结点(前驱结点)
-
导出excel表时本来是一个字段里的内容,导出初时却到了第二行
-
源代码结局什么意思 一个简单计数器的源代码
-
用C#写的一个OA类的APP, ios、Android都能跑,有源代码
-
bbs - 用php开发一个类似segmentfault的问答型网站,有没有可用的基础?
-
一个简单的自动发送邮件系统(二)_php基础
-
python 练习题:定义一个函数quadratic(a, b, c),接收3个参数,返回一元二次方程ax^2+bx+c=0的两个解