0a8012456c967f57ff02d34b3df76ff3.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php /*a:3:{s:60:"/data/web/mall.valimart.net/app/admin/view/region/index.html";i:1657785098;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_region')); ?></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. <!-- 操作说明 -->
  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('region_index_help1')); ?></li>
  55. <li><?php echo htmlentities(lang('region_index_help2')); ?></li>
  56. <li><?php echo lang('region_index_help3'); ?></li>
  57. <li><?php echo htmlentities(lang('region_index_help4')); ?></li>
  58. <li><?php echo htmlentities(lang('region_index_help5')); ?></li>
  59. <li><?php echo htmlentities(lang('region_index_help6')); ?></li>
  60. </ul>
  61. </div>
  62. <table class="ds-default-table">
  63. <thead>
  64. <tr>
  65. <th width="5%"></th>
  66. <th width="15%"><?php echo htmlentities(lang('ds_sort')); ?></th>
  67. <th width="35%"><?php echo htmlentities(lang('area_name')); ?></th>
  68. <th width="15%"><?php echo htmlentities(lang('area_region')); ?></th>
  69. <th width="15%"><?php echo htmlentities(lang('ds_handle')); ?></th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <?php if(is_array($region_list) || $region_list instanceof \think\Collection || $region_list instanceof \think\Paginator): if( count($region_list)==0 ) : echo "" ;else: foreach($region_list as $key=>$area): ?>
  74. <tr id="ds_row_<?php echo htmlentities($area['area_id']); ?>">
  75. <td>
  76. <input type="checkbox" class="checkitem" value="<?php echo htmlentities($area['area_id']); ?>">
  77. <?php if($area['switchs']): ?>
  78. <img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/tv-expandable.gif" status="open" ds_type="flex" fieldid="<?php echo htmlentities($area['area_id']); ?>">
  79. <?php else: ?>
  80. <img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/tv-item.gif" status="close" ds_type="flex" fieldid="<?php echo htmlentities($area['area_id']); ?>">
  81. <?php endif; ?>
  82. </td>
  83. <td class="sort">
  84. <span title="<?php echo htmlentities(lang('ds_editable')); ?>" ajax_branch="area_sort" datatype="number" fieldid="<?php echo htmlentities($area['area_id']); ?>" fieldname="area_sort" ds_type="inline_edit" class="editable "><?php echo htmlentities($area['area_sort']); ?></span>
  85. </td>
  86. <td class="name">
  87. <span class="node_name editable" ajax_branch="area_name" fieldid="<?php echo htmlentities($area['area_id']); ?>" fieldname="area_name" ds_type="inline_edit" required="1" class="editable "><?php echo htmlentities($area['area_name']); ?></span>
  88. </td>
  89. <td class="name"><span title="<?php echo htmlentities(lang('ds_editable')); ?>" ajax_branch="area_region" fieldid="<?php echo htmlentities($area['area_id']); ?>" fieldname="area_region" ds_type="inline_edit" class="editable "><?php echo htmlentities($area['area_region']); ?></span></td>
  90. <td>
  91. <a href="javascript:dsLayerOpen('<?php echo url('Region/edit',['area_id'=>$area['area_id']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?>-<?php echo htmlentities($area['area_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  92. <a href="javascript:dsLayerConfirm('<?php echo url('Region/drop',['area_id'=>$area['area_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>',<?php echo htmlentities($area['area_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
  93. <a href="javascript:dsLayerOpen('<?php echo url('Region/add',['area_id'=>$area['area_id']]); ?>','<?php echo htmlentities(lang('ds_add')); ?>')" class="dsui-btn-add"><i class="iconfont"></i><?php echo htmlentities(lang('add_child')); ?></a>
  94. </td>
  95. </tr>
  96. <?php endforeach; endif; else: echo "" ;endif; ?>
  97. </tbody>
  98. </table>
  99. </div>
  100. <script>
  101. AJAX_URL_REGION = "<?php echo url('Region/ajax_cate'); ?>";
  102. </script>
  103. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/region_tree.js"></script>
  104. <script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>