|
@ -306,8 +306,16 @@ mysqli_close($link); |
|
|
var showNum = <?php echo empty($_GET['showNum']) ? '10' : $_GET['showNum']; ?>; |
|
|
var showNum = <?php echo empty($_GET['showNum']) ? '10' : $_GET['showNum']; ?>; |
|
|
var nowPage = <?php echo empty($_GET['nowPage']) ? '1' : $_GET['nowPage']; ?>; |
|
|
var nowPage = <?php echo empty($_GET['nowPage']) ? '1' : $_GET['nowPage']; ?>; |
|
|
var searchContent = "<?php echo empty($_GET['searchContent']) ? '' : $_GET['searchContent']; ?>"; |
|
|
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 table = $('#table_index2').DataTable(); |
|
|
var table = $('#table_index2').DataTable(); |
|
|
|
|
|
|
|
|
|
|
|
// 设置排序信息 |
|
|
|
|
|
if (orderColumn !== '' && orderDirection !== '') { |
|
|
|
|
|
table.order([orderColumn, orderDirection]).draw(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
table.search(searchContent).draw(); |
|
|
table.search(searchContent).draw(); |
|
|
table.page.len(showNum).draw(); |
|
|
table.page.len(showNum).draw(); |
|
|
table.page((nowPage) - 1).draw('page'); |
|
|
table.page((nowPage) - 1).draw('page'); |
|
@ -331,8 +339,12 @@ mysqli_close($link); |
|
|
showNum = table.page.len(); |
|
|
showNum = table.page.len(); |
|
|
nowPage = table.page.info().page + 1; |
|
|
nowPage = table.page.info().page + 1; |
|
|
searchContent = table.search(); |
|
|
searchContent = table.search(); |
|
|
|
|
|
var order = table.order(); |
|
|
|
|
|
orderColumn = order[0][0]; // 获取排序的列索引 |
|
|
|
|
|
orderDirection = order[0][1]; // 获取排序的方向 |
|
|
window.location.href = "<?php echo "wipwholeinstall-renovate-index.php?function_name=wipinstall&$token_link"; ?>" + |
|
|
window.location.href = "<?php echo "wipwholeinstall-renovate-index.php?function_name=wipinstall&$token_link"; ?>" + |
|
|
"&showNum=" + showNum + "&nowPage=" + nowPage + "&searchContent=" + searchContent + |
|
|
"&showNum=" + showNum + "&nowPage=" + nowPage + "&searchContent=" + searchContent + |
|
|
|
|
|
"&orderColumn=" + orderColumn + "&orderDirection=" + orderDirection + |
|
|
"&contractno=" + contractno + "&facilityno=" + facilityno + "&custom=" + custom + |
|
|
"&contractno=" + contractno + "&facilityno=" + facilityno + "&custom=" + custom + |
|
|
"&site_survey_contact_verify=" + site_survey_contact_verify + "&real_arrival_date_start=" + real_arrival_date_start + |
|
|
"&site_survey_contact_verify=" + site_survey_contact_verify + "&real_arrival_date_start=" + real_arrival_date_start + |
|
|
"&real_arrival_date_end=" + real_arrival_date_end + "&area_no=" + area_no; |
|
|
"&real_arrival_date_end=" + real_arrival_date_end + "&area_no=" + area_no; |
|
|