<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
//oicq
if($addr['oicq'])
{
	$addr['oicq']="<a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=".$addr['oicq']."&amp;Site=".$public_r['sitename']."&amp;Menu=yes' target='_blank'><img src='http://wpa.qq.com/pa?p=1:".$addr['oicq'].":4'  border='0' alt='QQ' />".$addr['oicq']."</a>";
}
//表单
$record="<!--record-->";
$field="<!--field--->";
$er=explode($record,$formr['viewenter']);
$count=count($er);
for($i=0;$i<$count-1;$i++)
{
	$er1=explode($field,$er[$i]);
	if(strstr($formr['filef'],",".$er1[1].","))//附件
	{
		if($addr[$er1[1]])
		{
			$val="<a href='".$addr[$er1[1]]."' target='_blank'>".$addr[$er1[1]]."</a>";
		}
		else
		{
			$val="";
		}
	}
	elseif(strstr($formr['imgf'],",".$er1[1].","))//图片
	{
		if($addr[$er1[1]])
		{
			$val="<img src='".$addr[$er1[1]]."' border=0>";
		}
		else
		{
			$val="";
		}
	}
	elseif(strstr($formr['tobrf'],",".$er1[1].","))//多行文本框
	{
		$val=nl2br($addr[$er1[1]]);
	}
	else
	{
		$val=$addr[$er1[1]];
	}
	$memberinfo.="<tr bgcolor='#FFFFFF'><td height=25>".$er1[0].":</td><td>".$val."</td></tr>";
}

$public_diyr['pagetitle']='查看 '.$username.' 的会员资料';
$url="<a href='../../../'>首页</a>&nbsp;>&nbsp;<a href='../cp/'>会员中心</a>&nbsp;>&nbsp;查看会员资料";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<div id="currentPage" pagevalue="2"></div>
        <div class="bgBox">
   		<div class="zhLeft">
        	<h3 class="leftTitle xx">消息</h3>
            <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/msg/AddMsg/?enews=AddMsg"><span style="background-position:0 0;" class="xxIco"></span>发送消息</a></li>
                <li class="select"><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/msg/"><span style="background-position:-24px 0;" class="xxIco"></span>消息列表</a></li>
            </ul>
        </div>	
        <div class="zhRight">
       		<div class="bigTitle"><span style=" background-position:-96px 0;"></span>消息</div>
                <div class="Bborder"></div>	
<table width='100%' border='0' align='center' cellpadding='3' cellspacing='1' class="tableborder">
  <tr class="header"> 
    <td height="25" colspan="2">&nbsp;&nbsp;查看 <?=$username?> 的会员资料</td>
  </tr>
  <tr>
    <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
    <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr>
          <td> [ <a style="font-size:13px;" href="../msg/AddMsg/?username=<?=$username?>" target="_blank">发短消息</a> 
            ] [ <a style="font-size:13px;" href="../friend/add/?fname=<?=$username?>" target="_blank">加为好友</a> 
            ] [ <a style="font-size:13px;" href="../../space/?userid=<?=$r[userid]?>" target="_blank">会员空间</a> ] </td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td width='17%' height="25" bgcolor="#FFFFFF"> <div align='left'>用户名 </div></td>
    <td width='83%' height="25" bgcolor="#FFFFFF"> 
      <?=$username?>
    </td>
  </tr>
  <tr> 
    <td height="25" bgcolor="#FFFFFF">会员等级</td>
    <td height="25" bgcolor="#FFFFFF">
      <?=$level_r[$r[groupid]]['groupname']?>
    </td>
  </tr>
  <tr> 
    <td height="25" bgcolor="#FFFFFF">注册时间</td>
    <td height="25" bgcolor="#FFFFFF"> 
      <?=$registertime?>
    </td>
  </tr>
  <tr> 
    <td height="25" bgcolor="#FFFFFF"> <div align='left'>邮箱</div></td>
    <td height="25" bgcolor="#FFFFFF"> <a href="mailto:<?=$email?>"> 
      <?=$email?>
      </a></td>
  </tr>
  <?=$memberinfo?>
  <tr> 
    <td>&nbsp;</td>
    <td height="25"> <input type='button' name='Submit2' class="ganniu" value='返回' onclick='history.go(-1)'></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td height="5"></td>
  </tr>
</table>
</div> 	
        <div class="clear"></div>   
        </div>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>