batchedit.html.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * The batch edit view of ticket module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Congzhi Chen <congzhi@cnezsoft.com>
  8. * @package ticket
  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 fade'>
  16. <div class='main-header'>
  17. <h2>
  18. <?php echo $lang->ticket->common . $lang->hyphen . $lang->ticket->batchEdit;?>
  19. </h2>
  20. </div>
  21. <form id='batchEditForm' class='main-form' method='post' target='hiddenwin' action="<?php echo inLink('batchEdit')?>">
  22. <div class="table-responsive">
  23. <table class='table table-form table-fixed with-border'>
  24. <thead>
  25. <tr>
  26. <th class='w-50px'><?php echo $lang->idAB;?></th>
  27. <th class='required w-200px'><?php echo $lang->ticket->title?></th>
  28. <th class='required w-200px'><?php echo $lang->ticket->product?></th>
  29. <th class='required w-200px'><?php echo $lang->ticket->module?></th>
  30. <th class='w-100px'><?php echo $lang->ticket->pri?></th>
  31. <th class='w-200px'><?php echo $lang->ticket->type?></th>
  32. <th class='w-150px'><?php echo $lang->ticket->assignedTo;?></th>
  33. <?php
  34. $extendFields = $this->ticket->getFlowExtendFields();
  35. foreach($extendFields as $extendField) echo "<th>{$extendField->name}</th>";
  36. ?>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <?php foreach($tickets as $ticket):?>
  41. <tr>
  42. <td><?php echo $ticket->id;?></td>
  43. <td title='<?php echo $ticket->title;?>'><?php echo html::input("titles[$ticket->id]", $ticket->title, "class='form-control' autocomplete='off'");?></td>
  44. <td style='overflow:visible'><?php echo html::select("products[$ticket->id]", $products, $ticket->product, "class='form-control chosen' onchange='changeModule(this.value, $ticket->id)'")?></td>
  45. <td style='overflow:visible'><?php echo html::select("modules[$ticket->id]", !isset($modules[$ticket->product]) ? array() : $modules[$ticket->product], $ticket->module, "class='form-control chosen'")?></td>
  46. <td style='overflow:visible'><?php echo html::select("pris[$ticket->id]", $this->lang->ticket->priList, $ticket->pri, "class='form-control chosen'")?></td>
  47. <td style='overflow:visible'><?php echo html::select("types[$ticket->id]", $this->lang->ticket->typeList, $ticket->type, "class='form-control chosen'")?></td>
  48. <td style='overflow:visible'><?php echo html::select("assignedTos[$ticket->id]", $users, $ticket->assignedTo, "class='form-control chosen'");?></td>
  49. <?php foreach($extendFields as $extendField) echo "<td" . (($extendField->control == 'select' or $extendField->control == 'multi-select') ? " style='overflow:visible'" : '') . ">" . $this->loadModel('flow')->getFieldControl($extendField, $ticket, $extendField->field . "[{$ticket->id}]") . "</td>";?>
  50. </tr>
  51. <?php endforeach;?>
  52. </tbody>
  53. <tfoot>
  54. <tr>
  55. <td colspan='7' class='text-center form-actions'>
  56. <?php echo html::submitButton();?>
  57. <?php echo html::backButton();?>
  58. </td>
  59. </tr>
  60. </tfoot>
  61. </table>
  62. </div>
  63. </form>
  64. </div>
  65. <?php if($batchEditTip): ?>
  66. <script>
  67. $(function()
  68. {
  69. alert('<?php echo $batchEditTip;?>');
  70. })
  71. </script>
  72. <?php endif; ?>
  73. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>