personalannual.html.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. * The set begin date view file of attend 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 Gang Liu <liugang@cnezsoft.com>
  8. * @package attend
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <style>
  15. #menuActions{float:right !important; margin-top: -60px !important;}
  16. .input-group-required > .required::after, .required-wrapper.required::after {top:12px !important;}
  17. .modal-body .table {margin-bottom:0px !important;}
  18. </style>
  19. <div id='featurebar'>
  20. <ul class='nav'>
  21. <?php
  22. $methodName = strtolower($this->app->getMethodName());
  23. foreach($lang->leave->featurebar as $key => $menu)
  24. {
  25. if(is_string($menu)) $link = $menu;
  26. if(is_array($menu)) $link = $menu['link'];
  27. list($name, $currentModule, $currentMethod, $params) = explode('|', $link);
  28. $class = strtolower($key) == $methodName ? "class='active'" : '';
  29. if(isset($menu['alias'])) $class = strpos(strtolower($menu['alias']), strtolower($key)) !== false ? "class='active'" : $class;
  30. if(common::hasPriv($currentModule, $currentMethod)) echo "<li id='$key' $class>" . html::a($this->createLink($currentModule, $currentMethod, $params), $name) . '</li>';
  31. }
  32. ?>
  33. </ul>
  34. </div>
  35. <?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
  36. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  37. <?php if(!$module):?>
  38. <div class='with-side'>
  39. <div class='side'>
  40. <nav class='menu leftmenu'>
  41. <ul class='nav nav-primary'>
  42. <?php foreach($lang->leave->settings as $setting):?>
  43. <?php list($label, $module, $method) = explode('|', $setting);?>
  44. <li <?php if($method == $this->methodName) echo "class='active'";?>><?php extCommonModel::printLink($module, $method, '', $label);?></li>
  45. <?php endforeach;?>
  46. </ul>
  47. </nav>
  48. </div>
  49. <div class='main'>
  50. <?php endif;?>
  51. <div class='panel'>
  52. <div class='panel-heading'><?php echo $lang->leave->totalAnnual;?></div>
  53. <div class='panel-body'>
  54. <form id='ajaxForm' method='post'>
  55. <table class='table table-condensed table-borderless'>
  56. <tr class='text-center'>
  57. <th class='w-120px'><?php echo $lang->leave->account;?></th>
  58. <th class='w-300px'><?php echo $lang->leave->dateRange;?></th>
  59. <th class='w-120px'><?php echo $lang->day;?></th>
  60. <th></th>
  61. </tr>
  62. <?php if(!empty($this->config->leave->annualSetting)):?>
  63. <?php $annualSettings = json_decode($this->config->leave->annualSetting);?>
  64. <?php foreach($annualSettings as $account => $annualSetting):?>
  65. <?php if(!isset($users[$account])) continue;?>
  66. <tr>
  67. <td><?php echo html::select("account[]", $users, $account, "class='form-control chosen'");?></td>
  68. <td>
  69. <div class='input-group'>
  70. <?php echo html::input("begin[]", $annualSetting->begin, "class='form-control form-date'");?>
  71. <span class='input-group-addon fix-border'><?php echo $lang->minus;?></span>
  72. <?php echo html::input("end[]", $annualSetting->end, "class='form-control form-date'");?>
  73. </div>
  74. </td>
  75. <td>
  76. <div class='input-group'>
  77. <?php echo html::input("totalDays[]", $annualSetting->totalDays, "class='form-control'");?>
  78. <span class='input-group-addon'><?php echo $lang->day;?></span>
  79. </div>
  80. </td>
  81. <td>
  82. <a class='btn addItem'><i class='icon icon-plus'></i></a>
  83. <a class='btn delItem'><i class='icon icon-remove'></i></a>
  84. </td>
  85. </tr>
  86. <?php endforeach;?>
  87. <?php endif;?>
  88. <tr>
  89. <td><?php echo html::select("account[]", $users, '', "class='form-control chosen'");?></td>
  90. <td>
  91. <div class='input-group'>
  92. <?php echo html::input("begin[]", '', "class='form-control form-date'");?>
  93. <span class='input-group-addon fix-border'><?php echo $lang->minus;?></span>
  94. <?php echo html::input("end[]", '', "class='form-control form-date'");?>
  95. </div>
  96. </td>
  97. <td>
  98. <div class='input-group'>
  99. <?php echo html::input("totalDays[]", '', "class='form-control'");?>
  100. <span class='input-group-addon'><?php echo $lang->day;?></span>
  101. </div>
  102. </td>
  103. <td>
  104. <a class='btn addItem'><i class='icon icon-plus'></i></a>
  105. <a class='btn delItem'><i class='icon icon-remove'></i></a>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td><?php echo baseHTML::submitButton();?></td>
  110. <td></td>
  111. <td></td>
  112. </tr>
  113. </table>
  114. </form>
  115. </div>
  116. </div>
  117. <?php if(!$module):?>
  118. </div>
  119. </div>
  120. <?php endif;?>
  121. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>