www_fpvone_cn/application/admin/view/user/player/edit.html

262 lines
14 KiB
HTML

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{:token()}
<input type="hidden" name="row[id]" value="{$row.id}">
<div class="form-group">
<label for="c-real_name" class="control-label col-xs-12 col-sm-2">中文名:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-real_name" class="form-control" name="row[real_name]" type="text" value="{$row.real_name|htmlentities}">
</div>
</div>
<div class="form-group">
<label for="c-real_name" class="control-label col-xs-12 col-sm-2">英文名:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-real_name" class="form-control" name="row[eng_name]" type="text" value="{$row.eng_name|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-age" class="control-label col-xs-12 col-sm-2">年龄:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-age" class="form-control" name="row[age]" type="text" value="{$row.age|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-gender" class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
<div class="col-xs-12 col-sm-8">
{:build_radios('row[gender]', ['男'=>__('Male'), '女'=>__('Female')], $row['gender'])}
</div>
</div>
<div class="form-group">
<label for="c-birthday" class="control-label col-xs-12 col-sm-2">生日:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-birthday" class="form-control" name="row[birthday]" type="text" value="{$row.birthday|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-province" class="control-label col-xs-12 col-sm-2">省市区:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-province" class="form-control" name="row[username]" type="text" value="{$row.province|htmlentities}" readonly>
<input id="c-city" class="form-control" name="row[username]" type="text" value="{$row.city|htmlentities}" readonly>
<input id="c-district" class="form-control" name="row[username]" type="text" value="{$row.district|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-address" class="control-label col-xs-12 col-sm-2">详细地址:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-address" class="form-control" name="row[username]" type="text" value="{$row.address|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-counselor_name" class="control-label col-xs-12 col-sm-2">辅导员姓名:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-counselor_name" class="form-control" name="row[counselor_name]" type="text" value="{$row.counselor_name|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-country" class="control-label col-xs-12 col-sm-2">国籍:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-country" class="form-control" name="row[username]" type="text" value="{$row.country|htmlentities}" readonly>
</div>
</div>
<!-- <div class="form-group">-->
<!-- <label for="c-country" class="control-label col-xs-12 col-sm-2">选手照片:</label>-->
<!-- <div class="col-xs-12 col-sm-4">-->
<!-- <input id="c-player_pic" data-rule="" class="form-control" disabled size="50" name="row[avatar]" type="text" value="{$row.player_pic}">-->
<!-- <img src="{$row.player_pic}" style="height: 180px">-->
<!-- </div>-->
<!-- </div>-->
<div class="form-group">
<label for="c-player_pic" 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-player_pic" data-rule="" disabled class="form-control islocal" size="50" name="row[player_pic]" type="text" value="{$row.player_pic}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-player_pic" class="btn btn-danger faupload" data-input-id="c-player_pic" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-player_pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="save-player_pic" class="btn btn-primary" data-id="{$row.id}"><i class="fa fa-save"></i> 保存</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview islocalpic" id="p-player_pic"></ul>
</div>
</div>
<div class="form-group">
<label for="c-avatar" 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-style_photo" data-rule="" disabled class="form-control" size="50" name="row[style_photo]" type="text" value="{$row.style_photo}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-style_photo" class="btn btn-danger faupload" data-input-id="c-style_photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-style_photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="save-style_photo" class="btn btn-primary" data-id="{$row.id}"><i class="fa fa-save"></i> 保存</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-style_photo"></ul>
</div>
</div>
<div class="form-group">
<label for="c-experience" class="control-label col-xs-12 col-sm-2">选手经历:</label>
<div class="col-xs-12 col-sm-4">
<textarea id="c-experience" class="form-control" name="row[username]" type="text" readonly>
{$row.experience|htmlentities}
</textarea>
</div>
</div>
{if $row.age >= 18}
<div class="form-group">
<label for="c-phone" class="control-label col-xs-12 col-sm-2">手机号:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-phone" class="form-control" name="row[username]" type="text" value="{$row.phone|htmlentities}" readonly>
</div>
</div>
{if $row.card_type != ''}
<div class="form-group">
<label for="c-card_type" class="control-label col-xs-12 col-sm-2">证件类型:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-card_type" class="form-control" name="row[username]" type="text" value="{$row.card_type}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-card_number" class="control-label col-xs-12 col-sm-2">{$row.card_type}证件号码:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-card_number" class="form-control" name="row[username]" type="text" value="{$row.card_number}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-avatar" 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-avatar" data-rule="" class="form-control" disabled size="50" name="row[avatar]" type="text" value="{$row.card_back_view},{$row.card_front_view}">
<div class="input-group-addon no-border no-padding">
<span><button style="display: none" type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button style="display: none" type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-avatar"></ul>
</div>
</div>
{/if}
{else /}
<div class="form-group">
<label for="c-card_type" class="control-label col-xs-12 col-sm-2">证件类型:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-card_type" class="form-control" name="row[username]" type="text" value="{$row.card_type}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-card_number" class="control-label col-xs-12 col-sm-2">{$row.card_type}证件号码:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-card_number" class="form-control" name="row[username]" type="text" value="{$row.card_number}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-avatar" class="control-label col-xs-12 col-sm-2 zjzzfm">证件照正反面:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-player_avatar" data-rule="" class="form-control islocal" disabled size="50" name="row[avatar]" type="text" value="{$row.card_back_view},{$row.card_front_view}">
<div class="input-group-addon no-border no-padding">
<span><button style="display: none" type="button" id="faupload-player_avatar" class="btn btn-danger faupload" data-input-id="c-player_avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-player_avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button style="display: none" type="button" id="fachoose-player_avatar" class="btn btn-primary fachoose" data-input-id="c-player_avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview islocalpic" id="p-player_avatar"></ul>
</div>
</div>
<div class="form-group">
<label for="c-guarder_name" class="control-label col-xs-12 col-sm-2">监护人姓名:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-guarder_name" class="form-control" name="row[guarder_name]" type="text" value="{$row.guarder_name|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-guarder_phone" class="control-label col-xs-12 col-sm-2">监护人手机号:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-guarder_phone" class="form-control" name="row[guarder_phone]" type="text" value="{$row.guarder_phone|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-guarder_card_type" class="control-label col-xs-12 col-sm-2">监护人证件类型:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-guarder_card_type" class="form-control" name="row[guarder_card_type]" type="text" value="{$row.guarder_card_type|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-guarder_card_number" class="control-label col-xs-12 col-sm-2">监护人证件号码:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-guarder_card_number" class="form-control" name="row[guarder_card_number]" type="text" value="{$row.guarder_card_number|htmlentities}" readonly>
</div>
</div>
<div class="form-group">
<label for="c-avatar" 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-guarder_card_avatar" data-rule="" class="form-control" disabled size="50" name="row[avatar]" type="text" value="{$row.guarder_card_front_view},{$row.guarder_card_back_view}">
<div class="input-group-addon no-border no-padding">
<span><button style="display: none" type="button" id="faupload-guarder_card_avatar" class="btn btn-danger faupload" data-input-id="c-guarder_card_avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-guarder_card_avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button style="display: none" type="button" id="fachoose-guarder_card_avatar" class="btn btn-primary fachoose" data-input-id="c-guarder_card_avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-guarder_card_avatar"></ul>
</div>
</div>
{/if}
<div class="form-group">
<label for="c-audit_status" class="control-label col-xs-12 col-sm-2">审核结果:</label>
<div class="col-xs-12 col-sm-8">
<div class="col-xs-12 col-sm-8">
<div class="radio">
<label for="audit_status-0">
<input id="audit_status-0" name="audit_status" type="radio" value="0" data-rule="checked;"> 正式飞手
</label>
<label for="audit_status-1">
<input id="audit_status-1" name="audit_status" type="radio" value="1" data-rule="checked;"> 退回修改
</label>
<label for="audit_status-2">
<input id="audit_status-2" name="audit_status" type="radio" value="2" data-rule="checked;"> 拒绝
</label>
</div>
</div>
<!--{:build_radios('audit_status', ['0' => '正式飞手', '1' => '退回修改', '2' => '拒绝'])}-->
</div>
</div>
<?php if(empty($row['is_show'])){ ?>
<div class="form-group" id="reason" style="display: none">
<label for="c-reason" class="control-label col-xs-12 col-sm-2">审核内容:</label>
<div class="col-xs-12 col-sm-4">
<textarea id="c-reason" class="form-control" name="reason" type="text"></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">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
<?php } ?>
</form>
<script type="text/javascript" charset="utf-8" >
</script>