Commit 0b8a7a5f by 冷斌

试卷

parent d49f39d6
...@@ -5,19 +5,19 @@ ...@@ -5,19 +5,19 @@
#list table td{text-align: center;} #list table td{text-align: center;}
.allexams{float:left;} .allexams{float:left;}
#point{padding-top: 1px;} #point{padding-top: 1px;}
.confirm{background: white;position: absolute;width: 100%;bottom:0;left: 0;text-align: left; padding: 1%;} .confirm{background: white;position: absolute;width: 100%;bottom:0;left: 0;text-align: left; padding: 1%;}
</style> </style>
<div id="bg"></div> <div id="bg"></div>
<div id="show"> <div id="show">
<table border="0" cellpadding="3" width="100%" cellspacing="1" style="background-color: #ececec;"> <table border="0" cellpadding="3" width="100%" cellspacing="1" style="background-color: #ececec;">
<dd style="text-align: left;"> <dd style="text-align: left;">
<input type="text" id="title" name="title" placeholder="请输入试题内容进行搜索" /> <input type="text" id="title" name="title" placeholder="请输入试题内容进行搜索" />
<select name="point_title" id="point"> <!-- <select name="point_title" id="point">-->
<option value="0">所有考点</option> <!-- <option value="0">所有考点</option>-->
<volist name="point" id="p"> <!-- <volist name="point" id="p">-->
<option value="{$p.exams_point_id}">{$p.title}</option> <!-- <option value="{$p.exams_point_id}">{$p.title}</option>-->
</volist> <!-- </volist>-->
</select> <!-- </select>-->
<input type="button" class="btn_b" onclick="getData(1)" value="搜索" /> <input type="button" class="btn_b" onclick="getData(1)" value="搜索" />
</dd> </dd>
<tr style="text-align: center; BACKGROUND-COLOR: #d2dbea; font-weight: bold"> <tr style="text-align: center; BACKGROUND-COLOR: #d2dbea; font-weight: bold">
...@@ -174,13 +174,13 @@ ...@@ -174,13 +174,13 @@
}); });
} }
//获取数据Id //获取数据Id
function getDataId(){ function getDataId(){
var question_type = $("input[name='question_type']").val(); var question_type = $("input[name='question_type']").val();
var title = $('#title').val(); var title = $('#title').val();
var point_title = $('#point').val(); var point_title = $('#point').val();
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: "{:U('exams/AdminPaper/getQuestionIds')}", url: "{:U('exams/AdminPaper/getQuestionIds')}",
async: false, async: false,
data: {question_type:question_type,paper_id:$("input[name='paper_id']").val() , search_title:title,point_title:point_title}, // data: {question_type:question_type,paper_id:$("input[name='paper_id']").val() , search_title:title,point_title:point_title}, //
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
data=data.substring(1); data=data.substring(1);
$("input[id=checkbox_all]").val(data); $("input[id=checkbox_all]").val(data);
} }
}); });
} }
//获取分页条 //获取分页条
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
getDataId(); getDataId();
} }
} }
function checkAllExamsPages(){ function checkAllExamsPages(){
var check = $("input[id=checkbox_all]"); var check = $("input[id=checkbox_all]");
var is_all = check.attr('checked'); var is_all = check.attr('checked');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment