listPage.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <%var cssPar = {%>
  2. <link href="${contextPath}/WebPages_170421/css/personal/list.css" rel="stylesheet" type="text/css">
  3. <%};%>
  4. <%var jsPar = {%>
  5. <script type="text/javascript" src="${contextPath}/WebPages_170421/js/personal/list.js"></script>
  6. <script type="text/javascript">
  7. var coordianteEditId = 0;
  8. function openCoordinate(id){
  9. coordianteEditId=id
  10. window.open('${contextPath}/mapApply/getCoordinate','','width=800, height=600, help=no, status-no');
  11. }
  12. function setCoordinate(lng, lat){
  13. if(coordianteEditId > 0){
  14. //alert("coordianteEditId:" + coordianteEditId + " | " + "lng:" + lng + " | " + "lat:" + lat);
  15. $.ajax({
  16. url: "${contextPath}/enterprise/setCoordinate",
  17. dataType: 'json',
  18. data: {
  19. id: coordianteEditId,
  20. longitude: lng,
  21. latitude: lat
  22. },
  23. type: 'post',
  24. success: function(data){
  25. }
  26. });
  27. coordianteEditId = 0;
  28. }
  29. }
  30. </script>
  31. <%};%>
  32. <%layout("/WebPages_170421/personalPages/commonPage/_layout.html", {nav:"",meunsel:"",jsParam:jsPar,cssParam:cssPar}) {%>
  33. <div class="container">
  34. <div class="conent">
  35. <span class="nin">您当前的位置:</span>
  36. <a href="/" class="yiji">首页</a>
  37. <span class="nin"> > </span>
  38. <a href="/toindex" class="yiji">个人中心</a>
  39. <span class="nin"> > </span>
  40. <a href="/getEnterpriseList?pageNumber=1" class="yiji">企业信息维护</a>
  41. </div>
  42. </div>
  43. <div class="container" >
  44. <% include("/WebPages_170421/personalPages/commonPage/_navigation.html"){} %>
  45. <div class="Dlrt">
  46. <form action="${contextPath}/enterprise/getEnterpriseList" method="post" class="frmSs">
  47. <input type="hidden" name="pageNumber" value="1" />
  48. <span class="p1">查询编码:</span>
  49. <input type="text" class="p2" name="code" placeholder="请输入编码">
  50. <span class="p1">查询名称:</span>
  51. <input type="text" class="p2" name="name" placeholder="请输入名称">
  52. <input type="submit" class="p3" value="查询">
  53. <a href="${contextPath}/enterprise/toedit?pageNumber=${pageNumber!1}">
  54. <input type="button" class="p6" value="添加企业">
  55. </a>
  56. </form>
  57. <div class="table-fa">
  58. <table border="1" style="border-bottom:1px solid #cccccc; border-left:1px solid #f6f7f8; border-top:1px solid #f6f7f8; border-right:1px solid #cccccc;" width="915px" >
  59. <thead>
  60. <tr style="width: 910px; height: 40px; text-align: center; background: #e5f1f9">
  61. <th>序号</th>
  62. <th>编码</th>
  63. <th>名称</th>
  64. <th>执照编码</th>
  65. <th>联系方式</th>
  66. <th>联系地址</th>
  67. <th>主页</th>
  68. <th>创建时间</th>
  69. <th>操作</th>
  70. </tr>
  71. </thead>
  72. <tbody id="t1">
  73. <%for(tempDate in dateList!){%>
  74. <tr style=" height: 40px;">
  75. <td>${tempDateLP.index}</td>
  76. <td>${tempDate.code!''}</td>
  77. <td>${tempDate.name!''}</td>
  78. <td>${tempDate.license!''}</td>
  79. <td>${tempDate.contact!''}</td>
  80. <td>${tempDate.addr!''}</td>
  81. <td>
  82. <%if(tempDate.ishomepage==2){%>
  83. <%}else{%>
  84. <a href="${tempDate.homepage}" target="_blank">打开主页</a>
  85. <%}%>
  86. </td>
  87. <td>${tempDate.createDate!''}</td>
  88. <td style="width:165px;">
  89. <a href="${contextPath}/enterprise/view?id=${tempDate.id}">
  90. <div class="btn1" style="margin-left:12px;" title="详情">
  91. <i class="icon-folder-open-alt"></i>
  92. </div>
  93. </a>
  94. <a href="javascript:openCoordinate(${tempDate.id});">
  95. <div class="btn1" title="编辑位置坐标">
  96. <i class="icon-map-marker"></i>
  97. </div>
  98. </a>
  99. <a href="${contextPath}/account/getEnterpriseUserList?license=${tempDate.license}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  100. <div class="btn1" title="用户管理">
  101. <i class="icon-sitemap"></i>
  102. </div>
  103. </a>
  104. <a href="${contextPath}/enterprise/toedit?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  105. <div class="btn1" title="编辑">
  106. <i class="icon-edit"></i>
  107. </div>
  108. </a>
  109. <a href="javascript:" onclick="del()">
  110. <div class="btn1 bgli" title="删除">
  111. <i class="icon-trash" ></i>
  112. </div>
  113. </a>
  114. </td>
  115. </tr>
  116. <div id="box">
  117. <p style="width: 200px; height:80px; line-height:80px; text-align: center;">确认删除吗?</p>
  118. <a href="${contextPath}/enterprise/del?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  119. <input type="button" onclick="yes()" value="确定" class="delBtn">
  120. </a>
  121. <input type="button" onclick="no()" value="取消" class="delBtn m0" >
  122. </div>
  123. <%}elsefor{%>
  124. <tr>
  125. <td colspan="12">没有记录!</td>
  126. </tr>
  127. <%}%>
  128. </tbody>
  129. </table>
  130. <%include("/WebPages_170421/personalPages/commonPage/_paginate.html", {"currentPage": pageNumber!1, "totalPage": totalPage!1, "totalRow": totalRow!0, "actionUrl": contextPath+"/enterprise/getEnterpriseList?pageNumber=", "urlParas": urlParas!''}){}%>
  131. </div>
  132. </div>
  133. </div>
  134. <%}%>