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"/>
|
2022-05-24 21:11:12 +00:00
|
|
|
<db-form id="userForm">
|
2015-12-02 17:26:58 +00:00
|
|
|
<db-model property="model">
|
|
|
|
<custom>
|
2022-05-26 08:00:19 +00:00
|
|
|
SELECT u.id, u.name user, u.nickname, u.email, c.phone, r.name role
|
|
|
|
FROM account.user u
|
|
|
|
JOIN account.role r ON r.id = u.role
|
2022-05-24 21:11:12 +00:00
|
|
|
LEFT JOIN vn.client c ON c.id = u.id
|
|
|
|
WHERE u.id = #user
|
2015-12-02 17:26:58 +00:00
|
|
|
</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>
|
2015-09-11 09:37:16 +00:00
|
|
|
<div id="title">
|
|
|
|
<h1><t>AccessLog</t></h1>
|
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div id="form" class="access-log">
|
2022-05-26 06:08:31 +00:00
|
|
|
<div class="box vn-w-xs vn-pa-lg">
|
2015-12-02 17:26:58 +00:00
|
|
|
<div class="form">
|
2022-05-26 08:00:19 +00:00
|
|
|
<h4><htk-text form="user-form" column="nickname"/></h4>
|
|
|
|
<p>#<htk-text form="user-form" column="id"/> - <htk-text form="user-form" column="user"/></p>
|
|
|
|
<p><htk-text form="user-form" column="role"/></p>
|
|
|
|
<p><htk-text form="user-form" column="email"/></p>
|
|
|
|
<p><htk-text form="user-form" column="phone"/></p>
|
2015-12-02 17:26:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-26 06:08:31 +00:00
|
|
|
<htk-repeater form-id="iter" class="box vn-w-xs htk-list vn-mt-md">
|
|
|
|
<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.accessFk
|
|
|
|
JOIN visitAgent a ON a.id = c.agentFk
|
|
|
|
WHERE u.userFk = #user
|
|
|
|
ORDER BY u.stamp DESC
|
|
|
|
LIMIT 8
|
|
|
|
</custom>
|
|
|
|
<sql-batch property="batch">
|
2015-12-02 17:26:58 +00:00
|
|
|
<custom>
|
2022-05-26 06:08:31 +00:00
|
|
|
<item name="user" param="user"/>
|
2015-12-02 17:26:58 +00:00
|
|
|
</custom>
|
2022-05-26 06:08:31 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="item">
|
|
|
|
<div class="content">
|
|
|
|
<p>
|
|
|
|
{{Vn.Value.format(iter.stamp, _('%a, %e %b %Y at %T'))}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{{iter.platform}} - {{iter.browser}} {{iter.version}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</vn>
|