projectworkload.html.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <style>
  3. .scroll-table {overflow-x: scroll}
  4. .scroll-table > .table {min-width:100%}
  5. .stageName {font-weight: 400 !important;}
  6. .reportType {text-align: left !important; font-weight: 700 !important;}
  7. </style>
  8. <?php if(common::checkNotCN()):?>
  9. <style>#conditions .col-xs { width: 126px; }</style>
  10. <?php endif;?>
  11. <div id='mainContent' class='main-row'>
  12. <div class='side-col col-lg' id='sidebar'>
  13. <?php include './blockreportlist.html.php';?>
  14. </div>
  15. <div class='main-col'>
  16. <?php if(empty($stages)):?>
  17. <div class="cell">
  18. <div class="table-empty-tip">
  19. <p><span class="text-muted"><?php echo $lang->error->noData;?></span></p>
  20. </div>
  21. </div>
  22. <?php else:?>
  23. <div class='cell'>
  24. <div class='panel'>
  25. <div class="panel-heading">
  26. <div class="panel-title">
  27. <div class="table-row" id='conditions'>
  28. <div class="col-xs"><?php echo $title;?></div>
  29. </div>
  30. </div>
  31. <nav class="panel-actions btn-toolbar"></nav>
  32. </div>
  33. <div data-ride='table' class='scroll-table'>
  34. <table class='table table-condensed table-striped table-bordered table-fixed no-margin' id='programList'>
  35. <thead>
  36. <tr>
  37. <th class='w-200px'><?php echo $lang->execution->name;?></th>
  38. <?php foreach($stages as $stage):?>
  39. <th class='stageName'><?php echo $stage->name;?></th>
  40. <?php endforeach;?>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr>
  45. <td class='reportType'><?php echo $lang->report->titleList['staff'];?></td>
  46. <?php foreach($stages as $stage):?>
  47. <?php $staff = zget($staffList, $stage->id, '');?>
  48. <td><?php echo $staff ? $staff->count : '';?></td>
  49. <?php endforeach;?>
  50. </tr>
  51. <tr>
  52. <td class='reportType'><?php echo $lang->report->titleList['pv'];?></td>
  53. <?php foreach($stages as $stage):?>
  54. <?php $pv = zget($pvList, $stage->id, '');?>
  55. <td><?php echo $pv;?></td>
  56. <?php endforeach;?>
  57. </tr>
  58. <tr>
  59. <td class='reportType'><?php echo $lang->report->titleList['ev'];?></td>
  60. <?php foreach($stages as $stage):?>
  61. <?php $ev = zget($evList, $stage->id, '');?>
  62. <td><?php echo $ev;?></td>
  63. <?php endforeach;?>
  64. </tr>
  65. <tr>
  66. <td class='reportType'><?php echo $lang->report->titleList['dv'];?></td>
  67. <?php foreach($stages as $stage):?>
  68. <?php $pv = zget($pvList, $stage->id, 0);?>
  69. <?php $ev = zget($evList, $stage->id, 0);?>
  70. <td><?php echo $ev - $pv;?></td>
  71. <?php endforeach;?>
  72. </tr>
  73. <tr>
  74. <td class='reportType'><?php echo $lang->report->titleList['dvrate'];?></td>
  75. <?php foreach($stages as $stage):?>
  76. <?php $pv = zget($pvList, $stage->id, 0);?>
  77. <?php $ev = zget($evList, $stage->id, 0);?>
  78. <td><?php echo $pv == 0 ? 0 : number_format(($ev - $pv) / $pv * 100, 2);?>%</td>
  79. <?php endforeach;?>
  80. </tr>
  81. </tbody>
  82. </table>
  83. </div>
  84. </div>
  85. </div>
  86. <?php endif;?>
  87. </div>
  88. </div>
  89. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>