setmanager.html.php 2.9 KB

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