list.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Cache-Control" content="no-cache" />
  8. <meta http-equiv="Expires" content="0" />
  9. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  10. <title>表单列表</title>
  11. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  12. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  13. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  14. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  15. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  16. </head>
  17. <body ng-controller="prjListCtrl as ctl">
  18. <div class="sp-page-mgn">
  19. <div class="sp-page-pad">
  20. <div class="sp-page">
  21. <div class="sp-page-col">
  22. <div class="sp-page-title">项目列表</div>
  23. </div>
  24. <div class="sp-page-col sp-pull-right">
  25. <a class="sp-btn-blue sp-btn-sm sp-btn-radius" href="detail.html?routeid=0&mainTableName={{ctl.mainTableName}}"><i class=" fa fa-plus"></i>&nbsp;新建</a>
  26. </div>
  27. </div>
  28. <div class="sp-line-gray"></div>
  29. <div class="sp-page">
  30. <table class="sp-table">
  31. <thead>
  32. <tr>
  33. <th style="width:60px;">序号</th>
  34. <th>项目名称</th>
  35. <th style="width:120px;">操作</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage" total-items="ctl.total_count">
  40. <td ng-bind="$index+1"></td>
  41. <td><a href="detail.html?routeid={{item.ROUTEID}}&mainTableName={{ctl.mainTableName}}&role=read" ng-bind="item.TITLE"></a></td>
  42. <td>
  43. <a href="detail.html?routeid={{item.ROUTEID}}&mainTableName={{ctl.mainTableName}}&role=edit" class="sp-btn-blue sp-btn-sm sp-btn-radius"><i class="fa fa-pencil"></i>&nbsp;编辑</a>
  44. </td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
  49. <i class="fa fa-exclamation-circle"></i>您好,还没有消息哦!
  50. </div>
  51. <div class="sp-page" ng-show="ctl.noDataTip == 1">
  52. <div class="sp-page-col sp-pull-right">
  53. <div class="sp-lh-34">
  54. 每页
  55. <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions" ng-init="ctl.itemsPerPage=ctl.pageOptions[0]"></select>
  56. </div>
  57. </div>
  58. <div class="sp-page-col sp-pull-right">
  59. <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
  60. on-page-change="ctl.getData(newPageNumber)">
  61. </dir-pagination-controls>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <script src="../../AFrontEnd/js/jquery/jquery-1.8.3.min.js"></script>
  68. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  69. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  70. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  71. <script src="../../AFrontEnd/js/angularjs/angular-sanitize.js"></script>
  72. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
  73. <script>document.write('<scri' + 'pt src="js/list.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
  74. </body>
  75. </html>