a052566f65b4b08ede7ab7e3b267187b.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php /*a:3:{s:59:"/data/web/mall.valimart.net/app/admin/view/brand/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_brand_manage')); ?></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('brand_index_name')); ?></dt>
  51. <dd><input class="txt" name="search_brand_name" id="search_brand_name" value="<?php echo htmlentities($search_brand_name); ?>" type="text"></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('brand_index_class')); ?></dt>
  55. <dd><input class="txt" name="search_brand_class" id="search_brand_class" value="<?php echo htmlentities($search_brand_class); ?>" type="text"></dd>
  56. </dl>
  57. <div class="btn_group">
  58. <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  59. <?php if($search_brand_name != '' || $search_brand_class != ''): ?>
  60. <a class="btn" href="<?php echo url('Brand/index'); ?>" title="<?php echo htmlentities(lang('ds_cancel_search')); ?>"><span><?php echo htmlentities(lang('ds_cancel_search')); ?></span></a>
  61. <?php endif; ?>
  62. <a class="btn btn-default" href="javascript:export_xls('<?php echo url('Brand/export_step1'); ?>')"><span><?php echo htmlentities(lang('ds_export')); ?>Excel</span></a>
  63. </div>
  64. </div>
  65. <input type="hidden" value="" name="export">
  66. </form>
  67. <div class="explanation" id="explanation">
  68. <div class="title" id="checkZoom">
  69. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  70. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  71. </div>
  72. <ul>
  73. <li><?php echo htmlentities(lang('brand_index_help1')); ?></li>
  74. <li><?php echo htmlentities(lang('brand_index_help2')); ?></li>
  75. <li><?php echo htmlentities(lang('brand_index_help3')); ?></li>
  76. </ul>
  77. </div>
  78. <table class="ds-default-table">
  79. <thead>
  80. <tr class="thead">
  81. <th class="w24"></th>
  82. <th class="w48"><?php echo htmlentities(lang('ds_sort')); ?></th>
  83. <th><?php echo htmlentities(lang('brand_index_name')); ?></th>
  84. <th class="w150"><?php echo htmlentities(lang('brand_index_class')); ?></th>
  85. <th class="w150"><?php echo htmlentities(lang('brand_index_pic_sign')); ?></th>
  86. <th class="w48 align-center"><?php echo htmlentities(lang('brand_showtype')); ?></th>
  87. <th class="w48 align-center"><?php echo htmlentities(lang('ds_recommend')); ?></th>
  88. <th class="w120 align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
  89. </tr>
  90. </thead>
  91. <tbody>
  92. <?php if(!(empty($brand_list) || (($brand_list instanceof \think\Collection || $brand_list instanceof \think\Paginator ) && $brand_list->isEmpty()))): if(is_array($brand_list) || $brand_list instanceof \think\Collection || $brand_list instanceof \think\Paginator): if( count($brand_list)==0 ) : echo "" ;else: foreach($brand_list as $key=>$v): ?>
  93. <tr class="hover edit" id="ds_row_<?php echo htmlentities($v['brand_id']); ?>">
  94. <td><input value="<?php echo htmlentities($v['brand_id']); ?>" class="checkitem" type="checkbox" name="del_brand_id[]"></td>
  95. <td class="sort"><span class="editable" ds_type="inline_edit" fieldname="brand_sort" ajax_branch='brand_sort' fieldid="<?php echo htmlentities($v['brand_id']); ?>" datatype="pint" maxvalue="255" title="<?php echo htmlentities(lang('ds_editable')); ?>"><?php echo htmlentities($v['brand_sort']); ?></span></td>
  96. <td class="name"><span class="editable" ds_type="inline_edit" fieldname="brand_name" ajax_branch='brand_name' fieldid="<?php echo htmlentities($v['brand_id']); ?>" required="1" title="<?php echo htmlentities(lang('ds_editable')); ?>"><?php echo htmlentities($v['brand_name']); ?></span></td>
  97. <td class="class"><?php echo htmlentities($v['brand_class']); ?></td>
  98. <td class="picture"><div class="brand-picture"><img src="<?php echo brand_image($v['brand_pic']); ?>" style="height:30px;"/></div></td>
  99. <td class="align-center"><?php echo $v['brand_showtype']==1 ? lang('brand_showtype_text') : lang('brand_showtype_img'); ?></td>
  100. <td class="align-center yes-onoff">
  101. <?php if($v['brand_recommend'] == '0'): ?>
  102. <a href="JavaScript:void(0);" class="disabled" ajax_branch='brand_recommend' ds_type="inline_edit" fieldname="brand_recommend" fieldid="<?php echo htmlentities($v['brand_id']); ?>" fieldvalue="0" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
  103. <?php else: ?>
  104. <a href="JavaScript:void(0);" class="enabled" ajax_branch='brand_recommend' ds_type="inline_edit" fieldname="brand_recommend" fieldid="<?php echo htmlentities($v['brand_id']); ?>" fieldvalue="1" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
  105. <?php endif; ?>
  106. </td>
  107. <td class="align-center">
  108. <a href="javascript:dsLayerOpen('<?php echo url('Brand/brand_edit',['brand_id'=>$v['brand_id']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?>-<?php echo htmlentities($v['brand_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  109. <a href="javascript:dsLayerConfirm('<?php echo url('Brand/brand_del',['brand_id'=>$v['brand_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>',<?php echo htmlentities($v['brand_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
  110. </td>
  111. </tr>
  112. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  113. <tr class="no_data">
  114. <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  115. </tr>
  116. <?php endif; ?>
  117. </tbody>
  118. <tfoot>
  119. <?php if(!(empty($brand_list) || (($brand_list instanceof \think\Collection || $brand_list instanceof \think\Paginator ) && $brand_list->isEmpty()))): ?>
  120. <tr colspan="15" class="tfoot">
  121. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  122. <td colspan="16">
  123. <label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  124. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  125. </td>
  126. </tr>
  127. <?php endif; ?>
  128. </tfoot>
  129. </table>
  130. <?php echo $showpage; ?>
  131. <div class="clear"></div>
  132. </div>
  133. <script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>
  134. <script type="text/javascript">
  135. function submit_delete(ids_str){
  136. _uri = ADMINSITEURL+"/Brand/brand_del.html?brand_id=" + ids_str;
  137. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  138. }
  139. </script>