batchedit.html.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <div id='mainContent' class='main-content'>
  16. <div class='main-header'>
  17. <h2><?php echo $lang->effort->batchEdit;?></h2>
  18. </div>
  19. <form method='post' target='hiddenwin' action='<?php echo $this->createLink('effort', 'batchEdit', 'from=batchEdit')?>'>
  20. <table class='table table-form table-fixed' id='objectTable'>
  21. <thead>
  22. <?php if(!empty($efforts)):?>
  23. <tr>
  24. <th class='c-id'><?php echo $lang->idAB;?></th>
  25. <?php if($config->vision != 'lite'):?>
  26. <th class='c-product'><?php echo $lang->effort->product;?></th>
  27. <?php endif;?>
  28. <th class='c-execution'><?php echo $lang->effort->execution;?></th>
  29. <th class='c-date'><?php echo $lang->effort->date;?></th>
  30. <th><?php echo $lang->effort->work;?></th>
  31. <th class='c-consumed'><?php echo $lang->effort->consumed . '(' . $lang->effort->hour . ')';?></th>
  32. <th class='c-objectType'><?php echo $lang->effort->objectType;?></th>
  33. <th class='c-left'><?php echo $lang->effort->left . '(' . $lang->effort->hour . ')';?></th>
  34. </tr>
  35. <?php endif;?>
  36. </thead>
  37. <?php foreach($efforts as $id => $effort):?>
  38. <tr id='row<?php echo $id?>'>
  39. <?php $disabled = in_array($effort->objectType, array('risk', 'issue', 'opportunity')) ? 'disabled=disabled' : '';?>
  40. <td class='text-center'>
  41. <?php echo $id . html::hidden("id[$id]", $id) . html::hidden("objectID[$id]", $effort->objectID);?>
  42. <?php if($config->vision == 'lite') echo html::hidden("product[$id][]", $effort->product);?>
  43. </td>
  44. <?php if($config->vision != 'lite'):?>
  45. <td style='overflow:visible'>
  46. <?php $product = str_replace(',', '', $effort->product);?>
  47. <?php if(isset($shadowProducts[$product])):?>
  48. <?php echo html::input("product[$id][]", $shadowProducts[$product], "class='form-control' disabled");?>
  49. <?php echo html::hidden("product[$id][]", $effort->product);?>
  50. <?php else:?>
  51. <?php echo html::select("product[$id][]", $products, $effort->product, "class='form-control chosen' multiple $disabled");?>
  52. <?php endif;?>
  53. </td>
  54. <?php endif;?>
  55. <td style='overflow:visible'><?php echo html::select("execution[$id]", $executions, $effort->execution, "class='form-control chosen' $disabled");?></td>
  56. <td class='text-center'><?php echo html::input("date[$id]", "$effort->date", "class='form-date form-control'");?></td>
  57. <td><?php echo html::input("work[$id]", "$effort->work", "class='form-control'");?></td>
  58. <td><?php echo html::input("consumed[$id]", $effort->consumed, 'autocomplete="off" class="form-control text-center"');?></td>
  59. <td style='overflow:visible'><?php echo html::select("objectType[$id]", $typeList, "{$effort->objectType}_{$effort->objectID}", 'tabindex="9999" onchange=setLeftInput(this) class="form-control chosen"');?></td>
  60. <td>
  61. <?php $disabled = $effort->objectType == 'task' ? 'readonly' : 'disabled'?>
  62. <?php echo html::input("left[$id]", $effort->left, "autocomplete='off' class='$disabled form-control text-center' " . $disabled);?>
  63. </td>
  64. </tr>
  65. <?php endforeach;?>
  66. <tr>
  67. <td colspan='<?php echo $this->config->vision != 'lite' ? 8 : 7?>' class='text-center form-actions'>
  68. <?php echo html::hidden('effortIDList', join(',', $_POST['effortIDList']));?>
  69. <?php echo html::submitButton() . html::backButton();?>
  70. </td>
  71. </tr>
  72. </table>
  73. </form>
  74. </div>
  75. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>