ShowInfo.php
3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
//oicq
if($addr['oicq'])
{
$addr['oicq']="<a href='http://wpa.qq.com/msgrd?V=1&Uin=".$addr['oicq']."&Site=".$public_r['sitename']."&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);
$memberinfo='';
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> > <a href='../cp/'>會員中心</a> > 查看會員資料";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<table width='100%' border='0' align='center' cellpadding='3' cellspacing='1' class="tableborder">
<tr class="header">
<td height="25" colspan="2">查看 <?=$username?> 的會員資料</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td> [ <a href="../msg/AddMsg/?username=<?=$username?>" target="_blank">發短消息</a>
] [ <a href="../friend/add/?fname=<?=$username?>" target="_blank">加為好友</a>
] [ <a 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> </td>
<td height="25"> <input type='button' name='Submit2' value='返回' onclick='history.go(-1)'></td>
</tr>
</table>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>