Examination_system/Examination_system-1/.svn/pristine/c6/c60e2a6c1a564b18857ade633fd...

124 lines
4.9 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html >
<html lang="en">
<head>
<%@include file="../baseset.jsp" %>
<%@include file="../systemset.jsp" %>
<style type="text/css">
.exp{
postion:absolute;
max-hight: 36px;
line-height: 25px;
background-color:#1761c1;
border-radius:5px;
text-align:center;
padding:0.3%;
color:white;
border:none;
margin-top:-5%;
font-size: smaller;
}
</style>
</head>
<body>
<div class="page-content">
<div class="row-fluid">
<div class="col-xs-12">
<div class="row">
<div class="col-sm-12">
<form id="baseForm" class="form-inline" method="POST" onsubmit="return false;">
<div class="widget-header widget-header-large" style="padding:10px;">
<div class="widget-main customBtn" >
<input id="keyWord" type="text" name="keyWord" placeholder="请输入关键词查询..." />
<button class="btn btn-success btn-sm" onclick="getbaseList(1)" id="search" title="查询" type="button">查询</button>
<input id="articleImageFile" type="file" class="form-control" style="width: 200px; display: inline;" />
<button type="button" class="exp" onclick="importData();">批量导入</button>
<button type="button" class="exp" onclick="importTemplate();" style="width:100px;">导入模板下载</button>
</div>
</div>
<input type='hidden' class='pageNum' name='pageNum' value='1'/>
<input type='hidden' class='pageSize' name='pageSize' value='10'/>
</form>
<table id="baseTable" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width:4%" class='center'>序号</th>
<th style="width:10%" class='center'>考生姓名</th>
<th style="width:15%" class="center">身份证号</th>
<th style="width:15%" class="center">座位号</th>
<th style="width:17%" class="center">考试场次</th>
<th style="width:18%" class="center">所属专业</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="row">
<div class="col-sm-3">
</div>
<div class="col-sm-9">
<!--设置分页位置-->
<div id="pageing" class="dataTables_paginate paging_bootstrap">
<ul class="pagination"></ul>
</div>
</div>
</div>
</div>
</div>
<!-- #dialog-confirm -->
<%@include file="../dialog.jsp" %>
</div>
</div>
</div>
<script src="${bonuspath}/static/js/enroll/enrollList.js?v=1"></script>
<script type="text/javascript">
$(function(){
getbaseList(1);
});
function getbaseList(init){
var keyWord = $("input[name$='keyWord']").val();
if(init==1)$("#baseForm .pageNum").val(1);
JY.Model.loading();
JY.Ajax.doRequest("baseForm",bonuspath +'/backstage/enroll/findByPage',{keyWord : keyWord},function(data){
$("#baseTable tbody").empty();
var obj=data.obj;
var list=obj.list;
var results=list.results;
var permitBtn=obj.permitBtn;
var pageNum=list.pageNum,pageSize=list.pageSize,totalRecord=list.totalRecord;
var html="";
if(results!=null&&results.length>0){
var leng=(pageNum-1)*pageSize;//计算序号
for(var i = 0;i<results.length;i++){
var l=results[i];
var delFlag = l.delFlag;
if(delFlag =='0' || delFlag ==0){
delFlag = '未考试'
}else{
delFlag = '已考试'
}
html+="<tr>";
html+="<td style='vertical-align:middle;' class='center hidden-480'>"+(i+leng+1)+"</td>";
html+="<td style='vertical-align:middle;' class='center'>"+JY.Object.notEmpty(l.name)+"</td>";
html+="<td style='vertical-align:middle;' class='center hidden-480' >"+JY.Object.notEmpty(l.idcard)+"</td>";
html+="<td style='vertical-align:middle;' class='center hidden-480' >"+JY.Object.notEmpty(l.seatNum)+"</td>";
html+="<td style='vertical-align:middle;' class='center '>"+JY.Object.notEmpty(l.times)+"</td>";
html+="<td style='vertical-align:middle;' class='center hidden-480' >"+JY.Object.notEmpty(l.specialty)+"</td>";
html+="</tr>";
}
$("#baseTable tbody").append(html);
JY.Page.setPage("baseForm","pageing",pageSize,pageNum,totalRecord,"getbaseList");
}else{
html+="<tr><td colspan='22' class='center'>没有相关数据</td></tr>";
$("#baseTable tbody").append(html);
$("#pageing ul").empty();//清空分页
}
JY.Model.loadingClose();
});
}
</script>
</body>
</html>