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

📄 delboard.asp

📁 自由领域ASP+WAP同学录(V1.0)系统是一套仿ChinaRen的即可用电脑浏览又可以用手机访问的互动同学录单班级系统。这套系统同学录系统可以满足现在WAP普及的今天同学用手机上网交流的需求
💻 ASP
字号:
<!--#include file=../../INC/txlconst.asp-->
<!--#include file=../../INC/txlfun.asp-->
<!--
<pre>
┌─ 自由领域ASP+WAP同学录系统 ─────────────────┐
│                                                               │
│  感谢你使用 自由领域ASP+WAP同学录系统(测试版)                │
│  使用本免费源码您必须遵守以下规定                             │
│    不得公开发表代码 不得用做商业用途,不得向其他使用者收费。  │
│                                                               │
│  使用时,请保留此段信息,谢谢配合                             │
│                                                               │
│                                       2004/12/19              │
│                                                               │
└────────────────  http://99167.jahee.com ───┘
</per>
-->
<%
Dim const_txl_HomeUrl
const_txl_HomeUrl = "../../"
%>
<!--#include file=../checkadmin.asp-->
<%
opendatabase
txl_SiteHead const_txlname&"- 管理员"
BBSSET
Closedatabase
SiteBottom
Response.End()
Function BBSSET
%>
<table width="779" border="0" align="center" cellspacing="8">
  <tr><td>  <b> 同学录论坛==添加版面</b>||<b><a href="managebbsboard.asp">版面管理</a></b>
	</td></tr>
	<tr><td>
<%
If Request("confirm") <> "true" Then
		DisplayBBSSet
		Exit Function
Elseif Request("confirm") = "true" then
		Delboard(Request.QueryString("boardid"))
End If
%>
</td></tr>
</table>
<br>


<%

End Function



Function DisplayBBSSet
%>
		
<table width="100%" border=0 align="center" cellpadding=5 cellspacing=1 bgcolor=#cccccc class=TBone>
  <tr bgcolor=#f7f7f7 class=TBBG9> 
    <td colspan="2">注意:删除论坛不删除一切论坛帖子和其它用户信息!<br>
				   在删除前务必确认此论坛已经为空。<br><br><b><font color=ff0000 class=RedFont> 
      <strong><font color="#FF0000">确认信息: 真的要删除编号为<%=Request.QueryString("boardid")%>论坛版面吗?</font></strong><br><br>
      <input type=button value="不能删啊" onclick="javascript:history.go(-1);">
		<input type=button value="当然删除" onclick="javascript:document.location.href='delboard.asp?boardid=<%=Request.QueryString("boardid")%>&confirm=true';"></td>
  </tr>
</table>
<%

End Function

Function Delboard(id)
	Dim boardid,sql,rs
	boardid=id
	sql="select  * from Announce where boardid="&boardid
	set rs=conn.execute(sql)
	if not rs.eof then 
		Response.Write("<font color=red><b>&nbsp;&nbsp;编号为"&boardid&"的论坛版面中还有帖子,请先删除该版面中所有帖子再删除该版面</b></font>")
	else
		sql="delete from boards where boardid="&boardid
		conn.execute (sql)
		Response.Write("<font color=green><b>&nbsp;&nbsp;编号为"&boardid&"的论坛版面已经成功删除!</b></font>")
	end if
	rs.close
End Function
%>

⌨️ 快捷键说明

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