allianceEnterpriseListPage.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <%var cssParam = {%>
  2. <%};%>
  3. <%var jsParam = {%>
  4. <script type="text/javascript">
  5. function todel(url,msg){
  6. bootbox.dialog({
  7. title: "系统提示",
  8. message: msg,
  9. locale:"zh_CN",
  10. buttons: {
  11. cancel: {label: "取消",className: "btn-cancel",callback: function() {}},
  12. ok: {label: "确定",className: "btn-success",
  13. callback: function() {
  14. window.location.href = url;
  15. }
  16. }
  17. }
  18. });
  19. }
  20. function addUserAjax(){
  21. $.ajax({
  22. url: '${contextPath}/admin/account/addEnterpriseInAllianceAjax',
  23. data:{
  24. code:'${code}',
  25. license:$('#license').val()
  26. },
  27. async: false,
  28. cache: false,
  29. dataType: "json",
  30. success: function(data) {
  31. if(data.msg!=""){
  32. bootbox.dialog({
  33. title: "系统提示",
  34. message: data.msg,
  35. locale:"zh_CN",
  36. buttons: {
  37. ok: {label: "确定",className: "btn-success",
  38. callback: function() {
  39. location.reload();
  40. }
  41. }
  42. }
  43. });
  44. }
  45. }
  46. });
  47. }
  48. <%if(""!=msg!""){%>
  49. alert('${msg}');
  50. <%}%>
  51. </script>
  52. <%};%>
  53. <%layout("/ace/commonPage/_layout.html", {nav: "联盟企业(单位)管理",meunsel:code==""?"allianceEnterpriseManage":"allianceManage",jsParam:jsParam,cssParam:cssParam}) {%>
  54. <div class="col-xs-12">
  55. <div class="row">
  56. <form id="searchForm" action="#" method="post" class="form-horizontal">
  57. 营业执照:<input type="text" name="license" id="license" placeholder="请输入营业执照" value="" />
  58. <a class="btn btn-xs btn-search" href="javascript:addUserAjax()">
  59. <i class="icon-plus bigger-120">添加企业(单位)</i>
  60. </a>
  61. <%if(""!=code!""){%>
  62. <a class="btn btn-xs btn-success" href="${contextPath}/admin/alliance/getAllianceList?pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  63. <i class="icon-arrow-left bigger-120">返回联盟管理</i>
  64. </a>
  65. <%}%>
  66. </form>
  67. </div>
  68. </div>
  69. <div class="col-xs-12">
  70. <div class="row">
  71. <div class="table-responsive">
  72. <table id="sample-table-1"
  73. class="table table-striped table-bordered table-hover">
  74. <thead>
  75. <tr>
  76. <th>序号</th>
  77. <th>企业(单位)名称</th>
  78. <th>营业执照编码</th>
  79. <th>加入时间</th>
  80. <th></th>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. <%for(tempDate in dateList!){%>
  85. <tr>
  86. <td>${tempDateLP.index}</td>
  87. <td>${tempDate.enterpriseName!''}</td>
  88. <td>${tempDate.license!''}</td>
  89. <td>${tempDate.createdate!''}</td>
  90. <td>
  91. <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
  92. <a class="btn btn-xs btn-danger" href="javascript:todel('${contextPath}/admin/account/delEnterpriseAlliance?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}&code=${code!}','记录将被永久删除,并且无法恢复。您确定吗?')" onclick="" data-toggle="tooltip" data-placement="auto" title="删除">
  93. <i class="icon-trash bigger-120"></i>
  94. </a>
  95. </div>
  96. </td>
  97. </tr>
  98. <%}elsefor{%>
  99. <tr>
  100. <td colspan="5">没有记录!</td>
  101. </tr>
  102. <%}%>
  103. </tbody>
  104. </table>
  105. </div>
  106. <!-- /.table-responsive -->
  107. </div>
  108. <!-- /span -->
  109. </div>
  110. <!-- /row -->
  111. <%}%>