79 lines
1.8 KiB
XML
Executable File
79 lines
1.8 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>
|
|
<div id="title">
|
|
<h1><t>AccessLog</t></h1>
|
|
</div>
|
|
<div id="form" class="access-log">
|
|
<div class="box">
|
|
<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">
|
|
<div>
|
|
<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>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="user" param="user"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|