ASPNET课程设计报告模板
ASP net程序设计实验报告一

(4)运行这个页面。
【实验总结】
通过本次的上机实验,我学会了xxxxxxxxxxxxxxxxxxxxx
学号:xxxxxx xxxxx
姓名:xxxx xx
指导教师:xxxxx
实验一
【实验目的】
(1)安装的开发环境VWD 2005
(2)熟悉VWD 2005开发环境
(3)创建简单的ห้องสมุดไป่ตู้态网站。
【实验内容及步骤】
(1)安装VWD 2005,建立的运行环境。
(2)使用VWD 2005创建网站lianxi1,并创建第一个页面exam1.aspx
2使用vwd2005创建网站lianxi1并创建第一个页面exam1aspx3单击页面exam1aspx的设计标签切换到页面设计窗口在页面中键入
xxxxxxxxxxxxxxx
实验报告
实验课程名称:程序设计
实验项目名称:与VWD 2005发平开台
专业班级:xxxxx xxxx
课程设计报告书模板

cmd.Connection = con;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
}
5.“修改”按钮用于修改学生成绩,“修改”按钮的Click事件中,用update修改语句将成绩修改到数据库,其程序代码如下:
protectedvoidButton2_Click(objectsender,EventArgse)
2.3数据表设计
3.系统设计与实现
3.1系统目标
3.2系统功能结构
3.3系统业务流程图
3.4系统页面组织
3.5系统模块1的设计与实现(以下,一一叙述你所实现的功能的设计与实现
4.总结
(主要内容包括本课题完成系统的功能描述,性能要求和输入输出要求、系统软硬件运行环境及开发工具。有全组共同的可一致,对于个人自己负责的部分可单独描述。)
{
if(this.TextBox1.Text ==""||this.DropDownList1.Text ==""||this.TextBox3.Text =="")
{
aspnet课程设计报告

动态网站设计报告设计题目:图书信息管理系统设计学院:班级:姓名:学号:摘 要在科技发达的今天,图书馆还是在现在中占了很大部分,大多数学生都把图书馆当成了一个很好的学习的地方,里面的图书可以丰富我们的只是,所以对图书的管理也就很重要了。
我们对图书的管理可以让同学们更好的了解到图书是否借出,对书籍好查看。
学们更好的了解到图书是否借出,对书籍好查看。
通过本系统达到以下目的:通过本系统达到以下目的:通过本系统达到以下目的: 1 1)使用)使用 操作数据库。
操作数据库。
2 2)使用数据绑定控件显示和同步数据库数据。
)使用数据绑定控件显示和同步数据库数据。
)使用数据绑定控件显示和同步数据库数据。
3 3)在多个窗体之间交换数据。
)在多个窗体之间交换数据。
)在多个窗体之间交换数据。
4 4)熟悉运用)熟悉运用SQL SERVER 数据库软件。
数据库软件。
关键词:图书管理图书管理 ;数据库;数据库;数据库 ;控件;控件目目 录1 软件需求分析说明书 ....................................... 1 2 系统分析与设计 . (1)2.1系统功能设计系统功能设计 ......................................... ......................................... 1 1 2.2 2.2 数据库设计数据库设计数据库设计 .......................................... (11)2.2.1 2.2.1 图书管理系统中有图书管理系统中有2个表需要建立个表需要建立 ................. ................. 2 2 2.2.2实际操作实际操作 ....................................... ....................................... ....................................... 2 23 系统实现 (3)3.1建库代码建库代码 ............................................. ............................................. 3 3 3.2 3.2 数据库连接数据库连接数据库连接 .......................................... .......................................... 4 4 3.3 后台主要代码后台主要代码 ................................. ................................. 5 53.3.1注册模块注册模块 ....................................... ....................................... ....................................... 5 5 3.3.2登陆界面登陆界面 ....................................... ....................................... ....................................... 7 7 3.3.3用户管理用户管理 ....................................... ....................................... ....................................... 8 83.3.4管理员界面管理员界面 .................................... .................................... .................................... 11 11 3.3.5其他人员界面其他人员界面 .................................. .................................. .................................. 13 134 软件使用说明书 .......................................... 14 总 结 .................................................... 15 参考文献 .. (16)1 软件需求分析说明书软件需求分析,其目的是用于说明软件产品或软件项目需要满足的条件和限制。
asp .net学生管理系统课程设计报告

华北科技学院课程设计说明书学号:201207014316班级: 计科B123 姓名:小星星设计题目:学生信息管理系统设计地点:华北科技学院设计时间:2015-12-28 至2016-1-8成绩评定:1、工作量: A(),B(),C(),D(),F( )2、难易度:A(),B(),C(),D(),F( )3、答辩情况:基本操作:A(),B(),C(),D(),F( )代码理解:A(),B(),C(),D(),F( )4、报告规范度:A(),B(),C(),D(),F( )5、学习态度:A(),B(),C(),D(),F( )总评成绩:___________________________指导教师:___________________________1.课程设计目标和内容1.1课程设计目标使学生综合使用所学过的网络编程知识,掌握网络环境程序设计的基本概念;结合实际的操作和设计,巩固课堂学习内容,掌握网络环境编程的特点、原理和技术;将理论与实际相结合,应用现有的网络编程软件,结合数据库管理系统软件,规范、科学地完成一个小型网站的设计与实现。
在此基础上强化学生的实践意识、提高其实际动手能力和创新能力。
课程设计的目的和要求:(1)通过本课程设计的实践及其前后的准备与总结,复习、领会、巩固和运用课堂上所学的网络编程方法和知识。
(2)为学生适应毕业后团队合作,开发规模稍大项目和综合应用本专业所学习的多门课程知识创造实践机会。
(3)通过编写课程设计总结报告,培养学生撰写程序设计开发文档的能力。
课程设计的思想和方法还可以作为学生做毕业论文时的参考资料。
(4)通过查阅手册和文献资料,培养学生独立分析问题和解决问题的能力。
为学生做毕业设计打好基础。
(5)通过较大的富有挑战性的软件实验项目开发实践,为学生提供主动学习、积极探索与大胆创新的机会。
比如,对web网页设计、交互网页技术、数据库应用、电子商务、客户机与服务器技术的应用。
ASPNET课程设计报告---BBS论坛系统

目录一系统功能概述 (1)1.1需求分析 (1)1.2系统功能分析 (1)1.2.1登录注册模块 (1)1.2.2用户功能模块 (2)1.2.3管理功能模块 (3)二数据库设计 (3)三系统功能设计 (6)3.1 系统功能模块设计 (6)3.2 系统功能模块介绍 (7)3.3 BBS论坛系统的内容 (8)四系统功能实现 (8)4.1 通用模块介绍 (8)4.2 用户控件介绍 (9)4.3 前台功能界面 (11)4.3.1 用户相关操作 (11)4.3.2帖子相关操作 (12)4.3.3短消息操作,如图4-10。
(13)4.4 后台功能界面 (13)五心得体会 (15)六参考资料 (16)BBS论坛系统一系统功能概述1.1需求分析论坛也称为BBS是Bulletin Board System的简称。
意思是电子公告版,它主要给浏览者提供沟通的平台。
随着网上用户的普及,开发网上社区服务系统,可为网友提供方便实用的网上服务及人们之间更好的交流沟通途径.。
本系统分为管理员用户和注册用户,论坛新用户可以注册信息,成功注册后如想更改自己的信息,可以方便的进行用户信息更改。
注册用户登陆后,可以查看论坛的帖子信息并且回帖;即使不是注册用户亦可回复帖子。
可以查询用户信息和其他人所发的帖子,同时也可以回复发表自己的见解,但是非注册用户不可以发表帖子;管理员则可以对此系统进行定期更新维护:查看论坛用户发表的新帖,也可查看大家对一些新帖的不同见解,用时如果哪个新帖或回复含有有损大家的友谊的言论,管理员则可将此贴删除并且可以删除已经注册的用户。
此系统将为网友提供交流的平台,同时也促使人们相互之间更好的交流与沟通。
1.2系统功能分析系统开发的总体任务是实现各种信息的系统化、规范化和自动化。
系统功能分析是在系统开发的总体任务的基础上完成。
本系统的功能主要有:1.2.1登录注册模块可分为用户登录、用户注册和修改用户信息。
(1)用户登录:为防止恶意注册,将有验证码需要填写。
新闻网站 asp net课程设计报告

