edit.html.php 3.0 KB

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