系统软件实践报告格式Word文档格式.docx

上传人:b****7 文档编号:22427384 上传时间:2023-02-04 格式:DOCX 页数:23 大小:221.33KB
下载 相关 举报
系统软件实践报告格式Word文档格式.docx_第1页
第1页 / 共23页
系统软件实践报告格式Word文档格式.docx_第2页
第2页 / 共23页
系统软件实践报告格式Word文档格式.docx_第3页
第3页 / 共23页
系统软件实践报告格式Word文档格式.docx_第4页
第4页 / 共23页
系统软件实践报告格式Word文档格式.docx_第5页
第5页 / 共23页
点击查看更多>>
下载资源
资源描述

系统软件实践报告格式Word文档格式.docx

《系统软件实践报告格式Word文档格式.docx》由会员分享,可在线阅读,更多相关《系统软件实践报告格式Word文档格式.docx(23页珍藏版)》请在冰豆网上搜索。

系统软件实践报告格式Word文档格式.docx

其功能模块图如下:

数据库设计:

数据库名userinfodb,和下面的6个表

Admintable

Usertable

Hobbytable

Citytable

Provincetable

Userhobbytable

登陆画面:

<

html>

<

head>

basehref="

%=basePath%>

"

>

title>

MyJSP'

adminlogin.jsp'

startingpage<

/title>

metahttp-equiv="

pragma"

content="

no-cache"

cache-control"

expires"

0"

keywords"

keyword1,keyword2,keyword3"

description"

Thisismypage"

!

--

linkrel="

stylesheet"

type="

text/css"

href="

styles.css"

-->

scripttype="

text/javascript"

functioncheckNull()

{

//alert("

1"

);

varutValue=document.adminLoginForm.adminName.value;

//获取用户名文本框的值

varupValue=document.adminLoginForm.adminPassword.value;

//获取密码文本框的值

if(utValue=="

||utValue==null)//判断用户名文本框是否为空,如果为空,输出提示信息“*用户名不能为空”

{

document.getElementById("

utId"

).innerHTML="

*用户名不能为空"

;

//输出提示信息“*用户名不能为空”

}

elseif(upValue=="

||upValue==null)//判断密码文本框是否为空,如果为空,输出提示信息“*密码不能为空”

√"

//确认用户名文本框正确

//alert("

密码不能为空"

upId"

*密码不能为空"

//输出信息“*密码不能为空”

else//如果满足条件

//确认确认密码文本框正确

}

functioncheckNullButton(url)

//确认确认密码文本框正确

document.adminLoginForm.action=url;

document.adminLoginForm.submit();

/script>

/head>

body>

管理员登陆

${loginError}

<

formaction="

name="

adminLoginForm"

method="

post"

管理员名:

inputtype="

text"

adminName"

onclick="

checkNull()"

/>

spanid="

*<

/span>

br/>

管理员密码:

password"

adminPassword"

<

button"

value="

登录"

checkNullButton('

ToAdminIndex'

)"

/form>

ToUserLogin"

adminLoginFormTwo"

submit"

用户登录"

/body>

/html>

登陆成功

用户管理,并添加意见:

管理员登陆界面:

%@pagelanguage="

java"

import="

java.util.*"

pageEncoding="

UTF-8"

%>

%

Stringpath=request.getContextPath();

StringbasePath=request.getScheme()+"

:

//"

+request.getServerName()+"

+request.getServerPort()+path+"

/"

StringloginError=(String)request.getAttribute("

loginError"

if(loginError==null)

{

loginError="

}

DOCTYPEHTMLPUBLIC"

-//W3C//DTDHTML4.01Transitional//EN"

%=loginError%>

servlet/ToAdminIndexServlet'

servlet/ToUserLoginServlet"

管理员界面:

java.util.*,vo.*"

jsp:

useBeanid="

av"

scope="

session"

class="

vo.AdminVo"

/jsp:

useBean>

userList"

request"

java.util.ArrayList"

userListDel"

adminindex.jsp'

functiontoServlet(url){

document.adminListForm.action=url;

document.adminListForm.submit();

//删除

functioncheckHobbyTrue()

{

varuserIdObj=document.adminListForm.userId;

for(i=0;

i<

=userIdObj.length;

i++)

userIdObj[i].checked=true;

functioncheckHobbyFalse()

userIdObj[i].checked=false;

functioncheckHobbyInverse()

userIdObj[i].checked=!

userIdObj[i].checked;

//恢复

functioncheckHobbyTrueRe()

varuserIdObj=document.adminListFormTwo.userId;

functioncheckHobbyFalseRe()

functioncheckHobbyInverseRe()

欢迎你:

%=av.getAdminName()%>

用户列表:

adminListForm"

%for(inti=0;

userList.size();

i++){%>

checkbox"

userId"

%=((UserVo)userList.get(i)).getUserId()%>

ahref="

servlet/ToUserEditServlet?

userId=<

%=((UserVo)userList.get(i)).getUserName()%>

/a>

%}%>

value="

全选"

onclick="

checkHobbyTrue()"

/>

撤销"

checkHobbyFalse()"

反选"

checkHobbyInverse()"

添加"

toServlet('

servlet/ToUserAddServlet'

删除"

servlet/UserDeleteServlet'

作废的用户:

servlet/UserRecoverServlet"

adminListFormTwo"

userListDel.size();

%=((UserVo)userListDel.get(i)).getUserId()%>

%=((U

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 农学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1