personalsettings.html.php 3.4 KB

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