condition.html.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php if($config->URAndSR):?>
  2. <table class="table table-bordered">
  3. <thead>
  4. <tr>
  5. <?php count($stageList) === 0 ? $totalStoryTd = 4 : $totalStoryTd = 3;?>
  6. <th colspan="<?php echo $totalStoryTd + count($stageList);?>"><?php echo $lang->milestone->demandStatus;?></th>
  7. </tr>
  8. <tr>
  9. <th rowspan="2"><?php echo $lang->milestone->storyUnit;?></th>
  10. <th colspan="<?php echo count($stageList);?>" class="text-center"><?php echo $lang->milestone->engineeringStage;?></th>
  11. <th rowspan="2" colspan="2"><?php echo $lang->milestone->rateChange;?></th>
  12. </tr>
  13. <tr>
  14. <?php foreach($stageList as $stage):?>
  15. <th title=<?php echo $stage;?>><?php echo $stage;?></th>
  16. <?php endforeach;?>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <tr>
  21. <td><strong><?php echo $lang->milestone->originalStory;?></strong></td>
  22. <?php if(count($stageList) === 0) echo '<td rowspan="3"></td>';?>
  23. <?php foreach($stageList as $key => $stage):?>
  24. <td><?php echo $stageInfo['origin'][$key];?></td>
  25. <?php endforeach;?>
  26. <td colspan="2" rowspan="3">
  27. <?php
  28. $rateNumber = '0%';
  29. if(count($stageInfo['after']) && current($stageInfo['after']))
  30. $rateNumber = round((array_sum($stageInfo['change'])/current($stageInfo['origin'])) * 100, 2).'%';
  31. echo $rateNumber;
  32. ?>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td><strong><?php echo $lang->milestone->modifyNumber;?></strong></td<>
  37. <?php foreach($stageList as $key => $stage):?>
  38. <td><?php echo $stageInfo['after'][$key];?></td>
  39. <?php endforeach;?>
  40. </tr>
  41. <tr>
  42. <td><strong><?php echo $lang->milestone->changeStory;?></strong></td>
  43. <?php foreach($stageList as $key => $stage):?>
  44. <td><?php echo $stageInfo['change'][$key];?></td>
  45. <?php endforeach;?>
  46. </tr>
  47. </tbody>
  48. </table>
  49. <?php endif;?>