123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <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">{:__('User_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-user_id" data-rule="required" disabled data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
- </div>
- </div>
- <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" 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">{:__('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="{$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">{:__('Contacts')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-contacts" class="form-control" name="row[contacts]" type="text" value="{$row.contacts|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-province_name" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-city_name" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Area_name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-area_name" class="form-control" name="row[area_name]" type="text" value="{$row.area_name|htmlentities}">
- </div>
- </div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Province_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-province_id" data-rule="required" data-source="shopro_area/index" data-params='{"custom[level]":1}' class="form-control selectpage" name="row[province_id]" type="text" value="{$row.province_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('City_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-city_id" data-rule="required" data-source="shopro_area/index" data-params='{"custom[level]":2}' class="form-control selectpage" name="row[city_id]" type="text" value="{$row.city_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Area_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-area_id" data-rule="required" data-source="shopro_area/index" data-params='{"custom[level]":3}' class="form-control selectpage" name="row[area_id]" type="text" value="{$row.area_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Full_address')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-full_address" class="form-control" name="row[full_address]" type="text" value="{$row.full_address|htmlentities}">
- </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">
- <button type="button" data-toggle="addresspicker" class="btn btn-primary btn-embossed disabled" data-lng-id="c-longitude" data-lat-id="c-latitude">获取位置</button>
- </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" class="form-control" step="0.000001" name="row[longitude]" type="number" value="{$row.longitude|htmlentities}">
- </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" class="form-control" step="0.000001" name="row[latitude]" type="number" value="{$row.latitude|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Aptitude_images')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-aptitude_images" data-rule="required" class="form-control" size="50" name="row[aptitude_images]" type="text" value="{$row.aptitude_images|htmlentities}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-aptitude_images" class="btn btn-danger faupload" data-input-id="c-aptitude_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-aptitude_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-aptitude_images" class="btn btn-primary fachoose" data-input-id="c-aptitude_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-aptitude_images"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-aptitude_images"></ul>
- </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="$row.status"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </div>
- </div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Is_open')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-is_open" data-rule="required" class="form-control selectpicker" name="row[is_open]">
- {foreach name="isOpenList" item="vo"}
- <option value="{$key}" {in name="key" value="$row.is_open"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Open_hours')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-open_hours" class="form-control" name="row[open_hours]" type="text" value="{$row.open_hours|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Agent_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-agent_id" data-source="auth/admin/index" class="form-control selectpage" data-field="username" data-format-item="{username}-{nickname}" name="row[agent_id]" type="text" value="{$row.agent_id|htmlentities}">
- </div>
- </div>
- <!--待审核-->
- <input type="hidden" name="row[status]" value="0">
- <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-primary btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|