123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <form id="add-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">{:__('Topic_ids')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-topic_ids" data-rule="required" data-source="topic/index" data-multiple="true" class="form-control selectpage" name="row[topic_ids]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-content" data-rule="required" class="form-control" name="row[content]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" value="">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-images"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-images"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Audio_file')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-audio_file" data-rule="required" class="form-control" size="50" name="row[audio_file]" type="text" value="">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-audio_file" class="btn btn-danger faupload" data-input-id="c-audio_file" data-multiple="false" data-preview-id="p-audio_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-audio_file" class="btn btn-primary fachoose" data-input-id="c-audio_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-audio_file"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-audio_file"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Audio_second')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-audio_second" data-rule="required" class="form-control" name="row[audio_second]" type="number" value="0">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
- {foreach name="typeList" item="vo"}
- <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Goodnum')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-goodnum" data-rule="required" class="form-control" name="row[goodnum]" type="number" value="0">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Answernum')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-answernum" data-rule="required" class="form-control" name="row[answernum]" type="number" value="0">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Cityname')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-cityname" data-rule="required" class="form-control" name="row[cityname]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-longitude" data-rule="required" class="form-control" name="row[longitude]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-latitude" data-rule="required" class="form-control" name="row[latitude]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Aite')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-aite" data-rule="required" class="form-control" name="row[aite]" type="text" value="">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Is_public')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-is_public" data-rule="required" class="form-control selectpicker" name="row[is_public]">
- {foreach name="isPublicList" item="vo"}
- <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Toptime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-toptime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[toptime]" type="text" value="{:date('Y-m-d H:i:s')}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Auditstatus')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <div class="radio">
- {foreach name="auditstatusList" item="vo"}
- <label for="row[auditstatus]-{$key}"><input id="row[auditstatus]-{$key}" name="row[auditstatus]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-audittime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:date('Y-m-d H:i:s')}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-auditremark" data-rule="required" class="form-control" name="row[auditremark]" type="text" value="">
- </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>
|