2015-12-10 23:24:14 +00:00
|
|
|
<vn>
|
2017-03-17 12:42:10 +00:00
|
|
|
<h1 id="title">
|
|
|
|
<t>Connections</t>
|
|
|
|
</h1>
|
2015-12-10 23:24:14 +00:00
|
|
|
<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"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="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>
|
2017-03-23 16:20:51 +00:00
|
|
|
<div id="main" class="connections">
|
2016-12-23 08:57:49 +00:00
|
|
|
<div class="card list">
|
|
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
2015-12-15 15:22:46 +00:00
|
|
|
<db-model property="model" id="sessions" on-status-changed="onModelStatusChange">
|
2015-12-10 23:24:14 +00:00
|
|
|
<custom>
|
2016-10-27 11:22:04 +00:00
|
|
|
SELECT vu.user userId, vu.stamp, c.Cliente, 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
|
2016-10-15 18:58:30 +00:00
|
|
|
JOIN visitUser vu ON vu.id = s.userVisit
|
|
|
|
JOIN visitAccess ac ON ac.id = vu.access
|
|
|
|
JOIN visitAgent a ON a.id = ac.agent
|
|
|
|
JOIN visit v ON v.id = a.visit
|
|
|
|
JOIN account.user u ON u.id = vu.user
|
|
|
|
JOIN vn2008.Clientes c ON c.Id_cliente = vu.user
|
|
|
|
ORDER BY lastUpdate DESC
|
2015-12-10 23:24:14 +00:00
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
2016-12-23 08:57:49 +00:00
|
|
|
<a id="link" class="list-row" title="_Access log">
|
|
|
|
<div class="actions">
|
|
|
|
<htk-button
|
2017-04-05 14:06:07 +00:00
|
|
|
lot="iter"
|
|
|
|
name="id"
|
2016-12-23 08:57:49 +00:00
|
|
|
tip="_Supplant user"
|
|
|
|
icon="incognito"
|
|
|
|
on-click="onChangeUserClick"/>
|
|
|
|
</div>
|
2015-12-10 23:24:14 +00:00
|
|
|
<p class="important">
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-text lot="iter" name="Cliente"/>
|
2015-12-10 23:24:14 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-text lot="iter" name="stamp" format="%a, %T"/> -
|
|
|
|
<htk-text lot="iter" name="lastUpdate" format="%T"/>
|
2015-12-10 23:24:14 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-text lot="iter" name="platform"/> -
|
|
|
|
<htk-text lot="iter" name="browser"/>
|
|
|
|
<htk-text lot="iter" name="version"/>
|
2015-12-10 23:24:14 +00:00
|
|
|
</p>
|
2016-12-23 08:57:49 +00:00
|
|
|
</a>
|
2015-12-10 23:24:14 +00:00
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|