514466aa1afb7df70920d81f519f02ac.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php /*a:2:{s:66:"/data/web/pl.valimart.net/app/admin/view/ownshop/ownshop_edit.html";i:1657785098;s:59:"/data/web/pl.valimart.net/app/admin/view/public/header.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="explanation" id="explanation">
  33. <div class="title" id="checkZoom">
  34. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  35. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  36. </div>
  37. <ul>
  38. <li><?php echo htmlentities(lang('ownshop_edit_help1')); ?></li>
  39. <li><?php echo htmlentities(lang('ownshop_edit_help2')); ?></li>
  40. <li><?php echo htmlentities(lang('ownshop_edit_help3')); ?></li>
  41. <li><?php echo htmlentities(lang('ownshop_edit_help4')); ?></li>
  42. </ul>
  43. </div>
  44. <form id="store_form" method="post">
  45. <input type="hidden" name="store_id" value="<?php echo htmlentities($store_array['store_id']); ?>" />
  46. <table class="ds-default-table">
  47. <tbody>
  48. <tr class="noborder">
  49. <td class="required w120"><label class="validation" for="store_name"><?php echo htmlentities(lang('ds_store_name')); ?>:</label></td>
  50. <td class="vatop rowform"><input type="text" value="<?php echo htmlentities($store_array['store_name']); ?>" id="store_name" name="store_name" class="txt" /></td>
  51. <td class="vatop tips"></td>
  52. </tr>
  53. <tr class="noborder">
  54. <td class="required"><label for="store_name"><?php echo htmlentities(lang('store_addtime')); ?>:</label></td>
  55. <td class="vatop rowform"><?php if(!(empty($store_array['store_addtime']) || (($store_array['store_addtime'] instanceof \think\Collection || $store_array['store_addtime'] instanceof \think\Paginator ) && $store_array['store_addtime']->isEmpty()))): ?><?php echo htmlentities(date('Y-m-d',!is_numeric($store_array['store_addtime'])? strtotime($store_array['store_addtime']) : $store_array['store_addtime'])); ?><?php endif; ?></td>
  56. <td class="vatop tips"></td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="required"><label><?php echo htmlentities(lang('ds_member_name')); ?>:</label></td>
  60. <td class="vatop rowform"><?php echo htmlentities($store_array['member_name']); ?></td>
  61. <td class="vatop tips"></td>
  62. </tr>
  63. <tr class="noborder">
  64. <td class="required"><label class="validation" for="seller_name"><?php echo htmlentities(lang('ds_seller_name')); ?>:</label></td>
  65. <td class="vatop rowform"><?php echo htmlentities($store_array['seller_name']); ?></td>
  66. <td class="vatop tips"><?php echo htmlentities(lang('seller_name_tips')); ?></td>
  67. </tr>
  68. </tbody>
  69. <tbody>
  70. <tr class="noborder">
  71. <td class="required"><label><label><?php echo htmlentities(lang('belongs_class')); ?>:</label></label></td>
  72. <td class="vatop rowform">
  73. <select name="storeclass_id">
  74. <option value="0"><?php echo htmlentities(lang('ds_please_choose')); ?>...</option>
  75. <?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): ?>
  76. <option <?php if($store_array['storeclass_id'] == $v['storeclass_id']): ?>selected="selected" <?php endif; ?> value="<?php echo htmlentities($v['storeclass_id']); ?>"><?php echo htmlentities($v['storeclass_name']); ?></option>
  77. <?php endforeach; endif; else: echo "" ;endif; ?>
  78. <?php endif; ?>
  79. </select>
  80. </td>
  81. <td class="vatop tips"></td>
  82. </tr>
  83. </tbody>
  84. <tbody>
  85. <tr class="noborder">
  86. <td class="required"><label><label for="bind_all_gc"><?php echo htmlentities(lang('bind_all_gc')); ?>:</label></label></td>
  87. <td class="vatop rowform onoff">
  88. <label for="bind_all_gc1" class="cb-enable <?php if($store_array['bind_all_gc'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_yes')); ?></span></label>
  89. <label for="bind_all_gc0" class="cb-disable <?php if($store_array['bind_all_gc'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_no')); ?></span></label>
  90. <input id="bind_all_gc1" name="bind_all_gc" <?php if($store_array['bind_all_gc'] == '1'): ?>checked="checked"<?php endif; ?> value="1" type="radio">
  91. <input id="bind_all_gc0" name="bind_all_gc" <?php if($store_array['bind_all_gc'] == '0'): ?>checked="checked"<?php endif; ?> value="0" type="radio">
  92. </td>
  93. <td class="vatop tips"></td>
  94. </tr>
  95. </tbody>
  96. <tbody>
  97. <tr class="noborder">
  98. <td class="required"><label><label for="state"><?php echo htmlentities(lang('store_state')); ?>:</label></label></td>
  99. <td class="vatop rowform onoff"><label for="store_state1" class="cb-enable <?php if($store_array['store_state'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  100. <label for="store_state0" class="cb-disable <?php if($store_array['store_state'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  101. <input id="store_state1" name="store_state" <?php if($store_array['store_state'] == '1'): ?>checked="checked"<?php endif; ?> onclick="$('#tr_store_close_info').hide();" value="1" type="radio">
  102. <input id="store_state0" name="store_state" <?php if($store_array['store_state'] == '0'): ?>checked="checked"<?php endif; ?> onclick="$('#tr_store_close_info').show();" value="0" type="radio">
  103. </td>
  104. <td class="vatop tips"></td>
  105. </tr>
  106. </tbody>
  107. <tbody id="tr_store_close_info">
  108. <tr >
  109. </tr>
  110. <tr class="noborder">
  111. <td class="required"><label for="store_close_info"><?php echo htmlentities(lang('store_close_info')); ?>:</label></td>
  112. <td class="vatop rowform"><textarea name="store_close_info" rows="6" class="tarea" id="store_close_info"><?php echo htmlentities($store_array['store_close_info']); ?></textarea></td>
  113. <td class="vatop tips"></td>
  114. </tr>
  115. </tbody>
  116. <tfoot>
  117. <tr class="tfoot">
  118. <td colspan="15"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
  119. </tr>
  120. </tfoot>
  121. </table>
  122. </form>
  123. </div>
  124. <script type="text/javascript">
  125. $(function () {
  126. $('input[name=store_state][value=<?php echo htmlentities($store_array['store_state']); ?>]').trigger('click');
  127. $('#store_form').validate({
  128. errorPlacement: function (error, element) {
  129. error.appendTo(element.parentsUntil('tr').parent().find('td:last'));
  130. },
  131. rules: {
  132. store_name: {
  133. required: true,
  134. remote: "<?php echo url('Ownshop/ckeck_store_name',['store_id'=>$store_array['store_id']]); ?>"
  135. }
  136. },
  137. messages: {
  138. store_name: {
  139. required: '<?php echo htmlentities(lang('store_name_required')); ?>',
  140. remote: '<?php echo htmlentities(lang('store_name_remote')); ?>'
  141. }
  142. }
  143. });
  144. });
  145. </script>