create.html.php 2.8 KB

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