123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- {eq name="admin.cid" value="0"}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
- </div>
- </div>
- {else/}
- <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
- {/eq}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"ads"}' class="form-control selectpage" name="row[category_id]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-image"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-image"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Pc_image')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-pc_image" class="form-control" size="50" name="row[pc_image]" type="text">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-pc_image" class="btn btn-danger faupload" data-input-id="c-pc_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-pc_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-pc_image" class="btn btn-primary fachoose" data-input-id="c-pc_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-pc_image"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-pc_image"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('H5_url')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-h5_url" class="form-control" name="row[h5_url]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Pc_url')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-pc_url" class="form-control" name="row[pc_url]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Routine_url')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-routine_url" class="form-control" name="row[routine_url]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-sort" class="form-control" name="row[sort]" type="number" value="0">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <div class="radio">
- {foreach name="statusList" item="vo"}
- <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </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>
|