|
|
@ -244,9 +244,11 @@ mysqli_close($link); |
|
|
|
.dataTables_scrollHead .dataTable { |
|
|
|
margin-bottom: -2px; |
|
|
|
} |
|
|
|
|
|
|
|
.dataTables_scrollBody .dataTable { |
|
|
|
margin-bottom: 0; |
|
|
|
} |
|
|
|
|
|
|
|
table { |
|
|
|
margin-left: 0px; |
|
|
|
} |
|
|
@ -429,6 +431,8 @@ mysqli_close($link); |
|
|
|
var showNum = <?php echo empty($_GET['showNum']) ? '10' : $_GET['showNum']; ?>; |
|
|
|
var nowPage = <?php echo empty($_GET['nowPage']) ? '1' : $_GET['nowPage']; ?>; |
|
|
|
var searchContent = "<?php echo empty($_GET['searchContent']) ? '' : $_GET['searchContent']; ?>"; |
|
|
|
var orderColumn = "<?php echo empty($_GET['orderColumn']) ? '' : $_GET['orderColumn']; ?>"; |
|
|
|
var orderDirection = "<?php echo empty($_GET['orderDirection']) ? '' : $_GET['orderDirection']; ?>"; |
|
|
|
|
|
|
|
var dataArr2 = { |
|
|
|
"All": "table_index2", |
|
|
@ -440,10 +444,23 @@ mysqli_close($link); |
|
|
|
} |
|
|
|
|
|
|
|
var table = $('#' + dataArr2[sheetNum]).DataTable(); |
|
|
|
|
|
|
|
// 设置排序信息 |
|
|
|
if (orderColumn !== '' && orderDirection !== '') { |
|
|
|
table.order([orderColumn, orderDirection]).draw(); |
|
|
|
} |
|
|
|
|
|
|
|
table.search(searchContent).draw(); |
|
|
|
table.page.len(showNum).draw(); |
|
|
|
table.page((nowPage) - 1).draw('page'); |
|
|
|
|
|
|
|
// 監聽排序 |
|
|
|
table.on('order.dt', function() { |
|
|
|
var order = table.order(); |
|
|
|
orderColumn = order[0][0]; |
|
|
|
orderDirection = order[0][1]; |
|
|
|
}); |
|
|
|
|
|
|
|
// 監聽頁碼 |
|
|
|
table.on('page.dt', function() { |
|
|
|
searchDatatable(table); |
|
|
@ -465,6 +482,7 @@ mysqli_close($link); |
|
|
|
searchContent = table.search(); |
|
|
|
window.location.href = "<?php echo "wipwhole-index.php?function_name=wipinstall&$token_link"; ?>" + |
|
|
|
"&showNum=" + showNum + "&nowPage=" + nowPage + "&searchContent=" + searchContent + "&sheetNum=" + sheetNum + |
|
|
|
"&orderColumn=" + orderColumn + "&orderDirection=" + orderDirection + |
|
|
|
"&contractno=" + contractno + "&facilityno=" + facilityno + "&custom=" + custom + |
|
|
|
"&site_survey_contact_verify=" + site_survey_contact_verify + "&real_contract_arrival_date_start=" + real_contract_arrival_date_start + |
|
|
|
"&real_contract_arrival_date_end=" + real_contract_arrival_date_end + "&area_no=" + area_no; |
|
|
|