h5_document.html 984 B

123456789101112131415161718192021222324252627
  1. {include file="public/header" /}
  2. <div class="data-search">
  3. <input value="{$Request.param.keyword}" />
  4. <span class="iconfont" onclick="goSearch()">&#xe654;</span>
  5. </div>
  6. <div class="data-list">
  7. {notempty name="document_list"}
  8. {foreach name="document_list" item="v"}
  9. <div class="data-item" onclick="setLink('/home/document?type={$v.document_code}')">{$v.document_title}</div>
  10. {/foreach}
  11. {else /}
  12. <div class="no-data">{$Think.lang.ds_no_record}</div>
  13. {/notempty}
  14. </div>
  15. <script>
  16. $(function(){
  17. $('.pagination a').each(function(){
  18. $(this).data('url',$(this).attr('href')).attr('href','javascript:void(0)')
  19. $(this).click(function(){
  20. $('#load_html').load($(this).data('url'));
  21. })
  22. })
  23. })
  24. function goSearch(){
  25. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_document?keyword='+$('.data-search input').val());
  26. }
  27. </script>