123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label for="c-category_id" class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select id="c-category_id" data-rule="required" class="form-control selectpicker" name="row[category_id]">
- {foreach name="categoryList" item="vo"}
- <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo.name}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="c-flag" class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select id="c-flag" data-rule="" class="form-control selectpicker" multiple="" name="row[flag][]">
- {foreach name="flagList" item="vo"}
- <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label for="c-diyname" class="control-label col-xs-12 col-sm-2">{:__('Diyname')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-diyname" data-rule="required;diyname" class="form-control" name="row[diyname]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label for="c-summary" class="control-label col-xs-12 col-sm-2">{:__('Summary')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea id="c-summary" data-rule="required" class="form-control editor" rows="5" name="row[summary]" cols="50"></textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="c-thumb" class="control-label col-xs-12 col-sm-2">{:__('Thumb')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-thumb" class="form-control" size="50" name="row[thumb]" type="text" value="">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-thumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-preview-id="p-thumb"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-thumb" class="btn btn-primary fachoose" data-multiple="false" data-mimetype="image/*" data-input-id="c-thumb"><i class="fa fa-list-ul"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-thumb"></ul>
- </div>
- </div>
- <div class="form-group">
- <label for="c-image" 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" value="">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" 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-multiple="false" data-mimetype="image/*" data-input-id="c-image"><i class="fa fa-list-ul"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-image"></ul>
- </div>
- </div>
- <div class="form-group">
- <label for="c-seotitle" class="control-label col-xs-12 col-sm-2">{:__('Seotitle')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-seotitle" class="form-control" name="row[seotitle]" type="text" value="" placeholder="为空时将使用文档标题">
- </div>
- </div>
- <div class="form-group">
- <label for="c-keywords" class="control-label col-xs-12 col-sm-2">{:__('Keywords')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-keywords" class="form-control" name="row[keywords]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea id="c-description" class="form-control" name="row[description]"></textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="c-views" class="control-label col-xs-12 col-sm-2">{:__('Views')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-views" data-rule="required" class="form-control" name="row[views]" type="number" value="0">
- </div>
- </div>
- <div class="form-group">
- <label for="c-comments" class="control-label col-xs-12 col-sm-2">{:__('Comments')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-comments" data-rule="required" class="form-control" name="row[comments]" type="number" value="0">
- </div>
- </div>
- <div class="form-group">
- <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" 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">
- {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="normal"}checked{/in} /> {$vo}</label>
- {/foreach}
- </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>
|