<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/init.jsp"%>
<!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>
<link rel="stylesheet" href="${ctx}/resources/css/main.css" type="text/css" />
<link rel='stylesheet' href='${ctx}/resources/css/easyui.css' type='text/css' media='screen' />
<script type="text/javascript" src="${ctx}/resources/js/easyui-lang-zh_CN.js"></script>
<link rel='stylesheet' href='${ctx}/resources/css/easyui/icon.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/css/user-center-style.css' type='text/css' media='screen' />

<%@ include file="../common/top.jsp"%>
<script type="text/javascript" src="${ctx}/resources/js/jquery.easyui.min.js"></script>
<%@ include file="../common/validation.jsp"%>
<title>试卷检索</title>

<script language="javascript">
$(document).ready(function(){
    $('#search-form').submit(function(event){
        event.preventDefault(); 
        var param = $('#search-form').serializeJson();
        param = $.extend(param, {page:1,rows:10});
        $('#dg').datagrid('load',param);
    });
    
    $('#dg').datagrid({
        data: [
{"code":"00032111101B","courseCode":"00032","courseName":"伦理学","book":"《新编伦理学教程》（第二版）","editor":"李春秋","press":"高等教育","pressNO":"2010", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00033051006B","courseCode":"00033","courseName":"世界政治经济与国际关系","book":"当代世界经济与政治 第二版","editor":"李景治","press":"中国人民大学","pressNO":"", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00033120501B","courseCode":"00033","courseName":"世界政治经济与国际关系","book":"《国际经济政治概论》","editor":"程毅","press":"高等教育","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00033121101B","courseCode":"00033","courseName":"世界政治经济与国际关系","book":"《国际政治学概论》（第三版）","editor":"陈岳","press":"中国人民大学出版社","pressNO":"2010", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00085121101B","courseCode":"00085","courseName":"再保险学","book":"《再保险学》（附自学考试大纲）","editor":"张栓林","press":"中国财政经济","pressNO":"2004", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00104120801A","courseCode":"00104","courseName":"证券投资分析","book":"《证券投资分析》（附自学考试大纲）","editor":"任淮秀","press":"中国人民大学","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00104120801B","courseCode":"00104","courseName":"证券投资分析","book":"《证券投资分析》（附自学考试大纲）","editor":"任淮秀","press":"中国人民大学","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00105071201A","courseCode":"00105","courseName":"证券业经营管理","book":"《证券业经营管理》","editor":"刘恒贺强陈灵","press":"中国人大","pressNO":"2001", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00032111101B","courseCode":"00032","courseName":"伦理学","book":"《新编伦理学教程》（第二版）","editor":"李春秋","press":"高等教育","pressNO":"2010", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00033051006B","courseCode":"00033","courseName":"世界政治经济与国际关系","book":"当代世界经济与政治 第二版","editor":"李景治","press":"中国人民大学","pressNO":"", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00033120501B","courseCode":"00033","courseName":"世界政治经济与国际关系","book":"《国际经济政治概论》","editor":"程毅","press":"高等教育","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00033121101B","courseCode":"00033","courseName":"世界政治经济与国际关系","book":"《国际政治学概论》（第三版）","editor":"陈岳","press":"中国人民大学出版社","pressNO":"2010", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00085121101B","courseCode":"00085","courseName":"再保险学","book":"《再保险学》（附自学考试大纲）","editor":"张栓林","press":"中国财政经济","pressNO":"2004", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00104120801A","courseCode":"00104","courseName":"证券投资分析","book":"《证券投资分析》（附自学考试大纲）","editor":"任淮秀","press":"中国人民大学","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00104120801B","courseCode":"00104","courseName":"证券投资分析","book":"《证券投资分析》（附自学考试大纲）","editor":"任淮秀","press":"中国人民大学","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00105071201A","courseCode":"00105","courseName":"证券业经营管理","book":"《证券业经营管理》","editor":"刘恒贺强陈灵","press":"中国人大","pressNO":"2001", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00032111101B","courseCode":"00032","courseName":"伦理学","book":"《新编伦理学教程》（第二版）","editor":"李春秋","press":"高等教育","pressNO":"2010", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""},
{"code":"00106060318B","courseCode":"00106","courseName":"期货市场原理与实务","book":"期货市场原理与实务（附自学考试大纲）","editor":"贺强","press":"人民大学","pressNO":"2000", "school":"某某学校", "status":"清样", "updatedTime":"2013/06/30 16:32:34", "remark":""}
        ]
    });
});

