edit.html.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * The control file of effort module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2012 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license business(商业软件)
  7. * @author Yangyang Shi <shiyangyang@cnezsoft.com>
  8. * @package effort
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  15. <?php js::set('objectType', $effort->objectType);?>
  16. <?php js::set('noticeFinish', $lang->effort->noticeFinish);?>
  17. <?php js::set('today', helper::today());?>
  18. <?php if(isonlybody()):?>
  19. <style> #main {min-width: unset;}</style>
  20. <?php endif;?>
  21. <div id='mainContent' class='main-content'>
  22. <div class='center-block'>
  23. <div class='main-header'>
  24. <h2>
  25. <span class='label label-id'><?php echo $effort->objectID;?></span>
  26. <?php echo $objectName;?>
  27. <small><?php echo $lang->arrow . $lang->effort->edit;?></small>
  28. </h2>
  29. </div>
  30. <form method='post' target='hiddenwin' style='padding-bottom:80px;'>
  31. <table class='table table-form'>
  32. <?php if($effort->objectType == 'task'):?>
  33. <tr id='productBox'<?php if(empty($project->hasProduct) || $this->config->vision == 'or') echo "class='hide'";?>>
  34. <th class='w-80px'><?php echo $lang->effort->product;?></th>
  35. <td class='w-p45'><?php echo html::select('product[]', $products, $effort->product, 'class="form-control chosen" multiple');?></td><td></td>
  36. </tr>
  37. <?php endif;?>
  38. <tr id='executionBox'>
  39. <th class='w-80px'><?php echo $this->config->vision == 'or' ? $this->lang->stage->common : $lang->effort->execution;?></th>
  40. <td class='w-p45'><?php echo html::select('execution', array(0 => '') + $executions, $effort->execution, 'class="form-control chosen" data-drop_direction="down"');?></td><td></td>
  41. </tr>
  42. <tr>
  43. <th class='w-80px'><?php echo $lang->effort->date;?></th>
  44. <td class='w-p45 required'><?php echo html::input('date', $effort->date, "class='form-date form-control'");?></td><td></td>
  45. </tr>
  46. <tr>
  47. <th><?php echo $lang->effort->consumed;?></th>
  48. <td class='required'><?php echo html::input('consumed', $effort->consumed, 'class="form-control" autocomplete="off"');?></td>
  49. </tr>
  50. <tr>
  51. <th><?php echo $lang->effort->left;?></th>
  52. <?php $readonly = $recentDateID === $effort->id ? '' : 'readonly';?>
  53. <?php if($effort->objectType == 'task' and !empty($task->team) and $effort->left == 0) $readonly = 'readonly';?>
  54. <td><?php echo html::input('left', $effort->left, "class='form-control' autocomplete='off' $readonly");?></td>
  55. </tr>
  56. <tr>
  57. <th><?php echo $lang->effort->work;?></th>
  58. <td colspan='2'><?php echo html::input('work', $effort->work, "class='form-control'");?></td>
  59. </tr>
  60. <tr>
  61. <td colspan='3' class='text-center'>
  62. <?php echo html::hidden('objectType', $effort->objectType);?>
  63. <?php echo html::hidden('objectID', $effort->objectID);?>
  64. <?php echo html::submitButton() . html::backButton();?>
  65. </td>
  66. </tr>
  67. </table>
  68. </form>
  69. </div>
  70. </div>
  71. <?php include './footer.html.php';?>