河南中医学院《课程设计报告》所在院系:信息技术学院专业年级: 2013级计算机科学与技术完成学生: 2013180106 曽涛指导教师:曹莉课程设计报告-新闻网站目录1.需求分析 (3)1.1网站功能分析: (3)1.2前台显示 (3)1.2.1新闻主页 (3)1.2.2新闻分类栏目页 (4)1.2.3新闻内容页 (4)1.2.4会员注册/登录页 (4)2.总体设计 (5)2.1新闻网站的数据库设计 (5)2.2数据库操作的简化方案 (5)2.3后台页面的设计 (6)2.4前台页面的设计 (6)3.详细设计 (7)3.1数据库设计 (7)3.1.1Admin表 (7)3.1.2AdminGrader表 (7)3.1.3FriendLink表 (8)3.1.4News表 (8)3.1.5Newcategroy表 (8)3.1.6UserInfo表 (9)3.1.7UserLogin表 (9)3.1.8UserReview表 (9)3.2后台管理页面详情 (10)3.3前台页面详情 (11)4.代码编写 (13)4.1创建的SqlHelper类 (13)5.网站测试 (22)6.报告总结与收获 (25)1.需求分析1.1网站功能分析:新闻网站的功能包括后台新闻的录入,编辑,审核,新闻的发布,用户名的注册,最新消息显示在网页顶端等,网站会员的管理,系统管理员的管理等功能;前台的新闻浏览,会员的注册登录,以及对新闻的评论等功能.1.2前台显示前台的页面显示部分,一般有3页组成,及新闻主页.新闻栏目页和新闻内容页.新闻主页用于显示新闻列表,这样有利于浏览者选择感兴趣的新闻,新闻栏目页帮助浏览者查找某类新闻,内容页用于显示某个单条新闻.1.2.1新闻主页(1)显示所有新闻分类(2)按新闻分类显示其下最新几条新闻(3)显示最新的前几条新闻(4)显示最热门的前几条新闻(5)网站友情链接(6)登录.注册链接(7)后台管理链接1.2.2新闻分类栏目页(1)按新闻分类显示其下的所有新闻(2)显示最新的前几条新闻(3)显示最热门的前几条新闻1.2.3新闻内容页(1)显示新闻的详细内容(2)显示该新闻的网友评论,设置为登录会员可以评论(3)显示最新的前几条新闻1.2.4会员注册/登录页当浏览者想要了解更多的新闻或者参加评论时,他需要注册才能实现这些功能。
ASPNET课程设计样本

云计算:ASPNET将更加注重云计算技术的应用,提高系统的可扩展性和可靠性。
微服务:ASPNET将更加注重微服务架构的应用,提高系统的可维护性和可扩展性。
移动优先:ASPNET将更加注重移动设备的支持,提高系统的用户体验和可用性。
人工智能:ASPNET将更加注重人工智能技术的应用,提高系统的智能化和自动化程度。
ASPNET优缺点总结
优点:易于开发,支持多种编程语言,易于维护,支持多种数据库,易于扩展,支持多种平台。
缺点:性能较差,安全性较低,代码可读性较差,开发效率较低,学习曲线较陡峭。
展望:未来ASPNET可能会在性能、安全性、代码可读性、开发效率等方面有所改进,以满足开发者的需求。
建议:在开发过程中,可以根据项目的实际情况,选择合适的编程语言和框架,以提高开发效率和维护成本。
ASPNET发展历程
2002年,*** 1.0发布,支持C#和***语言2003年,*** 1.1发布,增加了许多新特性,如Web Forms和Web Services2005年,ASPASPNET发展历程2002年,*** 1.0发布,支持C#和***语言2003年,*** 1.1发布,增加了许多新特性,如Web Forms和Web Services2005年,*** 2.0发布,支持泛型和匿名类型,增加了许多新控件和特性2006年,*** 3.5发布,增加了LINQ和Entity Framework等新特性2008年,*** 4.0发布,支持动态数据、MVC和Razor视图引擎等新特性2013年,ASPASPNET发展历程2002年,*** 1.0发布,支持C#和***语言2003年,*** 1.1发布,增加了许多新特性,如Web Forms和Web Services2005年,*** 2.0发布,支持泛型和匿名类型,增加了许多新控件和特性2006年,*** 3.5发布,增加了LINQ和Entity Framework等新特性2008年,*** 4.0发布,支持动态数据、MVC和Razor视图引擎等新特性2013年,*** 5.0发布,更名为*** Core,支持跨平台开发和云部署
ASP net程序设计实验报告四

Xxxxxxxxxxxxxxxxxxx 实验报告实验课程名称:程序设计实验项目名称: 服务器控件专业班级:xxxxxxxxxxx学号:xxxxxxxxxxxxx姓名:xxxxxxxxxxx指导教师:xxxxxxxx实验四 服务器控件【实验目的】(1)熟悉用户控件的创建技术,掌握用户控件的属性、事件、方法的定义和使用。
(2)学会利用自定义用户控件制作导航条和用户登录控件。
【实验内容及步骤】(1)新建名字为ServerControlExperiment网站。
(2)在default.aspx页面中,添加1个TextBox控件、2个Button控件、一个ListBox控件,如图所示。
将2个Button控件的Text属性分别改为“增加”和“删除”。
当单击【增加】按钮时,将TextBox文本框中的输入值添加到ListBox中,但单击【删除】按钮时,删除ListBox中当前选定项。
protected void Button1_Click(object sender, EventArgs e){ListBox1.Items.Add(TextBox1.Text.ToString().Trim());TextBox1.Focus();TextBox1.Text = "";}protected void Button2_Click(object sender, EventArgs e){for (int i = ListBox1.Items.Count - 1; i >= 0; i--){if(ListBox1.Items[i].Selected)ListBox1.Items.Remove(ListBox1.Items[i].Value);}}(3)添加一个网页,要求将Label控件、LinkButton控件、HyperLink控件放在Panel控件中,当单击一组Button按钮时改变Panel控件的背景色,单击另一组Button控件时改变Panel控件中文字的大小。
asp.net程序设计实验报告

程序设计实验报告《程序设计实验报告》实验目的:通过本次实验,掌握程序设计的基本原理和方法,能够独立完成简单的程序设计任务。
实验内容:本次实验主要包括程序设计的基本知识、程序设计的环境搭建、程序设计的基本操作等内容。
一、程序设计的基本知识是一种用于构建动态网站和Web应用程序的技术,它基于.NET框架,并且支持多种编程语言。
程序设计的基本知识包括的架构、的页面生命周期、的控件、的事件处理等内容。
二、程序设计的环境搭建在进行程序设计之前,需要搭建相应的开发环境。
通常情况下,可以选择使用Visual Studio来进行程序设计,它提供了丰富的工具和功能,能够极大地提高开发效率。
三、程序设计的基本操作在进行程序设计时,需要掌握一些基本操作,比如创建项目、添加页面、添加控件、编写代码等。
此外,还需要了解的页面生命周期,掌握事件处理的方法等。
实验步骤:1. 搭建程序设计的开发环境,安装Visual Studio等相关软件。
2. 创建一个简单的项目,添加页面和控件。
3. 编写代码,实现页面的交互和功能。
4. 调试和测试程序,确保程序的正常运行。
实验结果:通过本次实验,我成功掌握了程序设计的基本原理和方法,能够独立完成简单的程序设计任务。
我对的架构、页面生命周期、控件、事件处理等有了更深入的了解,同时也掌握了程序设计的环境搭建和基本操作方法。
在实验过程中,我成功创建了一个简单的项目,并且实现了页面的交互和功能。
最终,我通过调试和测试,确保了程序的正常运行。
结论:程序设计是一项重要的技术,能够帮助我们构建动态网站和Web应用程序。
通过本次实验,我对程序设计有了更深入的了解,掌握了程序设计的基本原理和方法。
我相信在今后的学习和工作中,这些知识和技能一定会对我有所帮助。
同时,我也会继续学习和探索程序设计,不断提升自己的能力和水平。
ASPNEt课程设计报告

A S P N E t课程设计报告文件编码(008-TTIG-UTITD-GKBTT-PUUTI-WYTUI-8256)ASPNET开发及应用课程设计报告专业计算机科学与技术班级 1401班设计人张丽媛指导教师李光敏时间 2017 年 6 月 5目录第一章引言 (1)本课题的研究背景 (1)本课题的研究意义 (1)现行研究存在的问题及解决办法 (2)第二章系统分析 (3)系统需求分析 (3)采用的关键技术介绍 (4)可行性分析 (4)技术可行性 (4)操作可行性 (4)社会效益可行性 (5)第三章系统概要设计 (6)系统总体设计 (6)运行环境 (6)系统流程 (6)系统结构 (8)数据库概要设计 (8)逻辑结构设计 (8)物理结构设计 (10)第四章系统详细设计 (11)系统界面的详细设计 (11)数据库详细设计 (11)第五章系统实现 (13)系统开发环境 (13)系统实现 (13)系统运行环境要求 (16)系统部署 (16)第六章性能测试与分析 (18)第七章课程设计总结与展望 (22)参考文献 (23)第一章引言本课题的研究背景伴随着数字化、网络化、信息化发展的社会,为了方便普通高校对学生的管理,学校往往采用了计算机进行学生信息的处理,这样可以更加精确直观便利的保存学生的信息,且信息不易丢失,更容易查找。
本课题的研究意义本系统是建立在信息技术基础上,构建出一个学生信息管理的系统,对学生的院系班级性别年龄等进行管理,以提高调查的效率和安全性,基本解决传统信息本的各种弊端。
本论文通过对这一需求的详细分析和对现实生活中突出问题的研究,以及对各种技术的考虑,其中前台技术采用基于B/S模式的,开发工具是VISUAL 2005,后台数据库采用SQL SERVER 2008,数据访问技术采用。
现行研究存在的问题及解决办法此方案将系统分为用户和管理员两大模块,根据用户角色所使用的功能不同分别进入不同的的页面,使系统能够清晰明了地呈现在用户面前。
aspnet课程设计报告

