<{capture name="header"}> <{lang_script src="lang.js" app='b2c'}> <{script src="goodseditor.js" app="b2c"}> <{script src="coms/pager.js" app='desktop'}> <{script src="coms/datapicker.js" app='desktop'}> <{/capture}>

### <{t}>基本信息<{/t}>

*<{t}>赠品名称：<{/t}> | <{input type="text" id="id_name" name="gift[name]" required="true" vtype='required' value=$gift.name }> <{if !$goods.goods_id}> <{input type="object" object=goods breakpoint=1 name=$name app=b2c cols="name" filter=$gift_filter return_url="{$return_url}" callback='_callback_gift' cols="name,spec_info" value=$value textcol="name" view="b2c:admin/goods/rows.html"}> <{help}><{t}>您可以选择已有商品作为赠品<{/t}><{/help}> <{/if}>
<{t}>赠品编号：<{/t}> | <{input type="hidden" name="goods[old_bn]" id="id_old_bn" value=$goods.bn }> disabled="disabled" <{/if}> >
<{t}>所属分类：<{/t}> |
<{t}>相册<{/t}> | <{if $goods.goods_type=='gift' || $goods.goods_type==''}> <{button app="desktop" class="btn-upload" label=$___gift="添加商品图片"|t:'gift' id="id_upload_img_button" icon="image_new.gif"}> <{include file="admin/goods/detail/img/gimage_goods.html" app="b2c"}> <{else}> <{if $goods.image_default_id}> <{foreach from=$goods.images item=image}> " /> <{/foreach}> <{/if}> <{/if}>
<{t}>发布：<{/t}> | checked<{/if}> ><{t}>是<{/t}> checked<{/if}> ><{t}>否<{/t}> <{help}><{t}>是否可通过前台链接直接浏览<{/t}><{/help}>
*<{t}>所需积分：<{/t}> | <{input type="text" value=$gift.consume_score name="gift[consume_score]" size="4" maxlength="25" vtype='required&&digits' }><{t}>注：赠品发布时、可用积分兑换。<{/t}>
*<{t}>兑换起始时间：<{/t}> | <{input type="time" name="from_time" value=$gift.from_time vtype="required"}>
*<{t}>兑换终止时间：<{/t}> | <{input type="time" name="to_time" value=$gift.to_time vtype="required" }>
<{t}>允许兑换的会员等级：<{/t}> | <{foreach from=$member_level item=ml name=name}> vtype="requiredcheckbox"<{/if}> <{if ($gift.member_lv_ids != '') && in_array($ml.member_lv_id,$gift.member_lv_ids)}>checked<{/if}>/><{$ml.name}> <{/foreach}>
<{t}>排序：<{/t}> | <{input type="text" name="gift[order]" value=$gift.order size=4 }>
*<{t}>每单限购数量：<{/t}> | <{input type="text" name="gift[max_buy_store]" value=$gift.max_buy_store size="4" vtype="required&&digits" }>
<{t}>描述：<{/t}> | <{input type="textarea" id="id_brief" value=$gift.brief name="gift[brief]" style="width:80%" class="inputstyle" rows="6" max="255" }> <{t}>简短的商品介绍,请不要超过70个字<{/t}>

<{if $goods.goods_type!='gift' && $goods.goods_type!=''}> <{include file="admin/gift/spec/spec.html" app="gift"}> <{else}> <{include file="admin/gift/spec/nospec.html" app="gift"}> <{/if}>
<{if $goods.goods_type=='gift' || $goods.goods_type==''}>

<{t}>详细介绍<{/t}> | <{input type="html" name="goods[description]" class="" value=$goods.description includeBase=true}>

<{/if}>
<{capture name='footbar'}>

<{assign var="message" value="关 闭"}><{assign var="message1" value=$___gift="确定退出?"|t:'gift'}> <{button label=$___gift="保存并关闭窗口"|t:'gift' class="btn-primary" onclick="subGoodsForm(event,2)"}> <{button label=$___gift="保存当前"|t:'gift' class="btn-primary" onclick="subGoodsForm(event,3)"}> <{button label=$___gift=$message|t:'gift' class="btn-secondary" onclick="if(confirm('{$message1}'))window.close()"}>

<{/capture}>