setreviewer.html.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * The set reviewer view file of lieu 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 lieu
  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->lieu->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. <div class='panel'>
  37. <div class='panel-heading'><strong><?php echo $lang->lieu->setReviewer;?></strong></div>
  38. <div class='panel-body'>
  39. <form id='ajaxForm' method='post'>
  40. <table class='table table-form table-condensed'>
  41. <tr>
  42. <th class='w-100px'><?php echo $lang->lieu->reviewedBy;?></th>
  43. <td class='w-200px'><?php echo html::select('reviewedBy', array('' => $lang->dept->manager) + $users, $reviewedBy, "class='form-control chosen'")?></td><td></td>
  44. <td></td>
  45. </tr>
  46. <tr>
  47. <th><?php echo $lang->lieu->checkHours;?></th>
  48. <td colspan='2'><?php echo html::radio('checkHours', $lang->lieu->checkHoursList, $config->lieu->checkHours);?></td>
  49. </tr>
  50. <tr>
  51. <th></th>
  52. <td colspan='2'><?php echo baseHTML::submitButton();?></td>
  53. </tr>
  54. </table>
  55. </form>
  56. </div>
  57. </div>
  58. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>