87adb9833c5626adbfac085ce8a7bf1a.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php /*a:3:{s:57:"/data/web/pl.valimart.net/app/admin/view/store/store.html";i:1657785098;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('ds_store_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('belongs_level')); ?></dt>
  51. <dd>
  52. <select name="grade_id">
  53. <option value=""><?php echo htmlentities(lang('ds_please_choose')); ?>...</option>
  54. <?php if(!(empty($grade_list) || (($grade_list instanceof \think\Collection || $grade_list instanceof \think\Paginator ) && $grade_list->isEmpty()))): if(is_array($grade_list) || $grade_list instanceof \think\Collection || $grade_list instanceof \think\Paginator): if( count($grade_list)==0 ) : echo "" ;else: foreach($grade_list as $k=>$v): ?>
  55. <option value="<?php echo htmlentities($v['storegrade_id']); ?>" <?php if(app('request')->param('grade_id') == $v['storegrade_id']): ?>selected<?php endif; ?>><?php echo htmlentities($v['storegrade_name']); ?></option>
  56. <?php endforeach; endif; else: echo "" ;endif; ?>
  57. <?php endif; ?>
  58. </select>
  59. </dd>
  60. </dl>
  61. <dl>
  62. <dt><?php echo htmlentities(lang('store_user')); ?></dt>
  63. <dd><input type="text" value="<?php echo htmlentities(app('request')->param('owner_and_name')); ?>" name="owner_and_name" id="owner_and_name" class="txt"></dd>
  64. </dl>
  65. <dl>
  66. <dt><?php echo htmlentities(lang('store_type')); ?></dt>
  67. <dd>
  68. <select name="store_state">
  69. <option value=""><?php echo htmlentities(lang('ds_please_choose')); ?>...</option>
  70. <?php if(!(empty($store_state_list) || (($store_state_list instanceof \think\Collection || $store_state_list instanceof \think\Paginator ) && $store_state_list->isEmpty()))): if(is_array($store_state_list) || $store_state_list instanceof \think\Collection || $store_state_list instanceof \think\Paginator): if( count($store_state_list)==0 ) : echo "" ;else: foreach($store_state_list as $k=>$v): ?>
  71. <option value="<?php echo htmlentities($k); ?>" <?php if(app('request')->param('store_state') == $k): ?>selected<?php endif; ?>><?php echo htmlentities($v); ?></option>
  72. <?php endforeach; endif; else: echo "" ;endif; ?>
  73. <?php endif; ?>
  74. </select>
  75. </dd>
  76. </dl>
  77. <dl>
  78. <dt><?php echo htmlentities(lang('ds_store_name')); ?></dt>
  79. <dd><input type="text" value="<?php echo htmlentities(app('request')->param('store_name')); ?>" name="store_name" id="store_name" class="txt"></dd>
  80. </dl>
  81. <div class="btn_group">
  82. <dd><input type="submit" class="btn" value="<?php echo htmlentities(lang('ds_search')); ?>"></dd>
  83. <a href="<?php echo url('Store/store'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  84. </div>
  85. </div>
  86. </form>
  87. <table class="ds-default-table">
  88. <thead>
  89. <tr class="thead">
  90. <th class="w48"><?php echo htmlentities(lang('ds_sort')); ?></th>
  91. <th class="w60"><?php echo htmlentities(lang('ds_store_name')); ?></th>
  92. <th class="w60"><?php echo htmlentities(lang('store_id')); ?></th>
  93. <th class="w60"><?php echo htmlentities(lang('store_user_name')); ?></th>
  94. <th class="w60"><?php echo htmlentities(lang('ds_seller_name')); ?></th>
  95. <th class="w60"><?php echo htmlentities(lang('ds_store_money')); ?></th>
  96. <th class="w60"><?php echo htmlentities(lang('ds_store_deposit')); ?></th>
  97. <th class="align-center w36"><?php echo htmlentities(lang('belongs_level')); ?></th>
  98. <th class="align-center w36"><?php echo htmlentities(lang('period_to')); ?></th>
  99. <th class="align-center w36"><?php echo htmlentities(lang('state')); ?></th>
  100. <th class="align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. <?php if(!(empty($store_list) || (($store_list instanceof \think\Collection || $store_list instanceof \think\Paginator ) && $store_list->isEmpty()))): if(is_array($store_list) || $store_list instanceof \think\Collection || $store_list instanceof \think\Paginator): if( count($store_list)==0 ) : echo "" ;else: foreach($store_list as $k=>$v): ?>
  105. <tr class="hover edit <?php echo get_store_state_classname($v); ?>" id="ds_row_<?php echo htmlentities($v['store_id']); ?>">
  106. <td class="sort"><span class="editable" ds_type="inline_edit" fieldname="store_sort" ajax_branch='store_sort' fieldid="<?php echo htmlentities($v['store_id']); ?>" datatype="pint" maxvalue="255" title="<?php echo htmlentities(lang('ds_editable')); ?>"><?php echo htmlentities($v['store_sort']); ?></span></td>
  107. <td>
  108. <a href="<?php echo url('/home/Store/index',['store_id'=>$v['store_id']]); ?>" target="_blank"><?php echo htmlentities($v['store_name']); ?></a>
  109. </td>
  110. <td><?php echo htmlentities($v['store_id']); ?></td>
  111. <td><?php echo htmlentities($v['member_name']); ?></td>
  112. <td><?php echo htmlentities($v['seller_name']); ?></td>
  113. <td class="align-center"><p><?php echo htmlentities(lang('available')); ?>:&nbsp;<strong class="red"><?php echo htmlentities($v['store_avaliable_money']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></p>
  114. <p><?php echo htmlentities(lang('freeze')); ?>:&nbsp;<strong class="red"><?php echo htmlentities($v['store_freeze_money']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></p>
  115. </td>
  116. <td class="align-center">
  117. <p><strong class="red"><?php echo htmlentities($v['store_avaliable_deposit']); ?></strong>&nbsp;<?php echo htmlentities(lang('ds_yuan')); ?></p>
  118. </td>
  119. <td class="align-center"><?php echo isset($search_grade_list[$v['grade_id']])?$search_grade_list[$v['grade_id']]:'';?></td>
  120. <td class="nowarp align-center"><?php echo $v['store_endtime']?date('Y-m-d', $v['store_endtime']):lang('no_limit');?></td>
  121. <td class="align-center w72"><?php echo $v['store_state']?lang('ds_open'):lang('ds_close');?></td>
  122. <td class="align-center w200">
  123. <a href="javascript:dsLayerOpen('<?php echo url('Store/store_joinin_detail',['member_id'=>$v['member_id']]); ?>','<?php echo htmlentities(lang('ds_view')); ?>-<?php echo htmlentities($v['store_name']); ?>')" href="" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('ds_view')); ?></a>
  124. <a href="<?php echo url('Store/store_edit',['store_id'=>$v['store_id']]); ?>" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  125. <a href="javascript:dsLayerOpen('<?php echo url('Store/store_bind_class',['store_id'=>$v['store_id']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?><?php echo htmlentities(lang('store_bind_class')); ?>')" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('store_bind_class')); ?></a>
  126. <?php if (get_store_state_classname($v) != 'open' && cookie('remindRenewal'.$v['store_id']) == null) {?>
  127. <a href="<?php echo url('Store/remind_renewal',['store_id'=>$v['store_id']]); ?>" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('store_remind_renewal')); ?></a>
  128. <?php }?>
  129. <!--<a href="javascript:dsLayerConfirm('<?php echo url('Store/del',['id'=>$v['store_id'],'member_id'=>$v['member_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>',<?php echo htmlentities($v['store_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>-->
  130. <a href="javascript:dsLayerOpen('<?php echo url('Storemoney/adjust',['store_id'=>$v['store_id']]); ?>','<?php echo htmlentities(lang('adjust_storemoney')); ?>-<?php echo htmlentities($v['store_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('adjust_storemoney')); ?></a>
  131. <a href="javascript:dsLayerOpen('<?php echo url('Storedeposit/adjust',['store_id'=>$v['store_id']]); ?>','<?php echo htmlentities(lang('adjust_storedeposit')); ?>-<?php echo htmlentities($v['store_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('adjust_storedeposit')); ?></a>
  132. </td>
  133. </tr>
  134. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  135. <tr class="no_data">
  136. <td colspan="15"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  137. </tr>
  138. <?php endif; ?>
  139. </tbody>
  140. </table>
  141. <?php echo $show_page; ?>
  142. </div>
  143. <script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>