finish.html.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * The complete file 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 Jia Fu <fujia@cnezsoft.com>
  8. * @package ticket
  9. * @version $Id: complete.html.php 935 2010-07-06 07:49:24Z jajacn@126.com $
  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/kindeditor.html.php';?>
  15. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  16. <div id='mainContent' class='main-content'>
  17. <div class='center-block'>
  18. <div class='main-header'>
  19. <h2>
  20. <span class='label label-id'><?php echo $ticket->id;?></span>
  21. <?php echo isonlybody() ? ("<span title='$ticket->title'>" . $ticket->title . '</span>') : html::a($this->createLink('ticket', 'view', 'tickedID=' . $ticket->id), $ticket->title);?>
  22. <?php if(!isonlybody()):?>
  23. <small> <?php echo $lang->arrow . $lang->ticket->finish;?></small>
  24. <?php endif;?>
  25. </div>
  26. </div>
  27. <form method='post' enctype='multipart/form-data' target='hiddenwin'>
  28. <table class='table table-form'>
  29. <tr>
  30. <th class='thWidth'><?php echo $lang->ticket->hasConsumed;?></th>
  31. <td class='w-p25-f'><?php echo $ticket->consumed;?> <?php echo $lang->workingHour;?></td>
  32. <td></td>
  33. </tr>
  34. <tr>
  35. <th><?php echo $lang->ticket->currentConsumed;?></th>
  36. <td>
  37. <div class='input-group'><?php echo html::input('currentConsumed', 0, "class='form-control'");?> <span class='input-group-addon'><?php echo $lang->ticket->hour;?></span></div>
  38. </td>
  39. <td>
  40. <div class='table-row'>
  41. <div class='table-col strong w-80px text-right' style='padding-right:10px'><?php echo $lang->ticket->consumed;?> </div>
  42. <div class='table-col'>
  43. <?php
  44. echo "<span id='totalConsumed'>" . (float)$ticket->consumed . "</span> " . $lang->workingHour . html::hidden('consumed', $ticket->consumed);
  45. js::set('consumed', $ticket->consumed);
  46. ?>
  47. </div>
  48. </div>
  49. </td>
  50. </tr>
  51. <tr>
  52. <th><?php echo $lang->ticket->resolvedBy;?></th>
  53. <td><?php echo html::select('resolvedBy', $users, $app->user->account, "class='form-control chosen'");?></td>
  54. </tr>
  55. <tr>
  56. <th><?php echo $lang->ticket->resolvedDate;?></th>
  57. <td><div class='datepicker-wrapper datepicker-date'><?php echo html::input('resolvedDate', helper::now(), "class='form-control form-datetime'");?></div></td>
  58. </tr>
  59. <?php $this->printExtendFields($ticket, 'table');?>
  60. <tr>
  61. <th><?php echo $lang->files;?></th>
  62. <td colspan='2'><?php echo $this->fetch('file', 'buildoldform');?></td>
  63. </tr>
  64. <tr>
  65. <th><?php echo $lang->ticket->resolution;?></th>
  66. <td colspan='2'><?php echo html::textarea('resolution', '', "rows='5' class='w-p100'");?></td>
  67. </tr>
  68. <tr>
  69. <th><?php echo $lang->comment;?></th>
  70. <td colspan='2'><?php echo html::textarea('comment', '', "rows='5' class='w-p100'");?></td>
  71. </tr>
  72. <tr>
  73. <td colspan='3' class='text-center form-actions'>
  74. <?php echo html::submitButton($lang->ticket->finish);?>
  75. </td>
  76. </tr>
  77. </table>
  78. </form>
  79. <hr class='small' />
  80. <?php include $app->getModuleRoot() . 'common/view/action.html.php';?>
  81. </div>
  82. </div>
  83. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>