123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <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)">
- </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)">
- </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)}
- </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~)">
- </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~)">
- </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~)">
- </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)"></textarea>
- </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="最小年龄">
- </div>
- <div class="col-xs-4 col-sm-4">
- <input class="form-control" name="row[max_age]" type="number" data-rule="range(0~)" placeholder="最大年龄">
- </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]',['否', '是'], 0)}
- </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]',['不开启', '开启'], 0)}
- </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)">
- </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}">{$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}">{$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="" 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="" 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="true" 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="true"><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="" 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">
- </div>
- </div>
- <!-- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('APP专属流量图')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-free_app" class="form-control" size="50" name="row[free_app]" type="text" value="" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-free_app" class="btn btn-danger plupload" data-input-id="c-free_app" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-free_app"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-free_app" class="btn btn-primary fachoose" data-input-id="c-free_app" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-free_app"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-free_app"></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-images4" class="form-control" size="50" name="row[images][3]" type="text" value="" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-images4" class="btn btn-danger plupload" data-input-id="c-images4" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images4"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-images4" class="btn btn-primary fachoose" data-input-id="c-images4" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-images4"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-images4"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('APP专属流量图')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-images3" class="form-control" size="50" name="row[images][4]" type="text" value="" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-images3" class="btn btn-danger plupload" data-input-id="c-images3" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images3"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-images3" class="btn btn-primary fachoose" data-input-id="c-images3" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-images3"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-images3"></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-images5" class="form-control" size="50" name="row[images][5]" type="text" value="" data-rule="required">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-avatar-images5" class="btn btn-danger plupload" data-input-id="c-images5" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images5"><i class="fa fa-upload"></i> 上传</button></span>
- <span><button type="button" id="fachoose-avatar-images5" class="btn btn-primary fachoose" data-input-id="c-images5" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
- </div>
- <span class="msg-box n-right" for="c-images5"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-images5"></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" style="width: 500px;">
- <textarea class="form-control editor" name="row[describe]" type="text" data-rule="required" style="height: 500px;"></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" style="width: 500px;">
- <textarea class="form-control editor" name="row[content]" type="text" data-rule="required" style="height: 500px;"></textarea>
- </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>
|