2015-12-10 23:24:14 +00:00
|
|
|
<vn>
|
|
|
|
<div id="title">
|
|
|
|
<h1><t>Connections</t></h1>
|
|
|
|
</div>
|
|
|
|
<div id="actions">
|
2016-01-07 12:58:29 +00:00
|
|
|
<htk-button
|
|
|
|
image="image/dark/refresh.svg"
|
|
|
|
tip="_Refresh"
|
|
|
|
on-click="onRefreshClick"
|
|
|
|
showText="true"/>
|
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">
|
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>
|
|
|
|
SELECT s.id, e.user_id, c.Cliente, e.date_time login, is_new,
|
|
|
|
s.date_time last_activity, a.platform, a.browser, a.version
|
|
|
|
FROM user_session s
|
|
|
|
JOIN visit_user e ON s.visit_user_id = e.id
|
|
|
|
JOIN visit_access c ON e.access_id = c.id
|
|
|
|
JOIN visit_agent a ON c.agent_id = a.id
|
|
|
|
JOIN visit v ON a.visit_id = v.id
|
|
|
|
JOIN account.user u ON e.user_id = u.id
|
|
|
|
JOIN vn2008.Clientes c ON e.user_id = c.Id_cliente
|
|
|
|
ORDER BY last_activity DESC
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="item">
|
|
|
|
<htk-button
|
|
|
|
form="iter"
|
|
|
|
column="id"
|
|
|
|
tip="_Supplant user"
|
|
|
|
image="image/incognito.svg"
|
|
|
|
on-click="onChangeUserClick"/>
|
|
|
|
<htk-button
|
|
|
|
form="iter"
|
|
|
|
column="id"
|
|
|
|
tip="_Access log"
|
|
|
|
image="image/gnome.svg"
|
|
|
|
on-click="onAccessLogClick"/>
|
|
|
|
<p class="important">
|
|
|
|
<htk-text form="iter" column="Cliente"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="iter" column="login" format="%a, %T"/> -
|
|
|
|
<htk-text form="iter" column="last_activity" format="%T"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="iter" column="platform"/>,
|
|
|
|
<htk-text form="iter" column="browser"/>
|
|
|
|
<htk-text form="iter" column="version"/>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|