init commit

This commit is contained in:
2026-03-17 09:56:00 +08:00
commit e2c8ae752d
6827 changed files with 1211784 additions and 0 deletions

View File

@@ -0,0 +1,353 @@
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}" {if $vo['field'] == 'mobile'}readonly="readonly"{/if}>
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}" disabled>
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}"></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[person][address][address]" type="text" value="{$vo.value.address|htmlentities}">
<input id="c-lat" name="row[person][address][latitude]" type="hidden" value="{$vo.value.latitude|htmlentities}">
<input id="c-lng" name="row[person][address][longitude]" type="hidden" value="{$vo.value.longitude|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[person][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[person][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[person][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[person][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
{volist name="company_fieldset" id="vo"}
{if $vo['type'] == 'text'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[company][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[company][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[company][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if in_array($vo['field'],array('avatar','company_logo'))}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if in_array($vo['field'],array('avatar','company_logo'))}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'company_introduction'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[company][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[company][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}

View File

@@ -0,0 +1,63 @@
<style>
.star {
color: red;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{if $row.type == '1'}
{include file="wdsxh/member/apply/apply/person" /}
{elseif $row.type == '2'}
{include file="wdsxh/member/apply/apply/company" /}
{else /}
{include file="wdsxh/member/apply/apply/organize" /}
{/if}
{if $row['state'] == 1}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
<label for="row[state]-2"><input id="row[state]-2" name="row[state]" type="radio" value="2"> 已通过</label>
<label for="row[state]-3"><input id="row[state]-3" name="row[state]" type="radio" value="3"> 已驳回</label>
</div>
</div>
</div>
<div class="form-group hide reject">
<label class="control-label col-xs-12 col-sm-2">{:__('Reject')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-reject" class="form-control" name="row[reject]" type="text" value="{$row.reject|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">
<button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
</div>
</div>
{/if}
{if $row['state'] == 2 && !empty($row['pay'])}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">缴费方式:</label>
<div class="col-xs-12 col-sm-8">
<input class="form-control" type="text" value="{$row.pay.pay_method == '2' ? '微信支付' : '线下缴费'}" disabled>
</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">
<input class="form-control" type="text" value="{$row.pay.fees|htmlentities}" disabled>
</div>
</div>
{/if}
{if $row['pay_method'] == 3 && !empty($row['pay_voucher'])}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">缴费凭证:</label>
<div class="col-xs-12 col-sm-8">
<img style="width: 100%;height: 100%;" src="{$row.pay_voucher|htmlentities}">
</div>
</div>
{/if}
</form>

View File

@@ -0,0 +1,45 @@
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{if $row.type == '1'}
{include file="wdsxh/member/apply/apply/person" /}
{elseif $row.type == '2'}
{include file="wdsxh/member/apply/apply/company" /}
{else /}
{include file="wdsxh/member/apply/apply/organize" /}
{/if}
{if $row['state'] == 1}
{if $row['child_state'] == '4' && !empty($row['pay_voucher'])}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">支付凭证:</label>
<div class="col-xs-12 col-sm-8">
<img style="width: 500px;" src="{$row['pay_voucher']}">
</div>
</div>
{/if}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
<label for="row[state]-2"><input id="row[state]-2" name="row[state]" type="radio" value="2"> 已通过</label>
<label for="row[state]-3"><input id="row[state]-3" name="row[state]" type="radio" value="3"> 已驳回</label>
</div>
</div>
</div>
<div class="form-group hide reject">
<label class="control-label col-xs-12 col-sm-2">{:__('Reject')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-reject" class="form-control" name="row[reject]" type="text" value="{$row.reject|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">
<button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
</div>
</div>
{/if}
</form>

View File

@@ -0,0 +1,356 @@
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}" {if $vo['field'] == 'mobile'}readonly="readonly"{/if}>
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}" disabled>
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}"></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[person][address][address]" type="text" value="{$vo.value.address|htmlentities}">
<input id="c-lat" name="row[person][address][latitude]" type="hidden" value="{$vo.value.latitude|htmlentities}">
<input id="c-lng" name="row[person][address][longitude]" type="hidden" value="{$vo.value.longitude|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[person][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[person][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[person][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[person][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
{volist name="organize_fieldset" id="vo"}
{if $vo['type'] == 'text'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[organize][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[organize][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[organize][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if in_array($vo['field'],array('avatar','organize_logo'))}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if in_array($vo['field'],array('avatar','organize_logo'))}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'organize_introduction'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[organize][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[organize][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}

View File

@@ -0,0 +1,201 @@
{volist name="row.custom_content" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}" {if $vo['field'] == 'mobile'}readonly="readonly"{/if}>
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}" disabled>
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}"></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[custom_content][address][address]" type="text" value="{$vo.value.address|htmlentities}">
<input id="c-lat" name="row[custom_content][address][latitude]" type="hidden" value="{$vo.value.latitude|htmlentities}">
<input id="c-lng" name="row[custom_content][address][longitude]" type="hidden" value="{$vo.value.longitude|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}

View File

@@ -0,0 +1,36 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
{:build_heading(null,FALSE)}
<ul class="nav nav-tabs" data-field="state">
<li class="{:$Think.get.state === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
{foreach name="stateList" item="vo"}
<li class="{:$Think.get.state === (string)$key ? 'active' : ''}"><a href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">{$vo|htmlentities}</a></li>
{/foreach}
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-examine="{:$auth->check('wdsxh/member/apply/apply/examine')}"
data-operate-del="{:$auth->check('wdsxh/member/apply/apply/del')}"
data-operate-details="{:$auth->check('wdsxh/member/apply/apply/examine')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
{:build_heading(null,FALSE)}
<ul class="nav nav-tabs" data-field="state">
<li class="{:$Think.get.state === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
{foreach name="stateList" item="vo"}
<li class="{:$Think.get.state === (string)$key ? 'active' : ''}"><a href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">{$vo|htmlentities}</a></li>
{/foreach}
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-examine="{:$auth->check('wdsxh/member/apply/apply/examine')}"
data-operate-del="{:$auth->check('wdsxh/member/apply/apply/del')}"
data-operate-details="{:$auth->check('wdsxh/member/apply/apply/examine')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
{:build_heading(null,FALSE)}
<ul class="nav nav-tabs" data-field="state">
<li class="{:$Think.get.state === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
{foreach name="stateList" item="vo"}
<li class="{:$Think.get.state === (string)$key ? 'active' : ''}"><a href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">{$vo|htmlentities}</a></li>
{/foreach}
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-examine="{:$auth->check('wdsxh/member/apply/apply/examine')}"
data-operate-del="{:$auth->check('wdsxh/member/apply/apply/del')}"
data-operate-details="{:$auth->check('wdsxh/member/apply/apply/examine')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
<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">{:__('Member_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-member_id" data-rule="required" data-source="wdsxh/member/member/index" class="form-control selectpage" name="row[member_id]" type="text" value="">
</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" data-rule="required" class="form-control" name="row[name]" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-number" data-rule="required" class="form-control" name="row[number]" type="text">
</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">
<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 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>
</div>
</div>
</form>

View File

@@ -0,0 +1,41 @@
<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">{:__('Member_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-member_id" data-rule="required" data-source="wdsxh/member/member/index" class="form-control selectpage" name="row[member_id]" type="text" value="{$row.member_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" data-rule="required" 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">{:__('Number')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-number" data-rule="required" class="form-control" name="row[number]" type="text" value="{$row.number|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 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>
</div>
</div>
</form>

View File

@@ -0,0 +1,24 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wdsxh/member/cert/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/cert/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/member/cert/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/cert/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/cert/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,393 @@
<style>
.star {
color: red;
}
</style>
<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">用户信息:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-user" readonly class="form-control" size="50" name="user" type="text">
<input id="c-uid" readonly name="row[wechat_id]" type="hidden">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="select-user" class="btn btn-info" ><i class="fa fa-user-plus"></i> 选择用户</button></span>
</div>
<span class="msg-box n-right" for="c-user"></span>
</div>
</div>
</div>
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[custom_content][{$vo['field']}]" type="text" value=""></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[custom_content][address][address]" type="text" value="">
<input id="c-lat" name="row[custom_content][address][latitude]" type="hidden" value="">
<input id="c-lng" name="row[custom_content][address][longitude]" type="hidden" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}">{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50"></textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
{volist name="company_fieldset" id="vo"}
{if $vo['type'] == 'text'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}">{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if in_array($vo['field'],array('avatar','company_logo'))}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if in_array($vo['field'],array('avatar','company_logo'))}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'company_introduction'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50"></textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Join_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-join_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[join_time]" type="text" value="{:date('Y-m-d')}">
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="normal"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,402 @@
<style>
.star {
color: red;
}
</style>
<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">用户信息:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-user" class="form-control" size="50" name="user" type="text" value="{if !empty($row.wechat)}{$row.wechat.nickname|htmlentities}{/if}">
<input id="c-uid" name="row[wechat_id]" type="hidden" value="{$row.wechat_id|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="select-user" class="btn btn-info" {if $row.wechat_id}disabled{/if}><i class="fa fa-user-plus"></i> 选择用户</button></span>
</div>
<span class="msg-box n-right" for="c-user"></span>
</div>
</div>
</div>
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}"></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[person][address][address]" type="text" value="{$vo.value.address|htmlentities}">
<input id="c-lat" name="row[person][address][latitude]" type="hidden" value="{$vo.value.latitude|htmlentities}">
<input id="c-lng" name="row[person][address][longitude]" type="hidden" value="{$vo.value.longitude|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[person][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[person][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[person][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[person][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
{volist name="company_fieldset" id="vo"}
{if $vo['type'] == 'text'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[company][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[company][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[company][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if in_array($vo['field'],array('avatar','company_logo'))}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if in_array($vo['field'],array('avatar','company_logo'))}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[company][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'company_introduction'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[company][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[company][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[company][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Join_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-join_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[join_time]" type="text" value="{$row.join_time|htmlentities}" {if $expire_time_type == '2'}disabled{/if}>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Expire_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-expire_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[expire_time]" type="text" value="{$row.expire_time|htmlentities}" disabled>
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,49 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wdsxh/member/company/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/company/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/member/company/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
<a href="javascript:;" class="btn btn-success btn-export {:$auth->check('wdsxh/member/company/export')?'':'hide'}" title="{:__('导出会员')}" id="btn-export-file"><i class="fa fa-download"></i> {:__('导出会员')}</a>
<a href="javascript:;" class="btn btn-success import_template {:$auth->check('wdsxh/member/company/import_template')?'':'hide'}" title="{:__('快速导入模板')}"><i class="fa fa-download"></i>快速导入模板</a>
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('wdsxh/member/company/import')?'':'hide'}" title="导入会员" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> 导入会员</a>
<div class="dropdown btn-group {:$auth->check('wdsxh/member/company/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
{foreach name="statusList" item="vo"}
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key|htmlentities}">{:__('Set status to ' . $key)}</a></li>
{/foreach}
</ul>
</div>
<a href="javascript:;" class="btn btn-info btn-member-notification btn-disabled disabled {:$auth->check('wdsxh/member/company/send_notification')?'':'hide'}" title="会员消息通知"><i class="fa fa-bell"></i> 会员消息通知</a>
<a href="wdsxh/message/message_notification?type=2" class="btn btn-info btn-dialog bg-olive {:$auth->check('wdsxh/message/message_notification')?'':'hide'}" title="消息列表" data-area=["100%","100%"] >消息列表</a>
</div>
<!-- 新增导入须知 -->
<div style="background:#fff8e1; border:1px solid #ffeeba; padding:15px; margin:10px 0; border-radius:4px; color:#856404;">
<strong style="display:block; margin-bottom:8px;">❗ 导入须知:</strong>
<ol style="margin:0; padding-left:20px;">
<li style="margin-bottom:5px;">导入会员只能使用快速模版导入,下载快速导入模版,进行会员导入</li>
</ol>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/company/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/company/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<form id="notification-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" name="ids" value="{$ids|htmlentities}" />
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">通知标题<span class="text-danger">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<input type="text" class="form-control" name="title" placeholder="请输入通知标题" data-rule="required" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">通知内容<span class="text-danger">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control editor" name="content" rows="10" placeholder="请输入通知内容" data-rule="required"></textarea>
</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-primary btn-embossed disabled">确定发送</button>
<button type="reset" class="btn btn-default btn-embossed">重置</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,48 @@
<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">{:__('Name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-icon" data-rule="required" class="form-control" size="50" name="row[icon]" type="text">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-icon" class="btn btn-danger faupload" data-input-id="c-icon" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-icon"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-icon" class="btn btn-primary fachoose" data-input-id="c-icon" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-icon"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-icon"></ul>
</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="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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="1"}checked{/in} /> {$vo|htmlentities}</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>

View File

@@ -0,0 +1,48 @@
<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" 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">{:__('Icon')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-icon" data-rule="required" class="form-control" size="50" name="row[icon]" type="text" value="{$row.icon|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-icon" class="btn btn-danger faupload" data-input-id="c-icon" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-icon"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-icon" class="btn btn-primary fachoose" data-input-id="c-icon" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-icon"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-icon"></ul>
</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">
<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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</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>

View File

@@ -0,0 +1,46 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
{:build_heading(null,FALSE)}
<ul class="nav nav-tabs" data-field="status">
<li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
{foreach name="statusList" item="vo"}
<li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">{$vo|htmlentities}</a></li>
{/foreach}
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wdsxh/member/industry_category/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/industry_category/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/member/industry_category/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
<div class="dropdown btn-group {:$auth->check('wdsxh/member/industry_category/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
{foreach name="statusList" item="vo"}
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key|htmlentities}">{:__('Set status to ' . $key)}</a></li>
{/foreach}
</ul>
</div>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/industry_category/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/industry_category/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,181 @@
<style>
.select-readonly {
background: #eee;
cursor: no-drop;
}
.select-readonly option {
display: none;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="alert alert-danger-light" style="margin-bottom:10px;">
<b>温馨提示:</b><br>
<b>1.请在正式使用小程序前,确定入会信息;</b><br>
<b>2.请勿频繁修改入会信息,否则会导致前后入会会员信息不一致;</b><br>
<b>3.导出表格,取最新自定义字段作为表头;</b><br>
<b>4.如果批量导入会员,选择最新自定义的字段作为表头。</b>
</div>
<div class="alert">
<b>{:__('Status')}:</b>
<b>
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
<div>备注:是否展示启用企业入会类型</div>
</b>
</div>
<div class="label label-danger">注意:用户登记信息所有为必填字段,“字段名”必须为小写英文,且保证唯一性。单选、多选、下拉字段多个配置项之间用英文逗号“,”分割。</div>
<div>个人信息</div>
<table class="table table-responsive fieldlist" data-name="person" data-template="person" data-tag="tr">
<tr>
<th>入会是否展示</th>
<th>是否必填</th>
<th>详情是否展示</th>
<th>字段类型</th>
<th>标签名称</th>
<th>字段名(小写英文字母,特殊字符可以用下划线_代替)</th>
<th>提示信息/配置项</th>
<th></th>
</tr>
<tr>
<td colspan="6"><a href="javascript:;" class="btn btn-sm btn-info btn-append"><i class="fa fa-plus"></i> 追加</a></td>
</tr>
<textarea name="person" class="form-control hide" cols="30" rows="5">{$person_fieldset|htmlentities}</textarea>
</table>
<!--定义模板-->
<script type="text/html" id="person">
<tr class="form-inline">
<td>
<select name="row[<%=name%>][<%=index%>][apply_show]" class="form-control <%if (row.field == "name" || row.field == "mobile" || row.field == "member_level_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.apply_show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.apply_show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][required]" class="form-control <%if (row.field == "name" || row.field == "mobile" || row.field == "member_level_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.required=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.required=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][show]" class="form-control <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "industry_category_id" || row.field == "address" || row.type == "file") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][type]" class="form-control <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "address" || row.field == "cert" || row.field == "company_position" || row.field == "industry_category_id" || row.field == "native_place" || row.field == "introduce_content") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="text" <%if (row.type=="text"){ %>selected<% } %>>文本字段</option>
<option value="number" <%if (row.type=="number"){ %>selected<% } %> >数字字段</option>
<option value="radio" <%if (row.type=="radio"){ %>selected<% } %>>单选按钮</option>
<option value="checkbox" <%if (row.type=="checkbox"){ %>selected<% } %>>复选按钮</option>
<option value="select" <%if (row.type=="select"){ %>selected<% } %>>下拉列表</option>
<option value="date" <%if (row.type=="date"){ %>selected<% } %>>日期字段</option>
<option value="time" <%if (row.type=="time"){ %>selected<% } %>>时间字段</option>
<option value="datetime" <%if (row.type=="datetime"){ %>selected<% } %>>日期时间</option>
<option value="textarea" <%if (row.type=="textarea"){ %>selected<% } %>>文本域</option>
<option value="image" <%if (row.type=="image"){ %>selected<% } %>>图片上传</option>
<option value="video" <%if (row.type=="video"){ %>selected<% } %>>视频上传</option>
<option value="cert" <%if (row.type=="cert"){ %>selected<% } %>>证书上传</option>
<option value="file" <%if (row.type=="file"){ %>selected<% } %>>文件上传</option>
</select>
</td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][label]" class="form-control" value="<%=row['label']%>" size="30" <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "address" || row.field == "cert" || row.field == "company_position" || row.field == "industry_category_id" || row.field == "native_place" || row.field == "introduce_content") { %> readonly <% } %> ></td>
<td><input type="text" <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "address" || row.field == "cert" || row.field == "company_position" || row.field == "industry_category_id" || row.field == "native_place" || row.field == "introduce_content") { %> readonly <% } %> data-rule="required;" style="text-transform:lowercase" name="row[<%=name%>][<%=index%>][field]" class="form-control" value="<%=row['field']%>" size="30"></td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][option]" class="form-control" value="<%=row['option']%>" size="30"></td>
<td> <%if (row.field != "name" && row.field != "avatar" && row.field != "mobile" && row.field != "member_level_id" && row.field != "address" && row.field != "cert" && row.field != "company_position" && row.field != "industry_category_id" && row.field != "native_place" && row.field != "introduce_content") { %> <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <% } %><span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span></td>
</tr>
</script>
<div>企业信息</div>
<table class="table table-responsive fieldlist" data-name="company" data-template="company" data-tag="tr">
<tr>
<th>入会是否展示</th>
<th>是否必填</th>
<th>详情是否展示</th>
<th>字段类型</th>
<th>标签名称</th>
<th>字段名(小写英文字母,特殊字符可以用下划线_代替)</th>
<th>提示信息/配置项</th>
<th></th>
</tr>
<tr>
<td colspan="6"><a href="javascript:;" class="btn btn-sm btn-info btn-append"><i class="fa fa-plus"></i> 追加</a></td>
</tr>
<textarea name="company" class="form-control hide" cols="30" rows="5">{$company_fieldset|htmlentities}</textarea>
</table>
<!--定义模板-->
<script type="text/html" id="company">
<tr class="form-inline">
<td>
<select name="row[<%=name%>][<%=index%>][apply_show]" class="form-control <%if (row.field == "company_name") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.apply_show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.apply_show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][required]" class="form-control <%if (row.field == "company_name") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.required=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.required=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][show]" class="form-control <%if (row.field == "company_name") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][type]" class="form-control <%if (row.field == "company_name" || row.field == "company_logo" || row.field == "industry_category_id" || row.field == "company_introduction") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="text" <%if (row.type=="text"){ %>selected<% } %>>文本字段</option>
<option value="number" <%if (row.type=="number"){ %>selected<% } %> >数字字段</option>
<option value="radio" <%if (row.type=="radio"){ %>selected<% } %>>单选按钮</option>
<option value="checkbox" <%if (row.type=="checkbox"){ %>selected<% } %>>复选按钮</option>
<option value="select" <%if (row.type=="select"){ %>selected<% } %>>下拉列表</option>
<option value="date" <%if (row.type=="date"){ %>selected<% } %>>日期字段</option>
<option value="time" <%if (row.type=="time"){ %>selected<% } %>>时间字段</option>
<option value="datetime" <%if (row.type=="datetime"){ %>selected<% } %>>日期时间</option>
<option value="textarea" <%if (row.type=="textarea"){ %>selected<% } %>>文本域</option>
<option value="image" <%if (row.type=="image"){ %>selected<% } %>>图片上传</option>
<option value="video" <%if (row.type=="video"){ %>selected<% } %>>视频上传</option>
<option value="cert" <%if (row.type=="cert"){ %>selected<% } %>>证书上传</option>
<option value="file" <%if (row.type=="file"){ %>selected<% } %>>文件上传</option>
</select>
</td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][label]" class="form-control" value="<%=row['label']%>" size="30" <%if (row.field == "company_name" || row.field == "company_logo" || row.field == "industry_category_id" || row.field == "company_introduction") { %> readonly <% } %> ></td>
<td><input type="text" <%if (row.field == "company_name" || row.field == "company_logo" || row.field == "industry_category_id" || row.field == "company_introduction") { %> readonly <% } %> data-rule="required;" style="text-transform:lowercase" name="row[<%=name%>][<%=index%>][field]" class="form-control" value="<%=row['field']%>" size="30"></td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][option]" class="form-control" value="<%=row['option']%>" size="30"></td>
<td> <%if (row.field != "company_name" && row.field != "company_logo" && row.field != "industry_category_id" && row.field != "company_introduction") { %> <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <% } %><span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span></td>
</tr>
</script>
<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>
<div class="text-muted">
提示: 添加所有字段信息为必填字段。姓名/头像/手机号/级别/籍贯/介绍/行业分类/公司名称/公司Logo/公司简介为强制必填信息,不能删除。为保证准确获取用户手机号码 手机号码字段名请使用“mobile”如不清楚请咨询客服。</br>
具体设置如下:</br>
文本字段:适用于用户填写文本内容信息,例如:名称,标题,电话,传真等信息</br>
数字字段:适用于用户填写数字内容信息,例如:年龄,数量等信息</br>
单选按钮:适用于用户单选内容信息,例如:性别 ,请填写至“提示信息/配置项”格式如下:男,女</br>
复选按钮:适用于用户多选内容信息,例如:爱好 ,请填写至“提示信息/配置项”格式如下:音乐,足球,画画</br>
下拉列表:适用于用户多选项单选内容信息,例如:行业 ,请填写至“提示信息/配置项”格式如下:教育行业,餐饮行业,医疗行业</br>
日期字段适用于用户日期选择信息例如2021-10-01生日等信息</br>
时间字段适用于用户时间选择信息例如14:00:00等信息</br>
日期时间适用于用户日期时间选择信息例如2021-10-01 14:00:00等信息</br>
文本域:适用于用户较多文本信息填充,例如:备注,简介等信息</br>
</div>

View File

@@ -0,0 +1,34 @@
<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" 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">{:__('Status')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
</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">
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,44 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
{:build_heading(null,FALSE)}
<ul class="nav nav-tabs" data-field="status">
<li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
{foreach name="statusList" item="vo"}
<li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">{$vo|htmlentities}</a></li>
{/foreach}
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/join_config/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<div class="dropdown btn-group {:$auth->check('wdsxh/member/join_config/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
{foreach name="statusList" item="vo"}
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key|htmlentities}">{:__('Set status to ' . $key)}</a></li>
{/foreach}
</ul>
</div>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/join_config/edit')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,180 @@
<style>
.select-readonly {
background: #eee;
cursor: no-drop;
}
.select-readonly option {
display: none;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="alert alert-danger-light" style="margin-bottom:10px;">
<b>温馨提示:</b><br>
<b>1.请在正式使用小程序前,确定入会信息;</b><br>
<b>2.请勿频繁修改入会信息,否则会导致前后入会会员信息不一致;</b><br>
<b>3.导出表格,取最新自定义字段作为表头;</b><br>
<b>4.如果批量导入会员,选择最新自定义的字段作为表头。</b>
</div>
<div class="alert">
<b>{:__('Status')}:</b>
<b>
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
<div>备注:是否展示启用团体入会类型</div>
</b>
</div>
<div class="label label-danger">注意:用户登记信息所有为必填字段,“字段名”必须为小写英文,且保证唯一性。单选、多选、下拉字段多个配置项之间用英文逗号“,”分割。</div>
<div>个人信息</div>
<table class="table table-responsive fieldlist" data-name="person" data-template="person" data-tag="tr">
<tr>
<th>入会是否展示</th>
<th>是否必填</th>
<th>详情是否展示</th>
<th>字段类型</th>
<th>标签名称</th>
<th>字段名(小写英文字母,特殊字符可以用下划线_代替)</th>
<th>提示信息/配置项</th>
<th></th>
</tr>
<tr>
<td colspan="6"><a href="javascript:;" class="btn btn-sm btn-info btn-append"><i class="fa fa-plus"></i> 追加</a></td>
</tr>
<textarea name="person" class="form-control hide" cols="30" rows="5">{$person_fieldset|htmlentities}</textarea>
</table>
<!--定义模板-->
<script type="text/html" id="person">
<tr class="form-inline">
<td>
<select name="row[<%=name%>][<%=index%>][apply_show]" class="form-control <%if (row.field == "name" || row.field == "mobile" || row.field == "member_level_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.apply_show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.apply_show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][required]" class="form-control <%if (row.field == "name" || row.field == "mobile" || row.field == "member_level_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.required=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.required=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][show]" class="form-control <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "industry_category_id" || row.field == "address" || row.type == "file") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][type]" class="form-control <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "address" || row.field == "cert" || row.field == "industry_category_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "organize_position") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="text" <%if (row.type=="text"){ %>selected<% } %>>文本字段</option>
<option value="number" <%if (row.type=="number"){ %>selected<% } %> >数字字段</option>
<option value="radio" <%if (row.type=="radio"){ %>selected<% } %>>单选按钮</option>
<option value="checkbox" <%if (row.type=="checkbox"){ %>selected<% } %>>复选按钮</option>
<option value="select" <%if (row.type=="select"){ %>selected<% } %>>下拉列表</option>
<option value="date" <%if (row.type=="date"){ %>selected<% } %>>日期字段</option>
<option value="time" <%if (row.type=="time"){ %>selected<% } %>>时间字段</option>
<option value="datetime" <%if (row.type=="datetime"){ %>selected<% } %>>日期时间</option>
<option value="textarea" <%if (row.type=="textarea"){ %>selected<% } %>>文本域</option>
<option value="image" <%if (row.type=="image"){ %>selected<% } %>>图片上传</option>
<option value="video" <%if (row.type=="video"){ %>selected<% } %>>视频上传</option>
<option value="cert" <%if (row.type=="cert"){ %>selected<% } %>>证书上传</option>
<option value="file" <%if (row.type=="file"){ %>selected<% } %>>文件上传</option>
</select>
</td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][label]" class="form-control" value="<%=row['label']%>" size="30" <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "address" || row.field == "cert" || row.field == "industry_category_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "organize_position") { %> readonly <% } %> ></td>
<td><input type="text" <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "address" || row.field == "cert" || row.field == "industry_category_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "organize_position") { %> readonly <% } %> data-rule="required;" style="text-transform:lowercase" name="row[<%=name%>][<%=index%>][field]" class="form-control" value="<%=row['field']%>" size="30"></td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][option]" class="form-control" value="<%=row['option']%>" size="30"></td>
<td> <%if (row.field != "name" && row.field != "avatar" && row.field != "mobile" && row.field != "member_level_id" && row.field != "address" && row.field != "cert" && row.field != "industry_category_id" && row.field != "organize_position" && row.field != "native_place" && row.field != "introduce_content") { %> <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <% } %><span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span></td>
</tr>
</script>
<div>团体信息</div>
<table class="table table-responsive fieldlist" data-name="organize" data-template="organize" data-tag="tr">
<tr>
<th>入会是否展示</th>
<th>是否必填</th>
<th>详情是否展示</th>
<th>字段类型</th>
<th>标签名称</th>
<th>字段名(小写英文字母,特殊字符可以用下划线_代替)</th>
<th>提示信息/配置项</th>
<th></th>
</tr>
<tr>
<td colspan="6"><a href="javascript:;" class="btn btn-sm btn-info btn-append"><i class="fa fa-plus"></i> 追加</a></td>
</tr>
<textarea name="organize" class="form-control hide" cols="30" rows="5">{$organize_fieldset|htmlentities}</textarea>
</table>
<!--定义模板-->
<script type="text/html" id="organize">
<tr class="form-inline">
<td>
<select name="row[<%=name%>][<%=index%>][apply_show]" class="form-control <%if (row.field == "organize_name") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.apply_show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.apply_show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][required]" class="form-control <%if (row.field == "organize_name") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.required=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.required=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][show]" class="form-control <%if (row.field == "organize_name") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][type]" class="form-control <%if (row.field == "organize_name" || row.field == "organize_logo" || row.field == "organize_introduction" || row.field == "industry_category_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="text" <%if (row.type=="text"){ %>selected<% } %>>文本字段</option>
<option value="number" <%if (row.type=="number"){ %>selected<% } %> >数字字段</option>
<option value="radio" <%if (row.type=="radio"){ %>selected<% } %>>单选按钮</option>
<option value="checkbox" <%if (row.type=="checkbox"){ %>selected<% } %>>复选按钮</option>
<option value="select" <%if (row.type=="select"){ %>selected<% } %>>下拉列表</option>
<option value="date" <%if (row.type=="date"){ %>selected<% } %>>日期字段</option>
<option value="time" <%if (row.type=="time"){ %>selected<% } %>>时间字段</option>
<option value="datetime" <%if (row.type=="datetime"){ %>selected<% } %>>日期时间</option>
<option value="textarea" <%if (row.type=="textarea"){ %>selected<% } %>>文本域</option>
<option value="image" <%if (row.type=="image"){ %>selected<% } %>>图片上传</option>
<option value="video" <%if (row.type=="video"){ %>selected<% } %>>视频上传</option>
<option value="cert" <%if (row.type=="cert"){ %>selected<% } %>>证书上传</option>
<option value="file" <%if (row.type=="file"){ %>selected<% } %>>文件上传</option>
</select>
</td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][label]" class="form-control" value="<%=row['label']%>" size="30" <%if (row.field == "organize_name" || row.field == "organize_logo" || row.field == "organize_introduction" || row.field == "industry_category_id") { %> readonly <% } %> ></td>
<td><input type="text" <%if (row.field == "organize_name" || row.field == "organize_logo" || row.field == "organize_introduction" || row.field == "industry_category_id") { %> readonly <% } %> data-rule="required;" style="text-transform:lowercase" name="row[<%=name%>][<%=index%>][field]" class="form-control" value="<%=row['field']%>" size="30"></td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][option]" class="form-control" value="<%=row['option']%>" size="30"></td>
<td> <%if (row.field != "organize_name" && row.field != "organize_logo" && row.field != "organize_introduction" && row.field != "industry_category_id") { %> <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <% } %><span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span></td>
</tr>
</script>
<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>
<div class="text-muted">
提示: 添加所有字段信息为必填字段。姓名/头像/手机号/级别/籍贯/介绍/行业分类/团体名称/团体Logo/团体简介为强制必填信息,不能删除。为保证准确获取用户手机号码 手机号码字段名请使用“mobile”如不清楚请咨询客服。</br>
具体设置如下:</br>
文本字段:适用于用户填写文本内容信息,例如:名称,标题,电话,传真等信息</br>
数字字段:适用于用户填写数字内容信息,例如:年龄,数量等信息</br>
单选按钮:适用于用户单选内容信息,例如:性别 ,请填写至“提示信息/配置项”格式如下:男,女</br>
复选按钮:适用于用户多选内容信息,例如:爱好 ,请填写至“提示信息/配置项”格式如下:音乐,足球,画画</br>
下拉列表:适用于用户多选项单选内容信息,例如:行业 ,请填写至“提示信息/配置项”格式如下:教育行业,餐饮行业,医疗行业</br>
日期字段适用于用户日期选择信息例如2021-10-01生日等信息</br>
时间字段适用于用户时间选择信息例如14:00:00等信息</br>
日期时间适用于用户日期时间选择信息例如2021-10-01 14:00:00等信息</br>
文本域:适用于用户较多文本信息填充,例如:备注,简介等信息</br>
</div>

View File

@@ -0,0 +1,116 @@
<style>
.select-readonly {
background: #eee;
cursor: no-drop;
}
.select-readonly option {
display: none;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="alert alert-danger-light" style="margin-bottom:10px;">
<b>温馨提示:</b><br>
<b>1.请在正式使用小程序前,确定入会信息;</b><br>
<b>2.请勿频繁修改入会信息,否则会导致前后入会会员信息不一致;</b><br>
<b>3.导出表格,取最新自定义字段作为表头;</b><br>
<b>4.如果批量导入会员,选择最新自定义的字段作为表头。</b>
</div>
<div class="alert">
<b>{:__('Status')}:</b>
<b>
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
<div>备注:是否展示启用个人入会类型</div>
</b>
</div>
<div class="label label-danger">注意:用户登记信息所有为必填字段,“字段名”必须为小写英文,且保证唯一性。单选、多选、下拉字段多个配置项之间用英文逗号“,”分割。</div>
<table class="table table-responsive fieldlist" data-name="field" data-template="tpl" data-tag="tr">
<tr>
<th>入会是否展示</th>
<th>是否必填</th>
<th>详情是否展示</th>
<th>字段类型</th>
<th>标签名称</th>
<th>字段名(小写英文字母,特殊字符可以用下划线_代替)</th>
<th>提示信息/配置项</th>
<th></th>
</tr>
<tr>
<td colspan="6"><a href="javascript:;" class="btn btn-sm btn-info btn-append"><i class="fa fa-plus"></i> 追加</a></td>
</tr>
<textarea name="field" class="form-control hide" cols="30" rows="5">{$person_fieldset|htmlentities}</textarea>
</table>
<!--定义模板-->
<script type="text/html" id="tpl">
<tr class="form-inline">
<td>
<select name="row[<%=name%>][<%=index%>][apply_show]" class="form-control <%if (row.field == "name" || row.field == "mobile" || row.field == "member_level_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.apply_show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.apply_show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][required]" class="form-control <%if (row.field == "name" || row.field == "mobile" || row.field == "member_level_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.required=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.required=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][show]" class="form-control <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "industry_category_id" || row.field == "address" || row.type == "file") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="1" <%if (row.show=="1"){ %>selected<% } %>></option>
<option value="2" <%if (row.show=="2"){ %>selected<% } %>></option>
</select>
</td>
<td>
<select name="row[<%=name%>][<%=index%>][type]" class="form-control <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "address" || row.field == "cert" || row.field == "industry_category_id") { %> select-readonly <% } %> " style="min-width: 100px;" >
<option value="text" <%if (row.type=="text"){ %>selected<% } %>>文本字段</option>
<option value="number" <%if (row.type=="number"){ %>selected<% } %> >数字字段</option>
<option value="radio" <%if (row.type=="radio"){ %>selected<% } %>>单选按钮</option>
<option value="checkbox" <%if (row.type=="checkbox"){ %>selected<% } %>>复选按钮</option>
<option value="select" <%if (row.type=="select"){ %>selected<% } %>>下拉列表</option>
<option value="date" <%if (row.type=="date"){ %>selected<% } %>>日期字段</option>
<option value="time" <%if (row.type=="time"){ %>selected<% } %>>时间字段</option>
<option value="datetime" <%if (row.type=="datetime"){ %>selected<% } %>>日期时间</option>
<option value="textarea" <%if (row.type=="textarea"){ %>selected<% } %>>文本域</option>
<option value="image" <%if (row.type=="image"){ %>selected<% } %>>图片上传</option>
<option value="video" <%if (row.type=="video"){ %>selected<% } %>>视频上传</option>
<option value="cert" <%if (row.type=="cert"){ %>selected<% } %>>证书上传</option>
<option value="file" <%if (row.type=="file"){ %>selected<% } %>>文件上传</option>
</select>
</td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][label]" class="form-control" value="<%=row['label']%>" size="30" <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "address" || row.field == "cert" || row.field == "industry_category_id") { %> readonly <% } %> ></td>
<td><input type="text" <%if (row.field == "name" || row.field == "avatar" || row.field == "mobile" || row.field == "member_level_id" || row.field == "native_place" || row.field == "introduce_content" || row.field == "address" || row.field == "cert" || row.field == "industry_category_id") { %> readonly <% } %> data-rule="required;" style="text-transform:lowercase" name="row[<%=name%>][<%=index%>][field]" class="form-control" value="<%=row['field']%>" size="30"></td>
<td><input type="text" data-rule="required" name="row[<%=name%>][<%=index%>][option]" class="form-control" value="<%=row['option']%>" size="30"></td>
<td> <%if (row.field != "name" && row.field != "avatar" && row.field != "mobile" && row.field != "member_level_id" && row.field != "native_place" && row.field != "introduce_content" && row.field != "address" && row.field != "cert" && row.field != "industry_category_id") { %> <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <% } %><span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span></td>
</tr>
</script>
<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>
<div class="text-muted">
提示: 添加所有字段信息为必填字段。姓名/头像/手机号/级别/籍贯/介绍/行业分类为强制必填信息,不能删除。为保证准确获取用户手机号码 手机号码字段名请使用“mobile”如不清楚请咨询客服。</br>
具体设置如下:</br>
文本字段:适用于用户填写文本内容信息,例如:名称,标题,电话,传真等信息</br>
数字字段:适用于用户填写数字内容信息,例如:年龄,数量等信息</br>
单选按钮:适用于用户单选内容信息,例如:性别 ,请填写至“提示信息/配置项”格式如下:男,女</br>
复选按钮:适用于用户多选内容信息,例如:爱好 ,请填写至“提示信息/配置项”格式如下:音乐,足球,画画</br>
下拉列表:适用于用户多选项单选内容信息,例如:行业 ,请填写至“提示信息/配置项”格式如下:教育行业,餐饮行业,医疗行业</br>
日期字段适用于用户日期选择信息例如2021-10-01生日等信息</br>
时间字段适用于用户时间选择信息例如14:00:00等信息</br>
日期时间适用于用户日期时间选择信息例如2021-10-01 14:00:00等信息</br>
文本域:适用于用户较多文本信息填充,例如:备注,简介等信息</br>
</div>

View File

@@ -0,0 +1,45 @@
<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">{:__('Name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
</div>
</div>
<div class="form-group {if $pay_method == '1'}hide{/if}">
<label class="control-label col-xs-12 col-sm-2">{:__('Fees')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-fees" data-rule="required" class="form-control" step="0.01" name="row[fees]" type="number" {if $pay_method == '1'}value="0.00"{/if}>
</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">
<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 class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" 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">
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="normal"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,45 @@
<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" 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">{:__('Fees')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-fees" data-rule="required" class="form-control" step="0.01" name="row[fees]" type="number" value="{$row.fees|htmlentities}">
</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">
<textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
</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" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,46 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
{:build_heading(null,FALSE)}
<ul class="nav nav-tabs" data-field="status">
<li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
{foreach name="statusList" item="vo"}
<li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key|htmlentities}" data-value="{$key|htmlentities}" data-toggle="tab">{$vo|htmlentities}</a></li>
{/foreach}
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wdsxh/member/level/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/level/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/member/level/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
<div class="dropdown btn-group {:$auth->check('wdsxh/member/level/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
{foreach name="statusList" item="vo"}
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key|htmlentities}">{:__('Set status to ' . $key)}</a></li>
{/foreach}
</ul>
</div>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/level/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/level/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="panel panel-default panel-intro">
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,26 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="panel panel-default panel-intro">
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,393 @@
<style>
.star {
color: red;
}
</style>
<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">用户信息:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-user" readonly class="form-control" size="50" name="user" type="text">
<input id="c-uid" readonly name="row[wechat_id]" type="hidden">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="select-user" class="btn btn-info" ><i class="fa fa-user-plus"></i> 选择用户</button></span>
</div>
<span class="msg-box n-right" for="c-user"></span>
</div>
</div>
</div>
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[custom_content][{$vo['field']}]" type="text" value=""></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[custom_content][address][address]" type="text" value="">
<input id="c-lat" name="row[custom_content][address][latitude]" type="hidden" value="">
<input id="c-lng" name="row[custom_content][address][longitude]" type="hidden" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}">{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50"></textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
{volist name="organize_fieldset" id="vo"}
{if $vo['type'] == 'text'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}">{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if in_array($vo['field'],array('avatar','organize_logo'))}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if in_array($vo['field'],array('avatar','organize_logo'))}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'organize_introduction'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50"></textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Join_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-join_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[join_time]" type="text" value="{:date('Y-m-d')}">
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="normal"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,403 @@
<style>
.star {
color: red;
}
</style>
<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">用户信息:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-user" class="form-control" size="50" name="user" type="text" value="{if !empty($row.wechat)}{$row.wechat.nickname|htmlentities}{/if}">
<input id="c-uid" name="row[wechat_id]" type="hidden" value="{$row.wechat_id|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="select-user" class="btn btn-info" {if $row.wechat_id}disabled{/if}><i class="fa fa-user-plus"></i> 选择用户</button></span>
</div>
<span class="msg-box n-right" for="c-user"></span>
</div>
</div>
</div>
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}"></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[person][address][address]" type="text" value="{$vo.value.address|htmlentities}">
<input id="c-lat" name="row[person][address][latitude]" type="hidden" value="{$vo.value.latitude|htmlentities}">
<input id="c-lng" name="row[person][address][longitude]" type="hidden" value="{$vo.value.longitude|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[person][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[person][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[person][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[person][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[person][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[person][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
{volist name="organize_fieldset" id="vo"}
{if $vo['type'] == 'text'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[organize][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[organize][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[organize][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if in_array($vo['field'],array('avatar','organize_logo'))}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if in_array($vo['field'],array('avatar','organize_logo'))}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[organize][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'organize_introduction'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[organize][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[organize][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[organize][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Join_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-join_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[join_time]" type="text" value="{$row.join_time|htmlentities}" {if $expire_time_type == '2'}disabled{/if}>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Expire_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-expire_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[expire_time]" type="text" value="{$row.expire_time|htmlentities}" disabled>
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,48 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wdsxh/member/organize/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/organize/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/member/organize/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
<a href="javascript:;" class="btn btn-success btn-export {:$auth->check('wdsxh/member/organize/export')?'':'hide'}" title="{:__('导出会员')}" id="btn-export-file"><i class="fa fa-download"></i> {:__('导出会员')}</a>
<a href="javascript:;" class="btn btn-success import_template {:$auth->check('wdsxh/member/organize/import_template')?'':'hide'}" title="{:__('快速导入模板')}"><i class="fa fa-download"></i>快速导入模板</a>
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('wdsxh/member/organize/import')?'':'hide'}" title="导入会员" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> 导入会员</a>
<div class="dropdown btn-group {:$auth->check('wdsxh/member/organize/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
{foreach name="statusList" item="vo"}
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key|htmlentities}">{:__('Set status to ' . $key)}</a></li>
{/foreach}
</ul>
</div>
<a href="javascript:;" class="btn btn-info btn-member-notification btn-disabled disabled {:$auth->check('wdsxh/member/organize/send_notification')?'':'hide'}" title="会员消息通知"><i class="fa fa-bell"></i> 会员消息通知</a>
<a href="wdsxh/message/message_notification?type=3" class="btn btn-info btn-dialog bg-olive {:$auth->check('wdsxh/message/message_notification')?'':'hide'}" title="消息列表" data-area=["100%","100%"] >消息列表</a>
</div>
<!-- 新增导入须知 -->
<div style="background:#fff8e1; border:1px solid #ffeeba; padding:15px; margin:10px 0; border-radius:4px; color:#856404;">
<strong style="display:block; margin-bottom:8px;">❗ 导入须知:</strong>
<ol style="margin:0; padding-left:20px;">
<li style="margin-bottom:5px;">导入会员只能使用快速模版导入,下载快速导入模版,进行会员导入</li>
</ol>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/organize/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/organize/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<form id="notification-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" name="ids" value="{$ids|htmlentities}" />
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">通知标题<span class="text-danger">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<input type="text" class="form-control" name="title" placeholder="请输入通知标题" data-rule="required" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">通知内容<span class="text-danger">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control editor" name="content" rows="10" placeholder="请输入通知内容" data-rule="required"></textarea>
</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-primary btn-embossed disabled">确定发送</button>
<button type="reset" class="btn btn-default btn-embossed">重置</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,27 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/pay/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/pay/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,240 @@
<style>
.star {
color: red;
}
</style>
<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">用户信息:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-user" readonly class="form-control" size="50" name="user" type="text">
<input id="c-uid" readonly name="row[wechat_id]" type="hidden">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="select-user" class="btn btn-info" ><i class="fa fa-user-plus"></i> 选择用户</button></span>
</div>
<span class="msg-box n-right" for="c-user"></span>
</div>
</div>
</div>
{volist name="person_fieldset" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contacts" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[custom_content][{$vo['field']}]" type="text" value=""></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[custom_content][address][address]" type="text" value="">
<input id="c-lat" name="row[custom_content][address][latitude]" type="hidden" value="">
<input id="c-lng" name="row[custom_content][address][longitude]" type="hidden" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}">{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50"></textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Join_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-join_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[join_time]" type="text" value="{:date('Y-m-d')}">
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="normal"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed disabled">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,246 @@
<style>
.star {
color: red;
}
</style>
<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">用户信息:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-user" class="form-control" size="50" name="user" type="text" value="{if !empty($row.wechat)}{$row.wechat.nickname|htmlentities}{/if}">
<input id="c-uid" name="row[wechat_id]" type="hidden" value="{$row.wechat_id|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="select-user" class="btn btn-info"><i class="fa fa-user-plus"></i> 选择用户</button></span>
</div>
<span class="msg-box n-right" for="c-user"></span>
</div>
</div>
</div>
{volist name="row.custom_content" id="vo"}
{if $vo['type'] == 'text' && $vo['field'] != 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'number'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo['field']}]" type="number" value="{$vo.value|htmlentities}" >
</div>
</div>
{/if}
{if $vo['field'] == 'member_level_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/level/index" data-order-by="weigh" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'industry_category_id'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} data-source="wdsxh/member/industry_category/index" data-order-by="weigh" class="form-control selectpage" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['field'] == 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Native_place')}:</label>
<div class="col-xs-12 col-sm-8">
<div class='control-relative'><input id="c-native_place" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" data-level="area" data-toggle="city-picker" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}"></div>
</div>
</div>
{/if}
{if $vo['field'] == 'address'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-address" class="form-control" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} name="row[custom_content][address][address]" type="text" value="{$vo.value.address|htmlentities}">
<input id="c-lat" name="row[custom_content][address][latitude]" type="hidden" value="{$vo.value.latitude|htmlentities}">
<input id="c-lng" name="row[custom_content][address][longitude]" type="hidden" value="{$vo.value.longitude|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
</div>
<span class="msg-box n-right" for="c-images"></span>
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'radio'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $radio_array = explode(',',$vo['option']);?>
<div class="radio">
{foreach name="radio_array" item="vv"}
<label for="row[{$vo['field']}]-{$key|htmlentities}"><input id="row[{$vo['field']}]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}]" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} type="radio" value="{$vv|htmlentities}" {if $vv==$vo.value}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'checkbox'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $check_array = explode(',',$vo['option']);
$value_array = explode(',',$vo['value']);
?>
<div class="checkbox">
{foreach name="check_array" item="vv"}
<label for="row[{$vo['field']}][]-{$key|htmlentities}"><input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="checked"{/if} id="row[{$vo['field']}][]-{$key|htmlentities}" name="row[custom_content][{$vo['field']}][]" type="checkbox" value="{$vv|htmlentities}" {if in_array($vv,$value_array)}checked{/if} /> {$vv|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
{/if}
{if $vo['type'] == 'select' && $vo['field'] != 'member_level_id' && $vo['field'] != 'industry_category_id' && $vo['field'] != 'native_place'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<?php $select_array = explode(',',$vo['option']);?>
<select id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control selectpicker" name="row[custom_content][{$vo['field']}]">
<option value="">请选择</option>
{foreach name="select_array" item="vv"}
<option value="{$vv|htmlentities}" {if $vv==$vo.value}selected{/if}>{$vv|htmlentities}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $vo['type'] == 'date'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-startdate" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'time'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'datetime'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-{$vo['field']}}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
</div>
</div>
{/if}
{if $vo['type'] == 'image'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="image/*" data-multiple="{if $vo['field'] == 'avatar'}false{else /}true{/if}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'video'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['label']}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo['field']}]" type="text" value="{$vo.value|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['label']}" class="btn btn-danger faupload" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false" data-preview-id="p-{$vo['label']}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['label']}" class="btn btn-primary fachoose" data-input-id="c-{$vo['label']}" data-mimetype="video/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-{$vo['label']}"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['label']}"></ul>
</div>
</div>
{/if}
{if $vo['type'] == 'textarea'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}{$vo['label']}:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control {if $vo['field'] == 'introduce_content'}editor{/if}" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} rows="5" name="row[custom_content][{$vo['field']}]" cols="50">{$vo.value|htmlentities}</textarea>
</div>
</div>
{/if}
{if $vo['type'] == 'cert'}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}姓名:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][name]" type="text" value="{$vo.value.name ? $vo.value.name :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书编号:</label>
<div class="col-xs-12 col-sm-8">
<input {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" name="row[custom_content][{$vo.field|htmlentities}][number]" type="text" value="{$vo.value.number ? $vo.value.number :''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}<span class="star">*</span>{/if}证书图片:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-{$vo['field']}_image" {if ((isset($vo['apply_show']) && $vo['apply_show'] == 1) || !isset($vo['apply_show'])) && $vo['required'] == '1'}data-rule="required"{/if} class="form-control" size="50" name="row[custom_content][{$vo.field|htmlentities}][image]" type="text" value="{$vo.value.image ? $vo.value.image :''}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-{$vo['field']}_image" class="btn btn-danger faupload" data-input-id="c-{$vo['field']}_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-{$vo['field']}_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-{$vo['field']}_image" class="btn btn-primary fachoose" data-input-id="c-{$vo['field']}_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-{$vo['field']}_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-{$vo['field']}_image"></ul>
</div>
</div>
{/if}
{/volist}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Join_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-join_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[join_time]" type="text" value="{$row.join_time|htmlentities}" {if $expire_time_type == '2'}disabled{/if}>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Expire_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-expire_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[expire_time]" type="text" value="{$row.expire_time|htmlentities}" disabled>
</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|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</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-primary btn-embossed">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,47 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wdsxh/member/person/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wdsxh/member/person/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wdsxh/member/person/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
<a href="javascript:;" class="btn btn-success btn-export {:$auth->check('wdsxh/member/person/export')?'':'hide'}" title="{:__('导出会员')}" id="btn-export-file"><i class="fa fa-download"></i> {:__('导出会员')}</a>
<a href="javascript:;" class="btn btn-success import_template {:$auth->check('wdsxh/member/person/import_template')?'':'hide'}" title="{:__('快速导入模板')}"><i class="fa fa-download"></i>快速导入模板</a>
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('wdsxh/member/person/import')?'':'hide'}" title="导入会员" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> 导入会员</a>
<div class="dropdown btn-group {:$auth->check('wdsxh/member/person/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
{foreach name="statusList" item="vo"}
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key|htmlentities}">{:__('Set status to ' . $key)}</a></li>
{/foreach}
</ul>
</div>
<a href="javascript:;" class="btn btn-info btn-member-notification btn-disabled disabled {:$auth->check('wdsxh/member/person/send_notification')?'':'hide'}" title="会员消息通知"><i class="fa fa-bell"></i> 会员消息通知</a>
<a href="wdsxh/message/message_notification?type=1" class="btn btn-info btn-dialog bg-olive {:$auth->check('wdsxh/message/message_notification')?'':'hide'}" title="消息列表" data-area=["100%","100%"] >消息列表</a>
</div>
<!-- 新增导入须知 -->
<div style="background:#fff8e1; border:1px solid #ffeeba; padding:15px; margin:10px 0; border-radius:4px; color:#856404;">
<strong style="display:block; margin-bottom:8px;">❗ 导入须知:</strong>
<ol style="margin:0; padding-left:20px;">
<li style="margin-bottom:5px;">导入会员只能使用快速模版导入,下载快速导入模版,进行会员导入</li>
</ol>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('wdsxh/member/person/edit')}"
data-operate-del="{:$auth->check('wdsxh/member/person/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<form id="notification-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" name="ids" value="{$ids|htmlentities}" />
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">通知标题<span class="text-danger">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<input type="text" class="form-control" name="title" placeholder="请输入通知标题" data-rule="required" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">通知内容<span class="text-danger">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control editor" name="content" rows="10" placeholder="请输入通知内容" data-rule="required"></textarea>
</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-primary btn-embossed disabled">确定发送</button>
<button type="reset" class="btn btn-default btn-embossed">重置</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,29 @@
<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">{:__('Promotion_img')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-promotion_img" class="form-control" size="50" name="row[promotion_img]" type="text" value="{$row.promotion_img|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-promotion_img" class="btn btn-danger faupload" data-input-id="c-promotion_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-promotion_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-promotion_img" class="btn btn-primary fachoose" data-input-id="c-promotion_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-promotion_img"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-promotion_img"></ul>
</div>
<div></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">
背景图建议尺寸: 宽248px 高241px
</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-primary btn-embossed">{:__('OK')}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,26 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<a href="wdsxh/member/promotion/config" class="btn btn-info btn-dialog {:$auth->check('wdsxh/member/promotion/config')?'':'hide'}" title="推广海报" data-area=["50%","55%"] ><i class="fa fa-cog"></i> 推广海报</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,107 @@
<div class="panel panel-default panel-intro">
<div class="panel-heading">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#base" aria-controls="base" role="tab" data-toggle="tab">会费设置</a></li>
<li role="presentation"><a href="#introduce" aria-controls="introduce" role="tab" data-toggle="tab">权限设置</a></li>
</ul>
</div>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="base">
<div class="panel-body">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Expire_time_type')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="expireTimeTypeList" item="vo"}
<label for="row[expire_time_type]-{$key|htmlentities}"><input id="row[expire_time_type]-{$key|htmlentities}" name="row[expire_time_type]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.expire_time_type"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
<div class="form-group days {if $row.expire_time_type == '2'}hide{/if}">
<label class="control-label col-xs-12 col-sm-2">{:__('Days')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-days" class="form-control" name="row[days]" type="number" value="{$row.days|htmlentities}" min="1" placeholder="XXX天" oninput="if(this.value === '0') this.value = '';this.value = this.value.replace(/[^0-9]/g, '');">
备注指的会员入会成功那天起xxx天后到期可以修改入会时间
</div>
</div>
<div class="form-group fixed_date {if $row.expire_time_type == '1'}hide{/if}">
<label class="control-label col-xs-12 col-sm-2">{:__('Fixed_date')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-fixed_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[fixed_date]" type="text" value="{$row.fixed_date|htmlentities}">
备注:指的是所有会员都在设置时间内到期;时间只能修改当前时间之后的时间<br>
1.如果到期修改,会员才可以进行续费并进行下一届;<br>
2.如果没到期修改,所有会员都会延长时间
</div>
<!-- todo bootstrap datetimepicker 选择的日期必须大于当前日期 -->
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_method')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="payMethodList" item="vo"}
<label for="row[pay_method]-{$key|htmlentities}"><input id="row[pay_method]-{$key|htmlentities}" name="row[pay_method]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.pay_method"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="introduce">
<div class="panel-body">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Address_book_is_openness')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="addressBookIsOpennessList" item="vo"}
<label for="row[address_book_is_openness]-{$key|htmlentities}"><input id="row[address_book_is_openness]-{$key|htmlentities}" name="row[address_book_is_openness]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.address_book_is_openness"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
备注:开放展示指的是所有人可以查看该组织的通讯录
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Member_details')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="memberDetailsList" item="vo"}
<label for="row[member_details]-{$key|htmlentities}"><input id="row[member_details]-{$key|htmlentities}" name="row[member_details]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.member_details"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
备注1.部分开放指的是所有人可以查看该组织会员列表,不可查看会员详情;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.全部开放指的是所有人可以查看该组织会员列表和会员详情;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.会员专属指的是只有入会成功后的人才可以查看会员列表和会员详情
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Address_book_sort_order')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="addressBookSortOrderList" item="vo"}
<label for="row[address_book_sort_order]-{$key|htmlentities}"><input id="row[address_book_sort_order]-{$key|htmlentities}" name="row[address_book_sort_order]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.address_book_sort_order"}checked{/in} /> {$vo|htmlentities}</label>
{/foreach}
</div>
</div>
</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">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</div>
</form>
</div>