ae6ecc91a4b459f9c4d7a6b6b5728673.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php /*a:3:{s:61:"/data/web/mall.valimart.net/app/admin/view/article/index.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_article')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <form method="get" name="formSearch" id="formSearch">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('article_title')); ?></dt>
  51. <dd><input type="text" value="<?php echo htmlentities(app('request')->param('search_title')); ?>" name="search_title" class="txt"></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('ds_articleclass')); ?></dt>
  55. <dd>
  56. <select name="search_ac_id">
  57. <option value=""><?php echo htmlentities(lang('ds_please_choose')); ?>...</option>
  58. <?php if(is_array($parent_list) || $parent_list instanceof \think\Collection || $parent_list instanceof \think\Paginator): if( count($parent_list)==0 ) : echo "" ;else: foreach($parent_list as $k=>$v): ?>
  59. <option value="<?php echo htmlentities($v['ac_id']); ?>" <?php if(app('request')->param('search_ac_id') == $v['ac_id']): ?>selected<?php endif; ?>><?php echo $v['ac_name']; ?></option>
  60. <?php endforeach; endif; else: echo "" ;endif; ?>
  61. </select>
  62. </dd>
  63. </dl>
  64. <div class="btn_group">
  65. <input type="submit" class="btn" value="<?php echo htmlentities(lang('ds_search')); ?>">
  66. <?php if($filtered): ?>
  67. <a href="<?php echo url('Article/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  68. <?php endif; ?>
  69. </div>
  70. </div>
  71. </form>
  72. <table class="ds-default-table">
  73. <thead>
  74. <tr>
  75. <th><?php echo htmlentities(lang('article_sort')); ?></th>
  76. <th><?php echo htmlentities(lang('article_id')); ?></th>
  77. <th><?php echo htmlentities(lang('article_title')); ?></th>
  78. <th><?php echo htmlentities(lang('article_cate')); ?></th>
  79. <th><?php echo htmlentities(lang('article_show')); ?></th>
  80. <th><?php echo htmlentities(lang('article_time')); ?></th>
  81. <th><?php echo htmlentities(lang('ds_handle')); ?></th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. <?php if(!(empty($article_list) || (($article_list instanceof \think\Collection || $article_list instanceof \think\Paginator ) && $article_list->isEmpty()))): if(is_array($article_list) || $article_list instanceof \think\Collection || $article_list instanceof \think\Paginator): if( count($article_list)==0 ) : echo "" ;else: foreach($article_list as $key=>$article): ?>
  86. <tr id="ds_row_<?php echo htmlentities($article['article_id']); ?>">
  87. <td><?php echo htmlentities($article['article_sort']); ?></td>
  88. <td><?php echo htmlentities($article['article_id']); ?></td>
  89. <td><?php echo htmlentities($article['article_title']); ?></td>
  90. <td><?php echo htmlentities((isset($article['ac_name']) && ($article['ac_name'] !== '')?$article['ac_name']:'')); ?></td>
  91. <td><?php if($article['article_show'] == '1'): ?><?php echo htmlentities(lang('ds_yes')); else: ?><?php echo htmlentities(lang('ds_no')); ?><?php endif; ?></td>
  92. <td><?php echo htmlentities($article['article_time']); ?></td>
  93. <td>
  94. <a href="<?php echo url('Article/edit',['article_id'=>$article['article_id']]); ?>" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  95. <a href="javascript:dsLayerConfirm('<?php echo url('Article/drop',['article_id'=>$article['article_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>',<?php echo htmlentities($article['article_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
  96. </td>
  97. </tr>
  98. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  99. <tr class="no_data">
  100. <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  101. </tr>
  102. <?php endif; ?>
  103. </tbody>
  104. </table>
  105. <?php echo $show_page; ?>
  106. </div>