personalannual.html.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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['personal'] as $method => $name)
  24. {
  25. $class = strtolower($method) == $methodName ? "class='active'" : '';
  26. if(common::hasPriv('leave', $method)) echo "<li id='$method' $class>" . html::a($this->createLink('leave', $method), $name) . '</li>';
  27. }
  28. ?>
  29. </ul>
  30. </div>
  31. <?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
  32. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  33. <?php if(!$module):?>
  34. <div class='with-side'>
  35. <div class='side'>
  36. <nav class='menu leftmenu'>
  37. <ul class='nav nav-primary'>
  38. <?php foreach($lang->leave->settings as $setting):?>
  39. <?php list($label, $module, $method) = explode('|', $setting);?>
  40. <li <?php if($method == $this->methodName) echo "class='active'";?>><?php extCommonModel::printLink($module, $method, '', $label);?></li>
  41. <?php endforeach;?>
  42. </ul>
  43. </nav>
  44. </div>
  45. <div class='main'>
  46. <?php endif;?>
  47. <div class='panel'>
  48. <div class='panel-heading'><?php echo $lang->leave->totalAnnual;?></div>
  49. <div class='panel-body'>
  50. <form id='ajaxForm' method='post'>
  51. <table class='table table-condensed table-borderless'>
  52. <tr class='text-center'>
  53. <th class='w-120px'><?php echo $lang->leave->account;?></th>
  54. <th class='w-300px'><?php echo $lang->leave->dateRange;?></th>
  55. <th class='w-120px'><?php echo $lang->day;?></th>
  56. <th></th>
  57. </tr>
  58. <?php if(!empty($this->config->leave->annualSetting)):?>
  59. <?php $annualSettings = json_decode($this->config->leave->annualSetting);?>
  60. <?php foreach($annualSettings as $account => $annualSetting):?>
  61. <?php if(!isset($users[$account])) continue;?>
  62. <tr>
  63. <td><?php echo html::select("account[]", $users, $account, "class='form-control chosen'");?></td>
  64. <td>
  65. <div class='input-group'>
  66. <?php echo html::input("begin[]", $annualSetting->begin, "class='form-control form-date'");?>
  67. <span class='input-group-addon fix-border'><?php echo $lang->minus;?></span>
  68. <?php echo html::input("end[]", $annualSetting->end, "class='form-control form-date'");?>
  69. </div>
  70. </td>
  71. <td>
  72. <div class='input-group'>
  73. <?php echo html::input("totalDays[]", $annualSetting->totalDays, "class='form-control'");?>
  74. <span class='input-group-addon'><?php echo $lang->day;?></span>
  75. </div>
  76. </td>
  77. <td>
  78. <a class='btn addItem'><i class='icon icon-plus'></i></a>
  79. <a class='btn delItem'><i class='icon icon-remove'></i></a>
  80. </td>
  81. </tr>
  82. <?php endforeach;?>
  83. <?php endif;?>
  84. <tr>
  85. <td><?php echo html::select("account[]", $users, '', "class='form-control chosen'");?></td>
  86. <td>
  87. <div class='input-group'>
  88. <?php echo html::input("begin[]", '', "class='form-control form-date'");?>
  89. <span class='input-group-addon fix-border'><?php echo $lang->minus;?></span>
  90. <?php echo html::input("end[]", '', "class='form-control form-date'");?>
  91. </div>
  92. </td>
  93. <td>
  94. <div class='input-group'>
  95. <?php echo html::input("totalDays[]", '', "class='form-control'");?>
  96. <span class='input-group-addon'><?php echo $lang->day;?></span>
  97. </div>
  98. </td>
  99. <td>
  100. <a class='btn addItem'><i class='icon icon-plus'></i></a>
  101. <a class='btn delItem'><i class='icon icon-remove'></i></a>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td><?php echo baseHTML::submitButton();?></td>
  106. <td></td>
  107. <td></td>
  108. </tr>
  109. </table>
  110. </form>
  111. </div>
  112. </div>
  113. <?php if(!$module):?>
  114. </div>
  115. </div>
  116. <?php endif;?>
  117. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>