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>