68 lines
2.9 KiB
Plaintext
68 lines
2.9 KiB
Plaintext
@model String
|
|
<div id="bookbox" class="findbox" style="width: 600px;">
|
|
<h4><i class="fa fa-bars"></i> @Model.Split(';')[1]<a href="#" class="btn btn-default btn-xs f-r" onclick="hidebookbox()">닫기</a></h4>
|
|
<br />
|
|
<input type="text" class="form-control search disp-init" placeholder="교재명을 입력하세요." id="findboxbook" style="width: 250px" /><a href="#" class="btn btn-find btn-info btn-sm" onclick="findbook()">검색</a>
|
|
<br /><br />
|
|
<section class="panel panel-default" style="max-height: 300px; overflow: auto; min-height: 67px;">
|
|
<div class="table-responsive" id="excel1">
|
|
<table class="table table-striped b-t b-light" style="table-layout: fixed; white-space: nowrap;">
|
|
<thead>
|
|
<tr>
|
|
<th width="50"><input type="checkbox" onclick="javascript: checkall('excel1', this);" /></th>
|
|
<th>교재명</th>
|
|
<th width="100">등록일</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="data" id="booklistbox"></tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
<div><a href="#" class="btn btn-primary btn-xs" onclick="selectbook()">선택</a></div>
|
|
</div>
|
|
<script>
|
|
function selectbook() {
|
|
if ($("#booklistbox tr td input.autocheck:checked").length < 1) {
|
|
msg2("교재를 선택해주세요.");
|
|
}
|
|
else {
|
|
var v = "";
|
|
$.each($("#booklistbox tr td input.autocheck:checked"), function (i, c) {
|
|
v += ";" + $(c).val();
|
|
});
|
|
$("#booklistbox tr").remove();
|
|
hidebookbox();
|
|
eval("@(Model.Split(';')[0])" + "('" + v.substr(1) + "')");
|
|
}
|
|
}
|
|
function bookboxviewregbox() {
|
|
if ($('#bookboxregbox:visible').length < 1) {
|
|
$('#bookboxregbox').show();
|
|
}
|
|
else {
|
|
$('#bookboxregbox').hide();
|
|
}
|
|
}
|
|
function findbookshow() {
|
|
bglayer();
|
|
$("#bookbox").slideDown("fast");
|
|
focus("findboxbook");
|
|
}
|
|
function findbook() {
|
|
$("#booklistbox").html("");
|
|
//if (val("findboxbook") == "") {
|
|
// alert("이름을 입력해주세요.");
|
|
//}
|
|
capp("/acommon/bookfind", { bkname: val("findboxbook") }, "cbfindbook", null, null, true, true);
|
|
}
|
|
function cbfindbook() {
|
|
if (capResult.code == 1000) {
|
|
$.each($(capResult.obj), function (i, r) {
|
|
$("#booklistbox").append("<tr><td><input type=\"checkbox\" class=\"autocheck\" value=\"" + r.bkno + ":" + r.bkname + "\" /></td><td class=\"text-left\">" + r.bkname + "</td><td>" + r.cdtymd + "</td></tr>");
|
|
});
|
|
}
|
|
}
|
|
function hidebookbox() {
|
|
$('#bookbox').slideUp('fast'); $('#bglayer').hide();
|
|
}
|
|
</script> |