$m_website = $mdata['u_website'] == '' ? '无' : "<a href=\"{$mdata['u_website']}\" target=\"_blank\">{$mdata['u_website']}</a>";
$m_avatar = MakeBBAvatar($mdata['u_avatar']);
//$m_grade= MakeBBGrade($mdata);
$m_tout = GetBBTout($mdata) . '%';
$m_rate = $mdata['g_w'] + $mdata['g_d'] + $mdata['g_l'] == 0 ? 0 : round($mdata['g_w'] * 100 / ($mdata['g_w'] + $mdata['g_d'] + $mdata['g_l']), 1);
$m_rate .= '%';
$mdata['reg_date'] = TimeToDate($mdata['reg_date']);
$mdata['last_visit'] = TimeToDate($mdata['last_visit']);
$buttons = '';
$encodename = urlencode($mdata['u_name']);
if ($udata['is_member'] && !IsSameName($name, $udata['u_name'])) {
    $buttons .= MakeBBButton("room_new.php?byname={$encodename}", '搜索新局');
    $buttons .= MakeBBButton("g_search.php?action=list&search_all_user=0&u_name={$encodename}", '搜索棋局');
    $buttons .= MakeBBButton("pm_new.php?action=new1&sendto={$encodename}", '发送消息', 500, 220);
    $buttons .= MakeBBButton("pm_new.php?action=invite1&sendto={$encodename}", '邀请下棋', 500, 220);
    if (!In_Names($mdata['u_name'], $udata['friends'])) {
        $buttons .= MakeBBButton("m_fb.php?action=f_add&tname={$encodename}", '加为好友');
    }
    if (!In_Names($mdata['u_name'], $udata['blacklist'])) {
        $buttons .= MakeBBButton("m_fb.php?action=b_add&tname={$encodename}", '加入黑名单');
    }
}
$m_rec = "{$mdata['g_w']}胜{$mdata['g_d']}平{$mdata['g_l']}负";
if ($mdata['u_bio'] == '') {
    $mdata['u_bio'] = '(空)';
} else {
    $mdata['u_bio'] = BBCoding($mdata['u_bio']);
}
ShowHeader('会员信息');
eval('echo "' . LoadTemplate('m_view') . '";');
ShowFooter();
            continue;
        }
        $pmnew = $pmdata['isnew'] ? HLTxt('*') : '';
        //$ignore='';
        $reply = $outbox ? '&nbsp;' : MakeBBButton("pm_new.php?&action=new1&sendto={$pmdata['comefrom']}", '回复', 550, 250);
        /*
        		$ignore= ( !In_Names( $pmdata['comefrom'], $udata['blacklist'] )) ?
        			MakeBBButton( "m_man.php?&action=add&name={$pmdata['comefrom']}", '拒收') : '' ;
        */
        if ($pmdata['u_stand'] == 4) {
            $pmfrom = $outbox ? 'To:' . MemberLink($pmdata['sendto']) : '';
            $pmfrom .= ' (' . HLTxt('系统消息') . ')';
            $message = BBCoding($pmdata['message'], true);
        } else {
            $pmfrom = $outbox ? 'To:' . MemberLink($pmdata['sendto']) : 'From:' . MemberLink($pmdata['comefrom']);
            $message = BBCoding($pmdata['message'], false);
        }
        //if( $pmnum > $cfg['maxpm']  )
        //	$message = "<del>$message</del>";
        eval("\$pmlist .= \"{$pm_cell} \";");
    }
    /*
    	if( $pmnum > $cfg['maxpm'] )
    	{
    		$sql ="DELETE FROM {$cfg['tb_pms']} WHERE sendto='{$udata['u_name']}' AND pmid<'{$endid}'";
    		RenDB_Query($sql,true) ;
    	}*/
}
if ($pmnum == 0) {
    $pmlist = "<tr bgcolor=\"{$color['cell']}\"><td>(空)</td></tr>";
}