settings.html.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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['personal'] as $type => $name)
  24. {
  25. $class = strtolower($type) == $methodName ? "class='active'" : '';
  26. if(common::hasPriv('attend', $type)) echo "<li id='$type' $class>" . html::a($this->createLink('attend', $type), $name) . '</li>';
  27. }
  28. ?>
  29. </ul>
  30. </div>
  31. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  32. <?php include $app->getModuleRoot() . 'common/view/chosen.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. <li><?php extCommonModel::printLink('attend', 'settings', '', $lang->attend->settings);?></li>
  39. <li><?php extCommonModel::printLink('attend', 'personalsettings', '', $lang->attend->personalSettings);?></li>
  40. <li><?php extCommonModel::printLink('attend', 'setManager', '', $lang->attend->setManager);?></li>
  41. </ul>
  42. </nav>
  43. </div>
  44. <div class='main'>
  45. <?php endif;?>
  46. <div class='panel'>
  47. <div class='panel-heading'><?php echo $lang->attend->settings;?></div>
  48. <div class='panel-body'>
  49. <form id='ajaxForm' method='post'>
  50. <table class='table table-form table-condensed w-p70'>
  51. <tr>
  52. <th class='w-150px'><?php echo $lang->attend->beginDate->company;?></th>
  53. <td class='w-300px'><?php echo html::input('beginDate[company]', $beginDate, "class='form-control form-date'")?></td>
  54. <td style='padding-left: 10px'><a data-toggle='tooltip' title='<?php echo $lang->attend->note->beginDate;?>'><i class='icon-question-sign'></i></a></td>
  55. </tr>
  56. <tr>
  57. <th><?php echo $lang->attend->signInLimit?></th>
  58. <td><?php echo html::input('signInLimit', $signInLimit, "class='form-control form-time'")?></td>
  59. <td></td>
  60. </tr>
  61. <tr>
  62. <th><?php echo $lang->attend->signOutLimit?></th>
  63. <td>
  64. <div class='input-group'>
  65. <?php echo html::input('signOutLimit', $signOutLimit, "class='form-control form-time'")?>
  66. <span class='input-group-addon'><?php echo html::checkbox('mustSignOut', array('yes' => $lang->attend->mustSignOut), $mustSignOut);?></span>
  67. </div>
  68. </td>
  69. <td></td>
  70. </tr>
  71. <tr>
  72. <th><?php echo $lang->attend->workingHours?></th>
  73. <td><?php echo html::input('workingHours', $workingHours, "class='form-control'")?></td>
  74. <td></td>
  75. </tr>
  76. <tr>
  77. <th><?php echo $lang->attend->workingDays?></th>
  78. <td><?php echo html::select('workingDays', $lang->attend->workingDaysList, $workingDays, "class='form-control'")?></td>
  79. <td></td>
  80. </tr>
  81. <tr>
  82. <th><?php echo $lang->attend->reviewedBy;?></th>
  83. <td><?php echo html::select('reviewedBy', array('' => $this->lang->dept->manager) + $users, $reviewedBy, "class='form-control chosen'")?></td>
  84. <td></td>
  85. </tr>
  86. <tr>
  87. <th><?php echo $lang->attend->ipList;?></th>
  88. <td>
  89. <div class='input-group'>
  90. <?php echo html::input('ip', $ip, "class='form-control' title='{$lang->attend->note->ip}'");?>
  91. <div class='input-group-addon'>
  92. <label class="checkbox-inline"><input type="checkbox" id="allip" name="allip" value="1"> <?php echo $lang->attend->note->allip;?></label>
  93. </div>
  94. </div>
  95. </td>
  96. <td style='padding-left: 10px'>
  97. <?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' ");?>
  98. </td>
  99. </tr>
  100. <tr>
  101. <th><?php echo $lang->attend->noAttendUsers;?></th>
  102. <td><?php echo html::select('noAttendUsers[]', $users, $noAttendUsers, "class='form-control chosen' multiple")?></td>
  103. <td></td>
  104. </tr>
  105. <tr>
  106. <th><?php echo $lang->attend->signInClient;?></th>
  107. <td><?php echo html::select('signInClient', $lang->attend->clientList, $config->attend->signInClient, "class='form-control'")?></td>
  108. <td style='padding-left: 10px'>
  109. <?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' ");?>
  110. </td>
  111. </tr>
  112. <tr><th></th><td colspan='2'><?php echo baseHTML::submitButton();?></td></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';?>