zxjxxxedit.jsp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function zxjxxxview(zxjxid){
  5. var path="/xkzzx/editmain?path=11:id="+$('#id').val()+"";
  6. location.href=$.app+'/zxjx/view?id='+zxjxid+'&path='+path;
  7. }
  8. function initzxjxxx(){
  9. $.post($.app + "/gkjyr/zxjxxx", {
  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 zxjx = data[i];
  17. str+="<tr class='tr_bg'>";
  18. if(zxjx.isTrue){
  19. str+="<td><input type='checkbox' checked name='zxjxid' value='"+zxjx.id+"'/></td>";
  20. }else{
  21. str+="<td><input type='checkbox' name='zxjxid' value='"+zxjx.id+"'/></td>";
  22. }
  23. str+="<td>"+zxjx.jxlbmczw+"</td>";
  24. str+="<td>"+zxjx.ssjyrzw+"</td>";
  25. str+="<td>"+zxjx.xhhgg+"</td>";
  26. str+="<td>"+zxjx.jxsl+"</td>";
  27. str+="<td>"+zxjx.syqzw+"</td>";
  28. str+="<td>";
  29. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"zxjxxxview('"+zxjx.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  30. str+="</td>";
  31. str+="</tr>";
  32. }
  33. $('#zxjxxxdiv').empty();
  34. $('#zxjxxxdiv').append(str);
  35. } else {
  36. }
  37. }, "json");
  38. }
  39. </script>
  40. <table class="main_table" cellpadding="0" cellspacing="0">
  41. <tr>
  42. <th width="10%"></th>
  43. <th width="15%">机械类别名称</th>
  44. <th width="15%">港口经营人</th>
  45. <th width="15%">型号或规格</th>
  46. <th width="15%">机械数量</th>
  47. <th width="15%">所有权</th>
  48. <th width="20%">操作</th>
  49. </tr>
  50. <tbody id="zxjxxxdiv"></tbody>
  51. </table>