--创建数据库
Create DataBase advert
on
Primary
(
name='advert',
filename='D:\sky\App_Data\Adv_Data.mdf',
size=1Mb,
filegrowth=10%
)
Log On
(
name='advertLog',
filename='D:\sky\App_Data\Adv_Log.ldf',
size=1Mb,
filegrowth=10%
)
--留言表
Create Table tb_Adv
(
Adv_id int identity(1,1) Primary Key not null,
Adv_CompName varchar(50) null,
Adv_Name varchar(50) not null,
Adv_Email varchar(50),
Adv_Tel varchar(50),
Adv_HeadImgUrl varchar(50) not null,
Adv_Ip varchar(50),
Adv_TimeNow DateTime,
Adv_Memo NText,
Adv_AdmHelp NText,
Adv_State bit null Default 0
Adv_Ad
)
Select * From tb_Adv
--创建添加留言的存储过程
Create Proc proc_Adv_Add
@compName VarChar(50),
@reName VarChar(50),
@Email VarChar(50),
@Tel VarChar(50),
@imgUrl VarChar(50),
@IP VarChar(50),
@Memo NText
AS
Insert Into tb_Adv Values
(
@compName,
@reName,
@Email,
@Tel,
@imgUrl,
@IP,
GetDate(),
@Memo,
'此贴目前还未回复!'
)
GO
--龌龊字过滤表
Create Table tb_contentFilter
(
cf_id int identity(1,1) Primary Key not null,
cf_content varchar(2000)
)
Insert Into tb_contentFilter Values('妈,奸,淫,操,暴,死,')
Insert Into tb_contentFilter Values('日,')
--读取龌龊字的存储过程
Create PROC proc_Cont_Filter
As
Select * From tb_contentFilter
GO
--显示留言的存储过程
Create Proc proc_Adv_Select
As
Select * From tb_Adv
GO
--显示留言到回复的存储过程
Create Proc proc_Adv_SelId
@Aid int
As
Select * From tb_Adv Where Adv_id=@Aid
GO
--回复留言
Create Proc proc_Adv_Rev
@Aid int,
@Content ntext,
@result bit output
As
if Exists(Select * From tb_Adv Where Adv_id=@Aid And Adv_State=0)
Begin
Set @result=0
Update tb_Adv Set Adv_AdmHelp=@Content Where Adv_id=@Aid
End
Else
Set @result=1
GO
--删除留言
Create Proc proc_Adv_DelId
@Aid int
As
Delete From tb_Adv Where Adv_id=@Aid
GO
--管理员表
Create Table Admin
(
Adm_id int identity(1,1) Primary Key not null,
Adm_Name varchar(50),
Adm_Pwd varchar(50)
)
Insert Into Admin Values('sky','123')
--管理员登录检测
Create Proc proc_IsAdminExists
(
@user_Name varchar(50),
@user_Pwd varchar(50),
@return_info varchar(50) output
)
As
If Exists (Select * From Admin Where Adm_Name=@user_Name And Adm_Pwd=@user_Pwd)
Set @return_info='OK'
Else
Set @return_info='None'
GO
--茯取留言记录数
Create Proc proc_Adv_Count
As
Select Count(*) as Num From tb_Adv
GO
没有合适的资源?快使用搜索试试~ 我知道了~
ASP.Net留言本[实际项目中...]
共283个文件
gif:152个
jpg:60个
cs:23个
需积分: 0 53 下载量 66 浏览量
2008-05-16
17:59:07
上传
评论
收藏 1.5MB RAR 举报
温馨提示
ASP.Net留言本[实际项目中...]<br>做项目中的一个留言本程序,包括后台<br>使用VS 2005 +SQL 2000<br>
资源推荐
资源详情
资源评论
收起资源包目录
ASP.Net留言本[实际项目中...] (283个子文件)
TopNav.ascx 6KB
prdzs.ascx 6KB
Map.ascx 2KB
Rev.ascx 2KB
bot.ascx 1KB
AdmBoty.ascx 775B
Top.ascx 466B
advert.ascx 101B
index.aspx 15KB
SeeAdv.aspx 8KB
index.aspx 8KB
RevAdv.aspx 7KB
LeftMemu.aspx 7KB
MangerAdv.aspx 5KB
myInfo.aspx 4KB
RevMResult.aspx 3KB
RevM.aspx 3KB
Admin_Index.aspx 2KB
Default.aspx 506B
Code.aspx 442B
Web.Config 2KB
Cls_Adv_Methods.cs 11KB
MangerAdv.aspx.cs 4KB
Code.aspx.cs 4KB
Cls_Conn.cs 3KB
SeeAdv.aspx.cs 3KB
Rev.ascx.cs 2KB
index.aspx.cs 2KB
index.aspx.cs 1KB
myInfo.aspx.cs 1KB
Cls_Adv.cs 1KB
RevAdv.aspx.cs 1KB
RevMResult.aspx.cs 646B
RevM.aspx.cs 610B
Admin_Index.aspx.cs 602B
Map.ascx.cs 539B
Default.aspx.cs 533B
AdmBoty.ascx.cs 421B
Top.ascx.cs 417B
LeftMemu.aspx.cs 415B
advert.ascx.cs 415B
TopNav.ascx.cs 414B
prdzs.ascx.cs 413B
bot.ascx.cs 411B
style.css 3KB
sy.css 2KB
maorong.css 2KB
style.css 2KB
ly.css 2KB
style.css 1KB
css.css 1KB
css.css 636B
Thumbs.db 412KB
Thumbs.db 112KB
Thumbs.db 105KB
Thumbs.db 9KB
Thumbs.db 4KB
banner.fla 585KB
1-1_24.gif 33KB
87.gif 14KB
logo4.gif 10KB
rightphoto7.gif 10KB
top_bg3.gif 6KB
bg_02.gif 6KB
dc.gif 4KB
login.gif 4KB
8.gif 3KB
05.gif 3KB
23.gif 3KB
copyright.gif 3KB
24.gif 3KB
1.gif 3KB
21.gif 3KB
6.gif 3KB
10.gif 3KB
18.gif 3KB
17.gif 3KB
29.gif 3KB
27.gif 3KB
19.gif 3KB
19.gif 3KB
28.gif 3KB
16.gif 3KB
9.gif 3KB
13.gif 3KB
22.gif 3KB
15.gif 2KB
logo_2.gif 2KB
11.gif 2KB
11.gif 2KB
3.gif 2KB
7.gif 2KB
26.gif 2KB
06.gif 2KB
03.gif 2KB
2.gif 2KB
2.gif 2KB
4.gif 2KB
055.gif 2KB
04.gif 2KB
共 283 条
- 1
- 2
- 3
资源评论
chensy_sky
- 粉丝: 1
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功