setmanager.html.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/chosen.html.php';?>
  36. <?php if(!$module):?>
  37. <div class='with-side'>
  38. <div class='side'>
  39. <nav class='menu leftmenu'>
  40. <ul class='nav nav-primary'>
  41. <li><?php extCommonModel::printLink('attend', 'settings', '', "{$lang->attend->settings}");?></li>
  42. <li><?php extCommonModel::printLink('attend', 'personalsettings', '', $lang->attend->personalSettings);?></li>
  43. <li><?php extCommonModel::printLink('attend', 'setmanager', '', "{$lang->attend->setManager}");?></li>
  44. </ul>
  45. </nav>
  46. </div>
  47. <div class='main'>
  48. <?php endif;?>
  49. <div class='panel'>
  50. <div class='panel-heading'><?php echo $lang->attend->setManager;?></div>
  51. <div class='panel-body'>
  52. <form id='ajaxForm' method='post'>
  53. <table class='table table-form table-condensed w-p40'>
  54. <?php if(!empty($deptList)):?>
  55. <?php foreach($deptList as $dept):?>
  56. <tr>
  57. <th class='w-150px'><?php echo $dept->name;?></th>
  58. <td class='w-300px'><?php echo html::select("dept[$dept->id]", $users, trim($dept->manager, ','), "class='form-control chosen'")?></td>
  59. </tr>
  60. <?php endforeach;?>
  61. <tr>
  62. <th></th>
  63. <td><?php echo baseHTML::submitButton();?></td>
  64. </tr>
  65. <?php else:?>
  66. <tr>
  67. <th></th>
  68. <td><?php extCommonModel::printLink('team.tree', 'browse', 'type=dept', $lang->attend->setDept, "class='btn btn-primary setDept'");?></td>
  69. </tr>
  70. <?php endif;?>
  71. </table>
  72. </form>
  73. </div>
  74. </div>
  75. <?php if(!$module):?>
  76. </div>
  77. </div>
  78. <?php endif;?>
  79. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>