<!--{assign var='menuid' value=''}-->
<!--{assign var='usercpmod' value='yes'}-->
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_head.tpl"}-->
<body>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu.tpl"}-->

<div id="page-index" class="page">
  <div class="zx">

	<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search.tpl"}-->
	<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_menu.tpl"}-->

    <div class="zright">
      <div class="topmenu"> 
	    <a href="<!--{$ucfile}-->?c=vip" class='now'>升级会员</a>
		<a href="<!--{$ucfile}-->?c=payment">在线充值</a>
		<!--{if $copyright_type == 'Professional' || $copyright_type == 'Professional+'}-->
		<a href="<!--{$ucfile}-->?c=card">充值卡充值</a>
		<!--{/if}-->
		<a href="<!--{$ucfile}-->?c=buysms">购买短信</a>
	  </div>
      <div class="tb1 hy">

        <div class="htitle">
		  您当前所在会员组：<!--{$u.levelimg}--> <b><!--{$g.groupname}--></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--{if $g.groupid>1}-->（有效期到 <!--{$u.vipenddate_t}-->）<!--{/if}-->
			&nbsp;&nbsp;剩余可用<!--{$lang.money}-->：<b><font color='green'><!--{$u.money}--></font></b>
		</div>
		  
		  <!--{if $a eq 'run'}-->
		  <form method="post" id="vip_form" action="<!--{$ucfile}-->?c=vip&a=savevip">
		  <table cellpadding='0' cellspacing='0' border='0' class='tb' width='100%'>
		    <tr>
			  <th width='20%' align='center'>会员组</th>
			  <th align='center'>类别 有效期</th>
			  <th width='25%' align='center'>操作</th>
		    </tr>
			<!--{foreach $group as $volist}-->
			<tr>
			  <td class='hback' align='center'>
			  <img src="<!--{$urlpath}--><!--{$volist.maleimg}-->" align='absmiddle' border='0' />&nbsp;&nbsp;
			  <img src="<!--{$urlpath}--><!--{$volist.femaleimg}-->" align='absmiddle' border='0' />
			  <!--{$volist.groupname}--></td>
			  <td class='hback'>
			    <!--{if $volist.groupid==1}-->
				永久 免费
				<!--{else}-->

			    <!--{if !empty($volist.commer)}-->
				<!--{foreach $volist.commer as $val}-->
				<input type="radio" name="viptype" id="viptype" value="<!--{$volist.groupid}-->_<!--{$val.orders}-->" />&nbsp;有效<!--{$val.days}-->天，支付<!--{$lang.money}--><!--{$val.money}--><!--{$lang.money_dot}-->，赠送<!--{$lang.points}--><!--{$val.points}-->，赠送短信<!--{$val.mbsms}-->条<br />
				<!--{/foreach}-->
				<!--{/if}-->

				<!--{/if}-->
			  </td>
			  <td class='hback' align='center'>
			  <!--{if $volist.groupid>1}-->
			  <a class="btn_b2" href="###" onclick="return checkvip();"><span>立刻升级</span></a>
			  <!--{/if}-->

			  <a href="<!--{$ucfile}-->?c=vip&a=view&id=<!--{$volist.groupid}-->" class="btn_c3"><span>查看服务</span></a>
			  </td>
			</tr>
			<!--{/foreach}-->
			</tr>
		  </table>
		  </form>
		  <!--{/if}-->

		  <!--{if $a eq 'view'}-->
		  <table cellpadding='3' cellspacing='3' class='viptb'>
		    <tr>
			  <td class='hback_b' width='20%'> 会员级别 </td>
			  <td class='hback_vip_1' width='80%'><!--{$group.groupname}--></td>
			</tr>
			<tr>
			  <td class='hback_b'> 身份标识 </td>
			  <td class='hback_vip_1'>
			  男：<img src="<!--{$urlpath}--><!--{$group.maleimg}-->" align='absmiddle' border='0' />&nbsp;&nbsp;&nbsp;
			  女：<img src="<!--{$urlpath}--><!--{$group.femaleimg}-->" align='absmiddle' border='0' />
			  </td>
			</tr>
			<tr>
			  <td class='hback_b'> 类别&有效期 </td>
			  <td class='hback_vip_2'>
			    <!--{if $group.groupid==1}-->
				永久 免费
				<!--{else}-->
			    <!--{if !empty($group.commer)}-->
				<form method="post" id="vip_form" action="<!--{$ucfile}-->?c=vip&a=savevip">
				<!--{foreach $group.commer as $val}-->
				<input type="radio" name="viptype" id="viptype" value="<!--{$group.groupid}-->_<!--{$val.orders}-->" />&nbsp;有效<!--{$val.days}-->天，支付<!--{$lang.money}--><!--{$val.money}--><!--{$lang.money_dot}-->，赠送<!--{$lang.points}--><!--{$val.points}-->，赠送短信<!--{$val.mbsms}-->条<br />
				<!--{/foreach}-->
				  <!--{if $group.groupid>1}-->
				  <a class="btn_b2 btn" href="###" onclick="return checkvip();"><button type='button'>立刻升级</button></a>
				  <!--{/if}-->
				</form>
				<!--{/if}-->
				<!--{/if}-->
			  </td>
			</tr>
			<tr>
			  <td class='hback_b'> 每天登录积分 </td>
			  <td class='hback_vip_1'><!--{$group.loginpoints}--></td>
			</tr>
			<tr>
			  <td class='hback_b'> 上传照片 </td>
			  <td class='hback_vip_1'>
			  <!--{if $group.photo.photolimit==1}--><!--{$group.photo.photonum}--> 张 <!--{else}--> 不限<!--{/if}-->
			  </td>
			</tr>
			<tr>
			  <td class='hback_b'> 关注好友 </td>
			  <td class='hback_vip_1'>
			  <!--{if $group.friend.friendlimit==1}--><!--{$group.friend.friendnum}--> 个 <!--{else}--> 不限<!--{/if}-->
			  </td>
			</tr>
			<tr>
			  <td class='hback_b'> 信件权限 </td>
			  <td class='hback_vip_2'>
			    <table cellpadding='5' cellspacing='5' border='0' class='viptb'>
				  <tr>
				    <td class='hback_none' width='30%'>每天给同性会员发信件 </td>
					<td class='hback_none' width='70%'>
					<!--{if $group.msg.txsendlimit==1}--><!--{$group.msg.txsendnum}--> 封 <!--{else}--> 不限<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>每天查看同性会员信件 </td>
					<td class='hback_none'>
					<!--{if $group.msg.txviewlimit==1}--><!--{$group.msg.txviewnum}--> 封 <!--{else}--> 不限<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>每天给异性会员发信件 </td>
					<td class='hback_none'>
					<!--{if $group.msg.yxsendlimit==1}--><!--{$group.msg.yxsendnum}--> 封 <!--{else}--> 不限<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>每天查看异性会员信件 </td>
					<td class='hback_none'>
					<!--{if $group.msg.yxviewlimit==1}--><!--{$group.msg.yxviewnum}--> 封 <!--{else}--> 不限<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>信件置顶 </td>
					<td class='hback_none'>
					<!--{if $group.msg.msgistop==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				</table>
			  </td>
			</tr>

			<tr>
			  <td class='hback_b'> 查看权限 </td>
			  <td class='hback_vip_3'>
			    <table cellpadding='5' cellspacing='5' border='0' class='viptb'>
				  <tr>
				    <td class='hback_none' width='30%'>查看会员联系方式 </td>
					<td class='hback_none' width='70%'>
					<!--{if $group.view.viewcontact==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>查看会员登录情况 </td>
					<td class='hback_none'>
					<!--{if $group.view.viewlogintime==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>查看会员相册 </td>
					<td class='hback_none'>
					<!--{if $group.view.viewphoto==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>查看最近访客 </td>
					<td class='hback_none'>
					<!--{if $group.view.viewvisitor==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>查看速配结果 </td>
					<td class='hback_none'>
					<!--{if $group.view.viewmatch==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				</table>
			  </td>
			</tr>

			<tr>
			  <td class='hback_b'> 发布权限 </td>
			  <td class='hback_vip_3'>
			    <table cellpadding='5' cellspacing='5' border='0' class='viptb'>
				  <tr>
				    <td class='hback_none' width='30%'>发布日记 </td>
					<td class='hback_none' width='70%'>
					<!--{if $group.publish.pubdiary==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />&nbsp;&nbsp;
					奖励<!--{$lang.points}-->：<!--{$group.publish.diarypoints}-->
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->


					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>发布求助 </td>
					<td class='hback_none'>
					<!--{if $group.publish.pubask==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />&nbsp;&nbsp;
					奖励<!--{$lang.points}-->：<!--{$group.publish.askpoints}-->
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>发布约会 </td>
					<td class='hback_none'>
					<!--{if $group.publish.pubdating==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />&nbsp;&nbsp;
					奖励<!--{$lang.points}-->：<!--{$group.publish.datingpoints}-->
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				  <tr>
				    <td class='hback_none'>发布评论 </td>
					<td class='hback_none'>
					<!--{if $group.publish.pubcomment==1}-->
					<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
					<!--{else}-->
					<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
					<!--{/if}-->
					</td>
				  </tr>
				</table>
			  </td>
			</tr>

			<tr>
			  <td class='hback_b'> 使用会员高级搜索 </td>
			  <td class='hback_vip_1'>
				<!--{if $group.view.useadvsearch==1}-->
				<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
				<!--{else}-->
				<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
				<!--{/if}-->
              </td>
			</tr>
			<tr>
			  <td class='hback_b'> 访问会员在线页面 </td>
			  <td class='hback_vip_1'>
				<!--{if $group.view.viewonlineuser==1}-->
				<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
				<!--{else}-->
				<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
				<!--{/if}-->
			  </td>
			</tr>
			<tr>
			  <td class='hback_b'> 发送手机短信 </td>
			  <td class='hback_vip_1'>
				<!--{if $group.msg.sendsms==1}-->
				<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
				<!--{else}-->
				<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
				<!--{/if}-->
			  </td>
			</tr>
			<!--{if true === $config.webim_enable}-->
			<tr>
			  <td class='hback_b'> 在线聊天 </td>
			  <td class='hback_vip_1'>
				<!--{if $group.view.webim==1}-->
				<img src="<!--{$tplpath}-->cp/images/ok.gif" align='absmiddle' />
				<!--{else}-->
				<img src="<!--{$tplpath}-->cp/images/n.gif" align='absmiddle' />
				<!--{/if}-->
			  </td>
			</tr>
			<!--{/if}-->

			<tr>
			  <td class='hback_none'></td>
			  <td class='hback_none'> <a href='<!--{$ucfile}-->?c=vip'>返回服务列表</a></td>
			</tr>
		  </table>
		  <!--{/if}-->

      </div>
    </div>
    <div style="clear:both;"></div>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}-->
</body>
</html>
<script language="javascript">
function checkvip(){
	var t = "";
	t = 'viptype';
	var item = $("input[name='viptype']:checked");
	var len  = item.length;
	if(len==0) {
	    alert("请选择要升级的类别(有效期)");
		return false;
	}
	<!--{if $u.vip==1}-->
		if (confirm('您当前所在的会员组还没有到期，确定重新升级？')) {
			$('#vip_form').submit();
			return true;
		}
		else {
			return false;
		}
	<!--{else}-->
		if (confirm('确认升级吗？')) {
			$('#vip_form').submit();
			return true;
		}
		else {
			return false;
		}
	<!--{/if}-->
}
</script>