listPage.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. var coordianteEditId = 0;
  21. function openCoordinate(id){
  22. coordianteEditId=id
  23. window.open('${contextPath}/mapApply/getCoordinate','','width=800, height=600, help=no, status-no');
  24. }
  25. function setCoordinate(lng, lat){
  26. if(coordianteEditId > 0){
  27. //alert("coordianteEditId:" + coordianteEditId + " | " + "lng:" + lng + " | " + "lat:" + lat);
  28. $.ajax({
  29. url: "${contextPath}/alliance/setCoordinate",
  30. dataType: 'json',
  31. data: {
  32. id: coordianteEditId,
  33. longitude: lng,
  34. latitude: lat
  35. },
  36. type: 'post',
  37. success: function(data){
  38. }
  39. });
  40. coordianteEditId = 0;
  41. }
  42. }
  43. </script>
  44. <%};%>
  45. <%layout("/ace/commonPage/_layout.html", {nav: "联盟管理",meunsel:"allianceManage",jsParam:jsParam,cssParam:cssParam}) {%>
  46. <div class="col-xs-12">
  47. <div class="row">
  48. <form id="searchForm" action="${contextPath}/alliance/getAllianceList" method="post" class="form-horizontal">
  49. <input type="hidden" name="pageNumber" value="1" />
  50. 查询编码:<input type="text" name="code" placeholder="请输入编码" value="" />
  51. 查询名称:<input type="text" name="name" placeholder="请输入名称" value="" />
  52. <button class="btn btn-xs btn-primary" onclick="document.getElementById('searchForm').submit();"><i class="icon-search bigger-120">查询</i></button>
  53. <a class="btn btn-xs btn-success" href="${contextPath}/alliance/toedit?pageNumber=${pageNumber!1}">
  54. <i class="icon-ok bigger-120">添加联盟</i>
  55. </a>
  56. </form>
  57. </div>
  58. </div>
  59. <div class="col-xs-12">
  60. <div class="row">
  61. <div class="table-responsive">
  62. <table id="sample-table-1"
  63. class="table table-striped table-bordered table-hover">
  64. <thead>
  65. <tr>
  66. <th>序号</th>
  67. <th>编码</th>
  68. <th>名称</th>
  69. <th>依托单位</th>
  70. <th>联系方式</th>
  71. <th>联系地址</th>
  72. <th>主页</th>
  73. <th>创建时间</th>
  74. <th></th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. <%for(tempDate in dateList!){%>
  79. <tr>
  80. <td>${tempDateLP.index}</td>
  81. <td>${tempDate.code!''}</td>
  82. <td>${tempDate.name!''}</td>
  83. <td>${tempDate.department!''}</td>
  84. <td>${tempDate.contact!''}</td>
  85. <td>${tempDate.addr!''}</td>
  86. <td>
  87. <%if(tempDate.ishomepage==2){%>
  88. <%}else{%>
  89. <a href="${tempDate.homepage}" target="_blank">打开主页</a>
  90. <%}%>
  91. </td>
  92. <td>${tempDate.createDate!''}</td>
  93. <td>
  94. <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
  95. <a class="btn btn-xs btn-info" href="${contextPath}/alliance/view?id=${tempDate.id}" target="_blank" data-toggle="tooltip" data-placement="auto" title="查看详情">
  96. <i class="icon-flag bigger-120"></i>
  97. </a>
  98. <a class="btn btn-xs btn-info" href="javascript:openCoordinate(${tempDate.id});" data-toggle="tooltip" data-placement="auto" title="编辑位置坐标">
  99. <i class="icon-certificate bigger-120"></i>
  100. </a>
  101. <a class="btn btn-xs btn-info" href="${contextPath}/alliance/toedit?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}" data-toggle="tooltip" data-placement="auto" title="编辑">
  102. <i class="icon-edit bigger-120"></i>
  103. </a>
  104. <a class="btn btn-xs btn-danger" href="javascript:todel('${contextPath}/alliance/del?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}','记录将被永久删除,并且无法恢复。您确定吗?')" onclick="" data-toggle="tooltip" data-placement="auto" title="删除">
  105. <i class="icon-trash bigger-120"></i>
  106. </a>
  107. <a class="btn btn-xs btn-info" href="${contextPath}/account/getAllianceUserList?code=${tempDate.code}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}" data-toggle="tooltip" data-placement="auto" title="用户管理">
  108. <i class="icon-user bigger-120"></i>
  109. </a>
  110. <a class="btn btn-xs btn-info" href="${contextPath}/account/getAllianceEnterpriseList?code=${tempDate.code}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}" data-toggle="tooltip" data-placement="auto" title="企业(单位)管理">
  111. <i class="icon-fire bigger-120"></i>
  112. </a>
  113. </div>
  114. </td>
  115. </tr>
  116. <%}elsefor{%>
  117. <tr>
  118. <td colspan="9">没有记录!</td>
  119. </tr>
  120. <%}%>
  121. </tbody>
  122. </table>
  123. </div>
  124. <div class="pull-right">
  125. <%include("/ace/commonPage/_paginate.html", {"currentPage": pageNumber!1, "totalPage": totalPage!1, "totalRow": totalRow!0, "actionUrl": contextPath+"/alliance/getAllianceList?pageNumber=", "urlParas": urlParas!''}){}%>
  126. </div>
  127. <!-- /.table-responsive -->
  128. </div>
  129. <!-- /span -->
  130. </div>
  131. <!-- /row -->
  132. <%}%>