fcb07b742f063f703dafd8f2f692a39e.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php /*a:3:{s:80:"/data/web/mall.valimart.net/app/admin/view/articleclass/article_class_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_articleclass')); ?></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. <div class="fixed-empty"></div>
  48. <div class="explanation" id="explanation">
  49. <div class="title" id="checkZoom">
  50. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  51. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  52. </div>
  53. <ul>
  54. <li><?php echo htmlentities(lang('article_class_index_tips1')); ?></li>
  55. <li><?php echo htmlentities(lang('article_class_index_tips2')); ?></li>
  56. </ul>
  57. </div>
  58. <table class="ds-default-table">
  59. <thead>
  60. <tr class="thead">
  61. <th class="w48"></th>
  62. <th class="w48"><?php echo htmlentities(lang('ds_sort')); ?></th>
  63. <th><?php echo htmlentities(lang('ac_name')); ?></th>
  64. <th class="w120 align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
  65. </tr>
  66. </thead>
  67. <tbody id="treet1">
  68. <?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 $key=>$v): ?>
  69. <tr class="hover edit" id="ds_row_<?php echo htmlentities($v['ac_id']); ?>">
  70. <td>
  71. <?php if($v['ac_code'] == ''): ?>
  72. <input type="checkbox" name='check_ac_id[]' value="<?php echo htmlentities($v['ac_id']); ?>" class="checkitem">
  73. <?php else: ?>
  74. <input name="" type="checkbox" disabled="disabled" value="" />
  75. <?php endif; if($v['have_child'] == '1'): ?>
  76. <img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/tv-expandable.gif" fieldid="<?php echo htmlentities($v['ac_id']); ?>" status="open" ds_type="flex">
  77. <?php else: ?>
  78. <img fieldid="<?php echo htmlentities($v['ac_id']); ?>" status="close" ds_type="flex" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/tv-item.gif">
  79. <?php endif; ?>
  80. </td>
  81. <td class="sort">
  82. <span title="<?php echo htmlentities(lang('ds_editable')); ?>" ajax_branch='article_class_sort' datatype="number" fieldid="<?php echo htmlentities($v['ac_id']); ?>" fieldname="ac_sort" ds_type="inline_edit" class="editable"><?php echo htmlentities($v['ac_sort']); ?></span>
  83. </td>
  84. <td class="name">
  85. <span title="<?php echo htmlentities(lang('ds_editable')); ?>" required="1" fieldid="<?php echo htmlentities($v['ac_id']); ?>" ajax_branch='article_class_name' fieldname="ac_name" ds_type="inline_edit" class="editable "><?php echo htmlentities($v['ac_name']); ?></span>
  86. <a class='btn-add-nofloat marginleft' href="javascript:dsLayerOpen('<?php echo url('Articleclass/article_class_add',['ac_parent_id'=>$v['ac_id']]); ?>','<?php echo htmlentities(lang('ds_add_sub_class')); ?>')">
  87. <span><?php echo htmlentities(lang('ds_add_sub_class')); ?></span>
  88. </a>
  89. </td>
  90. <td class="align-center">
  91. <a href="javascript:dsLayerOpen('<?php echo url('Articleclass/article_class_edit',['ac_id'=>$v['ac_id']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?>-<?php echo htmlentities($v['ac_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  92. <?php if($v['ac_code'] == ''): ?>
  93. <a href="javascript:dsLayerConfirm('<?php echo url('Articleclass/article_class_del',['ac_id'=>$v['ac_id']]); ?>','<?php echo htmlentities(lang('article_class_index_ensure_del')); ?>',<?php echo htmlentities($v['ac_id']); ?>);" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
  94. <?php endif; ?>
  95. </td>
  96. </tr>
  97. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  98. <tr class="no_data">
  99. <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  100. </tr>
  101. <?php endif; ?>
  102. </tbody>
  103. <tfoot>
  104. <?php if(!(empty($class_list) || (($class_list instanceof \think\Collection || $class_list instanceof \think\Paginator ) && $class_list->isEmpty()))): ?>
  105. <tr>
  106. <td>
  107. <label for="checkall1">
  108. <input type="checkbox" class="checkall" id="checkall_2">
  109. </label>
  110. </td>
  111. <td colspan="16">
  112. <label for="checkall_2"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  113. &nbsp;&nbsp;
  114. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()">
  115. <span><?php echo htmlentities(lang('ds_del')); ?></span>
  116. </a>
  117. </td>
  118. </tr>
  119. <?php endif; ?>
  120. </tfoot>
  121. </table>
  122. </div>
  123. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/article_class.js"></script>
  124. <script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>
  125. <script type="text/javascript">
  126. function submit_delete(ids_str){
  127. _uri = ADMINSITEURL+"/Articleclass/article_class_del.html?ac_id=" + ids_str;
  128. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  129. }
  130. </script>