Merge pull request #2851 from HB9HIL/datatable_for_qslprint

datatable for qslprint
这个提交包含在:
Peter Goodhall 2023-12-17 14:41:48 +00:00 提交者 GitHub
当前提交 c73cd76b42
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 7 次插入2 次删除

查看文件

@ -13,8 +13,8 @@ if (empty($station_id)) {
} }
if ($qsos->result() != NULL) { if ($qsos->result() != NULL) {
echo '<div style="padding-top: 10px; margin-top: 0px;" class="container logbook">'; echo '<div style="padding-top: 10px; margin-top: 0px;" class="container logbook mb-4">';
echo '<table style="width:100%" class="table table-sm table-bordered table-hover table-striped table-condensed qslprint"> echo '<table style="width:100%" class="table table-sm table-bordered table-hover table-striped table-condensed qslprint" id="qslprint_table">
<thead> <thead>
<tr> <tr>
<th style=\'text-align: center\'><div class="form-check" style="margin-top: -1.5em"><input class="form-check-input" type="checkbox" id="checkBoxAll" /></div></th> <th style=\'text-align: center\'><div class="form-check" style="margin-top: -1.5em"><input class="form-check-input" type="checkbox" id="checkBoxAll" /></div></th>

查看文件

@ -83,6 +83,11 @@ $(".station_id").change(function(){
}); });
}); });
$('#qslprint_table').DataTable({
"stateSave": true,
paging: false
});
function showOqrs(id) { function showOqrs(id) {
$.ajax({ $.ajax({
url: base_url + 'index.php/qslprint/show_oqrs', url: base_url + 'index.php/qslprint/show_oqrs',