<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>教学管理系统</title>
<style type="text/css">
body {
background-color: #F5DEB3
}
.content {
height: calc(90vh - 100px);
overflow-y: scroll;
}
table {
/*表格边框为实线或者是空心双线*/
border-collapse: collapse;
/*边框与边框的空间*/
border-spacing: 0;
padding: 40px ;
}
a {
color: rgb(60, 114, 53);
text-decoration: none;
font-size: 12px;
}
a:hover {
color: rgb(60, 114, 53);
text-decoration: underline;
font-size: 12px;
}
a:visited {
color: rgb(0, 106, 78);
font-size: 12px;
}
/*整个tab层居中,宽度为600px*/
#tabDiv {
height:550px;
margin: 1em auto;
padding-bottom: 10px;
border-right: rgb(30,144,255) 2px solid;
border-top: rgb(30,144,255) 2px solid;
border-left: rgb(30,144,255) 2px solid;
border-bottom: rgb(30,144,255) 2px solid;
background: #ffffff;
}
/*tab头的样式*/
#tabsHead {
padding-left: 0px;
height: 26px;
background-color: rgb(179, 247, 19);
font-size: 1em;
margin: 1px 0px 0px;
color: rgb(179, 247, 19);
line-height: 26px;
}
/*已选tab头(超链接)的样式*/
.curtab {
padding-top: 0px;
padding-right: 10px;
padding-bottom: 0px;
padding-left: 10px;
border-right: rgb(209, 226, 49) 1px solid;
font-weight: bold;
float: left;
cursor: pointer;
background: #ffffff;
}
/*未选tab头(超链接)的样式*/
.tabs {
border-right: rgb(209, 226, 49) 1px solid;
padding-top: 0px;
padding-right: 10px;
padding-bottom: 0px;
padding-left: 10px;
font-weight: normal;
float: left;
cursor: pointer;
}
p {
font-size: 12pt;
text-indent: 2em;
}
li {
border-bottom-style: solid;
border-bottom-color: #EEE;
border-bottom-width: thin;
height: 25px;
font-family: "宋体";
font-size: 20pt;
}
</style>
<script type="text/jscript">
//显示tab(tabHeadId:tab头中当前的超链接;tabContentId要显示的层ID)
function showTab(tabHeadId,tabContentId)
{
//tab层
var tabDiv = document.getElementById("tabDiv");
for(i=0; i<tabHeads.length; i++)
{
//将超链接的样式设为未选的tab头样式
tabHeads[i].className='tabs';
}
}
</script>
</head>
<%
String identity=request.getParameter("identity");
String[] try_data=new String[40];
String the_leaf=request.getParameter("the_leaf");
if(the_leaf==null){
the_leaf="1";
}
int the_leaves=Integer.valueOf(the_leaf);
int all_leaves=try_data.length/10;
if(all_leaves*10<try_data.length){
all_leaves++;
}
String back;
if(identity.equals("student")){
back="all_Student.jsp";
}
else if(identity.equals("teacher")){
back="all_Teacher.jsp";
}
else
back="all_Root.jsp";
%>
<body>
<h1 align="center">课 程 申 请 浏 览</h1>
<table id="tabDiv" border="1" style="font-size:18px;width:900px">
<tr>
<td style="height:45px;width:600px;">
课程:
<input text="text" id="lesson_num" size="10px" placeholder="课程名称" style="font-size:18px"></td>
<td style="height:45px;width:230px" align="center">操作</td>
<td><button id="s_l_num" style="height:45px;width:60px">查询</button></td>
</tr>
<%int i=10*(the_leaves-1)+1;
for(;(i%10!=0&&i<try_data.length);i++) {%>
<tr>
<td style="height:50px">
课程信息: 编号-1000<%out.print(i); %>
名称:如何瞎蒙考100<br>
专业:软件工程
院系:信息科学与技术学院
</td>
<td align="center"> <a href="Audit_lesson.jsp" style="font-size:20px">查看</a>
<%if(identity==null||identity.equals("teacher")) {%>
<a style="font-size:20px">修改</a>
<a style="font-size:20px">删除</a></td>
<%} %>
</tr>
<%} %>
<tr>
<td ></td> <!--保持多一个行数,用于填满空白 -->
</tr>
<tr>
<td style="width:100%;height:30px" colspan="3">
<a href="<%=back %>" style="font-size:18px;text-align:left"><-退出</a>
<div style="text-align:center;">
<a href="Browse_Audit.jsp?the_leaf=<%=the_leaves-1 %>&identity=<%=identity %>" style="font-size:18px">
<%if(the_leaves!=1) %><u>上一页</u></a>
<%for(int j=1;j<=all_leaves;j++) {%>
<a href=?Browse_Audit.jsp?the_leaf=<%=j %>"
style="pointer-events:none"><u style="font-size:18px">
<%if(j==the_leaves)%><font color="red"><%out.print(j); %></font></u></a>
<%} %>
<%if(the_leaves<all_leaves) {%><a href="Browse_Audit.jsp?the_leaf=<%=the_leaves+1 %>&identity=<%=identity %>"
style="font-size:18px;"><u>下一页</u></a>
<%} %>
</div>
</td></tr>
</table>
</body>
</html>