⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mycourselist.jsp

📁 基于ssh框架
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.zzu.dao.entity.*" pageEncoding="gbk"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!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" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  
       <%
    	Teacher teacher=(Teacher)request.getSession().getAttribute("teacher");
    	if(teacher==null){
    %>
     <jsp:forward page="../syslogin.jsp"></jsp:forward>
	<%} %>
  
    ${teacher.tname },欢迎你!<br/>
    
    <a href="teacher/updateInfo.jsp" />修改个人信息</a>
    <a href="teacher/addCourse.jsp" >添加课程</a>
    <a href="teacher.do?operate=myCourseList&tno=${teacher.tno  }" >我带的选修课</a>
    <a href="teacher.do?operate=mgrStudent&tno=${teacher.tno  }" >增减学生</a>
    <a href="teacher.do?operate=gradeStudentEdit&tno=${teacher.tno  }" >给学生评分</a>   
    <a href="book.do?operate=booksubmit&tno=${teacher.tno  }" >进入留言簿</a>
    <a href="teacher/exitsystem.jsp" >退出系统</a>
    
 	<br/><br/>
 	<li>进入 教师CourseList.jsp</li>
 	<hr/>
 	   
 	   
 	   	<table align="center">
 	   		<tr><td width="100">
 	   			教师编号
 	   		</td>
 	   		
 	   		<td width="80">
 	   			教师姓名
 	   		</td>
 	   		
 	   		<td width="80">
 	   			课程编号
 	   		</td>
 	   		
 	   		<td width="80">
 	   			课程
 	   		</td>
 	   		
			
 	   		<td width="80">
 	   			学分
 	   		</td>
 	   		<td width="160" colspan="2">
 	   			操作
 	   		</td>
 	   		
 	   	
 	   		</tr>
 	   		<input type="hidden" name="operate" value="myCourseMgr" />
 	   		<input type="hidden" name="tno" value="${teacher.tno }" />
 	   		<logic:iterate id="my" name="mycourselist" >
 	   			<tr>
 	   			<td>
 	   			${my.teacher.tno }
 	   		</td>
 	   			<td>
 	   			${my.teacher.tname }
 	   		</td>
 	   		
 	   		<td>
 	   			${my.course.cno }
 	   		</td>
 	   		<td>
 	   			${my.course.cname }
 	   		</td>
 	   		<td>
 	   			${my.course.ccredit }
 	   		</td>
 	   		
 	   		<td width="80" >
 	   			<a href="teacher.do?operate=modifyCourse&cno=${my.course.cno }&tno=${my.teacher.tno }" >修改</a>
 	   		</td>
 	   		
 	   		<td width="80">
 	   			<a href="teacher.do?operate=delCourse&cno=${my.course.cno }&tno=${my.teacher.tno }" >删除</a>
 	   		</td>
 	   		
 	   		</tr>
 	   		   		
 	   		</logic:iterate>
 	   		
 	   		
 	   		 <tr align="center"><td>
 				<input type="submit"  value="添加"/><input type="reset"  value="取消"/><br/>
 			</td></tr>
 	   	</table>
 	   
 	   
    
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -