setreviewer.html.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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['personal'] as $method => $name)
  24. {
  25. $class = strtolower($method) == $methodName ? "class='active'" : '';
  26. if(common::hasPriv('leave', $method)) echo "<li id='$method' $class>" . html::a($this->createLink('leave', $method), $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. <?php foreach($lang->leave->settings as $setting):?>
  38. <?php list($label, $module, $method) = explode('|', $setting);?>
  39. <li <?php if($method == $this->methodName) echo "class='active'";?>><?php extCommonModel::printLink($module, $method, '', $label);?></li>
  40. <?php endforeach;?>
  41. </ul>
  42. </nav>
  43. </div>
  44. <div class='main'>
  45. <?php endif;?>
  46. <div class='panel'>
  47. <div class='panel-heading'><strong><?php echo $lang->leave->setReviewer;?></strong></div>
  48. <div class='panel-body'>
  49. <form id='ajaxForm' method='post'>
  50. <table class='table table-form table-condensed w-p40'>
  51. <tr>
  52. <th class='w-100px'><?php echo $lang->leave->reviewedBy;?></th>
  53. <td><?php echo html::select('reviewedBy', array('' => $this->lang->dept->manager) + $users, $reviewedBy, "class='form-control chosen'")?></td><td></td>
  54. </tr>
  55. <tr><th></th><td colspan='2'><?php echo baseHTML::submitButton();?></td></tr>
  56. </table>
  57. </form>
  58. </div>
  59. </div>
  60. <?php if(!$module):?>
  61. </div>
  62. </div>
  63. <?php endif;?>
  64. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>