计算机与信息工程学院课程设计题目:网上购物系统姓名:×××学号:××××专业:计算机科学与技术指导教师:×××起止日期:—目录1 引言.........................................................2 需求分析.....................................................数据流图..................................................数据字典..................................................3 系统设计.....................................................系统架构设计..............................................系统功能模块划分..........................................系统数据库设计............................................4 系统实现.....................................................前台功能..................................................会员注册登录..........................................商品展示..............................................商品搜索..............................................商品评论..............................................网站公告..............................................个人信息更改..........................................地址簿管理............................................订单明细查询..........................................购物车管理............................................后台功能..................................................用户登录与后台管理....................................商品管理..............................................商品类别管理..........................................商品评论管理..........................................网站公告管理..........................................订单管理..............................................会员档案管理..........................................管理员密码修改........................................5 总结.........................................................6 参考文献.....................................................1 引言在国家大力推进信息化建设的宏观背景下,城市网络基础设施及应用水平均已得到了较大的完善和提升。
asp.net课程设计(一)

课程设计(一)一、教学目标本课程旨在让学生掌握的基本原理和应用,培养学生运用技术进行网页设计和开发的能力。
具体目标如下:1.知识目标:–理解的起源和发展历程。
–掌握的核心概念,如Web Forms、 MVC和Web API。
–学习的常用控件及其属性。
–了解的请求和响应处理机制。
2.技能目标:–能够运用技术设计并开发静态网页。
–掌握中数据库连接和数据操作的基本方法。
–熟练使用常用控件,如文本框、按钮、列表框等。
–掌握的页面布局和样式设计。
3.情感态度价值观目标:–培养学生对计算机科学和网络技术的兴趣,提高其信息素养。
–培养学生团队协作和自主探究的学习精神。
–使学生认识到技术在现代社会的重要性和广泛应用。
二、教学内容本课程的教学内容主要包括以下几个部分:概述:介绍的起源、发展历程及其核心概念。
2.Web Forms:学习Web Forms的基本原理,掌握页面布局、控件使用和事件处理。
MVC:了解 MVC的架构和原理,学习控制器、视图和模型的设计与实现。
4.Web API:学习Web API的基本概念,掌握创建和使用API的方法。
5.数据库连接与操作:学习中数据库连接和数据操作的基本方法。
6.页面样式与布局:掌握CSS、HTML和JavaScript在中的应用。
三、教学方法为了提高教学效果,本课程将采用以下几种教学方法:1.讲授法:用于讲解的基本概念和原理。
2.案例分析法:通过分析实际案例,使学生更好地理解的应用。
3.实验法:让学生动手实践,提高其运用技术解决问题的能力。
4.讨论法:鼓励学生积极参与课堂讨论,培养其团队协作和自主探究的精神。
四、教学资源为了支持本课程的教学,我们将准备以下教学资源:1.教材:选用权威、实用的教材,为学生提供系统性的学习资料。
2.参考书:提供相关领域的参考书籍,拓宽学生的知识视野。
3.多媒体资料:制作精美的PPT、视频等多媒体资料,提高课堂教学效果。
4.实验设备:配置适当的实验环境,确保学生能够顺利进行实践操作。
ASPNET实验报告

实验报告一(第1章与Visual Studio开发平台)1.1实训创建一个简单课表查询网站1.1.1实训目的通过本实训理解网站应用程序的6个基本步骤;掌握Visual Studio集成开发环境各子窗体的使用方法,理解它们的作用;掌握在Visual Studio环境中设置和更改控件属性的基本方法1.1.2实训要求本实训假设某学校有3个班级,要求设计一个能通过IE浏览器进行各学生班级课表查询的网站1.1.3实验步骤1、设计方法分析网站由4个独立的网站组成(1个网站主页和3个班级课表页),各网页之间通过超链接建立联系。
主页中包含分别指向不同课表内容页的3个HyperLink控件,各课表内容页由包含Table控件的网页构成。
2、创建网站项目3、设计Web页面(1)请添加新的Default2.aspx页面,作为该网站的首页面。
输入页面的标题文字。
例如“曙光学校课程表查询”,在工具栏中,执行“居中”命令,使文字处于页面的水平正中位置。
用户可以像在Word中一样使用VisualStudio工具栏中的字体、字型和字号工具设置文字的格式。
(2)在Default2.aspx页面中添加一个HTML表格。
切换到设计视图,执行Visual Studio“表”菜单下的“插入表”命令,按需要设置表格为1行3列及其他参数后单击“确定”按钮。
(3)在Default2.aspx页面中,将光标分别定位到HTML的3个单元格中,双击工具箱的“标准”选项中的超链接控件图标HyperLink,将其分别添加到3个单元格中。
Default2.axpx页面设计如下图1所示:图1在表格中添加HyperLink控件(4)本实训网站除了具有系统默认创建的Default2.aspx页面外,还需要手工添加3个用于显示各班级课表的页面,即Class1.aspx、Class2.aspx和Class3.aspx。
(5)添加了Class1.aspx页面后,切换到设计视图,,参照前面的方法在页面中添加一个用户布局的HTML表格(4行5列)和内容文字。
ASPNET课程设计报告书

