mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Add registered device list to active logins page
This commit is contained in:
parent
5ea9d52b0c
commit
570fab487e
5 changed files with 71 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<include target="./common_header.html" />
|
||||
|
||||
<div class="xm">
|
||||
<h2 class="hx h2">{$member_title = $lang->cmd_view_active_logins}</h2>
|
||||
<ul class="lt">
|
||||
|
|
@ -17,6 +18,20 @@
|
|||
<a cond="$page != $page_navigation->last_page" href="{getUrl('page',$page+1,'module_srl','','document_srl','')}" class="next">{$lang->cmd_next}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="xm">
|
||||
<h2 class="hx h2">{$lang->cmd_view_registered_devices}</h2>
|
||||
<ul class="lt">
|
||||
<li loop="$registered_devices => $device_info" class="has_padding">
|
||||
{$device_info->device_type} {$device_info->device_version}
|
||||
({$device_info->device_model ?: 'no model'})<br />
|
||||
{$lang->cmd_initial_registration}: {zdate($device_info->regdate, 'Y-m-d H:i')}<br />
|
||||
{$lang->cmd_recent_connection}: {zdate($device_info->last_active_date, 'Y-m-d H:i')}<br />
|
||||
<td><button class="delete_device" data-device-srl="{$device_info->device_srl}">{$lang->cmd_delete}</button></td>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
jQuery(function($) {
|
||||
$("button.delete_autologin").on("click", function(event) {
|
||||
|
|
@ -25,6 +40,12 @@
|
|||
window.location.reload();
|
||||
});
|
||||
});
|
||||
$("button.delete_device").on("click", function(event) {
|
||||
event.preventDefault();
|
||||
exec_json('member.procMemberDeleteDevice', { device_srl: $(this).data("device-srl") }, function(data) {
|
||||
window.location.reload();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<include target="./common_footer.html" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue