Index.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @{
  2. string RightInfo = ViewBag.RightInfo as string;
  3. string right = ViewBag.right as string;
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>后台管理员</title>
  10. <meta name="renderer" content="webkit">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  13. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  14. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  15. <script src="/admin/js/jquery-1.10.1.min.js"></script>
  16. <style>
  17. .layui-input-inline{
  18. width: 175px !important;
  19. }
  20. .layui-form-label{
  21. width: 85px !important;
  22. }
  23. .layui-inline{
  24. margin-right: 0px !important;
  25. }
  26. .w100{
  27. width: 100px !important;
  28. }
  29. .ml50{
  30. margin-left: 50px !important;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <div class="layui-fluid">
  36. <div class="layui-card">
  37. <div class="layui-form layui-card-header layuiadmin-card-header-auto">
  38. <div class="layui-form-item">
  39. <div class="layui-inline">
  40. <label class="layui-form-label">用户名</label>
  41. <div class="layui-input-inline">
  42. <input class="layui-input" type="text" name="AdminName" placeholder=""
  43. autocomplete="off">
  44. </div>
  45. </div>
  46. <div class="layui-inline">
  47. <label class="layui-form-label">名称</label>
  48. <div class="layui-input-inline">
  49. <input class="layui-input" type="text" name="RealName" placeholder="" autocomplete="off">
  50. </div>
  51. </div>
  52. @{Dictionary<string, string> SysAdminRoleNewDic = new MySystem.DictionaryClass().getSysAdminRoleNewDic();}
  53. <div class="layui-inline">
  54. <label class="layui-form-label">角色</label>
  55. <div class="layui-input-inline">
  56. <select id="Role" name="Role" lay-search="">
  57. <option value="">角色</option>
  58. @foreach (string key in SysAdminRoleNewDic.Keys)
  59. {
  60. <option value="@key">@SysAdminRoleNewDic[key]</option>
  61. }
  62. </select>
  63. </div>
  64. </div>
  65. <div class="layui-inline">
  66. <label class="layui-form-label">最后登录时间</label>
  67. <div class="layui-input-inline">
  68. <input class="layui-input" type="text" readonly name="LastLoginDateData" id="LastLoginDate"
  69. placeholder="" autocomplete="off">
  70. </div>
  71. </div>
  72. <div class="layui-inline ml50">
  73. <button class="layui-btn" lay-submit lay-filter="LAY-list-front-search">
  74. <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
  75. </button>
  76. <button class="layui-btn" lay-submit lay-filter="LAY-list-front-searchall">
  77. <i class="layui-icon layui-icon-list layuiadmin-button-btn"></i>全部
  78. </button>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="layui-card-body">
  83. <div style="padding-bottom: 10px;">
  84. @if (RightInfo.Contains("," + right + "_add,"))
  85. {
  86. <button class="layui-btn" data-type="add"><i class="layui-icon layui-icon-add-1 layuiadmin-button-btn"></i>新增</button>
  87. }
  88. @if (RightInfo.Contains("," + right + "_delete,"))
  89. {
  90. <button class="layui-btn" data-type="batchdel"><i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>删除</button>
  91. }
  92. @if (RightInfo.Contains("," + right + "_edit,"))
  93. {
  94. }
  95. </div>
  96. <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
  97. <script type="text/html" id="imgTpl">
  98. <img style="display: inline-block; width: 50%; height: 100%;" src={{ d.avatar }}>
  99. </script>
  100. <script type="text/html" id="table-list-tools">
  101. @if (RightInfo.Contains("," + right + "_edit,"))
  102. {
  103. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
  104. }
  105. @if (RightInfo.Contains("," + right + "_delete,"))
  106. {
  107. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
  108. }
  109. @if (RightInfo.Contains("," + right + "_edit,"))
  110. {
  111. }
  112. </script>
  113. </div>
  114. </div>
  115. </div>
  116. <div id="excelForm" style="display:none; padding:20px;">
  117. <div class="layui-tab-item layui-show">
  118. <div class="layui-form-item">
  119. <label class="layui-form-label">excel文件</label>
  120. <div class="layui-input-block">
  121. <div class="layui-upload">
  122. <input type="file" id="ExcelFile" name="ExcelFile" value="">
  123. </div>
  124. <div class="mt10" id="ExcelFileList">
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="layui-form-item ml10">
  130. <div class="layui-input-block">
  131. <button type="button" class="layui-btn" onclick="ConfirmImport()">立即导入</button>
  132. </div>
  133. </div>
  134. </div>
  135. <script src="/layuiadmin/layui/layui.js"></script>
  136. <script src="/layuiadmin/modules/SysAdminNew_Admin.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
  137. <script>
  138. </script>
  139. </body>
  140. </html>