123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('商品编码')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[product_no]" type="text" data-rule="required;length(~60)" value="{$row.product_no}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('商品标题')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[name]" type="text" data-rule="required;length(~50)" value="{$row.name}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('运营商')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_select('row[brand]', $brands, $row['brand'])}
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('售价')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[amount_base]" type="number" data-rule="required;range(0~)" value="{$row.amount_base}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('库存')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[stock_num]" type="number" data-rule="required;range(0~)" value="{$row.stock_num}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[sort]" type="number" data-rule="required;range(0~)" value="{$row.sort}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea class="form-control" name="row[summary]" type="text" data-rule="required;length(~50)">{$row.summary}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[status]',$status,$row['status'])}
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('年龄限制')}:</label>
- <div class="col-xs-4 col-sm-4">
- <input class="form-control" name="row[min_age]" type="number" data-rule="range(0~)" placeholder="最小年龄" value="{$row.min_age}">
- </div>
- <div class="col-xs-4 col-sm-4">
- <input class="form-control" name="row[max_age]" type="number" data-rule="range(0~)" placeholder="最大年龄" value="{$row.max_age}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('需传身份证')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[card_status]',['否', '是'],$row['card_status'])}
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('选号')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[select_num_status]',['不开启', '开启'],$row['select_num_status'])}
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('选号产品编码')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[product_sku]" type="text" data-rule="length(~60)" value="{$row.product_sku}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('只发货地区')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select title="请选择发货地区模板" name="row[send_template]" class="form-control selectpicker">
- <option value="0">请选择发货地区模板</option>
- {volist name="templates" id="vo"}
- <option value="{$vo.id}" {if condition="$row.send_template eq $vo.id"} selected {/if}>{$vo.name}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('不发货地区')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select title="请选择发货地区模板" name="row[not_send_template]" class="form-control selectpicker">
- <option value="0">请选择发货地区模板</option>
- {volist name="templates" id="vo"}
- <option value="{$vo.id}" {if condition="$row.not_send_template eq $vo.id"} selected {/if}>{$vo.name}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('顶部图片')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-images1" class="form-control" size="50" name="row[images][1]" type="text" value="{$row.info.flow_images[1]}" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-images1" class="btn btn-danger plupload" data-input-id="c-images1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images1"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-images1" class="btn btn-primary fachoose" data-input-id="c-images1" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-images1"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-images1"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('尾部图')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-images2" class="form-control" size="50" name="row[images][2]" type="text" value="{$row.info.flow_images[2]}" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-images2" class="btn btn-danger plupload" data-input-id="c-images2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images2"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-images2" class="btn btn-primary fachoose" data-input-id="c-images2" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-images2"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-images2"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('缩略图')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-logo" class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo}" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-logo"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-logo"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-logo"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('跳转链接')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input class="form-control" name="row[link]" type="text" value="{$row.link}">
- </div>
- </div>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|