内容发布更新时间 : 2024/12/28 4:45:21星期一 下面是文章的全部内容请认真阅读。
<%=l.getTeacheruser(login.getUsername()).getTeacherusername() %>
姓年性系
名龄别别
::::
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++) { %>
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() %>
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() %>