559f03f40862422c53748096671473d7.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php /*a:3:{s:68:"/data/web/pl.valimart.net/app/admin/view/goodsclass/goods_class.html";i:1657785096;s:59:"/data/web/pl.valimart.net/app/admin/view/public/header.html";i:1657785098;s:64:"/data/web/pl.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('goods_class_index_class')); ?></h3>
  36. </div>
  37. <?php if($admin_item): ?>
  38. <ul class="tab-base ds-row">
  39. <?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): ?>
  40. <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>
  41. <?php endforeach; endif; else: echo "" ;endif; ?>
  42. </ul>
  43. <?php endif; ?>
  44. </div>
  45. </div>
  46. <div class="explanation" id="explanation">
  47. <div class="title" id="checkZoom">
  48. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  49. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  50. </div>
  51. <ul>
  52. <li><?php echo htmlentities(lang('goods_class_index_help1')); ?></li>
  53. <li><?php echo htmlentities(lang('goods_class_index_help2')); ?></li>
  54. <li><?php echo lang('goods_class_index_help3'); ?></li>
  55. </ul>
  56. </div>
  57. <table class="ds-default-table">
  58. <thead>
  59. <tr class="thead">
  60. <th></th>
  61. <th><?php echo htmlentities(lang('ds_sort')); ?></th>
  62. <th><?php echo htmlentities(lang('goods_class_index_name')); ?></th>
  63. <th><?php echo htmlentities(lang('goods_class_add_type')); ?></th>
  64. <th><?php echo htmlentities(lang('goods_class_add_commis_rate')); ?></th>
  65. <th></th>
  66. <th><?php echo htmlentities(lang('ds_handle')); ?></th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. <?php if(!(empty($class_list) || (($class_list instanceof \think\Collection || $class_list instanceof \think\Paginator ) && $class_list->isEmpty()))): if(is_array($class_list) || $class_list instanceof \think\Collection || $class_list instanceof \think\Paginator): if( count($class_list)==0 ) : echo "" ;else: foreach($class_list as $k=>$v): ?>
  71. <tr class="hover edit" id="ds_row_<?php echo htmlentities($v['gc_id']); ?>">
  72. <td class="w48"><input type="checkbox" name="check_gc_id[]" value="<?php echo htmlentities($v['gc_id']); ?>" class="checkitem">
  73. <?php if(isset($v['have_child']) && $v['have_child'] == '1'): ?>
  74. <img fieldid="<?php echo htmlentities($v['gc_id']); ?>" status="open" ds_type="flex" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/tv-expandable.gif">
  75. <?php else: ?>
  76. <img fieldid="<?php echo htmlentities($v['gc_id']); ?>" status="close" ds_type="flex" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/tv-item.gif">
  77. <?php endif; ?>
  78. </td>
  79. <td class="w48 sort"><span title="<?php echo htmlentities(lang('ds_editable')); ?>" ajax_branch="goods_class_sort" datatype="number" fieldid="<?php echo htmlentities($v['gc_id']); ?>" fieldname="gc_sort" ds_type="inline_edit" class="editable "><?php echo htmlentities($v['gc_sort']); ?></span></td>
  80. <td class="w50pre name">
  81. <span title="<?php echo htmlentities(lang('ds_editable')); ?>" required="1" fieldid="<?php echo htmlentities($v['gc_id']); ?>" ajax_branch="goods_class_name" fieldname="gc_name" ds_type="inline_edit" class="editable "><?php echo htmlentities($v['gc_name']); ?></span>
  82. <a class="btn-add-nofloat marginleft" href="<?php echo url('Goodsclass/goods_class_add',['gc_parent_id'=>$v['gc_id']]); ?>"><span><?php echo htmlentities(lang('ds_add_sub_class')); ?></span></a>
  83. </td>
  84. <td><?php echo htmlentities($v['type_name']); ?></td>
  85. <td><?php echo htmlentities($v['commis_rate']); ?> %</td>
  86. <td><?php if($v['gc_virtual'] == 1): ?><?php echo htmlentities(lang('ds_virtual')); ?><?php endif; ?></td>
  87. <td class="w120">
  88. <a href="<?php echo url('Goodsclass/nav_edit',['gc_id'=>$v['gc_id']]); ?>"><?php echo htmlentities(lang('ds_setting')); ?></a> |
  89. <a href="<?php echo url('Goodsclass/goods_class_edit',['gc_id'=>$v['gc_id']]); ?>"><?php echo htmlentities(lang('ds_edit')); ?></a> |
  90. <a href="javascript:dsLayerConfirm('<?php echo url('Goodsclass/goods_class_del',['gc_id'=>$v['gc_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>',<?php echo htmlentities($v['gc_id']); ?>)"><?php echo htmlentities(lang('ds_del')); ?></a>
  91. </td>
  92. </tr>
  93. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  94. <tr class="no_data">
  95. <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  96. </tr>
  97. <?php endif; ?>
  98. </tbody>
  99. <?php if(!(empty($class_list) || (($class_list instanceof \think\Collection || $class_list instanceof \think\Paginator ) && $class_list->isEmpty()))): ?>
  100. <tfoot>
  101. <tr class="tfoot">
  102. <td><input type="checkbox" class="checkall" id="checkall_2"></td>
  103. <td id="batchAction" colspan="15"><span class="all_checkbox">
  104. <label for="checkall_2"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  105. </span>&nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  106. </td>
  107. </tr>
  108. </tfoot>
  109. <?php endif; ?>
  110. </table>
  111. </div>
  112. <script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>
  113. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.goods_class.js"></script>
  114. <script type="text/javascript">
  115. function submit_delete(ids_str){
  116. _uri = ADMINSITEURL+"/Goodsclass/goods_class_del.html?gc_id=" + ids_str;
  117. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  118. }
  119. </script>