index.html.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <style>
  3. table .btn.addItem, table .btn.delItem{padding: 3px 8px; font-size: 12px; line-height: 18px; border-radius: 4px; color: #3c495c}
  4. .measures-input{width: 80%; float: left; margin-right: 5px;}
  5. .main-table tbody>tr>td:first-child{padding: 2px 8px !important;}
  6. .angle-btn+.angle-btn{ border-left: 1px solid #0c64eb;}
  7. </style>
  8. <?php if($executionID):?>
  9. <div id="mainContent" class="main-row fade in">
  10. <div class="main-col">
  11. <div class="main-table">
  12. <?php include 'basicinfo.html.php';?>
  13. <?php include 'process.html.php';?>
  14. <div class="cell"><?php include 'chart.html.php';?></div>
  15. <?php include 'productquality.html.php';?>
  16. <?php include 'workhour.html.php';?>
  17. <?php include 'progress.html.php';?>
  18. <?php include 'rectifying.html.php';?>
  19. <?php include 'condition.html.php';?>
  20. <?php include 'projectrisk.html.php';?>
  21. <?php include 'otherproblem.html.php';?>
  22. </div>
  23. </div>
  24. </div>
  25. <?php js::set('measuresUrl', $this->createLink('milestone', 'ajaxAddMeasures'));?>
  26. <script>
  27. function addItem(add)
  28. {
  29. var rowspan = $("#measuresTd").attr("rowspan");
  30. $("#measuresTd").attr("rowspan", Number(rowspan) + 1);
  31. $(add).parent().parent().after('<tr>' + $("#measuresDiv").html() + '</tr>');
  32. submitMeasurse();
  33. }
  34. function delItem(del)
  35. {
  36. if($(del).attr('id')) return false;
  37. var rowspan = $("#measuresTd").attr("rowspan");
  38. if(rowspan == '1') return false;
  39. $("#measuresTd").attr("rowspan", Number(rowspan) - 1);
  40. $(del).parent().parent().remove();
  41. submitMeasurse();
  42. }
  43. function submitMeasurse()
  44. {
  45. $.ajax(
  46. {
  47. type: "post",
  48. url: measuresUrl,
  49. data: $("#ajaxFormMeasures").serialize(),
  50. success: function(data)
  51. {
  52. }
  53. });
  54. }
  55. </script>
  56. <?php else:?>
  57. <div class='main-col'>
  58. <div class="table-empty-tip">
  59. <p><?php echo $lang->noData;?></p>
  60. </div>
  61. </div>
  62. <?php endif;?>
  63. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>