55 lines
1.3 KiB
XML
Executable File
55 lines
1.3 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<vn-param id="user-name"/>
|
|
<vn-hash-param key="user" param="user-name"/>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>UserManagement</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-search-entry
|
|
param="user-name"/>
|
|
</div>
|
|
<div id="main" class="users">
|
|
<div class="card list">
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT u.id, u.name, c.Cliente
|
|
FROM account.user u
|
|
INNER JOIN vn2008.Clientes c ON u.id = c.Id_Cliente
|
|
WHERE u.name LIKE CONCAT('%', #user, '%')
|
|
OR c.Cliente LIKE CONCAT('%', #user, '%')
|
|
OR u.id = #user
|
|
ORDER BY u.name LIMIT 200
|
|
</custom>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="user" param="user-name"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
<custom>
|
|
<a id="link" class="list-row" title="_AccessLog">
|
|
<div class="actions">
|
|
<htk-button
|
|
lot="iter"
|
|
name="id"
|
|
tip="_AccessAsUser"
|
|
icon="incognito"
|
|
on-click="onChangeUserClick"/>
|
|
</div>
|
|
<p class="important">
|
|
<htk-text lot="iter" name="Cliente"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="iter" name="id"/> -
|
|
<htk-text lot="iter" name="name"/>
|
|
</p>
|
|
</a>
|
|
</custom>
|
|
</htk-repeater>
|
|
</div>
|
|
</div>
|
|
</vn>
|