Index.cshtml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. </head>
  16. <body>
  17. <div class="layui-fluid">
  18. <div class="layui-card">
  19. <div class="layui-form layui-card-header layuiadmin-card-header-auto">
  20. <div class="layui-form-item">
  21. <div class="layui-inline">
  22. <div class="layui-input-inline">
  23. <input class="layui-input" type="text" name="Title" placeholder="标题" autocomplete="off">
  24. </div>
  25. </div>
  26. <div class="layui-inline">
  27. <button class="layui-btn" lay-submit lay-filter="LAY-list-front-search">
  28. <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
  29. </button>
  30. <button class="layui-btn" lay-submit lay-filter="LAY-list-front-searchall">
  31. 查看全部
  32. </button>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="layui-card-body">
  37. <div style="padding-bottom: 10px;">
  38. @if (RightInfo.Contains("," + right + "_add,"))
  39. {
  40. <button class="layui-btn" data-type="add">添加</button>
  41. }
  42. @if (RightInfo.Contains("," + right + "_delete,"))
  43. {
  44. <button class="layui-btn" data-type="batchdel">删除</button>
  45. }
  46. @if (RightInfo.Contains("," + right + "_edit,"))
  47. {
  48. }
  49. </div>
  50. <script type="text/html" id="imgTpl">
  51. <img src="@(MySystem.OssHelper.Instance.SourceHost){{d.PicPath}}" style="max-width:100px; max-height:50px;" />
  52. </script>
  53. <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
  54. <script type="text/html" id="imgTpl">
  55. <img style="display: inline-block; width: 50%; height: 100%;" src={{ d.avatar }}>
  56. </script>
  57. <script type="text/html" id="table-list-tools">
  58. @if (RightInfo.Contains("," + right + "_edit,"))
  59. {
  60. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
  61. }
  62. @if (RightInfo.Contains("," + right + "_delete,"))
  63. {
  64. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
  65. }
  66. </script>
  67. </div>
  68. </div>
  69. </div>
  70. <div id="excelForm" style="display:none; padding:20px;">
  71. <div class="layui-tab-item layui-show">
  72. <div class="layui-form-item">
  73. <label class="layui-form-label">excel文件</label>
  74. <div class="layui-input-block">
  75. <div class="layui-upload">
  76. <input type="file" id="ExcelFile" name="ExcelFile" value="">
  77. </div>
  78. <div class="mt10" id="ExcelFileList">
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="layui-form-item ml10">
  84. <div class="layui-input-block">
  85. <button type="button" class="layui-btn" onclick="ConfirmImport()">立即导入</button>
  86. </div>
  87. </div>
  88. </div>
  89. <script src="/layuiadmin/layui/layui.js"></script>
  90. <script src="/layuiadmin/modules/Advertisment_Admin.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
  91. </body>
  92. </html>