课程名称:课程设计:阳学号:9所在专业:软件工程所在院系:信息工程学院辅导教师:宁星日期:2015年1月15日目录一、课程设计的目的 (1)二、课程设计要求 (1)三、课题及容 (1)四、流程图 (2)五、数据库 (2)六、页面代码 (3)1、登陆页面 (3)2、用户中心页面 (5)3、个人信息页面 (9)4、首页页面 (13)5、注册页面 (17)6、发布信息页面 (19)7、聊天室页面 (21)七、课程设计小结 (23)一、课程设计的目的通过利用进行web应用程序的设计与开发,加深对web程序开发的基本知识的理解,掌握动态页面设计的基本方法和步骤,掌握程序调试的一般方法和技巧。
培养基本理论分析、解决实际问题的能力及锻炼写设计总结报告的能力。
二、课程设计的基本要求1. 本课程设计要求学生用技术开发一个动态,利用B/S结构,能将客户端的用户请求提交给服务器端的程序处理。
服务器端程序能完成数据的插入、删除、更新以及将用户请求的查询数据返回客户端。
2. 课程设计结束后,每位同学独立提交一份web课程设计报告,容包括总体设计和算法分析,主要流程,测试数据及测试过程,遇到的问题及解决方法等3. 界面截图里要有代表性的数据。
三、课程设计的容题目:基于Web的房屋出租信息发布系统功能要求:1. 用户管理功能,包括:用户注册,登录认证,修改个人信息;2. 房屋出租信息发布:注册用户登录后可发布,查询,修改,删除自己发布的房屋出租信息;3. 房屋信息查询:游客可按房屋类型,所处街道或出租价格查询相应的房屋出租信息。
4. 简易论坛或聊天室四、流程图五、数据库SQL Server 中数据库里建立了三表,分别是User表(用户信息表)、Fw表(房屋出租信息表)和chat表(聊天记录表)。
er表中字段:id , pwd , name , sex2.Fw表中字段:id , 编号 , 类型 , 街道,价格3.chat表中字段:id , stext , stime六、页面代码1、登陆页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="ulogin.aspx.vb" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml"><head runat="server"><title></title></head><body><center><h1>房屋出租系统</h1><form id="form1" runat="server"><asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label><asp:TextBox ID="idtext"runat="server"></asp:TextBox><br/><br/><asp:Label ID="Label2" runat="server" Text="密码:"></asp:Label><asp:TextBox ID="pwdtext" runat="server" textmode="password"></asp:TextBox><br/><br/><asp:Button ID="youke" runat="server" Text=" 游客" /><asp:Button ID="login" runat="server" Text="登录" /><br/><br/><asp:Button ID="uzc" runat="server" Text=" 注册" /> </form></center></body></html>后台代码:Imports System.Data.SqlClientImports System.DataPartial Class _DefaultInherits System.Web.UI.PageProtected Sub login_Click(sender As Object, e As EventArgs) Handles login.ClickDim id As String = idtext.Text.Trim()Dim pwd As String = pwdtext.Text.Trim()Dim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "select * from [User] where id = '" + id + "'and pwd ='" + pwd + "'"Tryconn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn) If sqlcom.ExecuteScalar() <> Nothing ThenSession.Add("login_name", id)conn.Close()Response.Redirect("user.aspx")ElseResponse.Write("<script>alert('账号密码错误!')</script>")End IfIf conn.State = ConnectionState.Open Thenconn.Close()End IfCatch ex As ExceptionEnd TryEnd SubProtected Sub uzc_Click(sender As Object, e As EventArgs) Handles uzc.ClickResponse.Redirect("uzc.aspx")End SubProtected Sub youke_Click(sender As Object, e As EventArgs) Handles youke.ClickSession.Add("login_name", "guest")Response.Redirect("main.aspx")End SubEnd Class2、用户中心页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="user.aspx.vb" Inherits="user" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body><center><form id="form1" runat="server"><h2>用户中心</h2><asp:Label ID="Label1" runat="server" Text="请重新登陆!" ForeColor="#0033CC"></asp:Label><br /><br /><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br /><br />根据编号:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button5" runat="server" Text="删除" style="height: 21px"></asp:Button><br /><br/><asp:Button ID="Button2" runat="server" Text="首页"></asp:Button><asp:Button ID="Button3" runat="server" Text="发布"></asp:Button><br/><br/><asp:Button ID="Button1" runat="server" Text="个人信息"></asp:Button><asp:Button ID="Button4" runat="server" Text=" 聊天室"></asp:Button><br /></form></center></body></html>后台代码:Imports System.Data.SqlClientImports System.DataPartial Class userInherits System.Web.UI.PageProtected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.LoadIf (Session("login_name") <> Nothing) ThenDim id As String = Session("login_name").ToString()Label1.Text = id + "欢迎您!您的发布如下:"Dim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "select * from [Fw] where id = '" + id + "'"conn.Open()Dim sqlcmd As SqlCommand = New SqlCommand(sqltext, conn) Dim objectreader As SqlDataReaderDim i As IntegerDim fw As Stringobjectreader = sqlcmd.ExecuteReader()fw = "<table border=2>"fw += "<tr>"For i = 0 To objectreader.FieldCount - 1fw += "<td>" + objectreader.GetName(i) + "</td>"Nextfw += "</tr>"While objectreader.Read()fw += "<tr>"For i = 0 To objectreader.FieldCount - 1fw += "<td>" + CStr(objectreader.GetValue(i)) + "</td>"Nextfw += "</tr>"End Whilefw += "</table>"Label2.Text = fwconn.Close()Else : Response.Write("<script>alert('用户过期,请重新登陆!');window.location.href ='ulogin.aspx'</script>")End IfEnd SubProtected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickResponse.Redirect("userinfo.aspx")End SubProtected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.ClickResponse.Redirect("main.aspx")End SubProtected Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.ClickResponse.Redirect("fatie.aspx")End SubProtected Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.ClickResponse.Redirect("chat.aspx")End SubProtected Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.ClickIf (Session("login_name") <> Nothing) ThenDim id As String = Session("login_name")Dim n As String = TextBox1.Text.Trim()Dim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "DELETE FROM [Fw] WHERE id = '" + id + "'and 编号 = '" + n + "'"Tryconn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn) sqlcom.ExecuteNonQuery()conn.Close()Response.Write("<script>alert('删除成功!');window.location.href ='user.aspx'</script>")If conn.State = ConnectionState.Open Thenconn.Close()End IfCatch ex As ExceptionEnd TryEnd IfEnd SubEnd Class3、个人信息页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="userinfo.aspx.vb" Inherits="userinfo" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body><center><form id="form1" runat="server"><h2>您的个人信息</h2><asp:Label ID="Label10" runat="server" Text="用户名:" ForeColor="#0033CC"></asp:Label><asp:Label ID="Label11" runat="server" Text=" " ForeColor="#0033CC"></asp:Label><asp:Label ID="Label6" runat="server" Text=":" ForeColor="#0033CC"></asp:Label><asp:Label ID="Label7" runat="server" Text=" " ForeColor="#0033CC"></asp:Label><asp:Label ID="Label8" runat="server" Text="性别:" ForeColor="#0033CC"></asp:Label><asp:Label ID="Label9" runat="server" Text=" " ForeColor="#0033CC"></asp:Label><h2>信息完善与修改</h2><asp:Label ID="Label1" runat="server" Text="姓名:"></asp:Label><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br/><br/><asp:Label ID="Label2" runat="server" Text="性别:"></asp:Label><asp:DropDownList ID="DropDownList1" runat="server"><asp:ListItem Value="男"></asp:ListItem><asp:ListItem Value="女"></asp:ListItem></asp:DropDownList><br/><br/><asp:Button ID="Button1" runat="server" Text="更新" style="height: 21px"></asp:Button><h2>修改密码</h2><asp:Label ID="Label3" runat="server" Text="原密码:"></asp:Label><asp:TextBox ID="oldpwd" runat="server" textmode="password"></asp:TextBox><br/><br/><asp:Label ID="Label4" runat="server" Text="新密码:"></asp:Label><asp:TextBox ID="newpwd1" runat="server" textmode="password"></asp:TextBox><br/><br/><asp:Label ID="Label5" runat="server" Text="新密码:"></asp:Label><asp:TextBox ID="newpwd2" runat="server" textmode="password"></asp:TextBox><br/><br/><asp:Button ID="Button2" runat="server" Text="修改"></asp:Button></form></center></body></html>后台代码:Imports System.Data.SqlClientImports System.DataPartial Class userinfoInherits System.Web.UI.PageProtected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickIf (Session("login_name") <> Nothing) ThenDim id As String = Session("login_name")Dim n As String = TextBox1.Text.Trim()Dim s As String = DropDownList1.TextDim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "update [User] set name = '" + n + "',sex = '" + s + "'where id = '" + id + "'"Tryconn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn) sqlcom.ExecuteNonQuery()conn.Close()Response.Write("<script>alert('更新成功!');window.location.href ='user.aspx'</script>")If conn.State = ConnectionState.Open Thenconn.Close()End IfCatch ex As ExceptionEnd TryEnd IfEnd SubProtected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.LoadIf (Session("login_name") <> Nothing) ThenDim id As String = Session("login_name")Label11.Text = idDim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext1 As String = "select name from [User] where id = '" + ID + "'"Dim sqltext2 As String = "select sex from [User] where id = '" + ID + "'"Tryconn.Open()Dim sqlcom1 As SqlCommand = New SqlCommand(sqltext1, conn)Dim sqlcom2 As SqlCommand = New SqlCommand(sqltext2, conn)Label7.Text = sqlcom1.ExecuteScalar().ToString()Label9.Text = sqlcom2.ExecuteScalar().ToString()conn.Close()If conn.State = ConnectionState.Open Thenconn.Close()End IfCatch ex As ExceptionEnd TryElse : Response.Write("<script>alert('用户过期,请重新登陆!');window.location.href ='ulogin.aspx'</script>")End IfEnd SubProtected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.ClickDim id As String = Session("login_name")Dim opwd As String = oldpwd.Text.Trim()Dim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "select * from [User] where id = '" + id + "'and pwd = '" + opwd + "'"conn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn)If sqlcom.ExecuteScalar() <> Nothing ThenDim n1 As String = newpwd1.TextDim n2 As String = newpwd2.TextIf (n1 = n2) ThenDim sqltext1 As String = "update [User] set pwd = '" + n1 + "' where id = '" + id + "'"Dim sqlcom1 As SqlCommand = New SqlCommand(sqltext1, conn)sqlcom1.ExecuteNonQuery()conn.Close()Response.Write("<script>alert('修改成功,请重新登录!');window.location.href ='ulogin.aspx'</script>")Else : Response.Write("<script>alert('两次新密码输入不同!')</script>")End IfElse : Response.Write("<script>alert('原密码输入错误!')</script>")End IfIf conn.State = ConnectionState.Open Thenconn.Close()End IfEnd SubEnd Class4、首页页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="main.aspx.vb" Inherits="main" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body><center><form id="form1" runat="server"><h2>房屋出租首页</h2>类型:<asp:DropDownList ID="DropDownList1" runat="server"><asp:ListItem></asp:ListItem><asp:ListItem>套房</asp:ListItem><asp:ListItem>单间</asp:ListItem></asp:DropDownList>所在街道:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>价格:<asp:TextBox ID="TextBox2" runat="server" Width="60px"></asp:TextBox>~<asp:TextBox ID="TextBox3" runat="server" Width="60px"></asp:TextBox><br /><br /><asp:Button ID="Button2" runat="server" Text="查询"></asp:Button><br /><br /><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br /><br/><asp:Button ID="Button1" runat="server" Text="个人中心"></asp:Button></form></center></body></html>后台代码:Imports System.Data.SqlClientPartial Class mainInherits System.Web.UI.PageProtected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickIf (Session("login_name") <> Nothing) ThenIf (Session("login_name") = "guest") ThenResponse.Write("<script>alert('游客请登陆!');window.location.href ='ulogin.aspx'</script>")Else : Response.Redirect("user.aspx")End IfElse : Response.Redirect("ulogin.aspx")End IfEnd SubProtected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.LoadIf (Session("login_name") <> Nothing) ThenButton1.Text = "个人中心"Else : Button1.Text = "登陆"End IfDim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "select * from [Fw]"conn.Open()Dim sqlcmd As SqlCommand = New SqlCommand(sqltext, conn)Dim objectreader As SqlDataReaderDim i As IntegerDim fw As Stringobjectreader = sqlcmd.ExecuteReader()fw = "<table border=2>"fw += "<tr>"For i = 0 To objectreader.FieldCount - 1fw += "<td>" + objectreader.GetName(i) + "</td>"Nextfw += "</tr>"While objectreader.Read()fw += "<tr>"For i = 0 To objectreader.FieldCount - 1fw += "<td>" + CStr(objectreader.GetValue(i)) + "</td>" Nextfw += "</tr>"End Whilefw += "</table>"Label1.Text = fwEnd SubProtected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.ClickDim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sql As Stringsql = "select * from [Fw] where"If (DropDownList1.Text.Trim() <> "") Thensql += " 类型 ='" + DropDownList1.Text.Trim() + "'"ElseIf (TextBox1.Text.Trim() <> "") Thensql += " 街道 like '%" + TextBox1.Text.Trim() + "%'"ElseIf (TextBox2.Text.Trim() <> "" And TextBox3.Text.Trim()) Thensql += " 价格 BETWEEN '" + TextBox2.Text.Trim() + "' and '" + TextBox3.Text.Trim() + "'"ElseResponse.Write("<script>window.alert('请选择一项!');</script>")Exit SubEnd IfTryconn.Open()Dim sqlcmd As SqlCommand = New SqlCommand(sql, conn)Dim objectreader As SqlDataReaderDim i As IntegerDim fw As Stringobjectreader = sqlcmd.ExecuteReader()fw = "<table border=2>"fw += "<tr>"For i = 0 To objectreader.FieldCount - 1fw += "<td>" + objectreader.GetName(i) + "</td>"Nextfw += "</tr>"While objectreader.Read()fw += "<tr>"For i = 0 To objectreader.FieldCount - 1fw += "<td>" + CStr(objectreader.GetValue(i)) + "</td>"Nextfw += "</tr>"End Whilefw += "</table>"Label1.Text = fwCatch ex As ExceptionResponse.Write("<script>window.alert('连接数据库失败');</script>")End Tryconn.Close()End SubEnd Class5、注册页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="uzc.aspx.vb" Inherits="fgpwdaspx" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body><center><h2>用户注册</h2><form id="form1" runat="server"><asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label><asp:TextBox ID="idtext" runat="server"></asp:TextBox><br/><br/><asp:Button ID="yzid" runat="server" Text="验证用户名"/><br/><br/><asp:Label ID="Label2" runat="server" Text="密码:"></asp:Label><asp:TextBox ID="pwdtext1" runat="server" textmode="password"></asp:TextBox><br/><br/><asp:Label ID="Label3" runat="server" Text="密码:"></asp:Label><asp:TextBox ID="pwdtext2" runat="server" textmode="password"></asp:TextBox><br/><br/><asp:Button ID="login" runat="server" Text="提交" /><br/><br/></form></center></body></html>后台代码:Imports System.Data.SqlClientImports System.DataPartial Class fgpwdaspxInherits System.Web.UI.PageProtected Sub yzid_Click(sender As Object, e As EventArgs) Handles yzid.ClickDim id As String = idtext.Text.Trim()Dim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "select * from [User] where id = '" + id + "'"Tryconn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn) If sqlcom.ExecuteScalar() <> Nothing ThenResponse.Write("<script>alert('此用户名已存在!')</script>")ElseResponse.Write("<script>alert('恭喜此用户名可用!')</script>")End Ifconn.Close()If conn.State = ConnectionState.Open Thenconn.Close()End IfCatch ex As ExceptionEnd TryEnd SubProtected Sub login_Click(sender As Object, e As EventArgs) Handles login.ClickDim id As String = idtext.Text.Trim()Dim ptext1 As String = pwdtext1.Text.Trim()Dim ptext2 As String = pwdtext2.Text.Trim()If (ptext1 = ptext2) ThenDim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "INSERT INTO [User] (id,pwd) values ('" + id + "','" + ptext1 + "')"conn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn) sqlcom.ExecuteNonQuery()Session.Add("login_name", id)conn.Close()Response.Write("<script>alert('注册成功!');window.location.href ='user.aspx'</script>")If conn.State = ConnectionState.Open Thenconn.Close()End IfElse : Response.Write("<script>alert('两次密码输入不同!')</script>")End IfEnd SubEnd Class6、发布信息页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="fatie.aspx.vb" Inherits="fatie" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body><center><h2>房屋出租发布</h2><form id="form1" runat="server"><center><asp:Label ID="Label1" runat="server" Text="房屋类型:"></asp:Label><asp:DropDownList ID="DropDownList1" runat="server"><asp:ListItem Selected="True" Value="套房"></asp:ListItem> <asp:ListItem Value="单间"></asp:ListItem></asp:DropDownList><br/><br/><asp:Label ID="Label2" runat="server" Text="所在街道:"></asp:Label><br/><asp:TextBox ID="TextBox2" runat="server" Height="87px" Width="262px" TextMode="MultiLine" style="margin-left: 0px"></asp:TextBox><br/><br/><asp:Label ID="Label3" runat="server" Text="定价:"></asp:Label><asp:TextBox ID="TextBox3" runat="server" Width="157px"></asp:TextBox><asp:Label ID="Label4" runat="server" Text="元"></asp:Label><br/><br/><asp:Button ID="Button1" runat="server" Text="发布" /><br/><br/></form></center></body></html>后台代码:Imports System.Data.SqlClientImports System.DataPartial Class fatieInherits System.Web.UI.PageProtected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickDim id As String = Session("login_name")Dim zt As String = DropDownList1.Text.Trim()Dim nr As String = TextBox2.Text.Trim()Dim jq As String = TextBox3.Text.Trim()If (zt <> Nothing And nr <> Nothing And jq <> Nothing) Then Dim conn As New SqlConnection("server=.;database=fwcz;uid=sa;pwd=91569;")Dim sqltext As String = "INSERT INTO [Fw] (id,类型,街道,价格) values ('" + id + "','" + zt + "','" + nr + "','" + jq + "')" conn.Open()Dim sqlcom As SqlCommand = New SqlCommand(sqltext, conn) sqlcom.ExecuteNonQuery()conn.Close()Response.Write("<script>alert('发布成功!');window.location.href ='user.aspx'</script>")If conn.State = ConnectionState.Open Thenconn.Close()End IfElse : Response.Write("<script>alert('不可为空!')</script>")End IfEnd SubEnd Class7、聊天室页面前端代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="chat.aspx.vb" Inherits="chat" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title><link href="css.css" rel="stylesheet" type="text/css" /></head><body><center><h1>聊天室</h1><form id="form1" runat="server"><asp:TextBox ID="TextBox1" runat="server" Height="248px" Width="444px" TextMode="MultiLine"></asp:TextBox><br /><br /><asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label><asp:TextBox ID="TextBox2" runat="server" Height="17px" Width="365px"></asp:TextBox><br /><br /><asp:Button class="Btn" ID="Button1" runat="server" Text=" 发送"></asp:Button></form></center></body></html>后台代码:<% Page Language="VB" AutoEventWireup="false" CodeFile="fatie.aspx.vb" Inherits="fatie" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body><center><h2>房屋出租发布</h2><form id="form1" runat="server"><center><asp:Label ID="Label1" runat="server" Text="房屋类型:"></asp:Label><asp:DropDownList ID="DropDownList1" runat="server"><asp:ListItem Selected="True" Value="套房"></asp:ListItem> <asp:ListItem Value="单间"></asp:ListItem></asp:DropDownList><br/><br/><asp:Label ID="Label2" runat="server" Text="所在街道:"></asp:Label><br/><asp:TextBox ID="TextBox2" runat="server" Height="87px"。
ASP课程设计实验报告

