Home » Source Code » Student management system » courseManage.jsp

courseManage.jsp ( File view )

  • By rainboy0615 2013-12-17
  • View(s):22
  • Download(s):0
  • Point(s): 1
			<%@page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page
	import="utils.*, com.stuclasschoose.ejb3.dao.*, com.stuclasschoose.ejb3.bean.*, java.util.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("gb2312");
	CourseDAO user = (CourseDAO) EJBFactory
			.lookup("CourseDAOBean/remote");
	int q = 10;
	List<Course> list = user.getAllCourse();
	Pager pager = null;
	if (session.getAttribute("PagerCourse") == null) {


		pager = new Pager(list);
		session.setAttribute("PagerCourse", pager);
	
} else {

		pager = (Pager) session.getAttribute("PagerCourse");
		pager.update(list);
	
}
	String r = null;
	r = request.getParameter("input");
	if (r != null) {

		q = Integer.parseInt(r);
		pager.setPageSize(q);
	
}
	String req = null;
	req = request.getParameter("num");
	if (req != null) {

		if (req.equals("next")) {

			pager.next();
		
}
		if (req.equals("last")) {

			pager.last();
		
}
	
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>东北大学学生选课系统课程管理</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" href="css/studentAndCource.css" type="text/css">

		<script language="javascript">
	function   check(form) 
	{
 
	if(isNaN(form.input.value)) {

	alert("请输入一个数字");
	form.input.focus();
	return false;
	
}
	if(form.input.value=="0")
	{
alert("非法!第一个不能是0!");
	form.input.focus();
	return false;
}
	else
	return true;
    
} 
</script>
	</head>

	<body>
		<div id="container">
			<!----------------------------------left--------------------->
			<div id="left">
				<div id="left_up">
				</div>

				<div id="left_down">
					<div id="left_down_left">
					</div>

					<div id="left_down_right">

					</div>
				</div>
				<!------------------------------------Middle---------------------------------->
				<div id="mid">
					<div id="mid_up"></div>
					<div id="mid_down"></div>
				</div>
				<!--------------------------------------right---------------------------------->
				<div id="right">
					<div id="right_up">
						&nbsp;&nbsp;
						<a href="jsp/courseAdd.jsp">添 加</a>

						<a href="servlet/Exit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;退出系统</a>
						<a href="index.jsp">返回主界面</a>
						<br />
						<hr class="sep" />
						<br>

						<div id="right_down_left"></div>
						<div id="right_down_right"></div>
						<!-------------------------------------这里是检索出的年级课程列表--------------------------------------------->

						<table border="1" width="100%">
							<tr>
								<th width="11.1%">
									课程编号
								</th>
								<th width="11.1%">
									课程名称
								</th>
								<th width="11.1%">
									任课教师
								</th>
								<th width="11.1%">
									上课地点
								</th>
								<th width="11.1%">
									上课时间
								</th>
								<th width="11.1%">
									已选人数
								</th>
								<th width="11.1%">
									可选人数
								</th>
								<th width="11.1%">
									修改
								</th>
								<th width="11.1%">
									删除
								</th>
							</tr>
							<%
								StringBuffer str = new StringBuffer();
								Course cour[] = new Course[q];
								for (int i = 0; i < q; i++) {

									cour[i] = null;
									cour[i] = pager.get(i);
									if (cour[i] != null) {

										str.append("<tr>");
										str.append("<td>" + cour[i].getCourseId() + "</td>");
										str.append("<td>" + cour[i].getCourseName() + "</td>");
										str.appe
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
.classpath529.00 B21-10-11|14:56
.mymetadata310.00 B21-10-11|10:01
.project1.59 kB21-10-11|09:48
.jsdtscope500.00 B21-10-11|09:48
org.eclipse.jdt.core.prefs395.00 B21-10-11|09:48
org.eclipse.wst.common.component461.00 B21-10-11|09:48
org.eclipse.wst.common.project.facet.core.xml252.00 B21-10-11|09:48
org.eclipse.wst.jsdt.ui.superType.container49.00 B21-10-11|09:48
org.eclipse.wst.jsdt.ui.superType.name6.00 B21-10-11|09:48
Course.java3.16 kB22-10-11|13:17
CourseChoose.java2.01 kB22-10-11|13:48
Student.java2.57 kB22-10-11|13:17
CourseChooseDAO.java446.00 B23-10-11|00:52
CourseDAO.java432.00 B21-10-11|15:27
StudentDAO.java577.00 B21-10-11|15:27
SetCharacterEncodingFilter.java1.50 kB21-10-11|20:19
AdminLogin.java1.45 kB23-10-11|14:58
CourseAdd.java2.26 kB23-10-11|14:50
CourseDelete.java1.35 kB23-10-11|14:50
CourseModify.java2.53 kB23-10-11|14:50
DeleteCourseServlet.java1.49 kB23-10-11|14:50
Exit.java1.06 kB23-10-11|14:50
Register.java1.37 kB23-10-11|14:50
SelectCourseServlet.java1.41 kB23-10-11|14:50
StuAdd.java1.13 kB23-10-11|14:50
StuDelete.java1.13 kB23-10-11|14:50
StuInfoChange.java1.64 kB23-10-11|14:50
StuLogin.java1.40 kB23-10-11|14:57
StuModify.java1.58 kB23-10-11|14:50
EJBFactory.java681.00 B21-10-11|21:04
Pager.java1.95 kB21-10-11|20:23
courseAndSutdentModify.css1.05 kB21-10-11|09:48
courseSelected.css2.98 kB21-10-11|09:48
courseSelected2.css2.98 kB21-10-11|09:48
index.css3.12 kB21-10-11|09:48
studentAndCource.css2.34 kB21-10-11|09:48
1.gif8.06 kB21-10-11|09:48
10.gif10.01 kB21-10-11|09:48
2.gif12.15 kB21-10-11|09:48
3.gif11.50 kB21-10-11|09:48
4.gif9.47 kB21-10-11|09:48
5.gif8.07 kB21-10-11|09:48
6.gif5.39 kB21-10-11|09:48
7.gif12.24 kB21-10-11|09:48
8.gif10.07 kB21-10-11|09:48
9.gif10.95 kB21-10-11|09:48
arrow3.gif122.00 B21-10-11|09:48
arrow4.gif122.00 B21-10-11|09:48
arrow5.gif315.00 B21-10-11|09:48
border.gif354.00 B21-10-11|09:48
leftside_bg.gif54.12 kB21-10-11|09:48
left_down_left.jpg3.32 kB21-10-11|09:48
left_down_right.jpg50.57 kB21-10-11|09:48
left_up.jpg23.56 kB21-10-11|09:48
login1.gif1.20 kB21-10-11|09:48
main_bg.jpg597.00 B21-10-11|09:48
mid.jpg42.16 kB21-10-11|09:48
mid_down.jpg515.00 B21-10-11|09:48
name.gif1,001.00 B21-10-11|09:48
password.gif1.03 kB21-10-11|09:48
re_password.gif1.03 kB21-10-11|09:48
right_down_left.jpg15.33 kB21-10-11|09:48
right_down_right.jpg15.19 kB21-10-11|09:48
right_mid.jpg6.03 kB21-10-11|09:48
right_up_left.jpg5.69 kB21-10-11|09:48
right_up_right.jpg5.38 kB21-10-11|09:48
东北大学学生选课_01.psd1.08 MB21-10-11|09:48
index.jsp4.30 kB22-10-11|23:16
adminLogin.jsp2.25 kB21-10-11|09:48
courseAdd.jsp4.49 kB21-10-11|09:48
courseCheck.jsp3.77 kB22-10-11|21:58
courseManage.jsp5.87 kB21-10-11|20:40
courseModify.jsp5.11 kB22-10-11|14:35
courseSelected.jsp5.26 kB21-10-11|20:40
courseSelected_down.jsp2.61 kB22-10-11|11:09
courseSelected_up.jsp2.60 kB21-10-11|20:40
register.jsp2.68 kB21-10-11|09:48
stuInfoChange.jsp2.47 kB21-10-11|09:48
stuLogin.jsp2.29 kB21-10-11|09:48
stuManage.jsp4.19 kB21-10-11|21:02
stuModify.jsp3.53 kB22-10-11|14:34
MANIFEST.MF39.00 B21-10-11|09:48
Course.class4.10 kB22-10-11|17:03
CourseChoose.class2.61 kB22-10-11|17:03
Student.class3.26 kB22-10-11|17:03
CourseChooseDAO.class777.00 B23-10-11|00:52
CourseDAO.class572.00 B22-10-11|17:03
StudentDAO.class600.00 B22-10-11|17:03
SetCharacterEncodingFilter.class2.06 kB22-10-11|17:03
AdminLogin.class2.02 kB23-10-11|14:58
CourseAdd.class3.47 kB23-10-11|14:50
CourseDelete.class2.04 kB23-10-11|14:50
CourseModify.class3.80 kB23-10-11|14:50
DeleteCourseServlet.class2.31 kB23-10-11|14:50
Exit.class1.59 kB23-10-11|14:50
Register.class2.33 kB23-10-11|14:50
SelectCourseServlet.class2.28 kB23-10-11|14:50
StuAdd.class2.03 kB23-10-11|14:50
StuDelete.class2.02 kB23-10-11|14:50
StuInfoChange.class2.40 kB23-10-11|14:50
StuLogin.class2.47 kB23-10-11|14:58
StuModify.class2.79 kB23-10-11|14:50
EJBFactory.class1.07 kB22-10-11|17:03
Pager.class2.10 kB22-10-11|17:03
web.xml6.31 kB23-10-11|15:52
.classpath431.00 B19-10-11|22:54
.mymetadata185.00 B21-10-11|09:34
.project1.26 kB22-10-11|15:38
org.eclipse.jdt.core.prefs395.00 B19-10-11|22:54
org.eclipse.jpt.core.prefs101.00 B19-10-11|22:54
org.eclipse.wst.common.component327.00 B19-10-11|22:54
org.eclipse.wst.common.project.facet.core.xml295.00 B19-10-11|22:54
Course.class4.10 kB22-10-11|17:03
CourseChoose.class2.61 kB22-10-11|17:03
Student.class3.26 kB22-10-11|17:03
CourseChooseDAO.class777.00 B23-10-11|00:51
CourseDAO.class572.00 B22-10-11|17:03
StudentDAO.class600.00 B22-10-11|17:03
CourseChooseDAOBean.class4.17 kB23-10-11|15:20
CourseDAOBean.class2.76 kB22-10-11|17:03
StudentDAOBean.class3.11 kB23-10-11|14:55
MANIFEST.MF36.00 B19-10-11|22:54
persistence.xml545.00 B22-10-11|17:30
Course.java3.16 kB22-10-11|13:13
CourseChoose.java2.01 kB22-10-11|13:41
Student.java2.57 kB21-10-11|23:21
CourseChooseDAO.java446.00 B23-10-11|00:51
CourseDAO.java432.00 B21-10-11|15:27
StudentDAO.java577.00 B21-10-11|15:27
CourseChooseDAOBean.java2.57 kB23-10-11|15:20
CourseDAOBean.java1.59 kB21-10-11|15:50
StudentDAOBean.java2.22 kB23-10-11|14:55
MANIFEST.MF36.00 B19-10-11|22:54
persistence.xml545.00 B22-10-11|17:30
bean0.00 B23-10-11|22:57
dao0.00 B23-10-11|22:57
ejb30.00 B23-10-11|22:57
bean0.00 B23-10-11|22:57
dao0.00 B23-10-11|22:57
stuclasschoose0.00 B22-10-11|17:03
bean0.00 B23-10-11|22:57
dao0.00 B23-10-11|22:57
impl0.00 B23-10-11|22:57
bean0.00 B23-10-11|22:57
dao0.00 B23-10-11|22:57
impl0.00 B23-10-11|22:57
ejb30.00 B23-10-11|22:57
com0.00 B22-10-11|17:03
filter0.00 B23-10-11|14:49
servlets0.00 B23-10-11|22:57
utils0.00 B23-10-11|22:57
ejb30.00 B23-10-11|22:57
ejb30.00 B23-10-11|22:57
stuclasschoose0.00 B22-10-11|13:16
classes0.00 B23-10-11|22:57
lib0.00 B21-10-11|09:48
stuclasschoose0.00 B22-10-11|17:03
stuclasschoose0.00 B21-10-11|09:33
com0.00 B22-10-11|13:16
filter0.00 B23-10-11|14:49
servlets0.00 B23-10-11|22:57
utils0.00 B23-10-11|22:57
css0.00 B23-10-11|22:57
image0.00 B23-10-11|22:57
jsp0.00 B23-10-11|22:57
META-INF0.00 B23-10-11|22:57
WEB-INF0.00 B23-10-11|22:57
com0.00 B22-10-11|17:03
META-INF0.00 B23-10-11|22:57
com0.00 B21-10-11|09:33
META-INF0.00 B23-10-11|22:57
.settings0.00 B23-10-11|22:57
src0.00 B23-10-11|22:57
WebRoot0.00 B23-10-11|22:57
.myeclipse0.00 B19-10-11|22:54
.settings0.00 B23-10-11|22:57
classes0.00 B23-10-11|22:57
src0.00 B23-10-11|22:57
StuClassChooseWeb0.00 B23-10-11|22:57
StuClassChooseEJB0.00 B23-10-11|22:57
...
Sponsored links

courseManage.jsp (741.97 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D