TianfengArticle"V1.1.0 design document
2007-1-25 skywind.jk@gmail.com
I. Introduction 1. Preface
In order to deeply study ASP. net2.0 and combine theory with practice, we take a news (Article) management system as an example to accumulate practical experience. InProgramThe design fully embodies the hierarchical structure design, object-oriented thinking, and design patterns.
System positioning: News (articles) Management System
2. SYSTEM INTRODUCTION
2. system name: tianfeng article
2: Sw article (Note: Sw means skywind)
2. Version: v1.1.0
2. Development Environment: Visual Studio 2005, C # Language (Asp. net2.0)
2. Running Environment: iis6.0 +. Net framwork 2.0
2. Third-party open-source components used:
Ü: ASP. NET, Chinese/English mixed effect server verification control v1.01
Ü: FCKeditor. net_2.2, HTML text editor
3. Features
Introduction to skywind v1.1.0:
1) Open Source! Design documents are also provided!
2) (C #) News/Article system, and supports both access and SQL Server databases
3) Background maintenance for topics, settings, and other content. The foreground automatically generates the displayed content
4) the front-end adopts the theme design to optimize the display and easily change the system style.
5) article directory: the second-level classification of the article topic, which can be modified at will
6) Article Editing: Edit and enter the article in HTM format in the background to make the article more beautiful.
7) image news: supports image articles and displays the latest image News (articles) on the homepage)
8) login verification: Image verification is used for login, and MD5 encryption is used for passwords
9) search function: Search for intra-site articles by article title (content.
10) Announcement management: the background can maintain Announcements published in HTM format.
11) Message book: the message can be displayed only after the visitor leaves a message.
4. added a list of features for each version.
V1.1.0 (2007-1-25 ):
1) Data access layer)CodeComplete reconstruction
2) logic layer Reconstruction
3) Message book: the message can only be displayed after the guest leaves a message and is reviewed.
V1.0.0 (2007-1-25 ):
1) implemented using the latest ASP. net2.0 (C #) and supports both access and SQL Server databases.
2) Background maintenance for topics, settings, and other content. The foreground automatically generates the displayed content
3) the front-end adopts the theme design to optimize the display and easily change the system style.
4) supports second-level classification of article columns and can be modified at will
5) All articles can be maintained in the background and can be edited and input in HTM format to make the articles more beautiful.
6) supports image articles and displays the latest image News (articles) on the homepage)
7) image verification and MD5 encryption are used for background login.
8) Search for intra-site articles by article title (content.
9) Announcement management. The background can maintain announcements edited in HTM format.
5. system source code Description
The Code Implementation Plan is completely composed of the following Architecture diagram. There are five projects in total. Except jklib, because it is my long-term accumulation, it is not open for the moment. The other four are completely open-source! In jklib, interested friends can mail me and provide some source code.
I hope my friends who develop my work twice can mention me in your work! I sincerely hope you can communicate and improve together!
Level 2 architecture 1. Theoretical Level Architecture
The purpose of the system design is to adapt to future expansion and modification. Therefore, a three-layer architecture design is used in the design to facilitate future secondary development. As follows:
Layers:
Layer 2: interface display implementation
2. layer: business logic layer
2. layer: standard data access layer
2 layer for the general object definition of the above layer-3 calls, to ensure the consistency of the above layer-3 and avoid hard code
2. Actual layered architecture
To facilitate the management of common code functions and reuse them in other software works, sort the frequently used code into a DLL named jklib. DLL. The actual architecture is as follows:
Three Database Design
Iv. Outline Design
System Planning is mainly divided into two parts: foreground display and background management. The front-end display is the display interface that is presented to end users. The back-end management is mainly used for website administrators to manage categories, News (articles) content, announcements, and system settings.
1. Front-end display
1) Foreground Page Structure
2) Homepage
Display content: System title, two-level menu, latest article, picture article, announcement, search, hot article, first-level latest article, etc., as follows:
3) Level 1 directory page
Display content: two levels of menu, the latest articles, image articles, search, hot articles, second-level latest articles, and so on, as follows:
4) Level 2 Directory page
Display content: two levels of menu, search, popular articles, Article list and other content, as follows:
5) Article display page
Display content: two levels of menu, search, popular articles, article content, etc., as follows:
6) Announcement display page
Display content: two levels of menu, announcement list, announcement information, etc., as follows:
7) query page
Display content: two levels of menus, query options, and query result tables are as follows:
2. Background Management
1) Background Page Structure
2) login page
Ü after login, the cookie saves the login information. Only logged-in users can perform background operations.
Ü input image verification content during login
Ü the password is saved to the database using MD5 encryption.
3) Background Homepage
Ü homepage displayed after successful login
Ü welcome and system introduction page
Ü background function menu list
4) Level 1 Directory management page
Maintain the level 1 directory. The corresponding database table is level1, as shown below:
5) Level 2 Directory management page
Maintain the level 1 directory. The corresponding database table is level2, as shown below:
6) Announcement Management
Manage the announcement content. The corresponding database table is announce.
7) Document management
Edit the article function. The corresponding database table is articals. As follows:
8) User Management
The Administrator information is maintained and the password is modified here. As follows.
9) log on again
Similar to login, used to switch user login.
10) re-release
The system caches menus and other non-frequently-changed content to avoid dynamic initialization of all content during each client access. Therefore, if you modify two levels of menus in the background, you need to re-publish them to update the client content and update the buffer.