管理信息系统大作业 下载本文

内容发布更新时间 : 2024/11/2 16:35:31星期一 下面是文章的全部内容请认真阅读。

<%=l.getTeacheruser(login.getUsername()).getTeacherusername() %> 教师<%=l.getTeacheruser(login.getUsername()).getTeachername() %> 教师<%=l.getTeacheruser(login.getUsername()).getTeacherage() %> 教师<%=l.getTeacheruser(login.getUsername()).getTeachersex() %> 教师<%=l.getTeacheruser(login.getUsername()).getTeacherjob() %>

姓年性系

名龄别别

::::

教师个人信息:

2)修改密码

运行界面:

主要代码:

<%

session.setAttribute(\ SelectTeacherdao l=new SelectTeacherdao(); %>

学生信息管理: 1)学生信息查询

运行界面:

主要代码:

<%

String path = request.getContextPath(); String basePath

request.getScheme()+\%> <%

=

ArrayList

arr=l.getStudent(student.getStudentusername(),student.getStudentdepartment() ,student.getStudentprofession(),student.getStudentclass()); %> <%

for (int i = start;i <=end;i++) { %>

<%=l.getStudentuser(arr.get(i)).getStudentusername() %> <%=l.getStudentuser(arr.get(i)).getStudentname() %> <%=l.getStudentuser(arr.get(i)).getStudentage() %> <%=l.getStudentuser(arr.get(i)).getStudentsex() %> <%=l.getStudentuser(arr.get(i)).getStudentstartyear() %> <%=l.getStudentuser(arr.get(i)).getStudentdepartment() %> <%=l.getStudentuser(arr.get(i)).getStudentprofession() %> <%=l.getStudentuser(arr.get(i)).getStudentclass() %> <%=l.getStudentuser(arr.get(i)).getStudentinformation() %> <%

2)添加学生选课信息

运行界面:

主要代码 function check(){ if(form1.scoreid.value==\){ alert(\选课号不能为空\); return false; } if(form1.teacherusername.value==\){ alert(\教师工号不能为空!\);

return false; }

else if(form1.studentusername.value==\){ alert(\学生号不能为空!\); return false; }

else if(form1.courseid.value==\){ alert(\课程号不能为空!\); return false;}

else if(form1.scoreyear.value==\){

alert(\课程学期不能为空!\); } form1.submit(); }

function freset(){ form1.reset(); return false;

<%

ScoreDao l=new ScoreDao(); score s=new score();

s.setScoreid(score.getScoreid());

s.setTeacherusername(score.getTeacherusername()); s.setStudentusername(score.getStudentusername()); s.setCourseid(score.getCourseid()); s.setScoreyear(score.getScoreyear()); s.setScore(score.getScore());

if(score.getScoreid().equals(l.getScore(score.getScoreid()).getScoreid())){

%> <%

} else{

l.insertScore(s);

%> <%

}

else if(score.getCourseid()!=null){

%>

for (int i = start;i <=end;i++) { %>

align=center><%=l.getScore(arr.get(i)).getScoreid() %><%=l.getScore(arr.get(i)).getTeacherusername() %>

height=\align=center><%=l.getScore(arr.get(i)).getStudentusername() %>

height=\align=center><%=l.getScore(arr.get(i)).getCourseid() %>

align=center><%=l.getScore(arr.get(i)).getScoreyear() %>

\ size=\ maxlength=\ >