setreviewer.html.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * The set reviewer view file of leave 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 leave
  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->leave->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. <?php foreach($lang->leave->settings as $setting):?>
  42. <?php list($label, $module, $method) = explode('|', $setting);?>
  43. <li <?php if($method == $this->methodName) echo "class='active'";?>><?php extCommonModel::printLink($module, $method, '', $label);?></li>
  44. <?php endforeach;?>
  45. </ul>
  46. </nav>
  47. </div>
  48. <div class='main'>
  49. <?php endif;?>
  50. <div class='panel'>
  51. <div class='panel-heading'><strong><?php echo $lang->leave->setReviewer;?></strong></div>
  52. <div class='panel-body'>
  53. <form id='ajaxForm' method='post'>
  54. <table class='table table-form table-condensed w-p40'>
  55. <tr>
  56. <th class='w-100px'><?php echo $lang->leave->reviewedBy;?></th>
  57. <td><?php echo html::select('reviewedBy', array('' => $this->lang->dept->manager) + $users, $reviewedBy, "class='form-control chosen'")?></td><td></td>
  58. </tr>
  59. <tr><th></th><td colspan='2'><?php echo baseHTML::submitButton();?></td></tr>
  60. </table>
  61. </form>
  62. </div>
  63. </div>
  64. <?php if(!$module):?>
  65. </div>
  66. </div>
  67. <?php endif;?>
  68. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>