分享
 
 
 

刚用ASP.net做完一套用户和新闻管理系统

王朝asp·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

http://210.34.1.3/Justin/Manager.rar

在运行之初,先进行web.config文件的配置

<add key="connString" value="Persist Security Info=False;server=(local);database=数据库名;uid=用户名;pwd=密码" />

<add key="LocalPath" value="虚拟目录的物理路径" />

数据库脚本如下:

/****** Object: Table [dbo].[AdminUser] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[AdminUser]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[AdminUser]GO

/****** Object: Table [dbo].[Article] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Article]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[Article]

GO

/****** Object: Table [dbo].[ArticleGroup] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ArticleGroup]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[ArticleGroup]

GO

/****** Object: Table [dbo].[GroupPurview] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GroupPurview]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[GroupPurview]

GO

/****** Object: Table [dbo].[ImageArticle] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ImageArticle]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[ImageArticle]

GO

/****** Object: Table [dbo].[Logs] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Logs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[Logs]

GO

/****** Object: Table [dbo].[PurviewType] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[PurviewType]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[PurviewType]

GO

/****** Object: Table [dbo].[SinglePurview] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SinglePurview]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[SinglePurview]

GO

/****** Object: Table [dbo].[UploadFile] Script Date: 2005-6-12 16:26:46 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[UploadFile]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[UploadFile]

GO

/****** Object: Table [dbo].[AdminUser] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[AdminUser] (

[uid] [int] IDENTITY (1, 1) NOT NULL ,

[uname] [varchar] (24) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[upsw] [varchar] (36) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[gid] [int] NULL ,

[realname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,

[regtime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,

[email] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL

) ON [PRIMARY]

GO

/****** Object: Table [dbo].[Article] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[Article] (

[aid] [int] IDENTITY (1, 1) NOT NULL ,

[agid] [int] NULL ,

[isHidden] [bit] NULL ,

[isMain] [bit] NULL ,

[atitle] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[acontent] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL ,

[ntime] [datetime] NOT NULL ,

[nclick] [int] NULL ,

[isBold] [bit] NULL ,

[uid] [int] NULL

) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

/****** Object: Table [dbo].[ArticleGroup] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[ArticleGroup] (

[agid] [int] NOT NULL ,

[groupName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[describe] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL

) ON [PRIMARY]

GO

/****** Object: Table [dbo].[GroupPurview] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[GroupPurview] (

[gid] [int] IDENTITY (1, 1) NOT NULL ,

[gname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[describe] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[subpurview] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL

) ON [PRIMARY]

GO

/****** Object: Table [dbo].[ImageArticle] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[ImageArticle] (

[iaid] [int] IDENTITY (1, 1) NOT NULL ,

[iaName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[imageName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[iaContent] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,

[iaTime] [datetime] NOT NULL ,

[imageOldName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[imageThum1] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[imageThum2] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,

[isHide] [bit] NOT NULL

) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

/****** Object: Table [dbo].[Logs] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[Logs] (

[lid] [int] IDENTITY (1, 1) NOT NULL ,

[uname] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,

[uip] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,

[utime] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,

[describe] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL

) ON [PRIMARY]

GO

/****** Object: Table [dbo].[PurviewType] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[PurviewType] (

[pid] [int] NOT NULL ,

[describe] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL

) ON [PRIMARY]

GO

/****** Object: Table [dbo].[SinglePurview] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[SinglePurview] (

[sid] [int] IDENTITY (1, 1) NOT NULL ,

[describe] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,

[ptype] [int] NULL ,

[psubcode] [int] NULL

) ON [PRIMARY]

GO

/****** Object: Table [dbo].[UploadFile] Script Date: 2005-6-12 16:26:48 ******/

CREATE TABLE [dbo].[UploadFile] (

[fid] [int] IDENTITY (1, 1) NOT NULL ,

[aid] [int] NULL ,

[fname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,

[foldname] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,

[fsize] [int] NULL

) ON [PRIMARY]

GO

insert into PurviewType values(1, '系统设置类型');

insert into PurviewType values(2, '新闻管理类型');

insert into SinglePurview(describe, ptype, psubcode) values('权限管理-对权限组进行建立及管理', 1, 1);

insert into SinglePurview(describe, ptype, psubcode) values('用户管理-对管理员进行建立及管理', 1, 2);

insert into SinglePurview(describe, ptype, psubcode) values('系统管理-对系统日志进行查看及网站信息的查看', 1, 3);

insert into SinglePurview(describe, ptype, psubcode) values('图片新闻模块-对图片新闻专栏进行管理', 2, 0);

insert into SinglePurview(describe, ptype, psubcode) values('对新闻版块-教学管理_本科教学-的添加、编辑、删除管理', 2, 1);

insert into SinglePurview(describe, ptype, psubcode) values('对新闻版块-教学管理_工学硕士

[1] [2] 下一页

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有