Merge pull request #644 from AndreasK79/datatable_for_cq_and_was

Added Datatable to CQ and WAS award.
这个提交包含在:
Peter Goodhall 2020-10-12 15:09:37 +01:00 提交者 GitHub
当前提交 a313ceb307
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 3 个文件被更改,包括 22 次插入2 次删除

查看文件

@ -145,7 +145,7 @@
$i = 1; $i = 1;
if ($cq_array) { if ($cq_array) {
echo ' echo '
<table class="table table-sm table-bordered table-hover table-striped table-condensed text-center"> <table style="width:100%" class="table tablecq table-sm table-bordered table-hover table-striped table-condensed text-center">
<thead> <thead>
<tr> <tr>
<td>#</td> <td>#</td>

查看文件

@ -68,7 +68,7 @@
if ($was_array) { if ($was_array) {
$i = 1; $i = 1;
echo ' echo '
<table class="table table-sm table-bordered table-hover table-striped table-condensed text-center"> <table style="width:100%" class="table table-sm tablewas table-bordered table-hover table-striped table-condensed text-center">
<thead> <thead>
<tr> <tr>
<td>#</td> <td>#</td>

查看文件

@ -1613,6 +1613,16 @@ $(document).ready(function(){
<?php if ($this->uri->segment(2) == "cq") { ?> <?php if ($this->uri->segment(2) == "cq") { ?>
<script> <script>
$('.tablecq').DataTable({
"pageLength": 25,
responsive: false,
ordering: false,
"scrollY": "400px",
"scrollCollapse": true,
"paging": false,
"scrollX": true
});
function displayCqContacts(cqzone, band) { function displayCqContacts(cqzone, band) {
var baseURL= "<?php echo base_url();?>"; var baseURL= "<?php echo base_url();?>";
$.ajax({ $.ajax({
@ -1643,6 +1653,16 @@ $(document).ready(function(){
<?php if ($this->uri->segment(2) == "was") { ?> <?php if ($this->uri->segment(2) == "was") { ?>
<script> <script>
$('.tablewas').DataTable({
"pageLength": 25,
responsive: false,
ordering: false,
"scrollY": "400px",
"scrollCollapse": true,
"paging": false,
"scrollX": true
});
function displayWasContacts(was, band) { function displayWasContacts(was, band) {
var baseURL= "<?php echo base_url();?>"; var baseURL= "<?php echo base_url();?>";
$.ajax({ $.ajax({