《编程》课程设计任务书设计题目:基于的综合性网站的设计系别:计算机科学系专业:广播电视新闻学(数媒)班级:数媒084姓名:曾奕薇学号:200880144424指导老师:程铭完成日期:2011年06月29日目录一.课设目的.................................................................................. 错误!未定义书签。
二、设计内容.................................................................................. 错误!未定义书签。
三、具体要求…………………………………………………………四、设计环境.................................................................................. 错误!未定义书签。
五、课程设计时间安排.................................................................. 错误!未定义书签。
六、设计过程(详细设计).......................................................... 错误!未定义书签。
1、制作过程流程图展示…………………………………………………………2、数据库设计............................................................................... 错误!未定义书签。
3、留言本界面设计....................................................................... 错误!未定义书签。
学生管理系统asp课程设计报告1

课程设计任务书题目:学生信息管理系统设计与实现学号***********姓名*****专业信息管理课程程序设计案例教程指导教师*** 职称讲师完成时间:20 11 年11月----20 11 年12月枣庄学院计算机科学系制课程设计任务书及成绩评定目录1.前言 (1)1.1开发工具的介绍 (1)1.2程序设计思想 (1)2.需求分析 (1)2.1学生信息管理系统概述 (1)2.1.1 项目目的与目标................................................................................... 错误!未定义书签。
2.1.2 系统可行性结论 (2)2.2系统用户分析 (2)2.3UML用况图建模 (2)2.4功能需求分析 (3)2.5其他用户需求: (3)2.6目标系统假设与约束条件 (3)2.6.1 硬件环境 (3)2.6.2 软件环境 (4)2.7参考资料 (4)3.概要设计 (4)3.1系统模块设计 (4)3.2数据库设计 (4)3.3数据库物理设计 (4)4.详细设计: (5)4.1关键步骤和代码 (5)4.1.1 数据库连接配置 (5)4.1.2 系统登录首页 (5)4.1.3 AJAX用户验证功能模块 (6)4.1.4 添加功能模块 (7)4.1.4 编辑和删除功能模块 (7)4.2实现效果 (8)5.实验总结 (9)1.前言1.1 开发工具的介绍 是一种建立在通用语言上的程序构架,能被用于一台Web服务器来建立强大的Web应用程序。
提供许多比现在的Web开发模式强大的优势,使执行效率大幅提高。
是把基于通用语言的程序在服务器上运行。
不像以前的ASP即时解释程序,而是将程序在服务器端首次运行时进行编译,这样的执行效果,当然比一条一条的解释强很多。
Microsoft SQL Server 2005SQL Server是Microsoft公司开发的大型关系数据库管理系统,具有强大的关系数据库创建、开发、设计和管理功能。
ASP NEt课程设计报告模板

