{* Template Name: VIP卡充值*}
<?php echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;">这里是用户中心模版</h2>哈哈</div>';die();?>
{template:t_header}

<div class="wide">
    <div class="row">
        <div class="col-5 col-m-24">
            {template:t_menu}
        </div>

        <div class="col-19 col-m-24">
            <div class="tx-box bg-white pd15 mb15">
                <h2 class="f-22 mb10">会员级别：{if $user.Level <= 4}VIP会员{else}普通会员{/if} <span class="f-14">到期时间：{if $user.Level < 5}{if $user.Level == 1}永久有效{else}{$user.Vipendtime}{/if}{else}未开通VIP会员{/if}</span></h2>
                <p>{$zbp.Config('YtUser').readme_text}</p>
            </div>

            <div class="tx-box bg-white mb15">
                <div class="txuser-tab-hd">
                    <ul>
                        <li class="tx-on">充值卡充值</li>
                        {if $zbp->Config('tx_user_theme')->alipay=='1'}<li>支付宝在线充值</li>{/if}
                    </ul>
                </div>
                <div class="txuser-tab-bd">
                    <div class="pd15" style="display:block">
                        <ul class="tx-form-li row">
                            <li class="col-24 col-m-24"><p><input required="required" type="text" name="invitecode" class="tx-input" /><i>充值卡号(*)</i></p></li>
                            <li class="col-24 col-m-24"><p class="input-ma"><input required="required" type="text" name="verifycode" class="tx-input"  placeholder="验证码">{$article.verifycode}</p></li>
                            <li class="col-24 col-m-24"><p class="tx-input-full"><input type="submit" value="提交" onclick="return RegPage()" class="tx-btn tx-btn-big bg-black"></p></li>
                        </ul>
                    </div>
                    {if $zbp->Config('tx_user_theme')->alipay=='1'}
                    <div class="pd15">
                        <form class="ytarticleedt" id="edit" name="edit" method="post" action="#">
                            <input type="hidden" name="LogID" id="LogID" value="0" />
                            <ul class="tx-form-li clearfix mb15">
                                <li class="fl mr10"><input name="vipstate" type="radio" value="1" data-labelauty="一个月(15RMB)" checked></li>
                                <li class="fl mr10"><input name="vipstate" type="radio" value="2" data-labelauty="三个月(40RMB)"></li>
                                <li class="fl mr10"><input name="vipstate" type="radio" value="3" data-labelauty="一年(120RMB)"></li>
                            </ul>
                            <p><button id="btnPost" onclick="return VipRegPage();"  class="tx-btn tx-btn-big bg-black">确定</button></p>    
                        </form>
                        <script type="text/javascript">function VipRegPage(){document.getElementById("edit").action="{$host}zb_users/plugin/YtUser/cmd.php?act=UploadPst&token={$zbp->GetToken()}";}</script>
                    </div>
                    {/if}
                </div>
                
            </div>

        </div>
    </div>
</div>

<script>
    $(function(){
        $(':input').labelauty();
    });
</script>
{template:t_footer}
