111
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

48 lines
1.8 KiB

  1. {include file=comm/head.html}
  2. {include file=comm/top.html}
  3. <div class="container pages">
  4. {include file=comm/position.html}
  5. <div class="row">
  6. {pboot:search num=12 order=sorting scode=5 field='title|content'}
  7. <div class="col-12 col-sm-6 col-lg-3">
  8. <div class="card">
  9. <div class="card-img-150"><a href="[search:link]"><img class="card-img-top" src="[search:ico]" alt="[search:title]"></a></div>
  10. <div class="card-body">
  11. <h5 class="card-title"><a href="[search:link]">[search:title len=12]</a></h5>
  12. <p class="card-text">[search:content drophtml=1 len=50]</p>
  13. </div>
  14. </div>
  15. </div>
  16. {/pboot:search}
  17. </div>
  18. <!-- 分页 -->
  19. {pboot:if({page:rows}>0)}
  20. <nav aria-label="page navigation" class="my-4">
  21. <div class="pagination justify-content-center">
  22. <a class="page-item page-link" href="{page:index}">首页</a>
  23. <a class="page-item page-link" href="{page:pre}">上一页</a>
  24. {page:numbar}<!-- 数字条,小屏幕时自动隐藏-->
  25. <a class="page-item page-link" href="{page:next}">下一页</a>
  26. <a class="page-item page-link" href="{page:last}">尾页</a>
  27. </div>
  28. </nav>
  29. {else}
  30. <div class="text-center my-5 text-secondary">未搜索到任何数据!</div>
  31. {/pboot:if}
  32. <!-- 搜索-->
  33. <form class="form-inline mb-5 justify-content-center" action="{pboot:scaction}" method="get">
  34. <div class="form-group mx-sm-3 mb-2">
  35. <input type="text" name="keyword" class="form-control" placeholder="请输入关键字">
  36. </div>
  37. <button type="submit" class="btn btn-info mb-2">搜索</button>
  38. </form>
  39. </div>
  40. {include file=comm/foot.html}