9 Star 37 Fork 4

只会CRUD/在线考试系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.jsp 4.94 KB
一键复制 编辑 原始数据 按行查看 历史
只会CRUD 提交于 7年前 . 初始化
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>智夫子在线考试系统</title>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path;
%>
<c:set var="path" value="<%=basePath%>"></c:set>
<link href='${path }/images/reception/index.png' rel='shortcut icon' type='image/x-icon'>
<link href="${path }/css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="${path }/js/zeroModal/zeroModal.css" />
</head>
<body style="background-color: #EEEEEE;">
<div style="width: 100%; height: 100%;">
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.jsp">智夫子</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="index.jsp">首页</a>
</li>
<li>
<a id="examCenter-link" target="home" style="cursor: pointer;" href="willexams?classId=${sessionScope.loginStudent.classInfo.classId }&gradeId=${sessionScope.loginStudent.grade.gradeId }&studentId=${sessionScope.loginStudent.studentId }" studentId="${sessionScope.loginStudent.studentId }">考试中心</a>
</li>
<li>
<a id="mineCenter-link" target="home" style="cursor: pointer;" href="history/${sessionScope.loginStudent.studentId }" studentId="${sessionScope.loginStudent.studentId }">考试历史</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right" style="margin-right: 10px;">
<li class="dropdown">
<c:if test="${sessionScope.loginStudent != null }">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img class="img-circle" src="images/reception/photo.jpg" alt="Photo" style="width: 30px; height: 30px;" />
<strong class="caret"></strong>
</a>
<ul class="dropdown-menu">
<li>
<a href="self/${sessionScope.loginStudent.studentId }" id="self">${sessionScope.loginStudent.studentName }</a>
</li>
<li class="divider"></li>
<li>
<a href="exit">退出登录</a>
</li>
</ul>
</c:if>
<c:if test="${sessionScope.loginStudent == null }">
<div class="btn-group" style="margin-top: 5px;">
<button type="button" class="btn btn-default btn-sm" id="studentLogin">登录</button>
<button type="button" class="btn btn-default btn-sm" id="studentRegister">注册</button>
</div>
</c:if>
</li>
</ul>
</div>
</nav>
</div>
</div>
</div>
<div style="margin-top: 0px; width: 100%;height:650px;">
<iframe src="reception/home.jsp" width="100%" height="100%" name="home"></iframe>
</div>
</div>
<!-- js引入 -->
<script src="${path }/js/jquery.js"></script>
<script src="${path }/js/bootstrap/bootstrap.min.js"></script>
<script src="${path }/js/zeroModal/zeroModal.min.js"></script>
<script src="${path }/js/login.js"></script>
<script type="text/javascript">
$(function() {
$("#examCenter-link, #mineCenter-link").click(function() {
//判断是否登录
var studetnId = $(this).attr("studentId");
if(studetnId.trim() == "" || studetnId == null) {
zeroModal.show({
title: "提示",
content: "登录后才能查看",
width : '200px',
height : '130px',
overlay : false,
ok : true,
onClosed : function() {
location.reload();
}
});
return false;
}
});
$("#self").click(function() {
var href = $(this).attr("href");
zeroModal.show({
title: "Self",
content: "个人信息查看",
width : '400px',
height : '200px',
top : '100px',
left : '430px',
url: href,
overlay : false,
ok : true,
onClosed : function() {
location.reload();
}
});
return false;
});
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/chenyp/online_examination_system.git
git@gitee.com:chenyp/online_examination_system.git
chenyp
online_examination_system
在线考试系统
master

搜索帮助