版本 v1.1  2011-12-27

1、忘记密码的功能，用户可以通过忘记密码找回自己的账号
2、实现了后台对前台页面的控制，方面管理员对前台页面的的管理。
3、实现了转载的功能
4、实现了热度图像的绑定
5、实现了个人昵称修改时的检测
6、初步实现音乐的在线试听
7、修改了登录界面IE7下样式错位的问题。
8、添加了注册界面中的用户注册时昵称的检测
9、修改首页中我的关注鼠标划上去浮动的问题
10、修改了视频分享中的链接不支持的问题。
11、修改图片保存数据库异常的问题
12、激活页面 按钮图片修改为：立即激活
13、JS提取到单独的文件中
14、解决首页数据加载的异常
15、实现关注的功能


数据库的结构更改：
---------------------1、修改用户表(Dd_User)的字段---------------------------
a、用户表(Dd_User)添加一个字段：
	User_isSet   int(类型)

b、设置字段(User_isSet)的默认值为：0
c、执行更新：update Dd_User set User_isSet=0

----------------------2、增加关注表-----------------------------------------
USE [HaTeam_Dd]
GO

/****** Object:  Table [dbo].[Dd_Attention]    Script Date: 12/25/2011 15:21:03 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Dd_Attention](
	[Attention_ID] [int] IDENTITY(1,1) NOT NULL,
	[Attention_UerID] [int] NULL,
	[Attented_By_user] [int] NULL,
	[Attention_BlackList] [int] NULL,
	[Attention_Guid] [nchar](1) NULL,
	[Attention_Datetime] [datetime] NULL,
	[Attention_UpDatetime] [datetime] NULL,
	[Attention_Verify] [int] NULL,
	[Attention_Lock] [int] NULL,
	[Attention_State] [int] NULL,
	[Attention_Delete] [int] NULL,
	[Attention_Count] [int] NULL,
	[Attention_Order] [int] NULL,
	[Attention_Remark] [ntext] NULL,
PRIMARY KEY CLUSTERED 
(
	[Attention_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本博客的主人的ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_UerID'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本博客主人所关注的人的ＩＤ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attented_By_user'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'黑名单' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_BlackList'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据库表唯一性标识' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Guid'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间(本记录的创建时间)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Datetime'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'更新时间(本记录最近修改时间)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_UpDatetime'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否审核(0未审核,1已审核)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Verify'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否锁定(0未锁定,1锁定)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Lock'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据状态(0正常,1不正常)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_State'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否删除(0未删除,1已删除)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Delete'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用次数(本记录使用次数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Count'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录排序(记录显示的顺序)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Order'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注说明信息' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dd_Attention', @level2type=N'COLUMN',@level2name=N'Attention_Remark'
GO

--------------------------3、修改视图表（view_tables）---------------------

USE [HaTeam_Dd]
GO

/****** Object:  View [dbo].[view_tables]    Script Date: 12/25/2011 15:57:50 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


alter view [dbo].[view_tables]
as
select Text_ID TypeID,User_ID,Text_Title Title,Text_Content Content,Text_Empty Discript,Text_Tag Lable,Text_Fever Fever,Text_OriginId OriginID,Text_Datetime Datetime, Text_Order Orders from Dd_Text where Text_Delete=0  
union all 
select Picture_ID,User_ID,Picture_Address,Picture_Discription,Picture_Empty,Picture_Tag,Picture_Fever,Picture_OriginId OriginID,Picture_Datetime,Picture_Order from Dd_Picture  where Picture_Delete=0
union all
select Link_ID,User_ID,Link_Title,Link_Address,Link_Description,Link_Tag,Link_Fever,Link_OriginId OriginID,Link_Datetime,Link_Order from Dd_Link where Link_Delete=0
union all
select Video_ID,User_ID,Video_Radiourl,Video_Imageurl,Video_Description,Video_Tag,Video_Fever,Video_OriginId OriginID,Video_Datetime,Video_Order from Dd_Video where Video_Delete=0



GO

-----------------------------4、设置默认值---------------------------------
回应表(Dd_Reply) : Reply_Delete=0
喜欢表(Dd_Like) : Like_Delete=0
转载表(Dd_Reprint): Reprint_Delete=0

执行操作：
update Dd_Reply set Reply_Delete=0 
update Dd_Like set Like_Delete=0
update Dd_Reprint set Reprint_Delete=0



