list.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>培训</title>
  6. <include file="public@head"/>
  7. <hook name="before_head_end"/>
  8. </head>
  9. <body>
  10. <include file="public@nav"/>
  11. <div class="content">
  12. <div class="ma">
  13. <div class="path">
  14. <a href="/">首页</a> >
  15. <volist name="path_list" id="p">
  16. <a href="{:cmf_url('index')}?category_id={$p['id']}">{$p['name']}</a> >
  17. </volist>
  18. </div>
  19. <div class="clearfix">
  20. <div class="fl leftNav">
  21. <dl>
  22. <dt>{$category_self.name}</dt>
  23. <volist name="category_child" id="c">
  24. <dd>
  25. <a class="Cur" href="{:cmf_url('index')}?category_id={$c['id']}">{$c['name']}</a>
  26. </dd>
  27. </volist>
  28. </dl>
  29. </div>
  30. <!-- end leftNav-->
  31. <div class="fr rightCon">
  32. <div class="rtit">
  33. <span>{$category_self.name}</span>
  34. <div class="fr search">
  35. <input type="text" placeholder="搜索课程" class="searchInp" value="{$keyword}">
  36. <input type="button" class="searSub">
  37. </div>
  38. </div>
  39. <!-- end rtit-->
  40. <div class="list">
  41. <ul>
  42. <volist name="list" id="l">
  43. <li>
  44. <span>
  45. <a href="{:cmf_url('article/index')}?id={$l['id']}">{$l.post_title}</a>
  46. </span>
  47. <i>{:date('Y-m-d',$l['published_time'])}</i>
  48. </li>
  49. </volist>
  50. </ul>
  51. </div>
  52. <ul class="pagination">{$page|raw}</ul>
  53. <!-- end couseList-->
  54. </div>
  55. <!-- end rightCon-->
  56. </div>
  57. </div>
  58. </div>
  59. <!-- end content-->
  60. <include file="public@footer"/>
  61. <script>
  62. $('.searSub').click(function () {
  63. let searchText = $('.searchInp').val();
  64. location.href = "{:cmf_url('index')}?category_id={$category_self.id}&keyword=" + searchText;
  65. });
  66. </script>
  67. </body>
  68. </html>