mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Implement login management screen in default member skin
This commit is contained in:
parent
59c3fa1381
commit
8afddb8b5e
8 changed files with 108 additions and 1 deletions
45
modules/member/skins/default/active_logins.html
Normal file
45
modules/member/skins/default/active_logins.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<include target="./common_header.html" />
|
||||
<h1>{$member_title = $lang->cmd_view_active_logins }</h1>
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang->no}</th>
|
||||
<th class="title">{$lang->cmd_login_browser_info}</th>
|
||||
<th>{$lang->cmd_initial_login}</th>
|
||||
<th>{$lang->cmd_recent_visit}</th>
|
||||
<th>{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$active_logins => $no, $autologin_info">
|
||||
{@ $autologin_info->user_agent = @json_decode($autologin_info->user_agent) ?: new stdClass()}
|
||||
<td>{$no}</td>
|
||||
<td class="title">
|
||||
{$autologin_info->user_agent->browser} {$autologin_info->user_agent->version}<br />
|
||||
{$autologin_info->user_agent->os} {$autologin_info->user_agent->is_tablet ? 'Tablet' : ($autologin_info->user_agent->is_mobile ? 'Mobile' : 'PC')}
|
||||
</td>
|
||||
<td>{zdate($autologin_info->regdate, 'Y-m-d H:i')}<br />{$autologin_info->ipaddress}</td>
|
||||
<td>{zdate($autologin_info->last_visit, 'Y-m-d H:i')}<br />{$autologin_info->last_ipaddress}</td>
|
||||
<td><button class="delele_autologin" data-autologin-id="{$autologin_info->id}" data-autologin-key="{$autologin_info->autologin_key}">{$lang->cmd_delete}</button>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="pagination pagination-centered">
|
||||
<ul>
|
||||
<li><a href="{getUrl('page','','module_srl','')}" class="direction">« {$lang->first_page}</a></li>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<li class="active"|cond="$page == $page_no"><a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a></li>
|
||||
<!--@end-->
|
||||
<li><a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="direction">{$lang->last_page} »</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<script>
|
||||
$(function() {
|
||||
$("button.delele_autologin").on("click", function() {
|
||||
exec_json('member.procMemberDeleteAutologin', { autologin_id: $(this).data("autologin-id"), autologin_key: $(this).data("autologin-key") }, function(data) {
|
||||
window.location.reload();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<include target="./common_footer.html" />
|
||||
Loading…
Add table
Add a link
Reference in a new issue