role.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <{include file='../public/admin_header.html'}>
  2. <{include file='../public/admin_navi.html'}>
  3. <!-- Right side column. Contains the navbar and content of the page -->
  4. <aside class="right-side">
  5. <!-- Content Header (Page header) -->
  6. <section class="content-header">
  7. <h1>
  8. 分配角色及直属上级
  9. <small>Control panel</small>
  10. </h1>
  11. <ol class="breadcrumb">
  12. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  13. <li class="active">Blank page</li>
  14. </ol>
  15. </section>
  16. <!-- Main content -->
  17. <section class="content">
  18. <div class="span9">
  19. <{if $error}>
  20. <div class="alert alert-danger alert-dismissable"><{$error}></div>
  21. <{/if}>
  22. <{if $info}>
  23. <div class="alert alert-success nodisplay"><{$info}></div>
  24. <{/if}>
  25. <div id='main' class="form-actions">
  26. 给用户<span style="color:red;"><{$user_info.uname}></span>分配角色及直属上级:
  27. <form method="post" action="" id="to_persission">
  28. <input type="hidden" name="uname"  value="<{$user_info.uname}>" />
  29. <table class="table table-bordered" style="margin-top:15px;">
  30. <tr>
  31. <td>角色</td>
  32. <td>
  33. <input type="radio" name="role" value="1" <{if $user_info.role==1}>checked<{/if}> />&nbsp;职员
  34. <input type="radio" style="margin-left:15px;" name="role" value="2" <{if $user_info.role==2}>checked<{/if}> />&nbsp;部门主管
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>直属领导</td>
  39. <td>
  40. <select name="header_uid" style="width:150px;">
  41. <option value="0">&nbsp;请选择&nbsp;</option>
  42. <{foreach from=$header_list item=item key=key }>
  43. <option value="<{$key}>" <{if $key==$user_info.header_uid}>selected<{/if}> ><{$item}></option>
  44. <{/foreach}>
  45. </select>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>&nbsp;</td>
  50. <td>
  51. <input type="submit" value="提交" style="width:100px;height:30px;margin-bottom:15px;" class="btn btn-primary" />
  52. </td>
  53. </tr>
  54. </table>
  55. </form>
  56. </div>
  57. </div>
  58. </section><!-- /.content -->
  59. </aside><!-- /.right-side -->
  60. </div><!-- ./wrapper -->
  61. <script>
  62. $('#treeview5').addClass('active');
  63. </script>
  64. <style>
  65. .form-control{width:200px;}
  66. </style>
  67. </body>
  68. </html>