绿色生活主题论坛的设计与实现

近几年来,我国的经济发展速度惊人,引发的环境污染则更加惊人!水污染、空气污染、土壤污染等等各种污染层出不穷,有些甚至已经威胁到了人类自身的生存。可是作为人类,我们仿佛并没有警醒,还在为了自身的利益,做着更多损害自然、破坏环境,乃至最终毁坏人类的事情。M00013
为了实现习近平总书记提出的“要有金山银山,更要有绿水青山”的宏伟目标,对于每个中国人来说,“回归自然、提倡绿色生活”不应该仅仅停留在口头上,更要落实在行动中。我的毕业设计,就是想利用网上论坛这样一个平台,把众多保护环境、提倡绿色生活的人们组织起来,以便大家更集中地讨论这方面的问题,发表自己的看法,唤醒更多人的环境意识;群策群力,找到更多、更好的节约资源、保护环境的方法和措施。
系统包含三种用户:游客、注册用户、管理员。游客可以浏览系统首页和版块首页;注册用户可以查看各类帖子、回复帖子;管理员可以针对用户、版块、帖子、举报这四个方面进行管理。
系统的设计和实现基于B/S设计模式,使用了三层架构、ASP.NET等技术,利用的开发工具有Visual Studio 2010和SQL SERVER 2008。
关键字:绿色生活  论坛  环境保护  B/S设计模式M00013
Design and Implementation of A Theme Forum on Green Life
Abstract:In recent years, China's economic development at an alarming rate, cause the pollution of the environment is even more astonishing! Water pollution, air pollution, soil pollution and so on various pollution emerge in an endless stream, some even have threat to human survival. But as a human being, as if we did not awake, still for the sake of their own interests, do more harm to the natural, environmental destruction, and the destruction of human.
In order to realize “to golden hill, the magnificent goal should have more beautiful scenery”the general secretary of the grand goal of Xi Jinping, for each Chinese said, "return to nature, advocating green life" should not only stay in oral on, but also to implement in action. I graduated from the design, is to use the online forum such a platform, the number of Protect environment, promote green living people to organize, in order to more focused discussions in this aspect of the problem, to express their views, to awaken more people's environmental awareness; work and pull together, to find out more, better conserve resources, Protect environment. Methods and measures.
System includes three types of users: visitors, registered users and administrators.Visitors can browse system home page and forum home page;Registered users can browse posted  specific content, report reply posts;The administrator can take manage of user informatiom, plate information, post information and report information.
System based on B/S design pattern, using ASP.NET technology and the three-tier architecture, using Visual Studio 2010 and SQL SERVER 2008 as IDE.
Key Words: Green Living ; Forum ; Environmental Protection; B/S design pattern
目  录查看完整请+Q:351916072获取
1.    开发背景和开发意义    1
1.1    课题背景    1
1.2    目的和意义    1
2.    开发技术与开发工具    2
2.1    开发技术    2
2.1.1    三层架构    2
2.1.2    DIV+CSS    2
2.1.3    jQuery与Ajax    2
2.2    开发工具    2
2.2.1    .NET Framework    2
2.2.2    Microsoft Visual Studio 2010    3
2.2.3    SQL SERVER 2008    3
3.    需求分析    4
3.1    可行性分析    4
3.1.1    技术可行性    4
3.1.2    操作可行性    4
3.2    需求分析    4
3.2.1    系统用例分析    4
3.2.2    系统用例图    4
4.    系统设计    7
4.1    系统总体设计    7
4.2    系统详细设计    7
4.2.1    用户子系统设计    7
4.2.2    管理员子系统设计    8
4.3    数据库设计    8
4.3.1    数据库概念设计    8
4.3.2    数据库逻辑设计    15
4.3.3    数据库物理设计    15
5.    系统实现    21
5.1    开发环境搭建    21
5.1.1    开发软件安装    21
5.1.2    动软代码生成器使用说明    21
5.2    用户子系统实现    23
5.2.1    游客模块实现    23
5.2.2    注册模块实现    24
5.2.3    登录模块实现    26
5.2.4    发帖模块实现    27
5.2.5    浏览、回复帖子模块实现    27
5.2.6    个人中心页面模块实现    30
5.2.7    关注好友及发送私信模块实现    31
5.2.8    添加关注板块模块实现    32
5.2.9    错误页面模块实现    33
5.3    管理员子系统实现    34
5.3.1    用户管理模块实现    34
5.3.2    版块管理模块实现    35
5.3.3    帖子管理模块实现    35
5.3.4    举报管理模块实现    36
开发心得    37
参考文献    38
致谢    39
2.1 开发技术
2.1.1三层架构
通常情况下的三层架构就是将整个业务应用划分为:表现层(UI)、业务逻辑层(BLL)、数据访问层(DAL)。本系统选用动软代码生成器,根据数据库,生成项目三层架构。有两点原因:一是三层架构本身“高内聚,低耦合”的特点;二是自己曾经使用其实现过完整的项目。
?表现层:即用户在使用某个系统时看到的界面。
?业务逻辑层:完成具体问题的逻辑处理。
?数据访问层:对数据库内的数据作增删改查操作。
122.12.1.12.1.2 DIV+CSS
系统主要使用DIV+CSS完成系统网页布局。
3.1.1 技术可行性
完成系统需要的技术大致有四种:前端页面布局使用DIV+CSS;页面交互设计使用jQuery技术;使用C#语言编程;使用Ajax技术提高用户体验。这四类技术在学校和校外实习的过程中我都接触过,自己也利用这些技术做过一些小项目。所以,完成项目的技术可行性是成立的。
1233.13.1.13.1.2 操作可行性
5.1.1 开发软件安装
(1)由于系统选用B/S设计模式,所以电脑需要安装浏览器;还有一点,DIV+CSS完成的前端页面在各个浏览器中会有差异,所以需要安装多种浏览器,争取做到兼容多个浏览器。我安装了IE9、Chrome 33.0和Firefox 28.0。
(2)安装Visual Studio 2010完成项目编程;安装SQL SERVER 2008完成系统数据库的设计和管理。
(3)由于要生成系统基本三层架构,所以我还安装了动软代码生成器。关键代码如下:
记住密码利用jquery.cookie.js(jQuery插件)实现。在页面加载时判断是否有cookie值存在,如果有,显示在页面上;如果没有,则不显示。
      if ($.cookie("rmbUser") == "true") {
        $("#remepwdLockover").show();
        $("#remepwdLock").hide();
        $("#txtid").show();
        $("#txtpwd").show();
        $("#txtid").val($.cookie("userid"));
        $("#txtpwd").val($.cookie("passWord"));
}
用户点击保存密码实现代码:
      if (trim($("#txtid").val()) == "" || trim($("#txtpwd").val()) == "")
      {
         alert("账号或密码不能为空!");
       }
      else {
5.3.2版块管理模块实现
管理员通过此模块可以对系统模块信息进行管理,包括增删改查。
实现界面如图5-16,图5-17所示。查看完整请+Q:351916072获取

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/jsj/jsjkxyjs/3390.html

好棒文