115 lines
5.8 KiB
HTML
115 lines
5.8 KiB
HTML
|
<!--
|
||
|
* @Descripttion : FOXCMS是一款高效的PHP多端跨平台内容管理系统
|
||
|
* @Author : FoxCMS Team
|
||
|
* @Date : 2023-01-31 10:24:48
|
||
|
* @version : V1.08
|
||
|
* @copyright : ©2021-现在 贵州黔狐科技股份有限公司 版权所有
|
||
|
* @LastEditTime : 2024-08-21 21:54:26
|
||
|
-->
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="cn">
|
||
|
<head>
|
||
|
{include file="header"/}
|
||
|
<meta name="keywords" content="{fox:basic name='keyword'/}" />
|
||
|
<meta name="description" content="{fox:basic name='description'/}" />
|
||
|
<title>{fox:basic name='title'/}</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- 顶部 -->
|
||
|
<header class="foxui-border-bottom foxui-bg-white">{include file="nav"/}</header>
|
||
|
<!-- 主体内容 -->
|
||
|
<main>
|
||
|
<!-- 通栏图 -->
|
||
|
<div class="search-top">
|
||
|
<div class="foxcms-container">
|
||
|
<div class="foxui-row foxui-gutter-6">
|
||
|
<div class="foxui-col-md-12">
|
||
|
<div>
|
||
|
<h1>搜索结果:</h1>
|
||
|
<p>
|
||
|
<strong>“[$search.keyword] 关键词”</strong>
|
||
|
相关的内容
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="foxui-col-md-12">
|
||
|
<div>
|
||
|
{fox:searchform name="field"}
|
||
|
<form method="get" action="[$field.link]">
|
||
|
<input name="fields" value="title" type="hidden" />
|
||
|
<input name="kwtype" value="1" type="hidden" />
|
||
|
<div class="foxui-input-group">
|
||
|
<div class="foxui-input-prefix foxui-input-append" style="display: flex">
|
||
|
<i class="foxui-icon-sousuo-o foxui-prefix-icon"></i>
|
||
|
<input name="keyword" placeholder="输入关键词" value="" />
|
||
|
<button style="width: 80px" class="foxui-append-inner foxui-input-button foxui-solid-primary search-btn">搜索</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
{/fox:Searchform}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 内容 -->
|
||
|
<div class="foxcms-main list-search-main">
|
||
|
<div class="foxcms-container">
|
||
|
<div class="foxui-row foxui-gutter-6">
|
||
|
{fox:list name='field' pagesize="10"}
|
||
|
<div class="foxui-col-md-12">
|
||
|
<a href="[$field.link]" class="list-search-item wow animated slideInUp">
|
||
|
<div class="pic">
|
||
|
<img src="[$field.img_url]" alt="" />
|
||
|
</div>
|
||
|
<div class="text">
|
||
|
<h1 class="foxui-ellipsis-1">[$field.title]</h1>
|
||
|
<p class="foxui-ellipsis-2">[$field.content | cn_substr=240]</p>
|
||
|
<div class="info foxui-display-md-none">
|
||
|
<div class="left">
|
||
|
<span>[$field.column]</span>
|
||
|
<span>[$field.release_time|date='Y-m-d']</span>
|
||
|
</div>
|
||
|
<div class="right">
|
||
|
<i class="foxui-icon-xianshi-o"></i>
|
||
|
<span>{fox:arcclick type="look" calltype="parent"/}</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
{/fox:list}
|
||
|
</div>
|
||
|
<!-- 无数据 -->
|
||
|
{fox:isdata name="isfield"/} {if $isfield == 0}
|
||
|
<div class="empty-container">
|
||
|
<div class="empty-container-inner">
|
||
|
<img src="/templates/skin/images/empty.svg" alt="" />
|
||
|
<span>暂无数据</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
{/if}
|
||
|
<!-- 分页 -->
|
||
|
<div class="foxcms-list-pagination">
|
||
|
<div class="list-pagination-pc foxui-hidden-sm foxui-hidden-xs">{fox:pagelist listsize='12' listitem="pre,pageno,next,info" currentstyle="active" disstyle="disabled" diystyle="pre_foxui-icon-xiangzuo-o,next_foxui-icon-xiangyou-o"/}</div>
|
||
|
<div class="list-pagination-h5 foxui-visible-sm foxui-visible-xs">{fox:pagelist listsize='1' listitem="pre,pageno,next" currentstyle="active" disstyle="disabled" /}</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 右侧浮动内容 -->
|
||
|
<div class="foxcms-fixed-container">{include file="fixed"/}</div>
|
||
|
</main>
|
||
|
<!-- 底部 -->
|
||
|
<footer class="wow animated slideInUp">{include file="footer"/}</footer>
|
||
|
</body>
|
||
|
<script src="_STATIC_/skin/js/foxui-1.21.min.js"></script>
|
||
|
<script src="_STATIC_/skin/js/common.js"></script>
|
||
|
|
||
|
<script>
|
||
|
$(document).on('click', '.search-top .search-btn', function () {
|
||
|
console.log(1);
|
||
|
$('.search-top input[type="submit"]').click();
|
||
|
});
|
||
|
</script>
|
||
|
</html>
|