8afdce58c2dc33afb8e3839f8713559a.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php /*a:6:{s:75:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\article\article_category\index.php";i:1595820902;s:61:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\container.php";i:1595820902;s:62:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_head.php";i:1595820902;s:57:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\style.php";i:1595820902;s:62:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\inner_page.php";i:1595820902;s:64:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_footer.php";i:1595820902;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <?php if(empty($is_layui) || (($is_layui instanceof \think\Collection || $is_layui instanceof \think\Paginator ) && $is_layui->isEmpty())): ?>
  8. <link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  9. <?php endif; ?>
  10. <link href="/static/plug/layui/css/layui.css" rel="stylesheet">
  11. <link href="/system/css/layui-admin.css" rel="stylesheet">
  12. <link href="/system/frame/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
  13. <link href="/system/frame/css/animate.min.css" rel="stylesheet">
  14. <link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
  15. <script src="/system/frame/js/jquery.min.js"></script>
  16. <script src="/system/frame/js/bootstrap.min.js"></script>
  17. <script src="/static/plug/layui/layui.all.js"></script>
  18. <script>
  19. $eb = parent._mpApi;
  20. window.controlle="<?php echo strtolower(trim(preg_replace("/[A-Z]/", "_\\0", app('request')->controller()), "_"));?>";
  21. window.module="<?php echo app('http')->getName();?>";
  22. </script>
  23. <title></title>
  24. <!--<script type="text/javascript" src="/static/plug/basket.js"></script>-->
  25. <script type="text/javascript" src="/static/plug/requirejs/require.js"></script>
  26. <?php /* <script type="text/javascript" src="/static/plug/requirejs/require-basket-load.js"></script> */ ?>
  27. <script>
  28. var hostname = location.hostname;
  29. if(location.port) hostname += ':' + location.port;
  30. requirejs.config({
  31. map: {
  32. '*': {
  33. 'css': '/static/plug/requirejs/require-css.js'
  34. }
  35. },
  36. shim:{
  37. 'iview':{
  38. deps:['css!iviewcss']
  39. },
  40. 'layer':{
  41. deps:['css!layercss']
  42. }
  43. },
  44. baseUrl:'//'+hostname+'/',
  45. paths: {
  46. 'static':'static',
  47. 'system':'system',
  48. 'vue':'static/plug/vue/dist/vue.min',
  49. 'axios':'static/plug/axios.min',
  50. 'iview':'static/plug/iview/dist/iview.min',
  51. 'iviewcss':'static/plug/iview/dist/styles/iview',
  52. 'lodash':'static/plug/lodash',
  53. 'layer':'static/plug/layer/layer',
  54. 'layercss':'static/plug/layer/theme/default/layer',
  55. 'jquery':'static/plug/jquery/jquery.min',
  56. 'moment':'static/plug/moment',
  57. 'sweetalert':'static/plug/sweetalert2/sweetalert2.all.min',
  58. 'formCreate':'/static/plug/form-create/form-create.min',
  59. },
  60. basket: {
  61. excludes:['system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  62. // excludes:['system/util/mpFormBuilder','system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  63. }
  64. });
  65. </script>
  66. <script type="text/javascript" src="/system/util/mpFrame.js"></script>
  67. </head>
  68. <body class="gray-bg">
  69. <div class="wrapper wrapper-content">
  70. <div class="row"> <div class="col-sm-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <button type="button" class="btn btn-w-m btn-primary add-filed">添加文章分类</button> </div> <div class="ibox-content"> <div class="row"> <div class="m-b m-l"> <form action="" class="form-inline"> <select name="status" aria-controls="editable" class="form-control input-sm"> <option value="">是否显示</option> <option value="1" <?php if($where['status'] == '1'): ?>selected="selected"<?php endif; ?>>显示</option> <option value="0" <?php if($where['status'] == '0'): ?>selected="selected"<?php endif; ?>>不显示</option> </select> <div class="input-group" style="margin-top: 5px"> <input type="text" placeholder="请输入关键词" class="input-sm form-control" name="title" value="<?php echo htmlentities($where['title']); ?>"> <span class="input-group-btn"><button type="submit" class="btn btn-sm btn-primary"> <i class="fa fa-search" ></i>搜索</button> </span> </div> </form> </div> </div> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th>编号</th> <th>分类昵称</th> <th>分类图片</th> <th>状态</th> <th>查看文章</th> <th>操作</th> </tr> </thead> <tbody class=""> <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <tr> <td class="text-center"> <?php echo htmlentities($vo['id']); ?> </td> <td class="text-center"> <?php echo htmlentities($vo['title']); ?> </td> <td class="text-center"> <img data-image="<?php echo htmlentities($vo['image']); ?>" class="image_info" src="<?php echo htmlentities($vo['image']); ?>" alt="<?php echo htmlentities($vo['title']); ?>" title="<?php echo htmlentities($vo['title']); ?>" style="width: 50px;cursor: pointer"> </td> <td class="text-center"> <?php if($vo['status'] == 1): ?> <i class="fa fa-check text-navy"></i> <?php else: ?> <i class="fa fa-close text-danger"></i> <?php endif; ?> </td> <td class="text-center"> <a href="<?php echo Url('article.article/index',array('cid'=>$vo['id'])); ?>" style="color: #666;display: block;padding: 5px 0;">查看文章</a> </td> <td class="text-center"> <button class="btn btn-info btn-xs" type="button" onclick="$eb.createModalFrame('编辑','<?php echo Url('edit',array('id'=>$vo['id'])); ?>')"><i class="fa fa-edit"></i> 编辑</button> <button class="btn btn-danger btn-xs del_config_tab" data-id="<?php echo htmlentities($vo['id']); ?>" type="button" data-url="<?php echo Url('delete',array('id'=>$vo['id'])); ?>" ><i class="fa fa-times"></i> 删除 </button> </td> </tr> <?php endforeach; endif; else: echo "" ;endif; ?> </tbody> </table> </div> <link href="/system/frame/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
  71. <div class="row">
  72. <div class="col-sm-6">
  73. <div class="dataTables_info" id="DataTables_Table_0_info" role="alert" aria-live="polite" aria-relevant="all">共 <?php echo htmlentities($total); ?> 项</div>
  74. </div>
  75. <div class="col-sm-6">
  76. <div class="dataTables_paginate paging_simple_numbers" id="editable_paginate">
  77. <?php echo $page;?>
  78. </div>
  79. </div>
  80. </div> </div> </div> </div> </div>
  81. <script> $('.image_info').on('click',function (e) { var image_url = $(this).data('image'); $eb.openImage(image_url); }) $('.add-filed').on('click',function (e) { $eb.createModalFrame(this.innerText,"<?php echo Url('create'); ?>"); }) $('.del_config_tab').on('click',function(){ var _this = $(this),url =_this.data('url'); $eb.$swal('delete',function(){ $eb.axios.get(url).then(function(res){ if(res.status == 200 && res.data.code == 200) { $eb.$swal('success',res.data.msg); _this.parents('tr').remove(); }else return Promise.reject(res.data.msg || '删除失败') }).catch(function(err){ $eb.$swal('error',err); }); }) }); $('.add_filed_base').on('click',function (e) { $eb.swal({ title: '请选择数据类型', input: 'radio', inputOptions: ['文本框','多行文本框','单选框','文件上传','多选框'], inputValidator: function(result) { return new Promise(function(resolve, reject) { if (result) { resolve(); } else { reject('请选择数据类型'); } }); } }).then(function(result) { if (result) { $eb.createModalFrame(this.innerText,"<?php echo Url('SystemConfig/create'); ?>?type="+result); } }) }) </script>
  82. </div>
  83. </body>
  84. </html>