123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <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">{:__('Name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-name" data-rule="required" readonly class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-desc" data-rule="required" class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
- </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" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
- <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,image/webp" 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">{:__('Price')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-price" data-rule="required" readonly class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Signupendtime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-signupendtime" data-rule="required" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signupendtime]" type="text" value="{:$row.signupendtime?datetime($row.signupendtime):''}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-starttime" data-rule="required" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:$row.starttime?datetime($row.starttime):''}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-endtime" data-rule="required" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:$row.endtime?datetime($row.endtime):''}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-num" data-rule="required" readonly class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Activecontent')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea id="c-activecontent" data-rule="required" class="form-control editor" rows="5" name="row[activecontent]" cols="50">{$row.activecontent|htmlentities}</textarea>
- </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"}
- {if $key != 0}
- <label for="row[status]-{$key}"><input id="row[status]-{$key}" {if $row.status == 2 or $row.status == 3}disabled{/if} name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
- {/if}
- {/foreach}
- </div>
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Msgstatus')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <div class="radio">
- {foreach name="msgstatusList" item="vo"}
- <label for="row[msgstatus]-{$key}"><input id="row[msgstatus]-{$key}" name="row[msgstatus]" type="radio" value="{$key}" {in name="key" value="$row.msgstatus"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </div>
- </div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Showstatus')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <div class="radio">
- {foreach name="showstatusList" item="vo"}
- <label for="row[showstatus]-{$key}"><input id="row[showstatus]-{$key}" name="row[showstatus]" type="radio" value="{$key}" {in name="key" value="$row.showstatus"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Is_autoshow')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-is_autoshow" data-rule="required" class="form-control selectpicker" name="row[is_autoshow]">
- {foreach name="isAutoshowList" item="vo"}
- <option value="{$key}" {in name="key" value="$row.is_autoshow"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Showtime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-showtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[showtime]" type="text" value="{:$row.showtime?datetime($row.showtime):''}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Is_banner')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-is_banner" data-rule="required" class="form-control selectpicker" name="row[is_banner]">
- {foreach name="isBannerList" item="vo"}
- <option value="{$key}" {in name="key" value="$row.is_banner"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>-->
- <div class="form-group">
- <label 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="{$row.weigh|htmlentities}">
- </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">
- {if $row.status != 2 and $row.status != 3}
- <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- {/if}
- </div>
- </div>
- </form>
|