5525bd5b5a5c0f260abdfb1d2ff5b1db.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?php /*a:3:{s:63:"/data/web/mall.valimart.net/app/admin/view/storejoin/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_storejoin')); ?></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="explanation" id="explanation">
  48. <div class="title" id="checkZoom">
  49. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  50. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  51. </div>
  52. <ul>
  53. <li><?php echo htmlentities(lang('storejoin_index_help1')); ?></li>
  54. <li><?php echo htmlentities(lang('storejoin_index_help2')); ?></li>
  55. <li><?php echo htmlentities(lang('storejoin_index_help3')); ?></li>
  56. </ul>
  57. </div>
  58. <form method="post" enctype="multipart/form-data" name="form1">
  59. <table class="ds-default-table">
  60. <tbody>
  61. <tr class="space">
  62. <th colspan="2"><label for="store_joinin_open"><?php echo htmlentities(lang('store_joinin_open')); ?>:</label></th>
  63. </tr>
  64. <tr class="noborder">
  65. <td class="vatop rowform">
  66. <label class="radio-label">
  67. <i class="radio-common <?php if($store_joinin_open==0): ?>selected<?php endif; ?>">
  68. <input type="radio" value="0" name="store_joinin_open" <?php if($store_joinin_open==0): ?>checked="checked"<?php endif; ?>>
  69. </i>
  70. <span><?php echo htmlentities(lang('store_joinin_open_list')[0]); ?></span>
  71. </label>
  72. <label class="radio-label">
  73. <i class="radio-common <?php if($store_joinin_open==1): ?>selected<?php endif; ?>">
  74. <input type="radio" value="1" name="store_joinin_open" <?php if($store_joinin_open==1): ?>checked="checked"<?php endif; ?>>
  75. </i>
  76. <span><?php echo htmlentities(lang('store_joinin_open_list')[1]); ?></span>
  77. </label>
  78. <label class="radio-label">
  79. <i class="radio-common <?php if($store_joinin_open==2): ?>selected<?php endif; ?>">
  80. <input type="radio" value="2" name="store_joinin_open" <?php if($store_joinin_open==2): ?>checked="checked"<?php endif; ?>>
  81. </i>
  82. <span><?php echo htmlentities(lang('store_joinin_open_list')[2]); ?></span>
  83. </label>
  84. <label class="radio-label">
  85. <i class="radio-common <?php if($store_joinin_open==3): ?>selected<?php endif; ?>">
  86. <input type="radio" value="3" name="store_joinin_open" <?php if($store_joinin_open==3): ?>checked="checked"<?php endif; ?>>
  87. </i>
  88. <span><?php echo htmlentities(lang('store_joinin_open_list')[3]); ?></span>
  89. </label>
  90. </td>
  91. <td class="vatop tips"></td>
  92. </tr>
  93. <tr class="space">
  94. <th colspan="2"><?php echo htmlentities(lang('image_upload')); ?>:</th>
  95. </tr>
  96. <?php $__FOR_START_911576914__=1;$__FOR_END_911576914__=$size;for($i=$__FOR_START_911576914__;$i <= $__FOR_END_911576914__;$i+=1){ ?>
  97. <tr class="noborder">
  98. <td colspan="2"><label>IMG<?php echo htmlentities($i); ?>:</label>
  99. <a href="JavaScript:void(0);" onclick="clear_pic(<?php echo htmlentities($i); ?>)"><span><?php echo htmlentities(lang('image_clear')); ?></span></a></td>
  100. </tr>
  101. <tr class="noborder">
  102. <td class="vatop rowform">
  103. <?php if(!(empty($pic[$i]) || (($pic[$i] instanceof \think\Collection || $pic[$i] instanceof \think\Paginator ) && $pic[$i]->isEmpty()))): ?>
  104. <span class="type-file-show" id="show<?php echo htmlentities($i); ?>"><a data-lightbox="lightbox-image" href="<?php echo ds_get_pic('admin/Storejion',$pic[$i]); ?>">
  105. <img class="show_image" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/preview.png"></a>
  106. </span>
  107. <?php endif; ?>
  108. <span class="type-file-box">
  109. <input type="text" name="textfield" id="textfield<?php echo htmlentities($i); ?>" class="type-file-text" />
  110. <input type="button" name="button" id="button<?php echo htmlentities($i); ?>" value="上传" class="type-file-button" />
  111. <input name="pic<?php echo htmlentities($i); ?>" type="file" class="type-file-file" id="pic<?php echo htmlentities($i); ?>" size="30" hidefocus="true">
  112. <input type="hidden" name="show_pic<?php echo htmlentities($i); ?>" id="show_pic<?php echo htmlentities($i); ?>" value="<?php if(isset($pic[$i])): ?><?php echo htmlentities($pic[$i]); ?><?php endif; ?>" />
  113. </span>
  114. </td>
  115. <td class="vatop tips"></td>
  116. </tr>
  117. <?php } ?>
  118. <tr class="space">
  119. <th colspan="2"><label for="show_txt"><?php echo htmlentities(lang('storejoin_show_txt')); ?>:</label></th>
  120. </tr>
  121. <tr class="noborder">
  122. <td class="vatop rowform"><textarea name="show_txt" rows="6" class="tarea" id="show_txt" ><?php echo htmlentities($show_txt); ?></textarea></td>
  123. <td class="vatop tips"><span class="vatop rowform"></span></td>
  124. </tr>
  125. </tbody>
  126. <tfoot>
  127. <tr class="tfoot">
  128. <td colspan="2" >
  129. <input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/>
  130. </td>
  131. </tr>
  132. </tfoot>
  133. </table>
  134. </form>
  135. </div>
  136. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.lightbox/css/lightbox.min.css">
  137. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.lightbox/js/lightbox.min.js"></script>
  138. <script type="text/javascript">
  139. $(function(){
  140. $('input[class="type-file-file"]').change(function(){
  141. var pic=$(this).val();
  142. var extStart=pic.lastIndexOf(".");
  143. var ext=pic.substring(extStart,pic.lengtd).toUpperCase();
  144. $(this).parent().find(".type-file-text").val(pic);
  145. if(ext!=".PNG"&&ext!=".GIF"&&ext!=".JPG"&&ext!=".JPEG"){
  146. layer.alert("<?php echo htmlentities(lang('default_img_wrong')); ?>");
  147. $(this).attr('value','');
  148. return false;
  149. }
  150. });
  151. });
  152. function clear_pic(n){
  153. $("#show"+n+"").remove();
  154. $("#textfield"+n+"").val("");
  155. $("#pic"+n+"").val("");
  156. $("#show_pic"+n+"").val("");
  157. }
  158. </script>