index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="row-fluid sortable">
  2. <div class="box span12">
  3. <div data-original-title="" class="box-header well"> <i class="icon-user"></i> <a href="{$control}/add" class="">添加</a>系统</div>
  4. <div class="box-content">
  5. <form method='get' action="__SELF__" class="form-inline">
  6. {$html_search}
  7. <button type="submit" class="btn btn-primary">搜索</button>
  8. </form>
  9. <br />
  10. <!-- show="id:编号|8%,title:名称:edit,create_time|toDate='y-m-d':创建时间,status|getStatus2:状态,{$fields}"-->
  11. <html:list id="checkList" name="vo" style="table table-striped table-bordered bootstrap-datatable datatable" checkbox="true" action="true" datasource="list" show="{$f_list}" actionlist="{$f_action}"/>
  12. <div>
  13. <a href="javascript:;" onclick="del();" class="btn btn-info"> 批量禁用</a>
  14. <a href="javascript:;" onclick="foreverdel();" class="btn btn-danger"> 批量删除</a>
  15. </div>
  16. <div class="container text-center">
  17. {$page}
  18. <div style="margin-top:10px;">跳转到<input type="text" style="width: 100px;" id="txt_page" name="txt_page" >页 <input id="btn_jump" type="button" value="跳转"></div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <script src="__PUBLIC__/common/{$js_name}.js"></script>
  24. <script>
  25. <php>
  26. $params = I('get.');
  27. unset($params['p']);
  28. $params = http_build_query($params);
  29. </php>
  30. $(function () {
  31. console.log(URL);
  32. $('#btn_jump').click(function () {
  33. goPage();
  34. });
  35. function goPage() {
  36. var params = '{$params}';
  37. var url = CONTROLLER+"/index?"+params;
  38. url += "&p="+$('#txt_page').val();
  39. window.location.href = url;
  40. }
  41. });
  42. </script>