mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #907 support more sort options in member list
This commit is contained in:
parent
5e572a168d
commit
b6b06af336
2 changed files with 6 additions and 2 deletions
|
|
@ -120,7 +120,7 @@ class memberAdminModel extends member
|
|||
// Change the query id if selected_group_srl exists (for table join)
|
||||
$sort_order = Context::get('sort_order');
|
||||
$sort_index = Context::get('sort_index');
|
||||
if(!$sort_index)
|
||||
if(!$sort_index || !in_array($sort_index, ['user_id', 'email_address', 'phone_number', 'user_name', 'nick_name', 'regdate', 'last_login']))
|
||||
{
|
||||
$sort_index = "list_order";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,11 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="nowr rx_detail_marks" cond="$profileImageConfig == 'Y' && $config->member_profile_view == 'Y'">{$lang->profile_image}</th>
|
||||
<th scope="col" class="nowr" loop="$usedIdentifiers=>$name,$title">{$title}</th>
|
||||
<!--@foreach($usedIdentifiers as $name => $title)-->
|
||||
<th scope="col" class="nowr">
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispMemberAdminList', 'sort_index', $name, 'sort_order', ($sort_order == 'asc') ? 'desc' : 'asc', 'selected_group_srl', $selected_group_srl)}">{$title}<block cond="$sort_index == $name"> <em cond="$sort_order=='asc'">▲</em><em cond="$sort_order != 'asc'">▼</em></block></a>
|
||||
</th>
|
||||
<!--@endforeach-->
|
||||
<th scope="col" class="nowr">{$lang->status}</th>
|
||||
<th scope="col" class="nowr rx_detail_marks"><a href="{getUrl('', 'module', 'admin', 'act', 'dispMemberAdminList', 'sort_index', 'regdate', 'sort_order', ($sort_order == 'asc') ? 'desc' : 'asc', 'selected_group_srl', $selected_group_srl)}">{$lang->signup_date}<block cond="$sort_index == 'regdate'"> <em cond="$sort_order=='asc'">▲</em><em cond="$sort_order != 'asc'">▼</em></block></a></th>
|
||||
<th scope="col" class="nowr rx_detail_marks"><a href="{getUrl('', 'module', 'admin', 'act', 'dispMemberAdminList', 'sort_index', 'last_login', 'sort_order', ($sort_order == 'asc') ? 'desc' : 'asc', 'selected_group_srl', $selected_group_srl)}">{$lang->last_login}<block cond="$sort_index == 'last_login'"> <em cond="$sort_order=='asc'">▲</em><em cond="$sort_order != 'asc'">▼</em></block></a></th>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue