mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
#17242660 : add a feature sorting member list with last_login
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6920 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0a25ab09b5
commit
0a2c1409f5
4 changed files with 13 additions and 7 deletions
|
|
@ -75,13 +75,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// selected_group_srl이 있으면 query id를 변경 (table join때문에)
|
// selected_group_srl이 있으면 query id를 변경 (table join때문에)
|
||||||
|
$sort_index = Context::get('sort_index');
|
||||||
|
if($sort_index != 'last_login') $sort_index = "member_srl";
|
||||||
if($args->selected_group_srl) {
|
if($args->selected_group_srl) {
|
||||||
$query_id = 'member.getMemberListWithinGroup';
|
$query_id = 'member.getMemberListWithinGroup';
|
||||||
$args->sort_index = "member.member_srl";
|
$args->sort_index = "member.".$sort_index;
|
||||||
} else {
|
} else {
|
||||||
$query_id = 'member.getMemberList';
|
$query_id = 'member.getMemberList';
|
||||||
$args->sort_index = "member_srl";
|
$args->sort_index = $sort_index;
|
||||||
}
|
}
|
||||||
|
$sort_order = Context::get('sort_order');
|
||||||
|
if($sort_order != "asc") $sort_order = "desc";
|
||||||
|
$args->sort_order = $sort_order;
|
||||||
|
Context::set('sort_order', $sort_order);
|
||||||
|
|
||||||
// 기타 변수들 정리
|
// 기타 변수들 정리
|
||||||
$args->page = Context::get('page');
|
$args->page = Context::get('page');
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
</group>
|
</group>
|
||||||
</conditions>
|
</conditions>
|
||||||
<navigation>
|
<navigation>
|
||||||
<index var="sort_index" default="member_srl" order="desc" />
|
<index var="sort_index" default="member_srl" order="sort_order" />
|
||||||
<list_count var="list_count" default="20" />
|
<list_count var="list_count" default="20" />
|
||||||
<page_count var="page_count" default="10" />
|
<page_count var="page_count" default="10" />
|
||||||
<page var="page" default="1" />
|
<page var="page" default="1" />
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
</group>
|
</group>
|
||||||
</conditions>
|
</conditions>
|
||||||
<navigation>
|
<navigation>
|
||||||
<index var="sort_index" default="member.member_srl" order="desc" />
|
<index var="sort_index" default="member.member_srl" order="sort_order" />
|
||||||
<list_count var="list_count" default="20" />
|
<list_count var="list_count" default="20" />
|
||||||
<page_count var="page_count" default="10" />
|
<page_count var="page_count" default="10" />
|
||||||
<page var="page" default="1" />
|
<page var="page" default="1" />
|
||||||
|
|
|
||||||
|
|
@ -40,13 +40,13 @@
|
||||||
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
|
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><div>{$lang->no}</div></th>
|
<th scope="col"><div><a href="{getUrl('sort_index','','sort_order',$sort_index!='last_login'&&$sort_order=='desc'?'asc':'')}">{$lang->no}</a></div></th>
|
||||||
<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;"/></div></th>
|
<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;"/></div></th>
|
||||||
<th scope="col" class="quarter_wide"><div>{$lang->user_id}</div></th>
|
<th scope="col" class="quarter_wide"><div>{$lang->user_id}</div></th>
|
||||||
<th scope="col" class="quarter_wide"><div>{$lang->user_name}</div></th>
|
<th scope="col" class="quarter_wide"><div>{$lang->user_name}</div></th>
|
||||||
<th scope="col" class="quarter_wide"><div>{$lang->nick_name}</div></th>
|
<th scope="col" class="quarter_wide"><div>{$lang->nick_name}</div></th>
|
||||||
<th scope="col" class="quarter_wide"><div>{$lang->signup_date}</div></th>
|
<th scope="col" class="quarter_wide"><div><a href="{getUrl('sort_index','','sort_order',$sort_index!='last_login'&&$sort_order=='desc'?'asc':'')}">{$lang->signup_date}</a></div></th>
|
||||||
<th scope="col"><div>{$lang->last_login}</div></th>
|
<th scope="col"><div><a href="{getUrl('sort_index','last_login','sort_order',$sort_index=='last_login'&&$sort_order=='desc'?'asc':'')}">{$lang->last_login}</a></div></th>
|
||||||
<th scope="col" colspan="2"><div> </div></th>
|
<th scope="col" colspan="2"><div> </div></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue