Preserve 'isvalid' URL parameter when changing sort order or after deleting files

This commit is contained in:
Kijin Sung 2022-12-20 01:02:02 +09:00
parent 21fb1d9e76
commit 8b6e1949b0
2 changed files with 10 additions and 4 deletions

View file

@ -24,7 +24,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<tr>
<th scope="col">{$lang->file}</th>
<th scope="col" class="nowr">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList', 'sort_index', 'file_size', 'order_type', ($order_type == 'desc' && $sort_index == 'file_size') ? 'asc' : 'desc')}">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList', 'sort_index', 'file_size', 'order_type', ($order_type == 'desc' && $sort_index == 'file_size') ? 'asc' : 'desc', 'isvalid', $isvalid ?? null)}">
{$lang->file_size}
<block cond="$sort_index == 'file_size'">
<em cond="$order_type=='asc'"></em><em cond="$order_type != 'asc'"></em>
@ -32,7 +32,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
</a>
</th>
<th scope="col" class="nowr">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList', 'sort_index', 'download_count', 'order_type', ($order_type == 'desc' && $sort_index == 'download_count') ? 'asc' : 'desc')}">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList', 'sort_index', 'download_count', 'order_type', ($order_type == 'desc' && $sort_index == 'download_count') ? 'asc' : 'desc', 'isvalid', $isvalid ?? null)}">
{$lang->cmd_download}
<block cond="$sort_index == 'download_count'">
<em cond="$order_type=='asc'"></em><em cond="$order_type != 'asc'"></em>
@ -41,7 +41,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
</th>
<th scope="col" class="nowr">{$lang->author}</th>
<th scope="col" class="nowr">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList', 'sort_index', 'regdate', 'order_type', ($order_type == 'desc' && $sort_index == 'regdate') ? 'asc' : 'desc')}">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList', 'sort_index', 'regdate', 'order_type', ($order_type == 'desc' && $sort_index == 'regdate') ? 'asc' : 'desc', 'isvalid', $isvalid ?? null)}">
{$lang->date}
<block cond="$sort_index == 'regdate'">
<em cond="$order_type=='asc'"></em><em cond="$order_type != 'asc'"></em>