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-05-24 21:11:12 +00:00
|
|
|
on-click="this.onRefreshClick()"/>
|
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">
|
|
|
|
<div class="box">
|
|
|
|
<htk-repeater form-id="iter">
|
2022-05-24 21:11:12 +00:00
|
|
|
<db-model
|
|
|
|
property="model"
|
|
|
|
id="sessions"
|
|
|
|
on-status-changed="this.onModelStatusChange()">
|
2015-12-10 23:24:14 +00:00
|
|
|
<custom>
|
2019-07-15 11:57:34 +00:00
|
|
|
SELECT vu.userFk userId, vu.stamp, u.nickname, s.lastUpdate,
|
2016-10-15 18:58:30 +00:00
|
|
|
a.platform, a.browser, a.version, u.name user
|
2016-10-04 15:27:49 +00:00
|
|
|
FROM userSession s
|
2019-07-15 11:57:34 +00:00
|
|
|
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
|
2016-10-15 18:58:30 +00:00
|
|
|
ORDER BY lastUpdate DESC
|
2015-12-10 23:24:14 +00:00
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="item">
|
|
|
|
<htk-button
|
2022-05-21 21:31:56 +00:00
|
|
|
tip="_Access log"
|
|
|
|
icon="history"
|
2022-05-24 21:11:12 +00:00
|
|
|
on-click="this.onAccessLogClick(iter.userId)"/>
|
2015-12-10 23:24:14 +00:00
|
|
|
<htk-button
|
2022-05-21 21:31:56 +00:00
|
|
|
tip="_Supplant user"
|
|
|
|
icon="supervisor_account"
|
2022-05-24 21:11:12 +00:00
|
|
|
on-click="this.onChangeUserClick(iter.user)"/>
|
2015-12-10 23:24:14 +00:00
|
|
|
<p class="important">
|
2022-05-24 21:11:12 +00:00
|
|
|
{{iter.nickname}}
|
2017-11-27 13:10:03 +00:00
|
|
|
<htk-text form="iter" column="nickname"/>
|
2015-12-10 23:24:14 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-05-24 21:11:12 +00:00
|
|
|
{{Vn.Value.format(iter.stamp, '%a, %T')}} -
|
|
|
|
{{Vn.Value.format(iter.lastUpdate, '%T')}}
|
2015-12-10 23:24:14 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-05-24 21:11:12 +00:00
|
|
|
{{iter.platform}} -
|
|
|
|
{{iter.browser}}
|
|
|
|
{{iter.version}}
|
2015-12-10 23:24:14 +00:00
|
|
|
</p>
|
2016-10-15 18:58:30 +00:00
|
|
|
</div>
|
2015-12-10 23:24:14 +00:00
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|