91 lines
3.4 KiB
PHP
91 lines
3.4 KiB
PHP
|
|
<section class="col-lg-4 connectedSortable">
|
|
{if in_array(2, $user->role)}
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
<i class="fa fa-user"></i>
|
|
<h3 class="box-title">用户信息</h3>
|
|
<div class="box-tools pull-right">
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i
|
|
class="fa fa-minus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<table class="table table-striped">
|
|
<tbody>
|
|
<tr>
|
|
<td>{:lang('agency_account_title')}</td>
|
|
<td>{$user->username}</td>
|
|
<td>{:lang('agency_level_title')}</td>
|
|
<td>
|
|
<small class="label label-primary">{:lang('current_agency_level',[$user->level])}</small>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{:lang('agency_rate_title')}</td>
|
|
<td>
|
|
<small class="label label-info">{$user->tax}%</small>
|
|
</td>
|
|
<td>{:lang('agency_invite_code_title')}</td>
|
|
<td title="{:lang('hbdtwx_title')}" id="invite" style="cursor: pointer;">
|
|
<small id="copy" class="label label-danger">{$user->invite}</small>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{:lang('commission_balance_title')}</td>
|
|
<td>
|
|
<small class="label label-success">{$user->money|sprintf="%.2f",###|default='0.00'} <i class="fa fa-cny"></i>
|
|
</small>
|
|
</td>
|
|
<td>{:lang('has_knot_commission_title')}</td>
|
|
<td>
|
|
<small class="label label-warning">{$data.agency_receive_money|sprintf="%.2f",###|default='0.00'} <i class="fa fa-cny"></i>
|
|
</small>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{else /}
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
<i class="fa fa-tag"></i>
|
|
<h3 class="box-title">{:base64_decode(lang('author_info_title'))}</h3>
|
|
</div>
|
|
<div class="box-body" style="padding-bottom: 0px;">
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<td>{:base64_decode(lang('explain_title'))}</td>
|
|
<td>{:base64_decode(lang('explain_content'))}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{:base64_decode(lang('contact_author_title'))}</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>{:base64_decode(lang('system_info_title'))}</td>
|
|
<td>{:lang('system_content')}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</section>
|
|
<script src="__ADMIN_PLUGINS__/clipBoard.js-master/clipBoard.min.js"></script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#invite").click(function () {
|
|
var copy = new clipBoard(document.getElementById('copy'));
|
|
copy.copyd();
|
|
layer.msg('复制成功');
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|