123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.ds_storejoin}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
-
- <div class="explanation" id="explanation">
- <div class="title" id="checkZoom">
- <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
- <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
- </div>
- <ul>
- <li>{$Think.lang.storejoin_index_help1}</li>
- <li>{$Think.lang.storejoin_index_help2}</li>
- <li>{$Think.lang.storejoin_index_help3}</li>
- </ul>
- </div>
-
- <form method="post" enctype="multipart/form-data" name="form1">
- <table class="ds-default-table">
- <tbody>
- <tr class="space">
- <th colspan="2"><label for="store_joinin_open">{$Think.lang.store_joinin_open}:</label></th>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
-
- <label class="radio-label">
- <i class="radio-common {if $store_joinin_open==0}selected{/if}">
- <input type="radio" value="0" name="store_joinin_open" {if $store_joinin_open==0}checked="checked"{/if}>
- </i>
- <span>{$Think.lang.store_joinin_open_list[0]}</span>
- </label>
-
- <label class="radio-label">
- <i class="radio-common {if $store_joinin_open==1}selected{/if}">
- <input type="radio" value="1" name="store_joinin_open" {if $store_joinin_open==1}checked="checked"{/if}>
- </i>
- <span>{$Think.lang.store_joinin_open_list[1]}</span>
- </label>
-
- <label class="radio-label">
- <i class="radio-common {if $store_joinin_open==2}selected{/if}">
- <input type="radio" value="2" name="store_joinin_open" {if $store_joinin_open==2}checked="checked"{/if}>
- </i>
- <span>{$Think.lang.store_joinin_open_list[2]}</span>
- </label>
-
- <label class="radio-label">
- <i class="radio-common {if $store_joinin_open==3}selected{/if}">
- <input type="radio" value="3" name="store_joinin_open" {if $store_joinin_open==3}checked="checked"{/if}>
- </i>
- <span>{$Think.lang.store_joinin_open_list[3]}</span>
- </label>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="space">
- <th colspan="2">{$Think.lang.image_upload}:</th>
- </tr>
- {for start="1" end="$size" comparison="elt"}
- <tr class="noborder">
- <td colspan="2"><label>IMG{$i}:</label>
- <a href="JavaScript:void(0);" onclick="clear_pic({$i})"><span>{$Think.lang.image_clear}</span></a></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- {notempty name="pic[$i]"}
- <span class="type-file-show" id="show{$i}"><a data-lightbox="lightbox-image" href="{:ds_get_pic('admin/Storejion',$pic[$i])}">
- <img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png"></a>
- </span>
- {/notempty}
- <span class="type-file-box">
- <input type="text" name="textfield" id="textfield{$i}" class="type-file-text" />
- <input type="button" name="button" id="button{$i}" value="上传" class="type-file-button" />
- <input name="pic{$i}" type="file" class="type-file-file" id="pic{$i}" size="30" hidefocus="true">
- <input type="hidden" name="show_pic{$i}" id="show_pic{$i}" value="{present name='pic[$i]'}{$pic[$i]}{/present}" />
- </span>
- </td>
- <td class="vatop tips"></td>
- </tr>
- {/for}
- <tr class="space">
- <th colspan="2"><label for="show_txt">{$Think.lang.storejoin_show_txt}:</label></th>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><textarea name="show_txt" rows="6" class="tarea" id="show_txt" >{$show_txt}</textarea></td>
- <td class="vatop tips"><span class="vatop rowform"></span></td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="2" >
- <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
- </td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
- <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
- <script type="text/javascript">
- $(function(){
- $('input[class="type-file-file"]').change(function(){
- var pic=$(this).val();
- var extStart=pic.lastIndexOf(".");
- var ext=pic.substring(extStart,pic.lengtd).toUpperCase();
- $(this).parent().find(".type-file-text").val(pic);
- if(ext!=".PNG"&&ext!=".GIF"&&ext!=".JPG"&&ext!=".JPEG"){
- layer.alert("{$Think.lang.default_img_wrong}");
- $(this).attr('value','');
- return false;
- }
- });
- });
- function clear_pic(n){
- $("#show"+n+"").remove();
- $("#textfield"+n+"").val("");
- $("#pic"+n+"").val("");
- $("#show_pic"+n+"").val("");
- }
- </script>
|