m.edit.html.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The edit mobile view file of attend module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2016 青岛易软天创网络科技有限公司(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 attend
  9. * @version $Id
  10. * @link http://www.zdoo.com
  11. */
  12. if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
  13. <?php if(!helper::isAjaxRequest()):?>
  14. <?php include "../../common/view/m.header.html.php";?>
  15. <?php endif;?>
  16. <div class='heading divider'>
  17. <div class='title'><i class='icon-plus muted'></i> <strong><?php echo $lang->attend->edit;?></strong></div>
  18. <?php if(helper::isAjaxRequest()):?>
  19. <nav class='nav'><a data-dismiss='display'><i class='icon-remove muted'></i></a></nav>
  20. <?php endif;?>
  21. </div>
  22. <form class='content box' id='editAttendForm' data-refresh-form='#page' method='post' action='<?php echo $this->createLink('attend', 'edit', "date=$date");?>'>
  23. <div class='list'>
  24. <?php $class = $attend->reviewStatus ? 'status-' . $attend->reviewStatus : 'info';?>
  25. <div class='item <?php echo $class;?>'>
  26. <div class='title'><i class='icon icon-calendar-empty'></i> <?php echo $attend->dayName;?></div>
  27. </div>
  28. </div>
  29. <?php if(strpos(',late,both,absent', $attend->status) !== false):?>
  30. <div class='control'>
  31. <label for='manualIn'><?php echo $lang->attend->manualIn;?></label>
  32. <?php echo html::input('manualIn', empty($attend->manualIn) ? $this->config->attend->signInLimit : $attend->manualIn, "class='input'");?>
  33. </div>
  34. <?php endif;?>
  35. <?php if(strpos(',early,both,absent', $attend->status) !== false):?>
  36. <div class='control'>
  37. <label for='manualOut'><?php echo $lang->attend->manualOut;?></label>
  38. <?php echo html::input('manualOut', empty($attend->manualOut) ? $this->config->attend->signOutLimit : $attend->manualOut, "class='input'");?>
  39. </div>
  40. <?php endif;?>
  41. <div class='control'>
  42. <label for='desc'><?php echo $lang->attend->desc;?></label>
  43. <?php echo html::textarea('desc', '', "class='textarea' rows='3'");?>
  44. </div>
  45. </form>
  46. <div class='footer has-padding'>
  47. <button type='button' class='btn primary' data-submit='#editAttendForm'><?php echo $lang->save;?></button>
  48. </div>
  49. <script>
  50. $(function()
  51. {
  52. $('#editAttendForm').modalForm({onResult: true}).listenScroll({container:'parent'});
  53. })
  54. </script>
  55. <?php if(!helper::isAjaxRequest()):?>
  56. <?php include "../../common/view/m.footer.html.php";?>
  57. <?php endif;?>