refactor: 附件/视频搜索

This commit is contained in:
2025-04-16 13:39:19 +08:00
parent 721904f7e3
commit bc5022b2d6
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>

View File

@@ -12,12 +12,12 @@
</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/video')}" method="get">
<div class="search_all">
<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="attachment_categorys"}
@@ -45,9 +45,9 @@
</div>
{/notempty}
<!-- 视频内容 -->
{notempty name="videos"}
<div class="bdconten">
<ul >
{notempty name="videos"}
<dl class="video_hotul">
{volist name="videos" id="vo"}
<dd>
@@ -65,9 +65,11 @@
<div class="clear"></div>
</dl>
<div>{$page|raw}</div>
{else/}
<dl class="video-empty">查询无结果!</dl>
{/notempty}
</ul>
</div>
{/notempty}
</div>
</div>
</div>