settings.html.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. /**
  3. * The settings view file of attend module of ZenTaoPMS.
  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 chujilu <chujilu@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->attend->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/datepicker.html.php';?>
  36. <?php include $app->getModuleRoot() . 'common/view/chosen.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. <li><?php extCommonModel::printLink('attend', 'settings', '', $lang->attend->settings);?></li>
  43. <li><?php extCommonModel::printLink('attend', 'personalsettings', '', $lang->attend->personalSettings);?></li>
  44. <li><?php extCommonModel::printLink('attend', 'setManager', '', $lang->attend->setManager);?></li>
  45. </ul>
  46. </nav>
  47. </div>
  48. <div class='main'>
  49. <?php endif;?>
  50. <div class='panel'>
  51. <div class='panel-heading'><?php echo $lang->attend->settings;?></div>
  52. <div class='panel-body'>
  53. <form id='ajaxForm' method='post'>
  54. <table class='table table-form table-condensed w-p70'>
  55. <tr>
  56. <th class='w-150px'><?php echo $lang->attend->beginDate->company;?></th>
  57. <td class='w-300px'><?php echo html::input('beginDate[company]', $beginDate, "class='form-control form-date'")?></td>
  58. <td style='padding-left: 10px'><a data-toggle='tooltip' title='<?php echo $lang->attend->note->beginDate;?>'><i class='icon-question-sign'></i></a></td>
  59. </tr>
  60. <tr>
  61. <th><?php echo $lang->attend->signInLimit?></th>
  62. <td><?php echo html::input('signInLimit', $signInLimit, "class='form-control form-time'")?></td>
  63. <td></td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->attend->signOutLimit?></th>
  67. <td>
  68. <div class='input-group'>
  69. <?php echo html::input('signOutLimit', $signOutLimit, "class='form-control form-time'")?>
  70. <span class='input-group-addon'><?php echo html::checkbox('mustSignOut', array('yes' => $lang->attend->mustSignOut), $mustSignOut);?></span>
  71. </div>
  72. </td>
  73. <td></td>
  74. </tr>
  75. <tr>
  76. <th><?php echo $lang->attend->workingHours?></th>
  77. <td><?php echo html::input('workingHours', $workingHours, "class='form-control'")?></td>
  78. <td></td>
  79. </tr>
  80. <tr>
  81. <th><?php echo $lang->attend->workingDays?></th>
  82. <td><?php echo html::select('workingDays', $lang->attend->workingDaysList, $workingDays, "class='form-control'")?></td>
  83. <td></td>
  84. </tr>
  85. <tr>
  86. <th><?php echo $lang->attend->reviewedBy;?></th>
  87. <td><?php echo html::select('reviewedBy', array('' => $this->lang->dept->manager) + $users, $reviewedBy, "class='form-control chosen'")?></td>
  88. <td></td>
  89. </tr>
  90. <tr>
  91. <th><?php echo $lang->attend->ipList;?></th>
  92. <td>
  93. <div class='input-group'>
  94. <?php echo html::input('ip', $ip, "class='form-control' title='{$lang->attend->note->ip}'");?>
  95. <div class='input-group-addon'>
  96. <label class="checkbox-inline"><input type="checkbox" id="allip" name="allip" value="1"> <?php echo $lang->attend->note->allip;?></label>
  97. </div>
  98. </div>
  99. </td>
  100. <td style='padding-left: 10px'>
  101. <?php echo baseHTML::a('javascript:void(0)', "<i class='icon-question-sign'></i>", "data-original-title='{$lang->attend->note->ip}' data-toggle='tooltip' data-placement='right' ");?>
  102. </td>
  103. </tr>
  104. <tr>
  105. <th><?php echo $lang->attend->noAttendUsers;?></th>
  106. <td><?php echo html::select('noAttendUsers[]', $users, $noAttendUsers, "class='form-control chosen' multiple")?></td>
  107. <td></td>
  108. </tr>
  109. <tr>
  110. <th><?php echo $lang->attend->signInClient;?></th>
  111. <td><?php echo html::select('signInClient', $lang->attend->clientList, $config->attend->signInClient, "class='form-control'")?></td>
  112. <td style='padding-left: 10px'>
  113. <?php echo baseHTML::a('javascript:void(0)', "<i class='icon-question-sign'></i>", "data-original-title='{$lang->attend->note->signInClient}' data-toggle='tooltip' data-placement='right' ");?>
  114. </td>
  115. </tr>
  116. <tr><th></th><td colspan='2'><?php echo baseHTML::submitButton();?></td></tr>
  117. </table>
  118. </form>
  119. </div>
  120. </div>
  121. <?php if(!$module):?>
  122. </div>
  123. </div>
  124. <?php endif;?>
  125. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>