<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='登录绑定';
$url="<a href=../../>首页</a>&nbsp;>&nbsp;<a href=../member/cp/>会员中心</a>&nbsp;>&nbsp;登录绑定";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<div id="currentPage" pagevalue="1"></div>
<div class="bgBox">
   		<div class="zhLeft">
        	<h3 class="leftTitle zh">账号信息</h3>
            <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/EditInfo/"><span style="background-position:-24px 0;" class="zhIco_01"></span>个人中心</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/EditInfo/EditSafeInfo.php"><span style="background-position:-96px 0;" class="zhIco_01"></span>修改密码</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/my/"><span style="background-position:-312px 0;" class="zhIco_01"></span>账号状态</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/fava/"><span style="background-position:-264px 0;" class="zhIco_01"></span>收藏夹</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/friend/"><span style="background-position:-384px 0;" class="zhIco_01"></span>好友列表</a></li>
                <li class="select"><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/memberconnect/ListBind.php"><span style="background-position:-144px 0;" class="zhIco_01"></span>绑定外部登录</a></li>
            </ul>
            <!--<h3 class="leftTitle kj">空间设置</h3>
             <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/SetSpace.php"><span style="background-position:-120px 0;" class="zhIco_02"></span>设置空间</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/ChangeStyle.php"><span style="background-position:-24px 0;" class="zhIco_02"></span>选择模板</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/gbook.php"><span style="background-position:-48px 0;" class="zhIco_01"></span>管理留言</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/feedback.php"><span style="background-position:-144px 0;" class="zhIco_02"></span>管理反馈</a></li>
            </ul>-->
        </div>	
        <div class="zhRight">
       		<div class="bigTitle"><span style=" background-position:-284px 0;"></span>绑定外部登录</div>
            <div class="bdBox">
                <div class="boxTop">
                	<div class="boxLeft_in"><div class="boxLeft_t"></div></div>
                </div>
                <div class="boxM"><span>建立绑定后,您可以使用绑定账号快速登录。</span></div>
                <div class="boxBottom">
                	<div class="boxRight_in"><div class="boxRight_t"></div></div>
                </div>           
            </div>
            
            <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header">
    <td width="36%"><div align="center">平台</div></td>
    <td width="20%" height="25"><div align="center">绑定时间</div></td>
    <td width="20%" height="25"><div align="center">上次登录</div></td>
    <td width="9%" height="25"><div align="center">登录次数</div></td>
    <td width="15%"><div align="center">操作</div></td>
  </tr>
  <?php
  while($r=$empire->fetch($sql))
  {
	  $bindr=$empire->fetch1("select id,bindtime,loginnum,lasttime from {$dbtbpre}enewsmember_connect where userid='$user[userid]' and apptype='$r[apptype]' limit 1");
	  if($bindr['id'])
	  {
		  $dourl='<a href="doaction.php?enews=DelBind&id='.$bindr['id'].'" onclick="return confirm(\'确认要解除绑定?\');">解除绑定</a>';
	  }
	  else
	  {
		  $dourl='<a href="index.php?apptype='.$r['apptype'].'&ecms=1">立即绑定</a>';
	  }
  ?>
  <tr bgcolor="#FFFFFF">
    <td><div align="center">
      <?=$r['appname']?>
    </div></td>
    <td height="25"><div align="center">
      <?=$bindr['bindtime']?date('Y-m-d H:i:s',$bindr['bindtime']):'未绑定'?>
    </div></td>
    <td height="25"><div align="center">
      <?=$bindr['lasttime']?date('Y-m-d H:i:s',$bindr['lasttime']):'--'?>
    </div></td>
    <td height="25"><div align="center">
      <?=$bindr['loginnum']?>
    </div></td>
    <td><div align="center"><?=$dourl?></div></td>
  </tr>
  <?php
  }
  ?>
</table>
        </div> 	
        <div class="clear"></div>  
        </div>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>