mtxxview.jsp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="/xkzbg/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. recordStatus:10
  13. }, function(data) {
  14. if (data) {
  15. var str =""
  16. for(var i=0;i<data.length;i++){
  17. var mt = data[i];
  18. str+="<tr class='tr_bg'>";
  19. str+="<td>"+(i+1)+"</td>";
  20. str+="<td>"+mt.mtmc+"</td>";
  21. str+="<td>"+mt.ssjyrzw+"</td>";
  22. str+="<td>"+mt.szgkzw+"</td>";
  23. str+="<td>"+mt.szgqzw+"</td>";
  24. str+="<td>"+(mt.mtytzw == null? "":mt.mtytzw)+"</td>";
  25. str+="<td>"+(mt.fwlxzw == null? "":mt.fwlxzw)+"</td>";
  26. str+="<td>"+mt.sfwhpzw+"</td>";
  27. str+="<td>";
  28. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"mtxxview('"+mt.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  29. str+="</td>";
  30. str+="</tr>";
  31. }
  32. $('#mtxxdiv').empty();
  33. $('#mtxxdiv').append(str);
  34. } else {
  35. }
  36. }, "json");
  37. }
  38. </script>
  39. <table class="main_table" cellpadding="0" cellspacing="0">
  40. <tr>
  41. <th width="5%">序号</th>
  42. <th width="14%">码头名称</th>
  43. <th width="14%">港口经营人</th>
  44. <th width="10%">所在港口</th>
  45. <th width="10%">所在港区</th>
  46. <th width="14%">码头用途</th>
  47. <th width="6%">服务类型</th>
  48. <th width="10%">是否危化品码头</th>
  49. <th width="17%">操作</th>
  50. </tr>
  51. <tbody id="mtxxdiv"></tbody>
  52. <%--
  53. <c:forEach items="${mtxx}" var="mt" varStatus="status">
  54. </c:forEach> --%>
  55. </table>