73 lines
1.6 KiB
XML
Executable File
73 lines
1.6 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<vn-param id="user"/>
|
|
<vn-hash-param key="user" param="user"/>
|
|
<db-form id="user-form">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT Id_Cliente, Cliente, Telefono, movil
|
|
FROM vn2008.Clientes WHERE Id_Cliente = #user
|
|
</custom>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="user" param="user"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
</db-form>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>AccessLog</t>
|
|
</h1>
|
|
<div id="main" class="access-log">
|
|
<div class="card 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 class="card">
|
|
<div>
|
|
<htk-repeater form-id="iter">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT u.stamp, a.platform, a.browser, a.version, a.javascript, a.cookies
|
|
FROM visitUser u
|
|
JOIN visitAccess c ON c.id = u.access
|
|
JOIN visitAgent a ON a.id = c.agent
|
|
WHERE u.user = #user
|
|
ORDER BY u.stamp DESC
|
|
LIMIT 8
|
|
</custom>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="user" param="user"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
<custom>
|
|
<div class="list-row">
|
|
<p>
|
|
<htk-text form="iter" column="stamp" 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>
|
|
</div>
|
|
</custom>
|
|
</htk-repeater>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|