refactor: 附件/视频搜索

This commit is contained in:
2025-04-16 13:39:19 +08:00
parent 07a722c000
commit fa91ee8351
9 changed files with 56 additions and 22 deletions

View File

@@ -12,12 +12,13 @@
</div>
<div class="contact_c">
<!-- 搜索 -->
<div class="search_all">
<input type="text" name="textfield" placeholder="Search model" id="search_software">
<div class="searchbtn" id="search-btn">
<img src="downloadImg/search.png" />
<form action="{:url('attachment/index')}" method="get">
<div class="search_all">
<input type="hidden" name="id" value="{$Request.get.id}" />
<input type="text" name="keyword" placeholder="{:lang('attachment.search_placeholder')}" />
<button class="searchbtn" type="submit"><img src="__IMAGES__/search_blue.png" /></button>
</div>
</div>
</form>
<!-- tab切换 -->
<div class="tab">
{notempty name="categorys"}
@@ -36,8 +37,8 @@
<a href="{:url('attachment/video')}"><div class="tabit">{:lang('attachment.video')}</div></a>
</div>
<!-- 切换的内容 -->
{notempty name="attachements"}
<div class="softlist">
{notempty name="attachements"}
{volist name="attachements" id="att"}
<div class="softit">
<div class="left_img">
@@ -62,8 +63,10 @@
</div>
{/volist}
<div>{$page|raw}</div>
{else/}
<div class="softit">查询无结果!</div>
{/notempty}
</div>
{/notempty}
</div>
</div>
</div>