template.htm 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ##tlayout("www/layout.htm"){
  2. <div class="template">
  3. <img src="/www/image/banner-template.jpg" class="center" style="width: 100%;margin-left: 0px;left: 0px;" />
  4. </div>
  5. <section class="container">
  6. <h3 class="template-title text-center" style="margin-top: 0px;">模板大全</h3>
  7. <div class="template-classify">
  8. <dl class="dl-horizontal">
  9. <dt>模板用途:</dt>
  10. <dd>
  11. ##if(exist("pid")){
  12. <a href="/template">全部</a>
  13. ##}else{
  14. <a href="/template" class="active">全部</a>
  15. ##}
  16. ##for(_item in purpose_list!){
  17. ##if(exist("pid") && pid==_item.id){
  18. <a href="/template?pid=${_item.id!}" class="active">${_item.title!}</a>
  19. ##}else{
  20. <a href="/template?pid=${_item.id!}">${_item.title!}</a>
  21. ##}
  22. ##}
  23. </dd>
  24. </dl>
  25. <dl class="dl-horizontal">
  26. <dt>模板行业:</dt>
  27. <dd>
  28. ##if(exist("iid")){
  29. <a href="/template">全部</a>
  30. ##}else{
  31. <a href="/template" class="active">全部</a>
  32. ##}
  33. ##for(_item in industry_list!){
  34. ##if(exist("iid") && iid==_item.id){
  35. <a href="/template?iid=${_item.id!}" class="active">${_item.title!}</a>
  36. ##}else{
  37. <a href="/template?iid=${_item.id!}">${_item.title!}</a>
  38. ##}
  39. ##}
  40. </dd>
  41. </dl>
  42. <dl class="dl-horizontal">
  43. <dt>模板节日:</dt>
  44. <dd>
  45. ##if(exist("fid")){
  46. <a href="/template">全部</a>
  47. ##}else{
  48. <a href="/template" class="active">全部</a>
  49. ##}
  50. ##for(_item in festival_list!){
  51. ##if(exist("fid") && fid==_item.id){
  52. <a href="/template?fid=${_item.id!}" class="active">${_item.title!}</a>
  53. ##}else{
  54. <a href="/template?fid=${_item.id!}">${_item.title!}</a>
  55. ##}
  56. ##}
  57. </dd>
  58. </dl>
  59. <dl class="dl-horizontal">
  60. <dt>模板风格:</dt>
  61. <dd>
  62. ##if(exist("sid")){
  63. <a href="/template">全部</a>
  64. ##}else{
  65. <a href="/template" class="active">全部</a>
  66. ##}
  67. ##for(_item in style_list!){
  68. ##if(exist("sid") && sid==_item.id){
  69. <a href="/template?sid=${_item.id!}" class="active">${_item.title!}</a>
  70. ##}else{
  71. <a href="/template?sid=${_item.id!}">${_item.title!}</a>
  72. ##}
  73. ##}
  74. </dd>
  75. </dl>
  76. </div>
  77. <div class="product-wrapper">
  78. <div class="product-content">
  79. <ul class="product-list row list-unstyled clearfix">
  80. ##for(_item in results.list!){
  81. <li>
  82. <a href="/diy?id=${_item.id!}" target="_blank">
  83. <img src="${_item.img_url!}" class="img-responsive prduct-img"/>
  84. <div class="product-title">
  85. <div class="title">${_item.title!}</div>
  86. <div class="remark">${_item.remark!}</div>
  87. <div class="fenlei clearfix">
  88. <span>${_item.purpose_title!}</span>
  89. <span>${_item.industry_title!}</span>
  90. <span>${_item.festival_title!}</span>
  91. <span>${_item.style_title!}</span>
  92. <span>${_item.subject_title!}</span>
  93. <span>${_item.bottle_title!}</span>
  94. </div>
  95. <div class="use_number">使用次数:${_item.use_number!}</div>
  96. <span class="btn">在线定制</span>
  97. </div>
  98. </a>
  99. </li>
  100. ##}
  101. </ul>
  102. ##if(totalPage>1){
  103. <nav aria-label="Page navigation" class="page">
  104. <#_page page="${results!}" params="pid,iid,fid,sid">
  105. <ul id="Pagination" class="pagination"></ul>
  106. </#_page>
  107. </nav>
  108. ##}
  109. </div>
  110. </div>
  111. </section>
  112. <script>
  113. $('.product-list li').hover(function(){
  114. $(this).find('.product-title').stop().fadeIn();
  115. },function(){
  116. $(this).find('.product-title').stop().fadeOut();
  117. });
  118. </script>
  119. ##}