mtxxview.jsp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function mtxxview(mtid){
  5. var path="/xkzyx/viewmain?path=3:id="+$('#id').val()+"";
  6. location.href=$.app+'/mt/view?id='+mtid+'&path='+path;
  7. }
  8. function initmtxx(){
  9. $.post($.app + "/gkjyr/mtxx", {
  10. id : $('#jyrid').val(),
  11. czid:$('#id').val()
  12. }, function(data) {
  13. if (data) {
  14. var str =""
  15. for(var i=0;i<data.length;i++){
  16. var mt = data[i];
  17. str+="<tr class='tr_bg'>";
  18. str+="<td>"+(i+1)+"</td>";
  19. str+="<td>"+mt.mtmc+"</td>";
  20. str+="<td>"+mt.ssjyrzw+"</td>";
  21. str+="<td>"+mt.szgkzw+"</td>";
  22. str+="<td>"+mt.szgqzw+"</td>";
  23. str+="<td>"+(mt.mtytzw == null? "":mt.mtytzw)+"</td>";
  24. str+="<td>"+(mt.fwlxzw == null? "":mt.fwlxzw)+"</td>";
  25. str+="<td>"+mt.sfwhpzw+"</td>";
  26. str+="<td>";
  27. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"mtxxview('"+mt.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  28. str+="</td>";
  29. str+="</tr>";
  30. }
  31. $('#mtxxdiv').empty();
  32. $('#mtxxdiv').append(str);
  33. } else {
  34. }
  35. }, "json");
  36. }
  37. </script>
  38. <table class="main_table" cellpadding="0" cellspacing="0">
  39. <tr>
  40. <th width="5%">序号</th>
  41. <th width="14%">码头名称</th>
  42. <th width="14%">港口经营人</th>
  43. <th width="10%">所在港口</th>
  44. <th width="10%">所在港区</th>
  45. <th width="14%">码头用途</th>
  46. <th width="6%">服务类型</th>
  47. <th width="10%">是否危化品码头</th>
  48. <th width="17%">操作</th>
  49. </tr>
  50. <tbody id="mtxxdiv"></tbody>
  51. <%--
  52. <c:forEach items="${mtxx}" var="mt" varStatus="status">
  53. </c:forEach> --%>
  54. </table>