estimate.html.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php js::set('workingHours', $lang->custom->conceptOptions->hourPoint[0]);?>
  3. <?php js::set('storyPoint', $lang->custom->conceptOptions->hourPoint[1]);?>
  4. <?php js::set('functionPoint', $lang->custom->conceptOptions->hourPoint[2]);?>
  5. <?php js::set('efficiency', $lang->custom->unitList['efficiency']);?>
  6. <?php js::set('convertRelationTitle', $lang->custom->convertRelationTitle);?>
  7. <?php js::set('convertRelationTips', $lang->custom->convertRelationTips);?>
  8. <?php js::set('notempty', sprintf($this->lang->error->notempty, $this->lang->custom->convertFactor));?>
  9. <?php js::set('isNumber', sprintf($this->lang->error->float, $this->lang->custom->convertFactor));?>
  10. <?php js::set('saveTips', $lang->custom->saveTips);?>
  11. <?php js::set('unit', $unit);?>
  12. <?php
  13. $lang->custom->object = array();
  14. $lang->custom->system = array();
  15. $lang->custom->system[] = 'estimate';
  16. ?>
  17. <style>
  18. .unify-padding{width:94px;}
  19. #title{font-weight: 700;}
  20. </style>
  21. <div id='mainContent' class='main-row'>
  22. <div class='main-col main-content'>
  23. <form class="load-indicator main-form form-ajax" method='post'>
  24. <!-- div class='main-header'>
  25. <div class='heading'>
  26. <strong><?php echo $lang->custom->estimate . $lang->arrow . $lang->custom->estimateConfig;?></strong>
  27. </div>
  28. </div -->
  29. <table class='table table-form mw-900px'>
  30. <tr>
  31. <th class='thWidth'><?php echo $lang->custom->estimateUnit;?></th>
  32. <td class='w-350px'><?php echo html::radio('hourPoint', $lang->custom->conceptOptions->estimateUnit, $unit);?></td>
  33. <td></td>
  34. </tr>
  35. <?php $hidden = $unit == 0 ? 'hidden' : '';?>
  36. <tr class="efficiency <?php echo $hidden;?>">
  37. <th class='w-150px'><?php echo $lang->custom->estimateEfficiency;?></th>
  38. <td>
  39. <div class='input-group w-300px'>
  40. <?php
  41. echo html::input('efficiency', $efficiency, "class='form-control'");
  42. ?>
  43. <span class='input-group-addon unify-padding'>
  44. <?php
  45. if($unit == 0)
  46. {
  47. echo $lang->custom->conceptOptions->hourPoint[0];
  48. }
  49. else
  50. {
  51. echo $lang->custom->unitList['efficiency'] . $lang->custom->conceptOptions->hourPoint[$unit];
  52. }
  53. ?>
  54. </span>
  55. </div>
  56. </td>
  57. <td></td>
  58. </tr>
  59. <tr>
  60. <th class='w-150px'><?php echo $lang->custom->estimateCost;?></th>
  61. <td>
  62. <div class='input-group w-300px'>
  63. <?php echo html::input('cost', $cost, "class='form-control'");?>
  64. <span class='input-group-addon unify-padding'>
  65. <?php echo $lang->custom->unitList['cost'];?>
  66. </span>
  67. </div>
  68. </td>
  69. <td></td>
  70. </tr>
  71. <tr>
  72. <th class='w-150px'><?php echo $lang->custom->estimateHours;?></th>
  73. <td>
  74. <div class='input-group w-300px'>
  75. <?php echo html::input('defaultWorkhours', $hours, "class='form-control'");?>
  76. <span class='input-group-addon unify-padding'>
  77. <?php echo $lang->custom->unitList['hours'];?>
  78. </span>
  79. </div>
  80. </td>
  81. <td></td>
  82. </tr>
  83. <tr>
  84. <th class='w-150px'><?php echo $lang->custom->estimateDays;?></th>
  85. <td>
  86. <div class='input-group w-300px'>
  87. <?php echo html::input('days', $days, "class='form-control'");?>
  88. <span class='input-group-addon unify-padding'>
  89. <?php echo $lang->custom->unitList['days'];?>
  90. </span>
  91. </div>
  92. </td>
  93. <td></td>
  94. </tr>
  95. <tr>
  96. <td colspan='2' class='text-center'>
  97. <?php echo html::hidden('scaleFactor', '');?>
  98. <?php echo html::submitButton();?>
  99. <div class='text-red' id='saveTips'></div>
  100. </td>
  101. </tr>
  102. </table>
  103. </form>
  104. </div>
  105. </div>
  106. <div class="modal fade" id="convertRelations">
  107. <div class="modal-dialog mw-500px">
  108. <div class="modal-content">
  109. <div class="modal-header">
  110. <h4 class="modal-title" id='title'><?php echo $lang->custom->convertRelationTitle;?></h4>
  111. </div>
  112. <div class="modal-body">
  113. <table class='table table-form'>
  114. <tr>
  115. <th class='w-80px'><?php echo $lang->custom->oneUnit;?></th>
  116. <td>
  117. <div class='input-group w-300px'>
  118. <span class='input-group-addon'><?php echo "=";?></span>
  119. <?php echo html::input('convertFactor', $scaleFactor, "class='form-control' required");?>
  120. <span class='input-group-addon unify-padding'></span>
  121. </div>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td colspan='2'><div class='alert alert-info no-margin' id='tips'><?php echo $lang->custom->convertRelationTips;?></div></td>
  126. </tr>
  127. <tr>
  128. <td colspan='2' class='text-center'>
  129. <?php $cancelURL = $this->createLink('custom', 'estimate');?>
  130. <?php echo html::commonButton($lang->confirm, 'onclick = "setScaleFactor();"', 'btn btn-primary btn-wide');?>
  131. <?php echo html::a($cancelURL, $lang->cancel, '', "class='btn btn-back btn-wide'");?>
  132. </td>
  133. </tr>
  134. </table>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>