personalsettings.html.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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->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/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. <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->beginDate->personal;?></div>
  52. <div class='panel-body'>
  53. <form id='ajaxForm' method='post'>
  54. <table class='table table-condensed table-borderless w-p40'>
  55. <?php foreach($config->attend->beginDate as $account => $date):?>
  56. <?php if($account == 'company') continue;?>
  57. <tr>
  58. <td class='w-120px'><?php echo html::select("account[]", $users, $account, "class='form-control chosen'");?></td>
  59. <td><?php echo html::input("date[]", $date, "class='form-control form-date'");?></td>
  60. <td class='w-100px'>
  61. <a class='btn addItem'><i class='icon icon-plus'></i></a>
  62. <a class='btn delItem'><i class='icon icon-remove'></i></a>
  63. </td>
  64. </tr>
  65. <?php endforeach;?>
  66. <tr>
  67. <td class='w-120px'><?php echo html::select("account[]", $users, '', "class='form-control chosen'");?></td>
  68. <td><?php echo html::input("date[]", '', "class='form-control form-date'");?></td>
  69. <td class='w-100px'>
  70. <a class='btn addItem'><i class='icon icon-plus'></i></a>
  71. <a class='btn delItem'><i class='icon icon-remove'></i></a>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td><?php echo baseHTML::submitButton();?></td>
  76. <td></td>
  77. <td></td>
  78. </tr>
  79. </table>
  80. </form>
  81. </div>
  82. </div>
  83. <?php if(!$module):?>
  84. </div>
  85. </div>
  86. <?php endif;?>
  87. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>