default_thumb.html 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_upload_set}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="post" enctype="multipart/form-data" name="form1" action="">
  13. <div class="ncap-form-default">
  14. <dl>
  15. <dt>{$Think.lang.default_goods_image}</dt>
  16. <dd>
  17. <span class="type-file-show"><img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png">
  18. <div class="type-file-preview"><img src="{:ds_get_pic(ATTACH_COMMON,$list_config.default_goods_image)}?{$Think.TIMESTAMP}"></div>
  19. </span>
  20. <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' />
  21. <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">
  22. </span>
  23. <p class="notic">{$Think.lang.suggest_picture_pixel} 300px X 300px</p>
  24. </dd>
  25. </dl>
  26. <dl>
  27. <dt>{$Think.lang.default_store_logo}</dt>
  28. <dd>
  29. <span class="type-file-show"><img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png">
  30. <div class="type-file-preview"><img src="{:ds_get_pic(ATTACH_COMMON,$list_config.default_store_logo)}?{$Think.TIMESTAMP}"></div>
  31. </span>
  32. <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' />
  33. <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">
  34. </span>
  35. <p class="notic">{$Think.lang.suggest_picture_pixel} 200px X 200px</p>
  36. </dd>
  37. </dl>
  38. <dl>
  39. <dt>{$Think.lang.default_store_avatar}</dt>
  40. <dd>
  41. <span class="type-file-show"><img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png">
  42. <div class="type-file-preview"><img src="{:ds_get_pic(ATTACH_COMMON,$list_config.default_store_avatar)}?{$Think.TIMESTAMP}"></div>
  43. </span>
  44. <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' />
  45. <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">
  46. </span>
  47. <p class="notic">100px * 100px</p>
  48. </dd>
  49. </dl>
  50. <dl>
  51. <dt>{$Think.lang.default_user_portrait}</dt>
  52. <dd>
  53. <span class="type-file-show"><img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png">
  54. <div class="type-file-preview"><img src="{:ds_get_pic(ATTACH_COMMON,$list_config.default_user_portrait)}?{$Think.TIMESTAMP}"></div>
  55. </span>
  56. <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' />
  57. <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">
  58. </span>
  59. <p class="notic">128px * 128px</p>
  60. </dd>
  61. </dl>
  62. <dl>
  63. <dt></dt>
  64. <dd><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></dd>
  65. </dl>
  66. </div>
  67. </form>
  68. </div>
  69. <script>
  70. $(function(){
  71. $("#default_goods_image").change(function () {
  72. $("#textfield1").val($("#default_goods_image").val());
  73. });
  74. $("#default_store_logo").change(function () {
  75. $("#textfield2").val($("#default_store_logo").val());
  76. });
  77. $("#default_store_avatar").change(function () {
  78. $("#textfield3").val($("#default_store_avatar").val());
  79. });
  80. $("#default_user_portrait").change(function () {
  81. $("#textfield4").val($("#default_user_portrait").val());
  82. });
  83. })
  84. </script>