create.html.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * The create 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. <?php js::set('annualTip', sprintf($lang->leave->annualTip, $myLeftAnnuals));?>
  19. <form id='ajaxForm' method='post' action="<?php echo $this->createLink('leave', 'create')?>">
  20. <table class='table table-form table-condensed'>
  21. <tr>
  22. <th class='w-60px'><?php echo $lang->leave->type?></th>
  23. <td><?php echo html::radio('type', $lang->leave->typeList, 'affairs', "class=''")?></td>
  24. <td></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->leave->begin?></th>
  28. <td>
  29. <div class='input-group'>
  30. <span class='input-group-addon'><?php echo $lang->leave->date?></span>
  31. <?php echo html::input('begin', $date, "class='form-control form-date date-picker-down'")?>
  32. <span class='input-group-addon fix-border'><?php echo $lang->leave->time?></span>
  33. <?php echo html::input('start', $config->attend->signInLimit, "class='form-control form-time date-picker-down'")?>
  34. </div>
  35. </td>
  36. <td></td>
  37. </tr>
  38. <tr>
  39. <th><?php echo $lang->leave->end?></th>
  40. <td>
  41. <div class='input-group'>
  42. <span class='input-group-addon'><?php echo $lang->leave->date?></span>
  43. <?php echo html::input('end', $date, "class='form-control form-date date-picker-down'")?>
  44. <span class='input-group-addon fix-border'><?php echo $lang->leave->time?></span>
  45. <?php echo html::input('finish', $config->attend->signOutLimit, "class='form-control form-time date-picker-down'")?>
  46. </div>
  47. </td>
  48. <td></td>
  49. </tr>
  50. <tr>
  51. <th><?php echo $lang->leave->hours?></th>
  52. <td>
  53. <div class='input-group'>
  54. <?php echo html::input('hours', '', "class='form-control'")?>
  55. <span class='input-group-addon'><?php echo $lang->leave->hoursTip?></span>
  56. </div>
  57. </td>
  58. <td></td>
  59. </tr>
  60. <tr>
  61. <th><?php echo $lang->leave->desc?></th>
  62. <td><?php echo html::textarea('desc', '', "class='form-control'")?></td>
  63. <td></td>
  64. </tr>
  65. <tr>
  66. <th></th>
  67. <td><?php echo baseHTML::submitButton();?></td>
  68. <td></td>
  69. </tr>
  70. </table>
  71. </form>
  72. <?php include '../../common/view/footer.modal.html.php';?>