0
1
Fork 0
hedera-web-mindshore/forms/admin/access-log/ui.xml

57 lines
1.3 KiB
XML
Executable File

<vn>
<vn-group>
<db-form id="user-form">
<db-model property="model" lot="hash">
SELECT Id_Cliente, Cliente, Telefono, movil
FROM vn2008.Clientes WHERE Id_Cliente = #user
</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 lot="user-form" name="Id_Cliente"/>
</p>
<p>
<htk-text lot="user-form" name="Cliente"/>
</p>
<p>
<htk-text lot="user-form" name="Telefono"/>
</p>
<p>
<htk-text lot="user-form" name="movil"/>
</p>
</div>
<div class="card">
<div>
<htk-repeater form-id="iter">
<db-model property="model" lot="hash">
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
</db-model>
<custom>
<div class="list-row">
<p>
<htk-text lot="iter" name="stamp" format="_%a, %e %b %Y at %T"/>
</p>
<p>
<htk-text lot="iter" name="platform"/> -
<htk-text lot="iter" name="browser"/>
<htk-text lot="iter" name="version"/>
</p>
</div>
</custom>
</htk-repeater>
</div>
</div>
</div>
</vn>