<?php
require_once('common.php');
C('webtitle','控制台');
C('pageid','control');
include_once 'common.head.php';
?>
<block name="page">
<div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>我的资料</h2>
            <ol class="breadcrumb">
                <li><a href="">主页</a>
                </li>
                <li><strong>我的资料</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2"></div>
    </div>
	<div class="row">
            <div class="col-sm-2">
                <div class="widget style1 navy-bg">
                    <div class="row vertical-align">
                        <div class="col-xs-3">
                            <i class="fa fa-user fa-3x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <h2 class="font-bold"><?=$userrow['qq']?></h2>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="widget style1 navy-bg">
                    <div class="row vertical-align">
                        <div class="col-xs-3">
                            <i class="fa fa-thumbs-up fa-3x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <h2 class="font-bold"><?=get_count('qqs',"uid='$userrow[uid]'",'qid')?>/<?=$userrow[peie]?></h2>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="widget style1 navy-bg">
                    <div class="row vertical-align">
                        <div class="col-xs-3">
                            <i class="fa fa-rss fa-3x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <h2 class="font-bold">¥:<?=$userrow['rmb']?></h2>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="widget style1 lazur-bg">
                    <div class="row vertical-align">
                        <div class="col-xs-3">
                            <i class="fa fa-phone fa-3x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <h2 class="font-bold"><?=$userrow['phone']?></h2>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="widget style1 lazur-bg">
                    <div class="row vertical-align">
                        <div class="col-xs-3">
                            <i class="fa fa-euro fa-3x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <h2 class="font-bold">uid:<?=$userrow[uid]?></h2>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="widget style1 yellow-bg">
                    <div class="row vertical-align">
                        <div class="col-xs-3">
                            <i class="fa fa-shield fa-3x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <h2 class="font-bold"><?=$userrow[user]?></h2>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-4">
                
                <div class="widget-head-color-box navy-bg p-lg text-center">
                    <div class="m-b-md">
                        <h2 class="font-bold no-margins">
                                <?=$userrow[user]?>
                            </h2>
                        <small>UID:<?=$userrow[uid]?></small>
                    </div>
                    <img src="//q4.qlogo.cn/headimg_dl?dst_uin=<?=$userrow[qq]?>&spec=240" class="img-circle circle-border m-b-md" alt="profile">
                    <div>
                        <span>已用:<?=get_count('qqs',"uid='$userrow[uid]'",'qid')?>共有:<?=$userrow[peie]?> 配额</span> |
                        <span><?=$userrow['rmb']?> 余额</span> |
                        <span><?=$userrow['qq']?> QQ</span>
                    </div>
					</div>
                </div>
				<div class="col-sm-4">
				<div class="widget lazur-bg p-xl">

                    <h2>
                                    <?=$userrow[user]?>[UID:<?=$userrow[uid]?>]
                                </h2>
                    <ul class="list-unstyled m-t-md">
                        <li>
                            <span class="fa fa-envelope m-r-xs"></span>
                            <label>绑定邮箱:</label>
                            <?=$userrow['mail']?>
                        </li>
                        <li>
                            <span class="fa fa-home m-r-xs"></span>
                            <label>VIP:</label>
                            <?php if(get_isvip($userrow[vip],$userrow[vipend])){ echo "普通会员:到期时间{$userrow[vipend]}";}else{echo"<font color='gray'>不是VIP</font>";}?>
                        </li>
												<li>
                            <span class="fa fa-home m-r-xs"></span>
                            <label>注册时间:</label>
                            <?=$userrow['lasttime']?>
                        </li>
						<li>
                            <span class="fa fa-home m-r-xs"></span>
                            <label>上次登录:</label>
                            <?=$userrow['lastip']?>
                        </li>
                        <li>
                            <span class="fa fa-phone m-r-xs"></span>
                            <label>手机:</label>
                            <?=$userrow['phone']?>
                        </li>
                    </ul>
</div>
                </div>
		
<?php
include_once 'common.foot.php';
?>