ed42e64333c4032b24d76d6205503152.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php /*a:3:{s:68:"/data/web/mall.valimart.net/app/admin/view/upload/default_thumb.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_upload_set')); ?></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="post" enctype="multipart/form-data" name="form1" action="">
  48. <div class="ncap-form-default">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('default_goods_image')); ?></dt>
  51. <dd>
  52. <span class="type-file-show"><img class="show_image" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/preview.png">
  53. <div class="type-file-preview"><img src="<?php echo ds_get_pic(ATTACH_COMMON,$list_config['default_goods_image']); ?>?<?php echo htmlentities(TIMESTAMP); ?>"></div>
  54. </span>
  55. <span class="type-file-box"><input type='text' name='textfield' id='textfield1' class='type-file-text' /><input type='button' name='button' id='button1' value='上传' class='type-file-button' />
  56. <input name="default_goods_image" type="file" class="type-file-file" id="default_goods_image" size="30" hidefocus="true" ds_type="change_default_goods_image">
  57. </span>
  58. <p class="notic"><?php echo htmlentities(lang('suggest_picture_pixel')); ?> 300px X 300px</p>
  59. </dd>
  60. </dl>
  61. <dl>
  62. <dt><?php echo htmlentities(lang('default_store_logo')); ?></dt>
  63. <dd>
  64. <span class="type-file-show"><img class="show_image" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/preview.png">
  65. <div class="type-file-preview"><img src="<?php echo ds_get_pic(ATTACH_COMMON,$list_config['default_store_logo']); ?>?<?php echo htmlentities(TIMESTAMP); ?>"></div>
  66. </span>
  67. <span class="type-file-box"><input type='text' name='textfield' id='textfield2' class='type-file-text' /><input type='button' name='button' id='button1' value='上传' class='type-file-button' />
  68. <input name="default_store_logo" type="file" class="type-file-file" id="default_store_logo" size="30" hidefocus="true" ds_type="change_default_store_logo">
  69. </span>
  70. <p class="notic"><?php echo htmlentities(lang('suggest_picture_pixel')); ?> 200px X 200px</p>
  71. </dd>
  72. </dl>
  73. <dl>
  74. <dt><?php echo htmlentities(lang('default_store_avatar')); ?></dt>
  75. <dd>
  76. <span class="type-file-show"><img class="show_image" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/preview.png">
  77. <div class="type-file-preview"><img src="<?php echo ds_get_pic(ATTACH_COMMON,$list_config['default_store_avatar']); ?>?<?php echo htmlentities(TIMESTAMP); ?>"></div>
  78. </span>
  79. <span class="type-file-box"><input type='text' name='textfield' id='textfield3' class='type-file-text' /><input type='button' name='button' id='button1' value='上传' class='type-file-button' />
  80. <input name="default_store_avatar" type="file" class="type-file-file" id="default_store_avatar" size="30" hidefocus="true" ds_type="change_default_store_avatar">
  81. </span>
  82. <p class="notic">100px * 100px</p>
  83. </dd>
  84. </dl>
  85. <dl>
  86. <dt><?php echo htmlentities(lang('default_user_portrait')); ?></dt>
  87. <dd>
  88. <span class="type-file-show"><img class="show_image" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/preview.png">
  89. <div class="type-file-preview"><img src="<?php echo ds_get_pic(ATTACH_COMMON,$list_config['default_user_portrait']); ?>?<?php echo htmlentities(TIMESTAMP); ?>"></div>
  90. </span>
  91. <span class="type-file-box"><input type='text' name='textfield' id='textfield4' class='type-file-text' /><input type='button' name='button' id='button1' value='上传' class='type-file-button' />
  92. <input name="default_user_portrait" type="file" class="type-file-file" id="default_user_portrait" size="30" hidefocus="true" ds_type="change_default_user_portrait">
  93. </span>
  94. <p class="notic">128px * 128px</p>
  95. </dd>
  96. </dl>
  97. <dl>
  98. <dt></dt>
  99. <dd><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></dd>
  100. </dl>
  101. </div>
  102. </form>
  103. </div>
  104. <script>
  105. $(function(){
  106. $("#default_goods_image").change(function () {
  107. $("#textfield1").val($("#default_goods_image").val());
  108. });
  109. $("#default_store_logo").change(function () {
  110. $("#textfield2").val($("#default_store_logo").val());
  111. });
  112. $("#default_store_avatar").change(function () {
  113. $("#textfield3").val($("#default_store_avatar").val());
  114. });
  115. $("#default_user_portrait").change(function () {
  116. $("#textfield4").val($("#default_user_portrait").val());
  117. });
  118. })
  119. </script>