index.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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_storejoin}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="explanation" id="explanation">
  13. <div class="title" id="checkZoom">
  14. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  15. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  16. </div>
  17. <ul>
  18. <li>{$Think.lang.storejoin_index_help1}</li>
  19. <li>{$Think.lang.storejoin_index_help2}</li>
  20. <li>{$Think.lang.storejoin_index_help3}</li>
  21. </ul>
  22. </div>
  23. <form method="post" enctype="multipart/form-data" name="form1">
  24. <table class="ds-default-table">
  25. <tbody>
  26. <tr class="space">
  27. <th colspan="2"><label for="store_joinin_open">{$Think.lang.store_joinin_open}:</label></th>
  28. </tr>
  29. <tr class="noborder">
  30. <td class="vatop rowform">
  31. <label class="radio-label">
  32. <i class="radio-common {if $store_joinin_open==0}selected{/if}">
  33. <input type="radio" value="0" name="store_joinin_open" {if $store_joinin_open==0}checked="checked"{/if}>
  34. </i>
  35. <span>{$Think.lang.store_joinin_open_list[0]}</span>
  36. </label>
  37. <label class="radio-label">
  38. <i class="radio-common {if $store_joinin_open==1}selected{/if}">
  39. <input type="radio" value="1" name="store_joinin_open" {if $store_joinin_open==1}checked="checked"{/if}>
  40. </i>
  41. <span>{$Think.lang.store_joinin_open_list[1]}</span>
  42. </label>
  43. <label class="radio-label">
  44. <i class="radio-common {if $store_joinin_open==2}selected{/if}">
  45. <input type="radio" value="2" name="store_joinin_open" {if $store_joinin_open==2}checked="checked"{/if}>
  46. </i>
  47. <span>{$Think.lang.store_joinin_open_list[2]}</span>
  48. </label>
  49. <label class="radio-label">
  50. <i class="radio-common {if $store_joinin_open==3}selected{/if}">
  51. <input type="radio" value="3" name="store_joinin_open" {if $store_joinin_open==3}checked="checked"{/if}>
  52. </i>
  53. <span>{$Think.lang.store_joinin_open_list[3]}</span>
  54. </label>
  55. </td>
  56. <td class="vatop tips"></td>
  57. </tr>
  58. <tr class="space">
  59. <th colspan="2">{$Think.lang.image_upload}:</th>
  60. </tr>
  61. {for start="1" end="$size" comparison="elt"}
  62. <tr class="noborder">
  63. <td colspan="2"><label>IMG{$i}:</label>
  64. <a href="JavaScript:void(0);" onclick="clear_pic({$i})"><span>{$Think.lang.image_clear}</span></a></td>
  65. </tr>
  66. <tr class="noborder">
  67. <td class="vatop rowform">
  68. {notempty name="pic[$i]"}
  69. <span class="type-file-show" id="show{$i}"><a data-lightbox="lightbox-image" href="{:ds_get_pic('admin/Storejion',$pic[$i])}">
  70. <img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png"></a>
  71. </span>
  72. {/notempty}
  73. <span class="type-file-box">
  74. <input type="text" name="textfield" id="textfield{$i}" class="type-file-text" />
  75. <input type="button" name="button" id="button{$i}" value="上传" class="type-file-button" />
  76. <input name="pic{$i}" type="file" class="type-file-file" id="pic{$i}" size="30" hidefocus="true">
  77. <input type="hidden" name="show_pic{$i}" id="show_pic{$i}" value="{present name='pic[$i]'}{$pic[$i]}{/present}" />
  78. </span>
  79. </td>
  80. <td class="vatop tips"></td>
  81. </tr>
  82. {/for}
  83. <tr class="space">
  84. <th colspan="2"><label for="show_txt">{$Think.lang.storejoin_show_txt}:</label></th>
  85. </tr>
  86. <tr class="noborder">
  87. <td class="vatop rowform"><textarea name="show_txt" rows="6" class="tarea" id="show_txt" >{$show_txt}</textarea></td>
  88. <td class="vatop tips"><span class="vatop rowform"></span></td>
  89. </tr>
  90. </tbody>
  91. <tfoot>
  92. <tr class="tfoot">
  93. <td colspan="2" >
  94. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  95. </td>
  96. </tr>
  97. </tfoot>
  98. </table>
  99. </form>
  100. </div>
  101. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  102. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  103. <script type="text/javascript">
  104. $(function(){
  105. $('input[class="type-file-file"]').change(function(){
  106. var pic=$(this).val();
  107. var extStart=pic.lastIndexOf(".");
  108. var ext=pic.substring(extStart,pic.lengtd).toUpperCase();
  109. $(this).parent().find(".type-file-text").val(pic);
  110. if(ext!=".PNG"&&ext!=".GIF"&&ext!=".JPG"&&ext!=".JPEG"){
  111. layer.alert("{$Think.lang.default_img_wrong}");
  112. $(this).attr('value','');
  113. return false;
  114. }
  115. });
  116. });
  117. function clear_pic(n){
  118. $("#show"+n+"").remove();
  119. $("#textfield"+n+"").val("");
  120. $("#pic"+n+"").val("");
  121. $("#show_pic"+n+"").val("");
  122. }
  123. </script>