2015-11-17 10:34:33 +00:00
|
|
|
<vn>
|
2017-05-09 12:03:06 +00:00
|
|
|
<vn-group>
|
|
|
|
<vn-param id="filter"/>
|
|
|
|
<vn-hash-param key="filter" param="filter"/>
|
|
|
|
</vn-group>
|
2015-11-17 10:34:33 +00:00
|
|
|
<div id="title">
|
2017-05-09 12:03:06 +00:00
|
|
|
<h1><t>Items</t></h1>
|
2015-11-17 10:34:33 +00:00
|
|
|
</div>
|
2017-05-09 12:03:06 +00:00
|
|
|
<div id="actions">
|
2018-08-24 13:20:18 +00:00
|
|
|
<htk-search-entry param="filter"/>
|
2016-09-19 06:40:18 +00:00
|
|
|
</div>
|
2015-11-17 10:34:33 +00:00
|
|
|
<div id="form" class="items">
|
2017-05-09 12:03:06 +00:00
|
|
|
<div class="rows box">
|
|
|
|
<htk-repeater form-id="iter" empty-message="_Enter a search term">
|
2018-08-24 13:20:18 +00:00
|
|
|
<db-model property="model" id="items">
|
2019-05-27 13:38:06 +00:00
|
|
|
SELECT i.id, i.longName, i.size, i.category,
|
|
|
|
i.value5, i.value6, i.value7,
|
|
|
|
i.image, im.updated
|
|
|
|
FROM vn.item i
|
|
|
|
LEFT JOIN image im
|
|
|
|
ON im.collectionFk = 'catalog'
|
|
|
|
AND im.name = i.image
|
|
|
|
WHERE i.longName LIKE CONCAT('%', #filter, '%')
|
|
|
|
OR i.id = #filter
|
|
|
|
ORDER BY i.longName LIMIT 50
|
2017-05-09 12:03:06 +00:00
|
|
|
<sql-batch property="batch">
|
|
|
|
<custom>
|
|
|
|
<item name="filter" param="filter"/>
|
|
|
|
</custom>
|
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="row">
|
|
|
|
<htk-image
|
|
|
|
form="iter"
|
2018-07-20 14:30:29 +00:00
|
|
|
column="image"
|
2019-05-27 13:38:06 +00:00
|
|
|
stamp-column="updated"
|
2017-05-09 12:03:06 +00:00
|
|
|
class="photo"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
2018-07-20 14:30:29 +00:00
|
|
|
full-dir="1600x900"
|
2017-05-09 12:03:06 +00:00
|
|
|
editable="true"
|
|
|
|
conn="conn"/>
|
|
|
|
<p class="concept">
|
2019-03-13 08:57:18 +00:00
|
|
|
<htk-text form="iter" column="longName"/>
|
|
|
|
</p>
|
|
|
|
<p class="tags">
|
|
|
|
<htk-text form="iter" column="value5"/>
|
|
|
|
<htk-text form="iter" column="value6"/>
|
|
|
|
<htk-text form="iter" column="value7"/>
|
2017-05-09 12:03:06 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-05-09 13:52:29 +00:00
|
|
|
#<htk-text form="iter" column="id"/>
|
2017-05-09 12:03:06 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-07-20 14:30:29 +00:00
|
|
|
<htk-text form="iter" column="image"/>
|
2017-05-09 12:03:06 +00:00
|
|
|
</p>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-11-17 10:34:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|