📄 showcourse.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'showCourse.jsp' starting page</title>
<meta http-equiv="content-type" content="text/html; charset=gbk">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<link href="css/base.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="header">
<div class="headerBox">
<table cellpadding="0" class="headerInfo" cellspacing="0" border="0">
<tr>
<td rowspan="2">
<span class="title"> 学生成绩管理系统</span>
</td>
<td style=" text-align:right;">制作人:</td>
<td style=" text-align:right; width:12em; ">杨诚</td>
</tr>
</table>
</div>
</div>
<div class="screenName">
<a href="../YcTest/index.jsp">主页</a>
>>
课程信息管理
</div>
<div class="body">
<div class="guidance">
显示课程信息。<br>
可对课程信息进行增加,删除,修改。
<logic:present name="message">
<br>
<font color="red" size="4" ><bean:write name="message" /></font>
</logic:present>
</div>
<div><br>
<html:form action="/couLook.do" >
<html:submit property="action" styleClass="submit"><bean:message key="button.courseAdd" /></html:submit>
</div><br>
</html:form>
<h5>课程情报</h5>
<div class="box">
<logic:present name="pageNum">
<label>
页数:
<logic:iterate id="pagnum" name="pageNum">
<a href='course.do?method=init&pageNum=<bean:write name="pagnum" />' ><bean:write name="pagnum" /></a>
</logic:iterate>
</label>
<table cellpadding="0" class="listTable" cellspacing="0" border="0">
<thead>
<tr>
<th class="caption" style=" width:10em;">编号</th>
<th class="caption" style=" width:10em;">课程名</th>
<th class="caption" style=" width:5em;">书名</th>
<th class="caption" style=" width:5em;">专业名</th>
<th class="caption" style=" width:5em;">删除</th>
<th class="caption" style=" width:5em;">修改</th>
<th class="caption" style=" width:5em;">评分</th>
<th class="blank"></th>
</tr>
</thead>
<tbody>
<logic:iterate id="course" name="courseList">
<tr class="">
<td><span class="tbody"><bean:write name="course" property="id" />
</span><br>
</td>
<td><span class="tbody"><bean:write name="course" property="name" />
</span><br>
</td>
<td><span class="tbody"><bean:write name="course" property="bookname" />
</span><br>
</td>
<td><span class="tbody"><bean:write name="course" property="knowledge" />
</span><br>
</td>
<td><span class="tbody"><html:link action="course?method=delCourse" paramId="stuid" paramName="course" paramProperty="id">删除</html:link>
</span><br>
</td>
<td><span class="tbody"><html:link action="course?method=updateCourse" paramId="stuid" paramName="course" paramProperty="id">修改</html:link>
</span><br>
</td>
<td><span class="tbody"><html:link action="result?method=init" paramId="id" paramName="course" paramProperty="id">评分</html:link>
</span><br>
</td>
</tr>
</logic:iterate>
</tbody>
</logic:present>
<logic:notPresent name="pageNum" >
<font color="red" size="4" >没有数据</font>
</logic:notPresent>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -