batchfinish.html.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * The batch finish 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->batchFinish;?>
  19. </h2>
  20. </div>
  21. <form id='batchEditForm' class='main-form' method='post' target='hiddenwin' action="<?php echo inLink('batchFinish')?>">
  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-300px'><?php echo $lang->ticket->title?></th>
  28. <th class='w-100px'><?php echo $lang->ticket->currentConsumed?></th>
  29. <th class='required w-200px'><?php echo $lang->ticket->resolvedDate?></th>
  30. <th class='required w-300px'><?php echo $lang->ticket->resolution?></th>
  31. <th class='w-300px'><?php echo $lang->comment?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php foreach($tickets as $ticket):?>
  36. <tr>
  37. <td><?php echo $ticket->id;?></td>
  38. <td title='<?php echo $ticket->title;?>'><?php echo html::input("titles[$ticket->id]", $ticket->title, "class='form-control' autocomplete='off' readonly");?></td>
  39. <td><?php echo html::number("currentConsumeds[$ticket->id]", 0, "class='form-control' autocomplete='off' min='0.00' step='0.01'");?></td>
  40. <td><?php echo html::input("resolvedDates[$ticket->id]", helper::today(), "class='form-control form-date'");?></td>
  41. <td><?php echo html::input("resolutions[$ticket->id]", '', "class='form-control' autocomplete='off'");?></td>
  42. <td><?php echo html::input("comments[$ticket->id]", '', "class='form-control' autocomplete='off'");?></td>
  43. </tr>
  44. <?php endforeach;?>
  45. </tbody>
  46. <tfoot>
  47. <tr>
  48. <td colspan='4' class='text-center form-actions'>
  49. <?php echo html::submitButton();?>
  50. <?php echo html::backButton();?>
  51. </td>
  52. </tr>
  53. </tfoot>
  54. </table>
  55. </div>
  56. </form>
  57. </div>
  58. <?php if($batchFinishTip): ?>
  59. <script>
  60. $(function()
  61. {
  62. alert('<?php echo $batchFinishTip;?>');
  63. })
  64. </script>
  65. <?php endif; ?>
  66. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>