3.1.3
本课题的功能模块设计如图3.3所示。
图3.3系统功能模块示意图
3.2
3.3
(此处描述数据库实体间关系E-R图)
3.3.2
第四章
4.1
4.
第
5.1
5.2
5.3
5.4
第六章
第七章
参考文献
第一章
1.1
1.2
1.3
第二章
本课题为实现更加实用的网站,对网站做了详细的系统分析。包括系统的需求分析、对开发用到的关键技术的介绍以及系统的可行性分析。
2.1
本课题为Web应用的信息管理系统,目的在于可以让用户更方便、快捷的发布信息,实现便利、人性化的信息交流平台,支持管理员的后台信息管理。
各个角色的功能需求如下:
普通用户
浏览文章
搜索文章
发表留言、评论
管理员用户
管理文章信息
管理文章分类信息
管理链2.2
2.3
2.3
第三章
3.1
3.1.1
3.1.2
后台业务流程(管理员用户执行操作的流程)如图3.1所示。
图3.1后台管理系统业务流程图
前台业务流程(普通用户执行操作的流程)如图3.2所示。
asp课设报告

课设报告程序设计课程设计要求题目:教务管理系统功能描述:1、学校名称设置2、系部设置:添加、修改、删除系部3、专业设置:添加、修改、删除专业,专业要和系部相关联4、课程设置:和系部、专业关联,添加、修改、删除5、班级管理:添加、修改、删除,和专业关联6、教师设置:教师的基本信息,包括照片、教授课程、授课班级7、学生信息:学生基本信息,包括照片、专业、班级,添加、修改、删除8、学生查询:能够根据条件查询统计出学生,如通过班级、专业、任课教师等查询统计9、班级课表查询:能够通过表格的形式的展示班级课表,参考我校教务系统形式10、教师课表查询:能够显示教师任课的课表,注意一个教师教授多门课程的情况11、教师录入成绩:录入该教师教授课程的成绩,保存后可以将成绩单导出到excel12、学生成绩查询:学生能够查询出自己所有课程的成绩技术要求:1、数据设计合理、规范2、用到常用的的服务器控件3、要用到javascript4、页面美观大方5、代码规范6、运行正常,无明显错误功能实现:(1)系部管理数据绑定dropdownlist:if (!IsPostBack){bind();String sql = "select DepartmentPid,DepartmentName from Department";DataSet ds = new DataSet();ds = DbHelper.Query(sql);DropDownList1.DataSource = ds.Tables[0].DefaultView;DropDownList1.DataTextField = "DepartmentName";DropDownList1.DataValueField = "DepartmentPid";DataBind();}//查询String sql = "select * from Department where DepartmentName='"+DropDownList1.SelectedItem.Text+"'";DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.GridView1.DataSource = ds.Tables[0].DefaultView;this.GridView1.DataBind();删除String sql = "delete from Department whereDepartmentName='"+DropDownList1.SelectedItem.Text+"'";DataSet ds = new DataSet();int cou = DbHelper.ExecuteSql(sql);if (cou > 0)Response.Write("<script>alert('删除成功');</script>");elseResponse.Write("<script>alert('您的选择不存在');</script>");//添加String str = dep.Text;this. DropDownList1.Items.Add(new ListItem(str,str));String sql = "insert intoDepartment(DepartmentPid,DepartmentName,Introduce)values('"+id.Text+"','"+dep.Text+"','"+interduce.Text+"')";//DataSet ds = new DataSet();DataSet ds = new DataSet();int count = DbHelper.ExecuteSql(sql);if(count>0)Response.Write("<script>alert('添加成功');</script>");elseResponse.Write("<script>alert('添加失败');</script>");班级管理:if (!IsPostBack){//入学年份int i;for (i = 1999; i <= DateTime.Now.Year; i++){this.inyear.Items.Add(i.ToString());}String sql = "select MajorPid,MajorName from Major";DataSet ds = new DataSet();ds = DbHelper.Query(sql);major1.DataSource = ds.Tables[0].DefaultView;major1.DataTextField = "MajorName";major1.DataValueField = "MajorPid";DataBind();String sql2 = "select DepartmentPid,DepartmentName from Department";DataSet ds2 = new DataSet();ds2 = DbHelper.Query(sql2);dd.DataSource = ds2.Tables[0].DefaultView;dd.DataTextField = "DepartmentName";dd.DataValueField = "DepartmentPid";DataBind();String sql1 = "select TeacherPid,TeacherName from Teacher";DataSet ds1 = new DataSet();ds1 = DbHelper.Query(sql1);tea.DataSource = ds1.Tables[0].DefaultView;tea.DataTextField = "TeacherName";tea.DataValueField = "TeacherPid";DataBind();bind(); }protected void search_Click(object sender, EventArgs e){//查询String sql = "select * from Class where ClassName='" +this.grade1.Text + "'";DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.gr.DataSource = ds.Tables[0].DefaultView;this.gr.DataBind();}protected void del_Click(object sender, EventArgs e){//删除String str = name.Text;this.grade.Items.Remove(str);String sql = "delete from Class where ClassPid='" +this.grade1.Text + "'";int cou = DbHelper.ExecuteSql(sql);if (cou > 0)Response.Write("<script>alert('删除成功');</script>");elseResponse.Write("<script>alert('您的选择不存在');</script>");}protected void add_Click(object sender, EventArgs e){//添加String str = name.Text;this.grade.Items.Add(new ListItem(str, str));String sql = "insert intoClass(ClassPid,ClassName,MajorPid,InYear,DepartmentPid,TeacherPid) values('" + id.Text + "','" + name.Text + "','" + major1.SelectedItem + "','" + inyear.SelectedItem+"','"+dd.SelectedItem.Value+"','"+tea.SelectedItem.Value+ "')";DataSet ds = new DataSet();ds = DbHelper.Query(sql);int cou = DbHelper.ExecuteSql(sql);if (cou > 0)Response.Write("<script>alert('插入成功');</script>");elseResponse.Write("<script>alert('插入失败');</script>");}学生管理:if (!IsPostBack){bind();int i;for (i = 1999; i <= DateTime.Now.Year; i++){this.inyear.Items.Add(i.ToString());}String sql = "select DepartmentPid,DepartmentName from Department";DataSet ds = new DataSet();ds = DbHelper.Query(sql);dd.DataSource = ds.Tables[0].DefaultView;dd.DataTextField = "DepartmentName";dd.DataValueField = "DepartmentPid";DataBind();String sql1 = "select MajorPid,MajorName from Major";DataSet ds1 = new DataSet();ds1 = DbHelper.Query(sql1);mm.DataSource = ds1.Tables[0].DefaultView;mm.DataTextField = "MajorName";mm.DataValueField = "MajorPid";DataBind();String sql2 = "select ClassPid,ClassName from Class";DataSet ds2 = new DataSet();ds2 = DbHelper.Query(sql2);cc.DataSource = ds2.Tables[0].DefaultView;cc.DataTextField = "ClassName";cc.DataValueField = "ClassPid";DataBind();}protected void chaeck_Click(object sender, EventArgs e){//查询String sql = "select * from Student where 1=1";if (!Spid.Text.Equals("")){sql += " and PID='" + Spid.Text + "'";}else if (!name.Equals(""))sql += " and TeacherName='" + name.Text + "'";DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.GridView1.DataSource = ds.Tables[0].DefaultView;this.GridView1.DataBind();}protected void add_Click(object sender, EventArgs e){//添加String filename1 = (String)Session["filename"];String sql = "insert intoStudent(PID,StuName,StuCode,IDCardNo,Province,City,DepartmentName, MajorName,ClassPid,Inyear,PicPath) values('" + Spid.Text + "','" +name.Text + "','" + xuehao.Text + "','" + idcard.Text + "','" +Pp.SelectedItem.Text +"','"+city.SelectedItem.Text+"','" +dd.SelectedItem.Value + "','" + mm.SelectedItem.Value +"','"+cc.SelectedItem.Text+"','" + inyear.SelectedItem.Text + "','" + filename1 + "')";DataSet ds = new DataSet();int cou = DbHelper.ExecuteSql(sql);if (cou > 0)Response.Write("<script>alert('插入成功');</script>");elseResponse.Write("<script>alert('插入失败');</script>");}protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e){//数据绑定if (e.Row.RowType == DataControlRowType.DataRow){int indexid = e.Row.RowIndex + 1;//e.Row.Cells[0].Text = indexid.ToString();Label lb = e.Row.Cells[1].FindControl("Label1") as Label;lb.Text = indexid.ToString();}}protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e){//页面分页显示this.GridView1.PageIndex = e.NewPageIndex;bind();}protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e){//gridview中的删除修改操作if (mandName == "del"){string id = mandArgument.ToString();String sql = "delete from Student where 1=1";if (!Spid.Text.Equals("")){sql += " PID='" + Spid.Text + "'";}else if (!name.Equals(""))sql += " and StuName='" + name.Text + "'";//按性别查找int row = DbHelper.ExecuteSql(sql);if (row > 0){Response.Write("<script>alert('删除成功');</script>");bind();}else{Response.Write("<script>alert('删除失败');</script>");}}}protected void Button3_Click(object sender, EventArgs e){//功能实现图片上传if (fl.HasFile){string filename = fl.FileName;string ext = "";int k = stIndexOf('.');ext = filename.Substring(k);if (ext.Equals(".jpg")){int size = fl.PostedFile.ContentLength;if (size > 1024 * 1024){Response.Write("<script>alert('太大了照片');</script>");}else{string filename1 =DateTime.Now.ToString("yyyyMMddhhmmss") + ext;string path = Server.MapPath(@"~\school/upload") + "\\" + filename1;fl.SaveAs(path);Session["filename1"] = filename1;im.ImageUrl = @"~/school/upload\\" + filename1;}}}}protected void lbDel_Click(object sender, EventArgs e){String sql = "delete from Student where 1=1";if (!Spid.Text.Equals("")){sql += " PID='" + Spid.Text + "'";}else if (!name.Equals(""))sql += " and StuName='" + name.Text + "'";DataSet ds = new DataSet();int cou = DbHelper.ExecuteSql(sql);if (cou > 0)Response.Write("<script>alert('删除成功');</script>");elseResponse.Write("<script>alert('删除失败');</script>");}protected void Button1_Click(object sender, EventArgs e){Response.Redirect("../Default.aspx");}//protected void Pp_SelectedIndexChanged(object sender, EventArgs e)//{// this.city.Items.Clear();// String str = Pp.SelectedItem.Text;// if (str == "河北省")// {// this.city.Items.Add("石家庄");// this.city.Items.Add("秦皇岛");// this.city.Items.Add("沧州");// this.city.Items.Add("廊坊");// this.city.Items.Add("保定");// this.city.Items.Add("邢台");// this.city.Items.Add("衡水");// }// else if (str == "山东省")// {// this.city.Items.Add("济南");// this.city.Items.Add("菏泽");// this.city.Items.Add("青岛");// }// else if (str == "北京")// {// this.city.Items.Add("朝阳区");// this.city.Items.Add("昌平");// this.city.Items.Add("海淀");// }// else if (str == "上海")// {// this.city.Items.Add("虹桥");// this.city.Items.Add("浦东");// this.city.Items.Add("浦西");// }//}protected void Pp_SelectedIndexChanged1(object sender, EventArgs e) {this.city.Items.Clear();String str = Pp.SelectedItem.Value;if (str == "河北省"){this.city.Items.Add("石家庄");this.city.Items.Add("秦皇岛");this.city.Items.Add("沧州");this.city.Items.Add("廊坊");this.city.Items.Add("保定");this.city.Items.Add("邢台");this.city.Items.Add("衡水"); }else if (str == "山东省"){this.city.Items.Add("济南");this.city.Items.Add("菏泽");this.city.Items.Add("青岛"); }else if (str == "北京"){this.city.Items.Add("朝阳区");this.city.Items.Add("昌平");this.city.Items.Add("海淀"); }else if (str == "上海"){this.city.Items.Add("虹桥");this.city.Items.Add("浦东");this.city.Items.Add("浦西");}}protected void city_SelectedIndexChanged(object sender, EventArgs e) {this.county.Items.Clear();String str = this.city.SelectedItem.Text;if (str == "石家庄"){this.county.Items.Add("辛集");this.county.Items.Add("新乐");this.county.Items.Add("行唐");}else if (str == "沧州"){this.county.Items.Add("泊头");this.county.Items.Add("吴桥");this.county.Items.Add("沧县");this.county.Items.Add("沧州");this.county.Items.Add("青县");this.county.Items.Add("孟村");}else if (str == "廊坊"){this.county.Items.Add("廊坊");this.county.Items.Add("大城");this.county.Items.Add("广阳区");this.county.Items.Add("安次区");}else if (str == "保定"){this.county.Items.Add("定州");this.county.Items.Add("保定");this.county.Items.Add("涞水");}else if (str == "衡水"){this.county.Items.Add("武邑");this.county.Items.Add("衡水");}if (str == "济南"){this.county.Items.Add("1");this.county.Items.Add("2");}else if (str == "青岛"){this.county.Items.Add("3");this.county.Items.Add("4");}else if (str == "菏泽"){this.county.Items.Add("5");this.county.Items.Add("6");}}教师管理:protected void check_Click(object sender, EventArgs e){//查询String sql = "select * from Teacher where 1=1";if (!Tpid.Text.Equals("")){sql += " and TeacherPid='" + Tpid.Text + "'";}else if (!Tname.Equals(""))sql += " and TeacherName='" + Tname.Text + "'";DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.GridView1.DataSource = ds.Tables[0].DefaultView;this.GridView1.DataBind();}protected void add_Click(object sender, EventArgs e){//添加String filename1 = (String)Session["filename"];String sql = "insert intoTeacher(TeacherPid,TeacherName,DepartmentPid,CoursePid,Tel,Introduce, pic) values('" + Tpid.Text + "','" + Tname.Text + "','" + dd.SelectedItem + "','" + Cpid.SelectedItem + "','" + tel.Text + "','" + intro.Text + "','" + filename1 + "')";DataSet ds = new DataSet();int cou = DbHelper.ExecuteSql(sql);if (cou > 0)Response.Write("<script>alert('插入成功');</script>");elseResponse.Write("<script>alert('插入失败');</script>");}protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e){this.GridView1.PageIndex = e.NewPageIndex;bind();}protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e){//删除if (mandName == "del"){string id = mandArgument.ToString();String sql = "delete from Teacher where 1=1";if (!Tpid.Text.Equals("")){sql += " and CoursePid='" + Tpid.Text + "'";}else if (!Tname.Equals(""))sql += " and CourseName='" + Tname.Text + "'";//按性别查找int row = DbHelper.ExecuteSql(sql);if (row > 0){Response.Write("<script>alert('删除成功');</script>");bind();}else{Response.Write("<script>alert('删除失败');</script>");}}}/图片上传if (fl.HasFile){string filename = fl.FileName;string ext = "";int k = stIndexOf('.');ext = filename.Substring(k);if (ext.Equals(".jpg")){int size = fl.PostedFile.ContentLength;if (size > 1024 * 1024){Response.Write("<script>alert('太大了照片');</script>");}else{string filename1 =DateTime.Now.ToString("yyyyMMddhhmmss") + ext;string path = Server.MapPath(@"~\school/upload") + "\\" + filename1;fl.SaveAs(path);Session["filename1"] = filename1;im.ImageUrl = @"~/school/upload\\" + filename1;}}}课表查询:if (!IsPostBack){//数据绑定//GridView GridView1=sender as GridView;bind();String sql2 = "select DepartmentPid,DepartmentName from Department";DataSet ds2 = new DataSet();ds2 = DbHelper.Query(sql2);department.DataSource = ds2.Tables[0].DefaultView;department.DataTextField = "DepartmentName";department.DataValueField = "DepartmentPid";DataBind();String sql = "select MajorPid,MajorName from Major";DataSet ds = new DataSet();ds = DbHelper.Query(sql);major.DataSource = ds.Tables[0].DefaultView;major.DataTextField = "MajorName";major.DataValueField = "MajorPid";DataBind();}}private void bind(){String str=(String)Session["username"];SqlConnection conn = new SqlConnection();// String sql = "select * from CoursePlan";String sql = "selectCoursePlanPid,Course,Week,Unit,Location,ClassName,TeacherName from CoursePlan,Course where PID=(select PID from ClassToTeacherToCourse "+" where CourseToTeacherPid=(select CourseToTeacherPid from CourseToTeacher where CoursePid=(select CoursePid from Course "+ " where MajorPid=(select MajorPid from Class where ClassPid=(select ClassPid from Student where StuName='"+str+"'))))) and MajorPid=(select MajorPid from Class"+" where ClassPid=(select ClassPid from Student where StuName='" + str + "'))"; DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.GridView1.DataSource = ds.Tables[0].DefaultView;this.GridView1.DataBind();}//教师查询课表String sql = "selectTeacherName,ClassName,Week,Unit,Location,CourseName from CoursePlan where 1=1";//and CoursePlan.CoursePid=Course.CoursePid";if (!this.department.SelectedItem.Equals("请选择系别"))sql += "where ClassName=(select ClassName from Class where DepartmentPid=(select DepartmentPid from Department where DepartmentName='"+this.department.SelectedItem.Text+"'))'";else if (!this.major.SelectedItem.Equals("请选择专业"))sql += "where ClassName=(select ClassName from Class where MajorPid=(select MajorPid from Department where MajorName='" + this.major.SelectedItem.Text + "'))'";else if (!this.grade.SelectedItem.Equals("请选择班级"))sql += "where ClassPid='" + this.grade.SelectedItem + "'";else if (!this.department.SelectedItem.Equals("请选择系别")&& !this.major.SelectedItem.Equals("请选择专业")&& !this.grade.SelectedItem.Equals("请选择班级"))sql = "";SqlConnection con = new SqlConnection();DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.GridView1.DataSource = ds.Tables[0].DefaultView;this.GridView1.DataBind();成绩录入:if (!IsPostBack){bind();String sql = "select PID,StuName from Student";DataSet ds = new DataSet();ds = DbHelper.Query(sql);Stupid.DataSource = ds.Tables[0].DefaultView;Stupid.DataTextField = "StuName";//Stupid.DataTextField = "PID";Stupid.DataValueField = "PID";DataBind();String sql1 = "select ClassPid,ClassName from Class";DataSet ds1 = new DataSet();ds1 = DbHelper.Query(sql1);mm.DataSource = ds1.Tables[0].DefaultView;mm.DataTextField = "ClassName";mm.DataValueField = "ClassPid";DataBind();String sql2 = "select CoursePid,CourseName from Course";DataSet ds2 = new DataSet();ds2 = DbHelper.Query(sql2);CourN.DataSource = ds2.Tables[0].DefaultView;CourN.DataTextField = "CourseName";CourN.DataValueField = "CoursePid";DataBind();}//成绩添加String sql = " insert into Score(PID,StuPid,ClassPid,CourseName,score) values('"+Sid.Text+"','"+Stupid.SelectedItem+"','"+mm.SelectedItem+"','"+ CourN.SelectedItem+"','"+score.Text+"')";DataSet ds = new DataSet();int cou = DbHelper.ExecuteSql(sql);if(cou>0)Response.Write("<script>alert('插入成功');</script>");elseResponse.Write("<script>alert('插入失败');</script>"); 成绩查询:if (!IsPostBack){bind();String sql = "select DepartmentPid,DepartmentName from Department";DataSet ds = new DataSet();ds = DbHelper.Query(sql);dd.DataSource = ds.Tables[0].DefaultView;dd.DataTextField = "DepartmentName";dd.DataValueField = "DepartmentPid";DataBind();String sql1 = "select MajorPid,MajorName from Major";DataSet ds1 = new DataSet();ds1 = DbHelper.Query(sql1);mm.DataSource = ds1.Tables[0].DefaultView;mm.DataTextField = "MajorName";mm.DataValueField = "MajorPid";DataBind();String sql2 = "select ClassPid,ClassName from Class";DataSet ds2 = new DataSet();ds2 = DbHelper.Query(sql2);cc.DataSource = ds2.Tables[0].DefaultView;cc.DataTextField = "ClassName";cc.DataValueField = "ClassPid";DataBind();}/ String sql = "select * from Score whereClassPid='"+cc.SelectedItem.Text+"'";String sql = "select * from Score where 1=1 and ClassPid=(select ClassPid from Class where DepartmentPid=(select DepartmentPid from Department where DepartmentName='" + this.department.SelectedItem + "')) and ClassPid=(select ClassPid from Class where MajorPid=(select MajorPid from Major where MajorName='" + this.major.SelectedItem.Text+ "')) and ClassPid='"+ this.grade.SelectedItem + "'";and CoursePlan.CoursePid=Course.CoursePid";if (!this.department.SelectedItem.Equals("请选择"))sql += "where ClassPid=(select ClassPid from Class where DepartmentPid=(select DepartmentPid from Department where DepartmentName='" + this.department.SelectedItem + "'))' and where TeacherName='(select ClassToTeccherToCoursePid from ClassToTeccherToCourse where CourseToTeacherPid=(select CourseToTeacherPid from CourseToTeacher where TeacherPid=(select TaecherPid from Teacher where TeacherName='"+str+"' )))";sql += "and ClassPid=(select ClassPid from Class where DepartmentPid=(select DepartmentPid from Department where DepartmentName='" + this.department.SelectedItem + "')) andClassPid=(select ClassPid from Class where MajorPid=(select MajorPid from Major where MajorName='" + this.major.SelectedItem.Text+ "')) and ClassPid='"+ this.grade.SelectedItem + "'";if (!this.major.SelectedItem.Equals("请选择专业"))sql += "and ClassPid=(select ClassPid from Class where MajorPid=(select MajorPid from Major where MajorName='" +this.major.SelectedItem.Text+ "'))";else if (!this.grade.SelectedItem.Equals("请选择班级"))sql += "and ClassPid='"+ this.grade.SelectedItem + "'";else if (!this.department.SelectedItem.Equals("请选择系别")&& !this.major.SelectedItem.Equals("请选择专业")&& !this.grade.SelectedItem.Equals("请选择班级"))sql = "";SqlConnection con = new SqlConnection();DataSet ds = new DataSet();ds = DbHelper.Query(sql);this.GridView1.DataSource = ds.Tables[0].DefaultView;this.GridView1.DataBind();}遇到问题:1、在对应的dropdownlist中对应数据,以数据绑定的形式显示?解决:通过问同学,用dropdownlist.datasource、dropdownlist.dataText、dropdownlist.dataValue的方式来绑定和显示2、图片上传路径问题及显示解决:通过查资料,和同学交流中解决,首先解决图片的名称问题,存储格式,然后再用session的形式保留显示3、一些特效的添加方法或CSS样式,通过问老师解决。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
A S P.N E T
课程设计报告
设计题目:学生选课系统设计系(部):信息科学系
专业:计算机科学与技术学生姓名:
学号:
一、设计任务
设计一个学生选课系统。
基本要求:
1、有母板页和内容页,母板页包含Logo、导航、搜索、版权信息(学号姓名)
2、至少两种页面主题
3、实现基本系统功能
4、人员/会员管理,要实现增删查改
5、具体的题目要体现特色
6、其他扩展功能(加分项)
基本系统功能:
实现人员/物品信息增删查改、站内信息、人员管理
二、任务分工
三、需求分析
3.1 学生需求分析
学生可以登录到系统,如果还没有账户,首先注册账户,或者在学生登失败时提醒注册账户。
学生登录到系统后可以查看有关课程、自己的信息、已选课信息,查收收到的信息,修改自己的信息(包括登录密码、联系方式等),学生可以选课、听课、下载资料、上传问题等。
3.2 教师需求分析
教师可以登录到系统,如果还没有账户,首先注册账户,或者在教师登失败
时提醒先注册账户。
教师登录系统后,可以向管理员申请注册新的授课信息,查看自己授课信息。
3.3 管理员需求分析
管理员可以登录到系统,注册账号,删除学生和教师的账户信息,安排本系统可以进行的课程,发布公告,推荐最新课程等。
四、 总体设计
4.1 系统的功能模块图
图1 系统功能框图
系统的总体功能如图1所示,……(简单说明)
4.2重要功能的流程图 4.2.1 XXX 功能流程图
后台主要包括商品管理、订单管理以及用户等信息管理,包括对用户评论的回复,其业务流程如图2所示。
选课系统
学生 教师 管理员
注册账户 修改信息 网上选课 上课 注册账户 修改信息 申请授课
发放资料
注册账户
修改信息
修改、删除学生或老师信息
交流界面 交流界面
图2 后台管理主要流程图
4.2.2 XXX
……
五、系统详细设计
5.1 系统的数据库设计
在图书管理系统中,一本书只能被一个同学借出,一个用户可以多次登录,但只能注册一次,因此,图书管理系统设计的对象有同学,借书,书本信息。
图书管理系统中有2个表需要建立。
5.1.1 数据库表的详细设计
用户表(student),包括学生编号(sno)、学生账号(users)、密码(pass)
、姓名(sname)、性别(sex)、年龄(age)、地址(address)、电话(tell)、管理员(Role)。
图书表,包括图书编号(bid)、图书号(bno)、图书名(bname)、作者(writer)、价格(money)、借出(lend)。
(1)用户表
包括编号、账号、密码、姓名、年龄、性别、地址、联系电话、家庭住址,用于存储用户的主要信息,可以通过前台对学生表数据进行增加、删除、修改、查询操作。
用户的主键是users(用户账号)。
用户表是本数据库的重要信息表,用户表如表1所示。
(2)图书表
包括图书编号、图书号、图书名、作者、价格等。
用于图书的主要信息,可以通过前台对图书表数据进行增加、删除、修改、查询操作。
图书表的主键是bno(图书号),图书表是本数据库的重要信息表,图书表如表2所示。
5.1.2 数据库表ER图
5.2 关键代码(忌贴大段代码,请给出代码后简单说明思路)
5.2.1 母版页主要代码
5.2.2 主题部分主要代码
5.2.3 ……
(如定义一个特殊的类,用于实现数据库的读写操作,或其他认为有必要说明的代码)
六、系统的实现(截图并简要说明)
6.1 网站首页
6.2 学生选课界面
6.3 老师发布选课信息主要界面
6.4 选课信息确定界面
七、设计实现过程中遇到的问题及措施
附:系统源程序(以“学号姓名—系统题目.rar”命名)。