2015-12-10 23:24:14 +00:00
|
|
|
<vn>
|
|
|
|
<div id="title">
|
|
|
|
<h1><t>Connections</t></h1>
|
|
|
|
</div>
|
|
|
|
<div id="actions">
|
2016-09-19 06:40:18 +00:00
|
|
|
<htk-bar-button
|
|
|
|
icon="refresh"
|
2016-01-07 12:58:29 +00:00
|
|
|
tip="_Refresh"
|
2022-06-18 21:04:34 +00:00
|
|
|
on-click="sessions.refresh()"/>
|
2015-12-10 23:41:55 +00:00
|
|
|
<div class="connections-sum">
|
|
|
|
<htk-text>
|
|
|
|
<db-calc-sum
|
|
|
|
property="param"
|
|
|
|
model="sessions"
|
|
|
|
func="sessionsFunc"/>
|
|
|
|
</htk-text>
|
|
|
|
<t>connections</t>
|
|
|
|
</div>
|
2015-12-10 23:24:14 +00:00
|
|
|
</div>
|
|
|
|
<div id="form" class="connections">
|
2022-05-26 06:08:31 +00:00
|
|
|
<htk-repeater form-id="iter" class="box htk-list vn-w-xs">
|
|
|
|
<db-model
|
|
|
|
property="model"
|
|
|
|
id="sessions"
|
|
|
|
on-status-changed="this.onModelStatusChange()">
|
2022-05-30 01:30:33 +00:00
|
|
|
SELECT vu.userFk userId, vu.stamp, u.nickname, s.lastUpdate,
|
|
|
|
a.platform, a.browser, a.version, u.name user
|
|
|
|
FROM userSession s
|
|
|
|
JOIN visitUser vu ON vu.id = s.userVisitFk
|
|
|
|
JOIN visitAccess ac ON ac.id = vu.accessFk
|
|
|
|
JOIN visitAgent a ON a.id = ac.agentFk
|
|
|
|
JOIN visit v ON v.id = a.visitFk
|
|
|
|
JOIN account.user u ON u.id = vu.userFk
|
|
|
|
ORDER BY lastUpdate DESC
|
2022-05-26 06:08:31 +00:00
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<a class="item"
|
|
|
|
href="{{`#!form=admin/access-log&user=${iter.userId}`}}"
|
|
|
|
title="_Access log">
|
|
|
|
<div class="content">
|
|
|
|
<p class="important">
|
|
|
|
{{iter.nickname}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{{Vn.Value.format(iter.stamp, '%a, %T')}} -
|
|
|
|
{{Vn.Value.format(iter.lastUpdate, '%T')}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{{iter.platform}} - {{iter.browser}} {{iter.version}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="actions"
|
|
|
|
on-click="$event.preventDefault()">
|
|
|
|
<htk-button
|
|
|
|
tip="_Supplant user"
|
|
|
|
icon="supervisor_account"
|
|
|
|
on-click="this.onChangeUserClick(iter.user)"/>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-12-10 23:24:14 +00:00
|
|
|
</div>
|
|
|
|
</vn>
|