edit.html.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * The edit view file of leave module of Ranzhi.
  4. *
  5. * @copyright Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author chujilu <chujilu@cnezsoft.com>
  8. * @package leave
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php include '../../common/view/header.modal.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  15. <?php js::set('signIn', $config->attend->signInLimit)?>
  16. <?php js::set('signOut', $config->attend->signOutLimit)?>
  17. <?php js::set('workingHours', $config->attend->workingHours)?>
  18. <form id='ajaxForm' method='post' action="<?php echo $this->createLink('leave', 'edit', "id=$leave->id")?>">
  19. <table class='table table-form table-condensed'>
  20. <?php if(!commonModel::hasPriv('leave', 'browseReview')):?>
  21. <tr>
  22. <th><?php echo $lang->leave->status;?></th>
  23. <td class='text-warning'><?php echo $lang->leave->statusList[$leave->status];?></td>
  24. <td></td>
  25. </tr>
  26. <?php endif;?>
  27. <tr>
  28. <th class='w-60px'><?php echo $lang->leave->type?></th>
  29. <td><?php echo html::radio('type', $lang->leave->typeList, $leave->type, "class=''")?></td>
  30. <td></td>
  31. </tr>
  32. <tr>
  33. <th><?php echo $lang->leave->begin?></th>
  34. <td>
  35. <div class='input-group'>
  36. <span class='input-group-addon'><?php echo $lang->leave->date?></span>
  37. <?php echo html::input('begin', $leave->begin, "class='form-control form-date date-picker-down'")?>
  38. <span class='input-group-addon fix-border'><?php echo $lang->leave->time?></span>
  39. <?php echo html::input('start', $leave->start, "class='form-control form-time date-picker-down'")?>
  40. </div>
  41. </td>
  42. <td></td>
  43. </tr>
  44. <tr>
  45. <th><?php echo $lang->leave->end?></th>
  46. <td>
  47. <div class='input-group'>
  48. <span class='input-group-addon'><?php echo $lang->leave->date?></span>
  49. <?php echo html::input('end', $leave->end, "class='form-control form-date date-picker-down'")?>
  50. <span class='input-group-addon fix-border'><?php echo $lang->leave->time?></span>
  51. <?php echo html::input('finish', $leave->finish, "class='form-control form-time date-picker-down'")?>
  52. </div>
  53. </td>
  54. <td></td>
  55. </tr>
  56. <tr>
  57. <th><?php echo $lang->leave->hours?></th>
  58. <td>
  59. <div class='input-group'>
  60. <?php echo html::input('hours', $leave->hours, "class='form-control'")?>
  61. <span class='input-group-addon'><?php echo $lang->leave->hoursTip?></span>
  62. </div>
  63. </td>
  64. <td></td>
  65. </tr>
  66. <tr>
  67. <th><?php echo $lang->leave->desc?></th>
  68. <td><?php echo html::textarea('desc', $leave->desc, "class='form-control'")?></td>
  69. <td></td>
  70. </tr>
  71. <tr>
  72. <th></th>
  73. <td><?php echo baseHTML::submitButton();?></td>
  74. <td></td>
  75. </tr>
  76. </table>
  77. </form>
  78. <?php include '../../common/view/footer.modal.html.php';?>