function backToBatchPapers(){
	window.location.href = "${ctx}/examPaper/batchPapers/31";
}
</script>
</head>
<body>
    <%@ include file="../common/header.jsp"%>
    <div id="content" class="content">
        <%@ include file="../common/sub_menu.jsp"%>
        <div class="page" id="page" >
        <div class="page-header" >试卷检索</div>
        <div class="page-body">
        
	        <div>
	            <form id="search-form" method="post" >
		            <table class="searchTable">
		              <tr>
		                  <th>课程：</th>
		                  <td><input name="course" placeholder="课程代码或名称"/></td>
		                  <th>教材：</th>
		                  <td><input name="book" placeholder="教材名称/出版社/编者"/></td>
		                  <th>学校：</th>
		                  <td><input name="school" placeholder="学校名称"/></td>
		              </tr>
		              <tr>
		                  <th>试卷编号：</th>
                          <td><input name="code" placeholder="试卷编号"/></td>
		                  <th>试卷状态：</th>
		                  <td style="width:300px;">
		                      <span class="checkbox" ><input type="checkbox" disabled><label>全部</label></input></span>
		                      <span class="checkbox" ><input type="checkbox" disabled><label>毛坯</label></input></span>
		                      <span class="checkbox" ><input type="checkbox" checked disabled><label>清样</label></input></span>
		                      <span class="checkbox" ><input type="checkbox" disabled><label>启用</label></input></span>
		                  </td>
		                  <th>清样批次：</th>
		                  <td>
			                  <select name="rkpc">
			                     <option value="">选择清样批次</option>
			                  </select>
		                  </td>
		              </tr>
		            </table>
		            <button id="searchBtn">查询</button>
	            </form>
				</div>
	        <div style="clear:both; margin-bottom:10px;"></div>
	        
	        <div class="right" style="min-height:300px;position: relative;">
	             <div id="list-wrap posts" class="listview">
	                 <table id="dg" class="easyui-datagrid"
	                     data-options="fitColumns:true,singleSelect:false,striped:true,pagination:true,selectOnCheck:true,checkOnSelect:true,toolbar: '#tb'">
	                     <thead>
	                         <tr class="title">
	                             <th data-options="field:'ck',checkbox:true"></th>
	                             <th data-options="field:'code',width:80">试卷编码</th>
	                             <th data-options="field:'status',width:60">状态</th>
	                             <th data-options="field:'courseCode',width:50">课程代码</th>
	                             <th data-options="field:'courseName',width:110">课程名称</th>
	                             <th data-options="field:'book',width:150">教材名称</th>
	                             <th data-options="field:'editor',width:60">作者</th>
	                             <th data-options="field:'press',width:80">出版社</th>
	                             <th data-options="field:'pressNO',width:60">版次</th>
	                             <th data-options="field:'updatedTime',width:80">更新日期</th>
	                         </tr>
	                     </thead>
	                   </table>
	                   
	                   <div id="tb" style="height:auto">
	                       <!-- 
                            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="append()">添加到清样批次</a>
                            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="append()">添加到启用批次</a>
                            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="accept()">保存</a>
                            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="reject()">撤销</a>
	                        -->
	                        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="">添加到启用批次</a>
	                        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-return',plain:true" onclick="backToBatchPapers()">返回</a>
                        </div>
	               </div>
	            </div>
	        </div>
        </div>
    </div>
</body>
</html>