cd8219a69548f0466e60dc39697a597f.php 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php /*a:3:{s:64:"/data/web/mall.valimart.net/app/admin/view/goodsalbum/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_album')); ?></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">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('g_album_keyword')); ?></dt>
  51. <dd><input class="txt" name="keyword" id="keyword" value="<?php echo htmlentities(app('request')->get('keyword')); ?>" type="text"></dd>
  52. </dl>
  53. <div class="btn_group">
  54. <?php if($store_name!='' && !empty($albumclass_list)): ?>
  55. <a class="btn btn-mini" target="_blank" href="<?php echo url('home/Store/index',['store_id'=>$albumclass_list['0']['store_id']]); ?>"><span><?php echo htmlentities($store_name); ?></span></a>
  56. <?php endif; ?>
  57. <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  58. <?php if($filtered): ?>
  59. <a href="<?php echo url('Goodsalbum/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  60. <?php endif; ?>
  61. </div>
  62. </div>
  63. </form>
  64. <div class="explanation" id="explanation">
  65. <div class="title" id="checkZoom">
  66. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  67. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  68. </div>
  69. <ul>
  70. <li><?php echo htmlentities(lang('g_album_del_tips')); ?></li>
  71. </ul>
  72. </div>
  73. <form method='post' id="picForm" name="picForm">
  74. <table class="ds-default-table">
  75. <thead>
  76. <tr class="thead">
  77. <th class="w24"></th>
  78. <th class="w72 center"><?php echo htmlentities(lang('g_album_fmian')); ?></th>
  79. <th class="w270"><?php echo htmlentities(lang('g_album_one')); ?></th>
  80. <th class="w270"><?php echo htmlentities(lang('g_album_shop')); ?></th>
  81. <th class="w270"><?php echo htmlentities(lang('g_album_pic_count')); ?></th>
  82. <th class="align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
  83. </tr>
  84. </thead>
  85. <tbody>
  86. <?php if(!(empty($albumclass_list) || (($albumclass_list instanceof \think\Collection || $albumclass_list instanceof \think\Paginator ) && $albumclass_list->isEmpty()))): if(is_array($albumclass_list) || $albumclass_list instanceof \think\Collection || $albumclass_list instanceof \think\Paginator): if( count($albumclass_list)==0 ) : echo "" ;else: foreach($albumclass_list as $key=>$v): ?>
  87. <tr class="hover edit" id="ds_row_<?php echo htmlentities($v['aclass_id']); ?>">
  88. <td><input value="<?php echo htmlentities($v['aclass_id']); ?>" class="checkitem" type="checkbox" name="aclass_id[]"></td>
  89. <td>
  90. <?php if(!(empty($v['aclass_cover']) || (($v['aclass_cover'] instanceof \think\Collection || $v['aclass_cover'] instanceof \think\Paginator ) && $v['aclass_cover']->isEmpty()))): ?>
  91. <img src="<?php echo goods_cthumb($v['aclass_cover'],240,$v['store_id']); ?>" onload="javascript:ResizeImage(this,70,70);">
  92. <?php else: ?>
  93. <img src="<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.default_goods_image')); ?>" onload="javascript:ResizeImage(this,70,70);">
  94. <?php endif; ?>
  95. </td>
  96. <td class="name"><?php echo htmlentities($v['aclass_name']); ?></td>
  97. <td class="class"><a href="<?php echo url('home/Store/index',['store_id'=>$v['store_id']]); ?>" ><?php echo htmlentities($v['store_name']); ?></td>
  98. <td><?php echo !empty($pic_count[$v['aclass_id']]) ? htmlentities($pic_count[$v['aclass_id']]) : 0; ?></td>
  99. <td class="align-center">
  100. <a href="<?php echo url('Goodsalbum/pic_list',['aclass_id'=>$v['aclass_id']]); ?>" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('g_album_pic_one')); ?></a>
  101. <a href="javascript:dsLayerConfirm('<?php echo url('Goodsalbum/aclass_del',['aclass_id'=>$v['aclass_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>',<?php echo htmlentities($v['aclass_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a></td>
  102. </tr>
  103. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  104. <tr class="no_data">
  105. <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  106. </tr>
  107. <?php endif; ?>
  108. </tbody>
  109. <tfoot>
  110. <?php if(!(empty($albumclass_list) || (($albumclass_list instanceof \think\Collection || $albumclass_list instanceof \think\Paginator ) && $albumclass_list->isEmpty()))): ?>
  111. <tr colspan="15" class="tfoot">
  112. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  113. <td colspan="16"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  114. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  115. </td>
  116. </tr>
  117. <?php endif; ?>
  118. </tfoot>
  119. </table>
  120. <?php echo $show_page; ?>
  121. </form>
  122. </div>
  123. <script type="text/javascript">
  124. function submit_delete(ids_str){
  125. _uri = ADMINSITEURL+"/Goodsalbum/aclass_del.html?aclass_id=" + ids_str;
  126. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  127. }
  128. </script>