为了正常的体验网站,请在浏览器设置里面开启Javascript功能!
首页 > 家教信息管理系统—计算机毕业设计(论文)

家教信息管理系统—计算机毕业设计(论文)

2017-11-14 50页 doc 478KB 14阅读

用户头像

is_807289

暂无简介

举报
家教信息管理系统—计算机毕业设计(论文)家教信息管理系统—计算机毕业设计(论文) 家教信息管理系统 目录 摘要„„„„„„„„„„„„„„„„„„„„„„„„„„„„„„„1 第1章 前言„„„„„„„„„„„„„„„„„„„„„„„„„ 2 第2章 编程环境基础知识„„„„„„„„„„„„„„„„„ 3 2.1 ASP简介………………………………………………………………… 3 2.2IIS简介………………………………………………………………… 4 2.3数据库系统简介……………………………………………………… 4 2.3.1数据库…………………………………...
家教信息管理系统—计算机毕业设计(论文)
家教信息管理系统—计算机毕业设计(论文) 家教信息管理系统 目录 摘要„„„„„„„„„„„„„„„„„„„„„„„„„„„„„„„1 第1章 前言„„„„„„„„„„„„„„„„„„„„„„„„„ 2 第2章 编程环境基础知识„„„„„„„„„„„„„„„„„ 3 2.1 ASP简介………………………………………………………………… 3 2.2IIS简介………………………………………………………………… 4 2.3数据库系统简介……………………………………………………… 4 2.3.1数据库………………………………………………………………… 4 2.3.2数据库管理系统……………………………………………………… 4 4 2.3.3数据模型……………………………………………………………… 第3章 需求分析………………………………………………………… 5 3.1功能需求………………………………………………………………… 5 3.2系统运行环境………………………………………………………… 5 3.3 功能需求描述………………………………………………………… 5 第4章 总体设计………………………………………………………… 6 4.1系统模块结构设计…………………………………………………… 6 4.1.1网站与网站目录……………………………………………………6 4.1.2 开发与设计的总体思想……………………………………………… 7 4.1.3系统功能设计……„„„„„„„„„„„„„„„„„„„„ 7 4.2数据库设计„„„„„„„„„„„„„„„„„„„„„„„„ 7 4.3数据库的实现„„„„„„„„„„„„„„„„„„„„„„„7 第5章 详细设计„„„„„„„„„„„„„„„„„„„„„„ 14 5.1家教信息管理系统首页„„„„„„„„„„„„„„„„„ 12 5.1.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„ 12 „„„„„„„„„„„„„„„„„„„„„„„„ 12 5.1.2 IPO图 5.1.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„„ 12 12 5.1.4界面设计„„„„„„„„„„„„„„„„„„„„„„„ 5.1.5程序的设计与实现„„„„„„„„„„„„„„„„„„„ 12 5.2家教注册模块 5.2.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„ 15 5.2.2 IPO图„„„„„„„„„„„„„„„„„„„„„„„„„15 5.2.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„„15 5.2.4界面设计„„„„„„„„„„„„„„„„„„„„„„„„16 5.2.5程序的设计与实现„„„„„„„„„„„„„„„„„„„„16 5(3学生注册模块„„„„„„„„„„„„„„„„„„„„„„ 21 5.3.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„21 5.3.2 IPO图„„„„„„„„„„„„„„„„„„„„„„„„„21 5.3.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„ 21 5.3.4界面设计„„„„„„„„„„„„„„„„„„„„„„„„ 22 5.3.5程序的设计与实现„„„„„„„„„„„„„„„„„„„„ 22 5.4家教信息浏览模块„„„„„„„„„„„„„„„„„„„„28 5.4.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„28 5.4.2 IPO图„„„„„„„„„„„„„„„„„„„„„„„„„28 5.4.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„„28 5.4.4界面设计„„„„„„„„„„„„„„„„„„„„„„„„29 5.4.5程序的设计与实现„„„„„„„„„„„„„„„„„„„„29 5.5学生信息浏览模块„„„„„„„„„„„„„„„„„„„„31 5.5.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„31 5.5.2 IPO图„„„„„„„„„„„„„„„„„„„„„„„„„31 5.5.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„„31 5.5.4界面设计„„„„„„„„„„„„„„„„„„„„„„„„32 5.5.5程序的设计与实现„„„„„„„„„„„„„„„„„„„„32 5.6家教个人管理模块„„„„„„„„„„„„„„„„„„„„35 5.6.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„35 5.6.2 IPO图„„„„„„„„„„„„„„„„„„„„„„„„„35 5.6.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„„35 5.6.4界面设计„„„„„„„„„„„„„„„„„„„„„„„„36 5.6.5程序的设计与实现„„„„„„„„„„„„„„„„„„„„36 5.7 信息检索模块„„„„„„„„„„„„„„„„„„„„„„46 5.7.1功能描述„„„„„„„„„„„„„„„„„„„„„„„„46 5.7.2 IPO图„„„„„„„„„„„„„„„„„„„„„„„„„46 5.7.3名称、标识 、使用的文件或数据库„„„„„„„„„„„„„46 5.7.4界面设计„„„„„„„„„„„„„„„„„„„„„„„„47 5.7.5程序的设计与实现„„„„„„„„„„„„„„„„„„„„49 第6章 测试和维护„„„„„„„„„„„„„„„„„„„„ 49 6.1测试方法„„„„„„„„„„„„„„„„„„„„„„„„„ 49 6.2系统维护„„„„„„„„„„„„„„„„„„„„„„„„„ 49 结束语„„„„„„„„„„„„„„„„„„„„„„„„„„„„ 50 致谢„„„„„„„„„„„„„„„„„„„„„„„„„„„„„„50 参考文献„„„„„„„„„„„„„„„„„„„„„„„„„„„50 摘要 【论文摘要】我使用MACROMEDIA公司的Dreamweaver MX制作页面,用VB开发语言做连接数据库的程序,使用ACCESS制作系统的数据库,做一个具有学生注册、家教注册、学生信息、家教信息、学生信息管理、家教信息管理、信息检索功能的小型的网站信息管理系统。 根据网站信息管理系统的开发为背景,论述了整个系统的开发过程,系统的结构及系统开发的基本原理和方法。全系统共分前言、编程环境基础知识、 需求分析 、系统设计、系统实施、系统运行及维护、开发总结等几章。详细论述了需求分析、系统设计的技术及应用、系统的功能等内容。 【关键词】家教信息 管理 系统设计 ASP 第一章 前言 Internet是目前世界上最大的计算机互联网络,它遍布全球,将世界各地各种规模的网络连接成一个整体。作为Internet上一种先进的,易于被人们所 Wide Web(简称WWW)发展十分迅速,成为目前世界接受的信息检索手段,World 上最大的信息资源宝库。据估计,目前Internet上已有上百万个Web站点,其内容范围跨越了教育科研、文化事业、金融、商业、新闻出版、娱乐、体育等各个领域,其用户群十分庞大,因此,建设一个好的Web站点对于一个机构的发展十分重要。近年来,随着网络用户要求的不断提高及计算机科学的迅速发展,特别是数据库技术在Internet中的广泛应用,Web站点向用户提供的服务将越来越丰富,越来越人性化。 在Internet飞速发展的今天,互联网成为人们快速获取、发布和传递信息的重要渠道,它在人们政治、经济、生活等各个方面发挥着重要的作用.因此网站建设在Internet应用上的地位显而易见,它已成为政府、企信息化建设中的重要组成部分,从而倍受人们的重视。本系统为家教服务提供一个交流的平台,使学生能够在本系统中找到适合自己的家教,也使有做家教意愿的人群能够发布自己的简历。 要实现这样的功能,离不开后台数据库的支持。用户验证信息,收集到的用户点击信息,主题层次信息,分析得出的关联表等大量的数据都由数据库管理系统管理。本文中数据库服务器采用了Microsoft Access数据库作为ODBC(Open DataBase Connectivity )数据源,并以先进的ADO(ActiveX Data Objects)技术进行数据库存取等操作,使Web与数据库紧密联系起来。 整个个性化页面生成系统主要由使用Dreamweaver_MX开发的关联采掘系统和利用IIS+ASP技术实现的个性化Web页面生成器两部分组成。关联规则采掘系统对数据库中的历史记录进行分析,产生用户关联规则表;页面生成器则负责记录用户行为和根据关联表动态生成用户个性化Web页面。二者通过数据库服务器和Web服务器连接。 本文作者主要完成Web服务器端的学生注册、家教注册、学生信息、学生信息浏览、家教信息浏览、信息检索功能模块的设计。实现与完善以及整个实验网站的组织建立和测试工作。 第二章 编程环境基础知识 2(1 ASP简介 A S P Microsoft Active Server Pages (ASP)实际上是将标准的H T M L A S P像标准的H T M L文件一样包含H T M L语文件拓展了一些附加特征, 句并且在一个浏览器上解释并显示。但它为H T M L编写人员提供了在服务器端运行脚本的环境,使H T M L编写人员可以利用V B S c r i p t和J S c r i p t或其他第三方脚本语言来创建A S P,实现过去需要编写复杂的C G I程序才能实现的有动态内容的网页,如计数器等。一个A S P文件的后缀为. a s p,其中包含实现动态功能的V B S c r i p t或J S c r i p t语句,如果去掉那些V B S c r i p t或J S c r i p t语句,它和标准的H T M L文件没有任何区别。A S P提供了一些内建对象 。利用这些内建对象,你可以使脚本更加强大;这些对象会允许从浏览器中接收和发送信息。例如,利用r e q u e s t对象,你可以接收用户的H T M L表单中的信息并加以处理。A S P包含标准的A c t i v e X组件 ,这些组件可以实现一些复杂的功能,如使用数据库等. A S P就是由服务器端脚本、对象以及组件拓展过的标准网页并为其提供了运行的环境。而它的网页并不是在建立初期存在的,而是当某个浏览器向它提出请求时,它才根据需要产生所需要的标准网页,这克服了过去H T M L编写的网页的静态缺点,从而使网页上可以有许多动态的信息存在。如:当前的计算机时间、计数器的计数值等。 A S P是一套服务器端的脚本运行环境,当用户从浏览器向We b服务器请求.asp 文件时, ASP 脚本开始运行,然后Web 服务器调用A S P,A S P全面读取请求的文件,执行所有的脚本命令,并将标准的Web 页传送给浏览器,而并不包含你所写的脚本命令。A S P的每一个命令都首先被用来生成H T M L文件, A S P允许生成动态内容.下载对于Web 服务器来说, A S P与H T M L有着本质的区别, H T M L不经任何处理送回给浏览器另一方面,对于浏览器来说, A S P和H T M L几乎是没有区别的,仅仅是后缀为. a s p和. h t m的区别,当我们在客户端提出对A S P的申请后,我们的浏览器接受的是H T M L格式的文件。因此它根据以上特性,我们用A S P可以方便地实现诸如表格信息收集、计数器、留言簿、板、A S P还可以轻松地实现对页面内容的动态控制,为不同的浏览者定制不同的页面内容 . ASP的内部对象特点:ASP提供了6个功能强大的内部对象,每个对象具有各自的属性(Property)、方法(Method),有的还拥有数据集合(Collection)与事件(Event),它们共同完成Web中的一些重要工作。这6个对象及其功能描述如下表所示: ASP 内部6大对象及其功能 对象名称 功能描述 Request 从客户端取得信息 Response 将信息送给客户端 Server 提供一些Web服务器工具 Session 储存在一个Session内的用户信息,该信息仅可被该用户访问 Application 在一个ASP-Application中让不同的客户端共享信息 ObjectContext 配合Microsoft Transaction服务器进行分布式事务处理 合理地运用这些对象可以使原本复杂,烦琐的工作变得简捷而条理清晰。 2(2IIS简介 Wsb服务器是Web应用程序的心脏。IIS(Internet Information Server)是微软推出的Windows NT Option Pack的主要成员,作为Win2000server的扩展,自推出以来已经有了很大发展,其体系结构是当今市场上最受关注的Web服务器之一。新推出的IIS4.0版本增强了系统安全性,具有服务器端脚本开发调试,内容管理和站点分析,崩溃防护,内置JAVA虚拟机及全面支持ASP等强大功能。 2(3数据库系统简介 2(3(1数据库 数据库是存储在计算机内、有组织、可共享的数据集合。数据库中的数据按一定的数据模型组、描述和存储,具有较少的数据冗余度,较高的数据独立性和可扩展性,并且数据库中的数据可为各种合法用户共享。 2(3(2数据库管理系统 数据库管理系统(Data Manipluation Language,DML)是一个软件系统,主要用来定义和管理数据库,处理数据库与应用等程序之间的联系。数据库管理系统是数据库系统的核心组成部分。它建立在操作系统之上,对数据库进行统一的管理和控制。 2(3(3数据模型 数据模型是对数据的特点及数据之间的和种抽象表示,它包括数据结构、数据操作和完整性约束3部分。主要的数据模型有:网状模型、层次模型和关系模型。 第三章 需求分析 从小学到高中,很多学生家长抱着望子成龙的心态都不遗余力为孩子找合适的家教,而很多在校的大学生也通过当家教增加一点收入,所以开发一个家教信息管理系统,满足双方的需要很有必要的事情. 3(1功能需求 本系统为家教服务提供了一个交流的平台,使学生能够在本系统中找到适合自己的家教,也使有做家教意愿的人群能够发布自己的简历. 系统的功能主要包括: (1) 家教可以注册一个网络昵称发布自己的求职信息以及个人的详细情况. (2) 学生可以注册一个网络昵称发布自己的需求信息以及个人的详细情况. (3) 用户可以分页浏览所有家教发布的求职信息及个人信息. (4) 学生可以分页浏览所有家教发布的需求信息及个人信息. (5) 家教可以登录网站修改自己的求职信息和个人信息. (6) 学生可以登录网站修改自己需求的信息和个人信息. (7) 学生和家长都可以检索信息. 3(2系统运行环境 (1)硬件环境 ?处理器:Intel Pentium III 或更高 ?内存: 256MB ?硬盘空间:10MB ?显卡: SVGA 显示适配器 ?网络配置:宽带网络 (2)软件环境 ?操作系统:Windows 2000/Windows XP ?Web服务器:IIS 5.0 ?数据库:Microsoft Access 2000 ?浏览器:Internet Explorer 5.0 ?编程工具:Dreamweaver MX 2004 3.3 功能需求描述 本系统共分七大模块.功能模块图如下图所示 家教注册模块 学生注册模块 家教信息浏览模块 家教信息管理系 学生信息浏览模块 统 家教个人信息管理模 块 学生个人信息管理模 块 信息检索模块 第四章 总体设计 4(1系统模块结构设计 4.1.1网站内容与网站目录 (1) 网站内容 家教信息管理系统 家教 学生 运动 登注浏信信 登 注 浏 信 信 录 册 览息息 录 册 览息息信管检 信管检息 理 索 息 理索 工 作 修修求求修修需需 改改职职改改求求 密个信信密个信信 码 人息息码 人息息 信发删信发删 息 布 除 息 布 除 (2)网站目录 image db Studentreg.asp Index.asp Studentdetailreg.as student p Dealstudentreg.asp Teacherreg..asp jjgl Teacherreg.asp teacher Dealteacherreg.asp Changepw.asp teacheralter Changepersoninfo.asp Putout.asp Delinfo.asp Tdealsearch.asp search Sdealsearch.asp 4.1.2 开发与设计的总体思想 本系统的功能是为有家教老师需求的人和有做家教愿望的人提供一个交流的网络平台,让这部分人能够更方便地交流。所以本系统采用B/S架构开发设计,只要拥有一个浏览器,任何人都可以在本系统中发布信息、查询信息 4.1.3系统功能设计 (1)家教注册模块 家教注册模块提供了两个表单供家教注册。第一个表单用于填写家教登录网站时需要的昵称和密码,若填写正确则进入第二个表单继续填写个人详细情况,所有必需信息填写完毕后重定向到家教的个人信息管理区,家教可以发布自己的求职信息 (2)学生注册模块 学生注册模块提供了两个表单学生注册。第一个表单用于填写学生登录网站时需要的昵称和密码,若填写正确则进入第二个表单继续填写个人详细情况,所有必需信息填写完毕后则重定向到学生的个人信息管理区,学生可以发布自己的家教需求信息。 (3)家教个人信息管理模块 家教利用注册模块的昵称和密码登录网站,判断无误则进入家教个人信息管理,家教可以 在此修改自己的密码、个人信息、发布求职信息或删除已发布的求职信息。本模块的功 能如图4-1所示: 修改密码 修改个人信息 家教个人信息管理模块 求职信息发布 求职信息删除 图4-1家教个人信息管理模块 (4)学生个人信息管理模块 学生利用注册模块的昵称和密码登录网站,判断无误则进入学生个人信息修改发布区,学生可以在此修改自己的密码、个人信息、发布家教需求信息或删除已发布的需求信息。本模块的各功能结构如图4-2所示: 修改密码 学生个人信息管理模块 修改个人信息 需求信息发布 需求信息删除 -2学生个人信息管理模块 图4 (5)家教信息浏览模块 家教信息模块主要是以表格形式发布家教的求职信息,表格共分三列,分别是“求职信息的内容”、“发布时间”、“发布人”。通过单击“发布人”的超链接可以查看其个人的详细情况。如果求职信息较多,模块提供了分页浏览的功能。 (6)学生信息浏览模块 学生信息模块主要是以表格形式显示学生的家教需求信息,表格共分三列,分别是“需求家教的信息内容”、“发布时间”、“发布人”。通过单击“发布人”的超链接可以查看发布信息的学生的个人详细情况。本模块也提供了分页浏览的功能。 (7)信息检索模块 用户可以通过信息检索模块对学生所发布的家教需求信息、家教所发布的求职信息进行查询。家教信息检索可以通过“讲授科目”、“学历”、“性别”三项进行单一查询或组合查询。而学生信息检索则可以通过“辅导科目”、“学习程度”、“性别”三项进行单一查询或组合查询。查询结果以列表形式显示出来。本模块的子模块示意图如图4-3所示: 学生信息检索子模块 信息检索模块 家教信息检索子模块 图4-3信息检索模块 4(2数据库设计 (1)概念结构设计: 本系统面向的对象是学生用户和家教用户,在数据库需求分析时主要考虑二个方面的需求。家教信息管理功能和学生信息管理功能。 2)逻辑结构设计: ( ?学生注册:包括编号、用户名、密码。 ?学生详细信息:包括编号、用户名、真实姓名、性别、年龄、学习程度、邮箱、电话、住址、寻找家教情况、辅导的科目1、辅导的科目2、详细内容、发布时间。 ?学生发布信息:包括编号、用户名、需求科目、详细内容、发布日期。 家教注册:包括编号、用户名、密码。 ?家教注册:包括编号、用户名、密码。 ?家教详细信息:包括编号、用户名、真实姓名、性别、年龄、身份证、学历文凭、邮箱、电话、住址、 家教的聘用状态、讲授的科目1、讲授的科目2、 备注。 ?家教发布信息:包括编号、用户名、科目类别、详细内容、发布日期。 (3)物理结构设计: 系统数据库为db文件夹下的info.mdb,包括六个表格studentreg、studentdetail、 studentinfo、teacherreg、teacherdetail、teacherinfo。 1(学生注册表(见表4-2-1) 标识:studentreg 用于存储学生登录个人信息管理模块时所需要的用户名和密码。 -2-1 学生注册表 表4 名称 字段名称 类型 主键 编号 Id 自动编号 是 用户名 Snick 文本 否 密码 spass 文本 否 E—R图(图4-2-1) studengreg id snick spass 图4-2-1 2(学生详细信息表(见表4-2-2) 标识:studentdetail。 用于存储学生一些个人信息 表4-2-2 学生详细信息表 名称 字段名称 类型 主键 编号 Id 自动编号 是 用户名 Snick 文本 否 真实姓名 Sname 文本 否 性别 Sex 文本 否 年龄 Age 数字 否 学习程度 Grade 文本 否 邮箱 Email 文本 否 电话 Tele 文本 否 住址 Address 文本 否 寻找家教情况 State 文本 否 辅导的科目1 Tutorship`1 文本 否 辅导的科目2 Tutouship2 文本 否 备注 demo 备注 否 3(学生发布信息表(见表4-2-3) 标识:studentinfo 用于存储学生发布的需求家教信息。 -2-3 学生发布信息表 表4 名称 字段名称 类型 主键 编号 Id 自动编号 是 用户名 Snick 文本 否 需求科目 Needsubject 文本 否 详细内容 Needcontent 文本 否 发布日期 puttime 日期/时间 否 E—R图(图4-2-2) Studentinfo id snick needsubject needcontent puttime 图4-2-2 4(家教注册表(见表4-2-4) 标识:teacherreg 用于存储家教登录个人信息管理模块时所需要的用户名和密码。 表4-2-4学生注册表 名称 字段名称 类型 主键 编号 Id 自动编号 是 用户名 nick 文本 否 密码 pass 文本 否 E—R图(图4-2-3) teacherreg id nick pass 图4-2-3 5(家教详细信息表(见表4-2-5) 标识:teacherdetail。 用于存储家教一些个人信息 表4-2-5 学生详细信息表 名称 字段名称 类型 主键 编号 Id 自动编号 是 用户名 nick 文本 否 真实姓名 name 文本 否 性别 Sex 文本 否 年龄 Age 数字 否 身份证 ipcard 文本 否 邮箱 Email 文本 否 电话 Tele 文本 否 住址 Address 文本 否 家教的聘用状态 State 文本 否 讲授的科目1 subject`1 文本 否 讲授的科目2 subject2 文本 否 备注 demo 备注 否 6.家教发布信息表(见表4-2-6) 标识:studentinfo 用于存储家教发布的需求家教信息。 表4-2-6 学生发布信息表 名称 字段名称 类型 主键 编号 Id 自动编号 是 用户名 nick 文本 否 科目类别 sort 文本 否 详细内容 content 文本 否 发布日期 puttime 日期/时间 否 E—R图(图4-2-4) studentinfo id nick sort content puttime 图4-2-4 第五章 详细设计 5(1家教信息管理系统首页 5(1(1功能描述: 用户可以选择一种身份登录,若选择“家教”,则登录成功进入家教的个人信息管理模块,若选择“学生”,则登录成功进入学生的个人管理模块 5(1(2 IPO图 输入(I):访问系统首页 处理描述(P):?连接info.mdb数据库,查询studentinfot和cherinfo两个表, 将其中数据按时间降序排列; ?分别显示家教和学生的列表页面 输出(O):家教和学生的列表页面 5(1(3名称:系统首页 标识:Index.asp 使用的文件或数据库:Studentinfo和studentinfo 4界面设计 5(1( 图5-1 系统首页界面 5(1(5程序的设计与实现 <% set conn=Server.CreateObject("ADODB.Connection") conn.Open "Dbq=" & Server.Mappath("db/info.mdb") & ";Driver={Micosoft Access Driver (*.mdb)}" StrSql="Select content from teacherinfo order by puttime desc" for i=1 to 5 If rs.Eof then Exit For End If response.Write("
" & rs("content")) rs.MoveNext Next %>
<% strSql1="select needcontent from studentinfo order by puttime desc" Set rs1=conn.Execute(strSql1) For i=1 to 5 If rs.Eof then Exit For End If response.Write("
" & rs1("content")) rs.MoveNext Next %>
登录区
家教 学生
用户:
密码:
<% If Request.Form("login")<>"" then user=Request.Form("user") pw=Request.Form("pw") rd=Request.Form("rd") Set conn=Server.CreateObject(ADODB.Connection) conn.Open "Dbq=" & Server.Mappath("db/info.mdb") & ";Driver={Micosoft Access Driver (*.mdb)}" if rd="家教" then strSql="select * from teacherreg where nick='" & user & "' and pass='" & pw &"' Set rs=conn.Execute(strSql) if rs.EOF then Response.Write("用户名或密码输入错误!") else Session("teacher")=user Response.Redirect("teacheralter.asp") end if Else strSql="select * from studentreg where snick= „" & user & "?and spass=„" & pw & ?"" Set rs=conn.Execute(strSql) if rs.EOF then Response.Write("用户名或密码输入错误!") else Session("student")=user Response.Redirect("stundentalter.asp") end if end if end if %> 5(2家教注册模块 5(2(1功能描述: 家教用户在本模块注册用户名、设置密码、录入自己的详细信息。注册完毕,用户进入家教的个人信息管理模块。 5(2(2 IPO图 输入(I):单击“家教注册”链接 处理描述(P):?显示注册用户名、设置密码页面 ?验证用户名是否与数据库中其他用户名重复,如果重复用户需 要重新注册,否则进入详细信息录入界面 ?用户录入信息完毕,单击“提交”按钮,信息被保存到数据库 中。 输出(O):家教个人信息管理模块界面 5(2(3名称:家教注册 teacherreg.asp、teachererdetail.asp、dealteacherreg.asp 标识: teacherreg和teacherdetail 使用的文件或数据库: 5(2(4界面设计 图5-2 家教注册页面界面一 图5-3 家教注册页面界面二 5(2(5程序的设计与实现 (1)teacherreg.asp文件用来注册用户名密码。其中包括五个表单元素,如表5-1 所示: 表5-1 teacherreg.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 Teacher 文本框 用户填写 用户名 Pass1 密码框 用户填写 密码 Pass2 密码区 用户填写 确认密码 St Submit按钮 下一步 提交表单 rt reset按钮 重置 重置表单 ASP代码如下:
学生注册
用户名:
密码:
确认密码:
<% if Request.Form("st")<>"" then student=Request.Form("student") pass1=Request.Form("pass1") pass2=Request.Form("pass2") if student="" then response.Write("用户名不得为空") elseif pass1<>pass2 then Response.Write("两次输入的密码不同,请重新输入") else Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="select*from studentreg where snick='" & student&"'" set rs=conn.Execute(strSql) if not rs.Eof then response.Write("该用户名已经在") strSql="insert into teacherreg(snick,spass) values('"& student & "','" & pass1 & "')" conn.Execute(strSql) session("student")=student response.Redirect("studentdetailreg.asp") end if end if %> (2)teacherdetailreg.asp 本文件显示一个表单,用来使注册成功的用户录入其个人的详细信息。文件中包含的表单元素如表5-2所示: 表5-2 teacherdetailreg.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 Tname 文本框 用户填写 注册用户真实姓名 Sex 单选按钮组 用户选择 性别:男、女 Age 文本框 用户填写 年龄 Idcard 文本框 用户填写 身份证号 Select 下拉列表框 用户选择 学历:大学本科、大 学专科、硕士研究生 Work 文本框 用户填写 职业 Email 文本框 用户填写 邮箱 Tele 文本框 用户填写 电话 Address 文本框 用户填写 地址 Subject1 文本框 用户填写 讲授的科目1 Subject2 文本框 用户填写 讲授的科目2 Demo 文本框 用户填写 备注信息 St Submit按钮 提交 提交表单 rt reset按钮 重置 重置表单 详细代码如下: <% if session("student")="" then response.Write("您无权访问本页面") else %>
学生详细信息录入
姓名:
性别:
年龄:
学习程度:
邮箱:
电话:
住址:
辅导科目一:
辅导科目二:
备注信息:
<% end if %> (3)detailteacherreg.asp 详细代码如下: <% Dim sname,sex,age,select,email,tele,address,tutouship1,tutorship2,demo nick=Request.Form("sname") sex=Request.Form("sex") age=Request.Form("age") grade=Request.Form("select") email=Request.Form("email") tele=Request.Form("tele") address=Request.Form("address") tutorship1=Request.Form("tutorship1 ") tutorship2=Request.Form(" tutorship2") demo=Request.Form("demo") Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn srtSql="insert intostudentdetail(snick,sname,sex,age, grade, email,tele,address,s tate,tutouship1,tutorship2,demo)" &_ "values('" & session("student") & "', '" & snick & "','" & sex & "' ,'" & age & "','" & grade & "', &_ email & "','" & tele & "','" & address & "','末找到','" & tutorship1` & "','" & tutorship2 & "','" & demo & "' )" Set rs=conn.Execute(strSql) Response.Redirect("studentalter.asp") %> 5.3学生注册模块 5(3(1功能描述: 学生用户在本模块注册用户名、设置密码、录入自己的详细信息。注册完毕,用 户进入学生的个人信息管理模块。 5(3(2 IPO图 输入(I):单击“学生注册”链接 处理描述(P):?显示注册用户名、设置密码页面 ?验证用户名是否与数据库中其他用户名重复,如果重复用户需 要重新注册,否则进入详细信息录入界面 ?用户录入信息完毕,单击“提交”按钮,信息被保存到数据库 中。 输出(O):学生个人信息管理模块界面 5(3(3名称:学生注册 标识:studentreg.asp、studentdetail.asp、deastudentreg.asp 使用的文件或数据库:Studentreg和studentdetail 5(3(4界面设计 图5-4 学生注册页面界面一 图5-5 学生注册页面界面二 5(3(5程序的设计与实现 (1)studentreg.asp文件用来注册用户名密码。其中包括五个表单元素,如表表5-3所示: 表5-3 studentreg.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 student 文本框 用户填写 用户名 Pass1 密码框 用户填写 密码 Pass2 密码区 用户填写 确认密码 St Submit按钮 下一步 提交表单 rt reset按钮 重置 重置表单 ASP代码如下:
家教注册
用户名:
密码:
确认密码:
<% If Request.Form("st")<>"" then teacher=Request.Form("teacher") pass1=Request.Form("pass1") pass2=Request.Form("pass2") if teacher="" then Response.Write ("用户名不得为空") elseif pass1<>pass2 then Response.Write("两次输入的密码不同,请重新输入") else Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="select*from teacherreg where nick=," & teacher & ", Set rs=conn.Execute(strSql) if rs.EOF then Response.Write("该用户名已存在!") else strSql="insert into teacherreg(nick,pass) values ("' & & "','" & pass1 & "')" conn.Execute(strsql) session("teacher")=teacher Response.Redirect(teacherdetailreg.asp) end if end if end if %> (2)studentdetailreg.asp 本文件显示一个表单,用来使注册成功的用户录入其个人的详细信息。文件中包含的表单元素如表5-4所示: 表5-4 studentdetailreg.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 sname 文本框 用户填写 注册用户真实姓名 Sex 单选按钮组 用户选择 性别:男、女 Age 文本框 用户填写 年龄 Select 下拉列表框 用户选择 学习程度:小学生、 初中生、高中生、大 学生 Email 文本框 用户填写 邮箱 Tele 文本框 用户填写 电话 Address 文本框 用户填写 住址 tutouship1 文本框 用户填写 辅导科目1 tutouship2 文本框 用户填写 辅导科目2 Demo 文本框 用户填写 备注信息 St Submit按钮 提交 提交表单 rt reset按钮 重置 重置表单 详细代码如下: <% if session("teacher")="" then response.write("您无权访问本页面") else %>
家教详细信息录入
姓名:
性别: 男 女
年龄:
身份证号:
学历:
职业:
邮箱:
电话:
住址:
讲授科目一:
讲授科目二:
备注:
<% end if %> (3)detailtstudentreg.asp 详细代码如下: <% nick=Request.Form("tname") sex=Request.Form("sex") age=Request.Form("age") idcard=Request.Form("idcard") diploma=Request.Form("select") work=Request.Form("work") email=Request.Form("email") tele=Request.Form("tele") address=Request.Form("address") subject1=Request.Form("subject1") subject2=Request.Form("subject2") demo=Request.Form("demo") conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") srtSql="insert into teacherdetail(nick,name,sex,age,idcard,diploma,work,email,address,s tate,subject1,subject2,demo)" &_ "values('" & session("teacher") & "', '" & nick & "','" & sex & "' ,'" & age & "','" & idcard & "','" & diploma & "',&_ work & "','" & email & "','" & tele & "','" & address & "','待聘 ','" & subject1 & "','" & subject2 & "','" & demo & "' )" Set rs=conn.Execute(strSql) Response.Redirect("teacheralter.asp") %> 5(4家教信息浏览模块 5(4(1功能描述: 显示所有尚未被聘用的家教信息,包括他们发布的求职信息和个人信息。 5(4(2 IPO图 输入(I):单击导航条“家教信息”链接 处理描述(P):?从teacherinfo表中查询家教发布的信息内容,发布时间和昵称 ?分页显示查询结果 输出(O):显示家教信息页面 5(4(3名称:家教信息 teacherinfo.asp 标识: 使用的文件或数据库:teacherinfo 5(4(4界面设计 图5-6 家教信息浏览模块界面 5(4(5程序的设计与实现 <% Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="Select content,puttime,nick from teacherinfo order by puttime desc" Set rs=Server.CreateObject(ADODB,Recordset) rs.open strSql,conn,1,3 rs.PageSize=5 page=1 if Not IsEmpty(Request("Page")) then Page=CIntRequest("Page")) if Page>rs.PageCount=rs.PageCount else rs.AbsolutePage=Page end if else Page=1 End if else rs.AbsolutePage=Page For i=1 To rs.PageSize if rs.EOF then Exit For End If Response.Write("
求职信息的内容 发布时间 发布人
" & rs("content") & "" & rs("puttime") & "" & rs("nick") & "") rs.MoveNext %>

<% if Page>1 then Response.Write("首页   ") Response.Write(" 上一页  ") end if if Page下一页  ") Response.Write("尾页  ") end if %> <% nick=Request("name") Set conn=Server.CreateObject("ADODB.Connection") conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.Mappath("db/info.mdb") conn.Open trSql="Select * from teacherdetail where nick='" & nick &"'" Set rs=Server.CreateObject(ADODB,Recordset) rs.open strSql,conn,1,3 %>
<%=nick%>个人信息
真实姓名: <%=rs("name")%>
性别: <%=rs("sex")%>
年龄: <%=rs("age")%>
身份证: <%=rs("idcard")%>
学历: <%=rs("select")%>
职业: <%=rs("work")%>
邮箱: <%=rs("Email")%>
电话: <%=rs("Tele")%>
住址: <%=rs("address")%>
讲授科目1: <%=rs("subject1")%>
讲授科目2: <%=rs("subject2")%>
5(5学生信息浏览模块 5(5(1功能描述: 显示所有尚未找到家教的学生信息,包括他们发布的家教需求信息和个人信息。 5(5(2 IPO图 输入(I):单击导航条“学生信息”链接 处理描述(P):?从studentinfo表中查询学生发布的信息内容,发布时间和昵称; ?分页显示查询结果 输出(O):显示学生信息页面 5(5(3名称:学生信息 标识:studentinfo.asp 使用的文件或数据库:studentinfo 5(5(4界面设计 图5-7 学生信息浏览模块界面 5(5(5程序的设计与实现 <% Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="Select & From needcontent,puttime,snick from studentinfo order by puttime desc" Set rs=Server.CreateObject(ADODB,Recordset) rs.open strSql,conn,1,3 rs.PageSize=5 page=1 if Not IsEmpty(Request("Page")) then Page=CIntRequest("Page")) if Page>rs.PageCount=rs.PageCount else rs.AbsolutePage=Page end if else Page=1 End if else rs.AbsolutePage=Page For i=1 To rs.PageSize if rs.EOF then Exit For End If Response.Write("
求职信息的内容 发布时间 发布人
" & rs("needcontent") & "" & rs("puttime") & "" & rs("snick") & "") rs.MoveNext %>

<% if Page>1 then Response.Write("首页   ") Response.Write(" 上一页  ") end if if Page下一页  ") Response.Write("尾页  ") end if %> <% nick=Request("name") Set conn=Server.CreateObject("ADODB.Connection") conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.Mappath("db/info.mdb") conn.Open trSql="Select * from studentdetail where snick='" & snick &"'" Set rs=Server.CreateObject(ADODB,Recordset) rs.open strSql,conn,1,3 %>
<%=nick%>个人信息
真实姓名: <%=rs("sname")%>
性别: <%=rs("sex")%>
年龄: <%=rs("age")%>
学习程度: <%=rs("select")%>
邮箱: <%=rs("Email")%>
电话: <%=rs("Tele")%>
住址: <%=rs("address")%>
辅导科目一: <%=rs(" tutouship1")%>
讲授科目二: <%=rs("tutouship2")%>
5(6家教个人管理模块 5(6(1功能描述: 家教用户在系统首页的登录区输入正确的用户名和密码,选择“家教”身份,即 可登录到家教个人信息管理模块。用户可以在本模块修改密码、修改个人信息、 重复发布求职信息和删除已发布的求职信息。 5(6(2 IPO图 本模块主要的功能页面有四个 1)修改密码页面(Changepw.asp) 输入(I):新密码、确认密码 处理描述(P):?判断两次密码是否相等; ?如果相等,修改teacherreg表中pass字段值为新的密码 输出(O):密码修改成功 2)修改个人信息页面(Changepersoninfo.asp) 输入(I):对页面已有的文本框的值进行修改 处理描述(P):?连接数据库; ?对表teacherdetail执行update SQL语句 输出(O): 修改成功 3)求职信息发布页面(Putout.asp) 输入(I): 讲授科目、发布信息内容、提交。 处理描述(P):?连接数据库; ?对表teacherinfo执行insert SQL语句: 输出(O): 信息发布成功 4)求职信息删除页(Delinfo.asp) 输入(I):单击“删除”链接。 处理描述(P):?连接数据库; ?对表teacherinfo执行delete SQL语句: 输出(O): 信息发布成功 5(6(3名称 :家教个人管理模块主页面 标识:Teacheralter.asp 使用的文件或数据库:teacherinfo 、teacherdetail 5(6(4程序的设计与实现 本模块使用框架结构,共使用8个文件实现功能。 (1) 家教个人管理模块主页面Teacheralter.asp 图5-8 家教个人信息管理模块主界面 代码如下: (2) 修改密码页面Changepw.asp 图5-8 家教个人信息管理模块主界面—修改密码页面 本页面令用户能够能够修改自己的登录密码。首先页面显示一个包含新密码和确 认密码的两个密码框的表单,代码如下:
新密码:
确认密码:
<% if Request.From("st")<>"" then nick=session("teacher") new1=Request.Form("new1") Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="uptate teacherreg set pass='" & new1 & "' where nick='" & nick & "'" conn.Execute(strSql) Response.Write("密码修改成功") End if %> (3) 修改个人信息页面Changepersoninfo.asp 图5-8 家教个人信息管理模块主界面—修改个人信息页面 该文件的实现思路是先从数据库的表中teacherdetail 取出当前用户的对应记录, 用rs变量保存这个结果集。代码如下: <% Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn turnnew=Request("turnnew") If turnnew="" then sql="select*from teacherdetail where nick='"&session("teacher")&"'" Set rs=Server.CreateObject("ADODB.Recordeset") rs.Open sql,conn,1,1 %> 这段代码所得到的结果集中只储 /tr> <
家教修改
姓名:
性别: 男 女
年龄:
身份证号:
学历:
职业:
邮箱:
电话:
住址:
讲授科目一:
讲授科目二:
备注:
<% if turnnew<>"" then nick=Request.Form("tname") sex=Request.Form("sex") age=Request.Form("age") idcard=Request.Form("idcard") diploma=Request.Form("select") work=Request.Form("work") email=Request.Form("email") tele=Request.Form("tele") address=Request.Form("address") subject1=Request.Form("subject1") subject2=Request.Form("subject2") searchstate=Request.Form("searchstate") demo=Request.Form("demo") sql="updata teacherdetail set name=," & name & ",,sex=," &_ sex & ",,age=" & age & ",diploma=," & diploma &",,idcard=," & idcard & ",,work=," & work &_ ",,email='" & email & "',tele='" & tele &_ "',address='" & address & "',subject1='" & jubject1 &_ "',subject2='" & jubject2&_ "',atate='" & searchstate & "',demo='" & de,p &_ "', where nick='" & session("teacher") &"'" conn.Execute(sql) Response.Write("修改成功") End if %> 表5-5 Changepersoninfo.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 name 文本框 <%=rs(“name”)%> 注册用户真实姓名 Sex 单选按钮组 <%=rs(“sex”)%> 性别:男、女 Age 文本框 <%=rs(“ age”)%> 年龄 Idcard 文本框 <%=rs(“idcard”)%身份证号 > Diploma 文本框 <%=rs(“diploma”)学历:大学本科、大 %> 学专科、硕士研究生 Work 文本框 <%=rs(“work”)%> 职业 Email 文本框 <%=rs(“email”)%> 邮箱 Tele 文本框 <%=rs(“ tele”)%> 电话 Address 文本框 <%=rs(“address”)住址 %> state 文本框 <%=rs(“state”)%> 聘用状态 Subject1 文本框 <%=rs(“subject1”讲授的科目1 )%> Subject2 文本框 <%=rs(“subject2”讲授的科目2 )%> Demo 文本框 <%=rs(“demo”)%> 备注信息 St Submit按钮 修改 提交表单 rt reset按钮 重置 重置表单 (4)求职信息发布页面(Putout.asp) 图5-9 家教个人信息管理模块主界面—求职信息发布页面 这个文件是将用户输入求职信息保存到数据库的teacherinfo表中。页面包括的表单元素如表5-6所示。 表5-6 puttout.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 subject 文本框 用户填写 讲授科目 info 文本框 用户填写 发布的信息内容 St Submit按钮 提交 提交表单 rt reset按钮 重置 重置表单 <% if Request.From("st")<>"" then nick=session("teacher") subject=Request.From("subject") info=Request.From("info") Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="insert into teacherinfo(nick,sort,content) values('" & nick & "','" & subject & "','" & info & "')" conn.Execute(strSql) Response.Write("信息发布成功") End If %>
讲授科目:
发布信息内容:
(5)求职信息删除页(Delinfo.asp) 图5-10 家教个人信息管理模块主界面—求职信息删除页面 本页面将当前用户所发布的所有信息的内容和发布时间显示出来,在每条信息后面有一个“删除”链接,当用户要删除某些信息时,只要单击这个链接即可。代码如下: <% Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn flag=Request("del") if flag<>"" then delSql="delete from teacherinfo whert id=" & flag conn.Execute(delSql) End if %> <% nick=session("teacher") strSql="Select * from teacherinfo where nick'" & nick & "'" Set rs=conn.Execute(strSql) Do While Not rs.EOF Response.Write("
家教的求职信息内容 发布时间 是否删除
"&rs("content")&"&rs("putttime") &_ delifo.asp?del=" & rs("ic") & ",>删除") "
5.7 信息检索模块 5(7(1功能描述: 所有用户都可以使用本模块的功能查找家教或学生信息。信息检索主页面包括两种功能:家教信息检索和学生信息检索 5(7(2 IPO图 1) 家教信息检索的IPO图 输入(I):讲授科目、学历、性别 处理描述(P):?查询符合条件的未被聘用的家教的用户名和所发布信息的内容; ?显示查询结果 输出(O):家教信息的查询结果 2)学生信息检索的IPO图 输入(I):辅导科目、学习程度、性别 处理描述(P):?查询符合条件的未被聘用的学生的用户名和所发布信息的内容; ?显示查询结果 输出(O):学生信息的查询结果 5(7(3名称:显示信息检索表单的主页面、处理家教信息检索的文件和处理学生信息检索的文件 标识:search.asp、tdealsearch.asp、sdealsearch.asp 使用的文件或数据库:teacherdetail、teacherinfo和studentinfo 5(7(4界面设计 图5-11 信息检索界面 5(7(5程序的设计与实现 (1) search.asp 使用了两个表单显示家教信息检索和学生信息检索的输入页面。具体的表单元素如表表5-7所示。 表5-7 search.asp页面所使用的表单元素表 名称 表单元素类型 Value值 含义 Subject 文本框 用户填写 家教可以讲授的科目 Select 下拉列表框 用户选择 家教的学历:大学本科、大学 专科、硕士研究生、博士研究 生 Sex 单选按钮组 用户选择 家教的性别:男、女 Search1 submit提交按钮 检索 用来提交家教检索区的表单 Rt reset重置按钮 重置 用来重置家教检索区的表单 Tutporship 文本框 用户填写 学生需要辅导的科目 Select 下拉列表框 用户选择 学生的学习程度:小学生、初 中生、高中生、大学生 Sex 单选按钮组 用户选择 学生的性别:男、女 Search2 submit提交按钮 检索 用来提交学生检索区的表单 rt reset重置按钮 重置 用来重置学生检索区的表单 (2) tdealsearch.asp 用来处理检索家教的信息,将符合要求的家教信息列表显示。代码如下: 符合条件的家教发布信息内容 <% Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="select nick from teacherdetail" subject=Request.Form("subject") diploma=Request.Form("select") sex=Request.Form("sex") if subject<>"" then strSql=strSql & :where (subject1 like ,%:& subject & :%, or subject2 ,%:& subject & "%, like )" End If if diploma<>"" then strSql=strSql & " and diploma='" & diploma & "'" End If if sex<>"" then strSql=strSql & " and sex='" & sex & "'" End If strSql=strSq; & " and state='待聘'" Set rs=conn.Execute(strSql) Do While Not rs.EOF Response.Write("" & rs("nick") & "") strSql1="select content from teacherinfo where nick='" & rs("nick") & "' order by puttime desc" Set rs1=conn.Execute(strSql1) if Not rs1.EOF then Response.Write("" & rs1("content")) End If rs.MoveNext Loop %> (3) sdealsearch.asp 用来处理检索家教的信息,将符合要求的家教信息列表显示。代码如下: <% Dim db,conn conn="driver={microsoft access driver (*.mdb)};dbq=" &server.MapPath("db\info.mdb") Set db=Server.CreateObject("ADODB.Connection") db.Open conn strSql="select snick from studentdetail" tutorship=Request.Form("tutorship ") grade=Request.Form("grade") sex=Request.Form("sex") if tutouship<>"" then strSql=strSql & "where (tutouship1='%" & tutouship & "%' or tutouship2 '%" & tutorship & "%' )" End If if grade<>"" then strSql=strSql & " and grade='" & diploma & "'" End If if sex<>"" then strSql=strSql & " and sex='" & sex & "'" End If strSql=strSq; & " and state='未找到'" Set rs=conn.Execute(strSql) Do While Not rs.EOF Response.Write("" & rs("nick") & "") strSql1="select needcontent from studentinfo where snick='" & rs("snick") & "' order by puttime desc" Set rs1=conn.Execute(strSql1) if Not rs1.EOF then Response.Write("" & rs1("needcontent")) End If rs.MoveNext Loop %> 第6章、测试和维护 6.1测试方法 6.2系统维护 网站的维护主要包括以下内容 , 家教管理,在家教管理模块修改密码、修改个人信息、重复发布求职信息 和删除已发布的求职信息。 , 学生管理,在学生管理模块修改密码、修改个人信息、重复发布需求信息 和删除已发布的需求信息。 , 站内信息管理 结束语 一个完整的家教信息管理系统创建完毕了。在本系统中,对模拟实际情况进行了详尽的系统需求分析,并给出了系统需求分析典型分析步骤。在系统的总体设计部分,介绍了系统开发与设计的总体思想。系统开发与设计的总体的总体思想是系统开发的主线。在本系统的总体设计部分给出了系统模块结构图,并对各个模块的设计过程进行了阐述,根据软件工程的基本流程,还对系统的流程进行了描述,并进行了数据库设计。整个系统设计部分为整个程序构建了骨架,并在详细设计中由各个功能模块实现各个细节部分。 致谢 通过这次家教信息管理网站设计,使我曾加了很多的知识,也掌握了很多网页设计的操作技巧,虽然仍有很多不足之处,有在改良和增进,但这以不重要,重要的是我对网页的设计又有了更深的了解。这次毕业设计过程中,得到了很多的网络设计朋友的帮助和老师的指点,才得以完成,他们给我提供了很多有关网页设计的书和材料,并抽出时间帮我修改与纠正,在此表示衷心的感谢~ 参考文献 [1]梁旭.ASP信息系统设计与开发实例.北京:机械工业出版社,2005 [2]邓文渊,陈俊荣.ASP与网络数据库技术.北京:中国铁道出版社,2003 [3]陈建伟,李美军.ASP动态网站开发教程.北京:清华大学出版社,2005 [4]李奎春,张巍.ASP+ACCESS 2000 网络应用系统开发与实例.北京:人民邮电出版社.2005 [5]杜宏毅等.完全接触ASP之VBScript.北京:电子工业出版社.2002 h? What I say? I speak true when I say dat Buck two devils." This was Francois's speech next morning when he discovered Spitz missing and Buck covered with wounds. He drew him to the fire and by its light pointed them out. "Dat Spitz fight like hell," said Perrault, as he surveyed the gaping rips and cuts. "An' dat Buck fight like two hells," was Francois's answer. "And now we make good time. No more Spitz, no more trouble, sure." While Perrault packed the camp outfit and loaded the sled, the dog-driver proceeded to harness the dogs. Buck trotted up to the place Spitz would have occupied as leader; but Francois, not noticing him, brought Sol-leks to the coveted position. In his judgment, Sol-leks was the best lead-dog left. Buck sprang upon Sol-leks in a fury, driving him back and standing in his place. "Eh? Eh?" Francois cried, slapping his thighs gleefully. "Look at dat Buck. Him kill dat Spitz, him think to take de job." "Go 'way, Hook!" he cried, but Buck refused to budge. He took Buck by the scruff of the neck, and though the dog growled threateningly, dragged him to one side and replaced Sol-leks. The old dog did not like it, and showed plainly that he was afraid of Buck. Francois was obdurate, but when he turned his back, Buck again displaced Sol-leks, who was not at all unwilling to go. Francois was angry. "Now, by Gar, I fix you!" he cried, coming back with a heavy club in his hand. Buck remembered the man in the red sweater, and retreated slowly; nor did he attempt to charge in when Sol-leks was once more brought forward. But he circled just beyond the range of the club, snarling with bitterness and rage; and while he circled he watched the club so as to dodge it if thrown by Francois, for he was become wise in the way of clubs. The driver went about his work, and he called to Buck when he was ready to put him in his old place in front of Dave. Buck retreated two or three steps. Francois followed him up, whereupon he again retreated. After some time of this, Francois threw down the club, thinking that Buck feared a thrashing. But Buck was in open revolt. He wanted, not to escape a clubbing, but to have the leadership. It was his by right. He had earned it, and he would not be content with less. Perrault took a hand. Between them they ran him about for the better part of an hour. They threw clubs at him. He dodged. They cursed him, and his fathers and mothers before him, and all his seed to come after him down to the remotest generation, and every hair on his body and drop of blood in his veins; and he answered curse with snarl and kept out of their reach. He did not try to run away, but retreated around and around the camp, advertising plainly that when his desire was met, he would come in and be good. Francois sat down and scratched his head. Perrault looked at his watch and swore. Time was flying, and they should have been on the trail an hour gone. Francois scratched his head again. He shook it and grinned sheepishly at the courier, who shrugged his shoulders in sign that they were beaten. Then Francois went up to where Sol-leks stood and called to Buck. Buck laughed, as dogs laugh, yet kept his distance. Francois unfastened Sol-leks's traces and put him back in his old place. The team stood harnessed to the sled in an unbroken line, ready for the trail. There was no place for Buck save at the front. Once more Francois called, and once more Buck laughed and kept away. "Throw down de club," Perrault commanded. Francois complied, whereupon Buck trotted in, laughing triumphantly, and swung around into position at the head of the team. His traces were fastened, the sled broken out, and with both men running they dashed out on to the river trail. Highly as the dog-driver had forevalued Buck, with his two devils, he found, while the day was yet young, that he had undervalued. At a bound Buck took up the duties of leadership; and where judgment was required, and quick thinking and quick acting, he showed himself the superior even of Spitz, of whom Francois had never seen an equal. But it was in giving the law and making his mates live up to it, that Buck excelled. Dave and Sol-leks did not mind the change in leadership. It was none of their business. Their business was to toil, and toil mightily, in the traces. So long as that was not interfered with, they did not care what happened. Billee, the good-natured, could lead for all they cared, so long as he kept order. The rest of the team, however, had grown unruly during the last days of Spitz, and their surprise was great now that Buck proceeded to lick them into shape. Pike, who pulled at Buck's heels, and who never put an ounce more of his weight against the breastband than he was compelled to do, was swiftly and repeatedly shaken for loafing; and ere the first day was done he was pulling more than ever before in his life. The first night in camp, Joe, the sour one, was punished soundly--a thing that Spitz had never succeeded in doing. Buck simply smothered him by virtue of superior weight, and cut him up till he ceased snapping and began to whine for mercy. The general tone of the team picked up immediately. It recovered its old-time solidarity, and once more the dogs leaped as one dog in the traces. At the Rink Rapids two native huskies, Teek and Koona, were added; and the celerity with which Buck broke them in took away Francois's breath. "Never such a dog as dat Buck!" he cried. "No, never! Him worth one thousand dollair, by Gar! Eh? What you say, Perrault?" And Perrault nodded. He was ahead of the record then, and gaining day by day. The trail was in excellent condition, well packed and hard, and there was no new-fallen snow with which to contend. It was not too cold. The temperature dropped to fifty below zero and remained there the whole trip. The men rode and ran by turn, and the dogs were kept on the jump, with but infrequent stop-pages. The Thirty Mile River was comparatively coated with ice, and they covered in one day going out what had taken them ten days coming in. In one run they made a sixty-mile dash from the foot of Lake LeBarge to the White Horse Rapids. Across Marsh, Tagish, and Bennett (seventy miles of lakes), they flew so fast that the man whose turn it was to run towed behind the sled at the end of a rope. And on the last night of the second week they topped White Pass and dropped down the sea slope with the lights of Skaguay and of the shipping at their feet. It was a record run. Each day for fourteen days they had averaged forty miles. For three days Perrault and Francois threw chests up and down the main street of Skaguay and were deluged with invitations to drink, while the team was the constant center of a worshipful crowd of dogbusters and mushers. Then three or four western bad men aspired to clean out the town, were riddled like pepperboxes for their pains, and public interest turned to other idols. Next came official orders. Francois called Buck to him, threw his arms around him, wept over him. And that was the last of Francois and Perrault. Like other men, they passed out of Buck's life for good. A Scotch half-breed took charge of him and his mates, and in company with a dozen other dog-teams he started back over the weary trail to Dawson. It was no light running now, nor record time, but heavy toil each day, with a heavy load behind; for this was the mail train, carrying word from the world to the men who sought gold under the shadow of the Pole. Buck did not like it, but he bore up well to the work, taking pride in it after the manner of Dave and Sol-leks, and seeing that his mates, whether they prided in it or not, did their fair share. It was a monotonous life, operating with machine-like regularity. One day was very like another. At a certain time each morning the cooks turned out, fires were built, and breakfast was eaten. Then, while some broke camp, others harnessed the dogs, and they were under way an hour or so before the darkness fell which gave warning of dawn. At night, camp was made. Some pitched the tents, others cut firewood and pine boughs for the beds, and still others carried water or ice for the cooks. Also, the dogs were fed. To them, this was the one feature of the day, though it was good to loaf around, after the fish was eaten, for an hour or so with the other dogs, of which there were fivescore and odd. There were fierce fighters among them, but three battles with the fiercest brought Buck to mastery, so that when he bristled and showed his teeth, they got out of his way. Best of all, perhaps, he loved to lie near the fire, hind legs crouched under him, fore legs stretched out in front, head raised, and eyes blinking drearily at the flames. Sometimes he thought of Judge Miller's big house in the sun-kissed Santa Clara Valley, and of the cement swimming tank, and Ysabel, the Mexican hairless, and Toots, the Japanese pug; but oftener he remembered the man in the red sweater, the death of Curly, the great fight with Spitz and the good things he had eaten or would like to eat. He was not homesick. The Sunland was very dim and distant, and such memories had no power over him. Far more potent were the memories of his heredity that gave things he had never seen before a seeming familiarity; the instincts (which were but the memories of his ancestors become habits) which had lapsed in later days, and still later, in him, quickened and became alive again. Sometimes as he crouched there, blinking dreamily at the flames, it seemed that the flames were of another fire, and that as he crouched by this other fire he saw another and different man from the half-breed cook before him. This other man was shorter of leg and longer of arm, with muscles that were stringy and knotty rather than rounded and swelling. The hair of this man was long and matted, and his head slanted back under it from the eyes. He uttered strange sounds, and seemed very much afraid of the darkness, into which he peered continually, clutching in his hand, which hung midway between knee and foot, a stick with a heavy stone made fast to the end. He was all but naked, a ragged and fire-scorched skin hanging part way down his back, but on his body there was much hair. In some places, across the chest and shoulders and down the outside of the arms and thighs, it was matted into almost a thick fur. He did not stand erect, but with trunk inclined forward from the hips, on legs that bent at the knees. About his body there was a peculiar springiness, or resiliency, almost catlike, and a quick alertness as of one who lived in perpetual fear of things seen and unseen. At other times this hairy man squatted by the fire with head between his legs and slept. On such occasions his elbows were on his knees, his hands clasped above his head as though to shed rain by the hairy arms. And beyond that fire, in the circling darkness, Buck could see many gleaming coals, two by two, always two by two, which he knew to be the eyes of great beasts of prey. And he could hear the crashing of their bodies through the undergrowth, and the noises they made in the night. And dreaming there by the Yukon bank, with lazy eyes blinking at the fire, these sounds and sights of another world would make the hair to rise along his back and stand on end across his shoulders and up his neck, till he whimpered low and suppressedly, or growled softly, and the half-breed cook shouted at him, "Hey, you Buck, wake up!" Whereupon the other world would vanish and the real world come into his eyes, and he would get up and yawn and stretch as though he had been asleep. It was a hard trip, with the mail behind them, and the heavy work wore them down. They were short of weight and in poor condition when they made Dawson, and should have had a ten days' or a week's rest at least. But in two days' time they dropped down the Yukon bank from the Barracks, loaded with letters for the outside. The dogs were tired, the drivers grumbling, and to make matters worse, it snowed every day. This meant a soft trail, greater friction on the runners, and heavier pulling for the dogs; yet the drivers were fair through it all, and did their best for the animals. Each night the dogs were attended to first. They ate before the drivers ate, and no man sought his sleeping-robe till he had seen to the feet of the dogs he drove. Still, their strength went down. Since the beginning of the winter they had traveled eighteen hundred miles, dragging sleds the whole weary distance; and eighteen hundred miles will tell upon life of the toughest. Buck stood it, keeping his mates up to their work and maintaining discipline, though he too was very tired. Billee cried and whimpered regularly in his sleep each night. Joe was sourer than ever, and Sol-leks was unapproachable, blind side or other side. But it was Dave who suffered most of all. Something had gone wrong with him. He became more morose and irritable, and when camp was pitched at once made his nest, where his driver fed him. Once out of the harness and down, he did not get on his feet again till harness-up time in the morning. Sometimes, in the traces, when jerked by a sudden stoppage of the sled, or by straining to start it, he would cry out with pain. The driver examined him, but could find nothing. All the drivers became interested in his case. They talked it over at meal-time, and over their last pipes before going to bed, and one night they held a consultation. He was brought from his nest to the fire and was pressed and prodded till he cried out many times. Something was wrong inside, but they could locate no broken bones, could not make it out. By the time Cassiar Bar was reached, he was so weak that he was falling repeatedly in the traces. The Scotch half-breed called a halt and took him out of the team, making the next dog, Sol-leks, fast to the sled. His intention was to rest Dave, letting him run free behind the sled. Sick as he was, Dave resented being taken out, grunting and growling while the traces were unfastened, and whimpering broken-heartedly when he saw Sol-leks in the position he had held and served so long. For the pride of trace and trail was his, and, sick unto death, he could not bear that another dog should do his work. When the sled started, he floundered in the soft snow alongside the beaten trail, attacking Sol-leks with his teeth, rushing against him and trying to thrust him off into the soft snow on the other side, striving to leap inside his traces and get between him and the sled, and all the while whining and yelping and crying with grief and pain. The half-breed tried to drive him away with the whip; but he paid no heed to the stinging lash, and the man had not the heart to strike harder. Dave refused to run quietly on the trail behind the sled, where the going was easy, but continued to flounder alongside in the soft snow, where the going was most difficult, till exhausted. Then he fell, and lay where he fell, howling lugubriously as the long train of sleds churned by. With the last remnant of his strength he managed to stagger along behind till the train made another stop, when he floundered past the sleds to his own, where he stood alongside Sol-leks. His driver lingered a moment to get a light for his pipe from the man behind. Then he returned and started his dogs. They swung out on the trail with remarkable lack of exertion, turned their heads uneasily, and stopped in surprise. The driver was surprised, too; the sled had not moved. He called his comrades to witness the sight. Dave had bitten through both of Sol-lek's traces, and was standing directly in front of the sled in his proper place. He pleaded with his eyes to remain there. The driver was perplexed. His comrades talked of how a dog could break its heart through being denied the work that killed it, and recalled instances they had known, where dogs, too old for the toil, or injured, had died because they were cut out of the traces. Also, they held it a mercy, since Dave was to die anyway, that he should die in the traces, heart-easy and content. So he was harnessed in again, and proudly he pulled as of old, though more than once he cried out involuntarily from the bite of his inward hurt. Several times fell down and was dragged in the traces, and once the sled ran upon him so that he limped thereafter on one of his hind legs. But he held out till camp was reached, when his driver made a place for him by the fire. Morning found him too weak to travel. At harness-up time he tried to crawl to his driver. By convulsive efforts he got on his feet, staggered, and fell. Then he wormed his way forward slowly toward where the harnesses were being put on his mates. He would advance his fore legs and drag up his body with a sort of hitching movement, when he would advance his fore legs and hitch ahead again for a few more inches. His strength left him, and the last his mates saw of him he lay gasping in the snow and yearning toward them. But they could hear him mournfully howling till they passed out of sight behind a belt of river timber. Here the train was halted. The Scotch half-breed slowly retraced his steps to the camp they had left. The men ceased talking. A revolver-shot rang out. The man came back hurriedly. The whips snapped, the bells tinkled merrily, the sleds churned along the trail; but Buck knew, and every dog knew, what had taken place behind the belt of river trees. LastIndexNextinant primordial beast was strong in Buck, and under the fierce conditions of trail life it grew and grew. Yet it was a secret growth. His newborn cunning gave him poise and control. He was too busy adjusting himself to the new life to feel at ease, and not only did he not pick fights, but he avoided them whenever possible. A certain deliberateness characterized his attitude. He was not prone to rashnes He openly threatened the other's leadership. He came between him and the shirks he should have punished. And he did it deliberately. One night there was a heavy snowfall, and in the morning Pike, the malingerer, did not appear. He was securely hidden in his nest under a foot of snow. Francois called him and sought him in vain. Spitz was wild with wrath. He raged through the camp, smelling and digging in every likely place, snarling so frightfully that Pike heard and shivered in his hiding-place. But when he was at last unearthed, and Spitz flew at him to punish him, Buck flew with equal rage, in between. So unexpected was it, and so shrewdly managed, that Spitz was hurled backward and off his feet. Pike, who had been trembling abjectly, took heart at this open mutiny, and sprang upon his overthrown leader. Buck, to whom fair play was a forgotten code, likewise sprang upon Spitz. But Francois, chuckling at the incident while unswerving in the administration of justice, brought his lash down upon Buck with all his might. This failed to drive Buck from his prostrate rival, and the butt of the whip was brought into play. Half-stunned by the blow, Buck was knocked backward and the lash laid upon him again and again, while Spitz soundly punished the many times offending Pike. In the days that followed, as Dawson grew closer and closer, Buck still continued to interfere between Spitz and the culprits; but he did it craftily, when Francois was not around. With the covert mutiny of Buck, a general insubordination sprang up and increased. Dave and Sol-leks were unaffected, but the rest of the team went from bad to worse. Things no longer went right. There was continual bickering and jangling. Trouble was always afoot, and at the bottom of it was Buck. He kept Francois busy, for the dog-driver was in constant apprehension of the life-and-death struggle between the two which he knew must take place sooner or later; and on more than one night the sounds of quarreling and strife among the other dogs turned him out of his sleeping robe, fearful that Buck and Spitz were at it. But the opportunity did not present itself, and they pulled into Dawson one dreary afternoon with the great fight still to come. Here were many men, and countless dogs, and Buck found them all at work. It seemed the ordained order of things that dogs should work. All day they swung up and down the main street in long teams, and in the night their jingling bells still went by. They hauled cabin logs and firewood, freighted up to the mines, and did all manner of work that horses did in the Santa Clara Valley. Here and there Buck met Southland dogs, but in the main they were the wild wolf husky breed. Every night, regularly, at nine, at twelve, and three, they lifted a nocturnal song, a weird and eerie chant, in which it was Buck's delight to join. With the aurora borealis flaming coldly overhead, or the stars leaping in the frost dance, and the land numb and frozen under its pall of snow, this song of the huskies might have been the defiance of life, only it was pitched in minor key, with long-drawn wailings and half-sobs, and was more the pleading of life, the articulate travail of existence. It was an old song, old as the breed itself--one of the first songs of the younger world in a day when songs were sad. It was invested with the woe of unnumbered generations, this plaint by which Buck was so strangely stirred. When he moaned and sobbed, it was with the pain of living that was of old the pain of his wild fathers, and the fear and mystery of the cold and dark that was to them fear and mystery. And that he should be stirred by it marked the completeness with which he harked back through the ages of fire and roof to the raw beginnings of life in the howling ages. Seven days from the time they pulled into Dawson, they dropped down the steep bank by the Barracks to the Yukon Trail, and pulled for Yea and Salt Water. Perrault was carrying dispatches if anything more urgent than those he had brought in; also, the travel pride had gripped him, and he purposed to make the record trip of the year. Several things favored him in this. The week's rest had recuperated the dogs and put them in thorough trim. The trail they had broken into the country was packed hard by later journeyers. And further, the police had arranged in two or three places deposits of grub for dog and man, and he was traveling light. They made Sixty Mile, which is a fifty-mile run, on the first day; and the second day saw them booming up the Yukon well on their way to Pelly. But such splendid running was achieved not without great trouble and vexation on the part of Francois. The insidious revolt led by Buck had destroyed the solidarity of the team. It no longer was as one dog leaping in the traces. The encouragement Buck gave the ath, the full pack at Buck's heels raised a hell's chorus of delight. Buck did not cry out. He did not check himself, but drove in upon Spitz, shoulder to shoulder, so hard that he missed the throat. They rolled over and over in the powdery snow. Spitz gained his feet almost as though he had not been overthrown, slashing Buck down the shoulder and leaping clear. Twice his teeth clipped together, like the steel jaws of a trap, as he backed away for better footing, with lean and lifting lips that writhed and snarled. In a flash Buck knew it. The time had come. It was to the death. As they circled about, snarling, ears laid back, keenly watchful for the advantage, the scene came to Buck with a sense of familiarity. He seemed to remember it all--the white woods, and earth, and moonlight, and the thrill of battle. Over the whiteness and silence brooded a ghostly calm. There was not the faintest whisper of air--nothing moved, not a leaf quivered, the visible breaths of the dogs rising slowly and lingering in the frosty air. They had made short work of the snowshoe rabbit, these dogs that were ill-tamed wolves; and they were now drawn up in an expectant circle. They, too, were silent, their eyes only gleaming and their breaths drifting slowly upward. To Buck it was nothing new or strange, this scene of old time. It was as though it had al
/
本文档为【家教信息管理系统—计算机毕业设计(论文)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索