hedera-web/web/forms/admin/access-log/ui.xml

79 lines
1.8 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<vn-group>
2015-12-02 17:26:58 +00:00
<vn-param id="user"/>
<vn-hash-param key="user" param="user"/>
2015-03-06 23:33:54 +00:00
<db-form id="user-form">
2015-12-02 17:26:58 +00:00
<db-model property="model">
<custom>
SELECT Id_Cliente, Cliente, Telefono, movil
FROM vn2008.Clientes WHERE Id_Cliente = #user
</custom>
2015-03-06 23:33:54 +00:00
<sql-batch property="batch">
2015-12-02 17:26:58 +00:00
<custom>
<item name="user" param="user"/>
</custom>
2015-03-06 23:33:54 +00:00
</sql-batch>
</db-model>
</db-form>
</vn-group>
<div id="title">
<h1><t>AccessLog</t></h1>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="access-log">
<div class="box">
2015-12-02 17:26:58 +00:00
<div class="form">
<p>
<htk-text form="user-form" column="Id_Cliente"/>
</p>
<p>
<htk-text form="user-form" column="Cliente"/>
</p>
<p>
<htk-text form="user-form" column="Telefono"/>
</p>
<p>
<htk-text form="user-form" column="movil"/>
</p>
</div>
</div>
<div class="list box">
2015-03-06 23:33:54 +00:00
<div>
2015-12-02 17:26:58 +00:00
<htk-repeater form-id="iter">
<db-model property="model">
<custom>
SELECT u.date_time, a.platform, a.browser, a.version, a.javascript, a.cookies
FROM visit_user u
JOIN visit_access c ON u.access_id = c.id
JOIN visit_agent a ON c.agent_id = a.id
WHERE u.user_id = #user
ORDER BY u.date_time DESC
LIMIT 8
</custom>
2015-03-06 23:33:54 +00:00
<sql-batch property="batch">
2015-12-02 17:26:58 +00:00
<custom>
<item name="user" param="user"/>
</custom>
2015-03-06 23:33:54 +00:00
</sql-batch>
</db-model>
2015-12-02 17:26:58 +00:00
<custom>
<div class="item">
<p>
<htk-text form="iter" column="date_time" format="_%a, %e %b %Y at %T"/>
</p>
<p>
<htk-text form="iter" column="platform"/>,
<htk-text form="iter" column="browser"/>
<htk-text form="iter" column="version"/>
</p>
<!-- <p>
<htk-text form="iter" column="javascript"/>,
<htk-text form="iter" column="cookies"/>
</p>
--> </div>
</custom>
</htk-repeater>
2015-03-06 23:33:54 +00:00
</div>
</div>
</div>
</vn>