ShowInfo.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <?php
  8. //oicq
  9. if($addr['oicq'])
  10. {
  11. $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>";
  12. }
  13. //表单
  14. $record="<!--record-->";
  15. $field="<!--field--->";
  16. $er=explode($record,$formr['viewenter']);
  17. $count=count($er);
  18. $memberinfo='';
  19. for($i=0;$i<$count-1;$i++)
  20. {
  21. $er1=explode($field,$er[$i]);
  22. if(strstr($formr['filef'],",".$er1[1].","))//附件
  23. {
  24. if($addr[$er1[1]])
  25. {
  26. $val="<a href='".$addr[$er1[1]]."' target='_blank'>".$addr[$er1[1]]."</a>";
  27. }
  28. else
  29. {
  30. $val="";
  31. }
  32. }
  33. elseif(strstr($formr['imgf'],",".$er1[1].","))//图片
  34. {
  35. if($addr[$er1[1]])
  36. {
  37. $val="<img src='".$addr[$er1[1]]."' border=0>";
  38. }
  39. else
  40. {
  41. $val="";
  42. }
  43. }
  44. elseif(strstr($formr['tobrf'],",".$er1[1].","))//多行文本框
  45. {
  46. $val=nl2br($addr[$er1[1]]);
  47. }
  48. else
  49. {
  50. $val=$addr[$er1[1]];
  51. }
  52. $memberinfo.="<tr bgcolor='#FFFFFF'><td height=25>".$er1[0].":</td><td>".$val."</td></tr>";
  53. }
  54. $public_diyr['pagetitle']='查看 '.$username.' 的会员资料';
  55. $url="<a href='../../../'>首页</a>&nbsp;>&nbsp;<a href='../cp/'>会员中心</a>&nbsp;>&nbsp;查看会员资料";
  56. require(ECMS_PATH.'e/template/incfile/header.php');
  57. ?>
  58. <table width='100%' border='0' align='center' cellpadding='3' cellspacing='1' class="tableborder">
  59. <tr class="header">
  60. <td height="25" colspan="2">查看 <?=$username?> 的会员资料</td>
  61. </tr>
  62. <tr>
  63. <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
  64. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1">
  65. <tr>
  66. <td> [ <a href="../msg/AddMsg/?username=<?=$username?>" target="_blank">发短消息</a>
  67. ] [ <a href="../friend/add/?fname=<?=$username?>" target="_blank">加为好友</a>
  68. ] [ <a href="../../space/?userid=<?=$r[userid]?>" target="_blank">会员空间</a> ] </td>
  69. </tr>
  70. </table></td>
  71. </tr>
  72. <tr>
  73. <td width='17%' height="25" bgcolor="#FFFFFF"> <div align='left'>用户名 </div></td>
  74. <td width='83%' height="25" bgcolor="#FFFFFF">
  75. <?=$username?>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td height="25" bgcolor="#FFFFFF">会员等级</td>
  80. <td height="25" bgcolor="#FFFFFF">
  81. <?=$level_r[$r[groupid]]['groupname']?>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td height="25" bgcolor="#FFFFFF">注册时间</td>
  86. <td height="25" bgcolor="#FFFFFF">
  87. <?=$registertime?>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td height="25" bgcolor="#FFFFFF"> <div align='left'>邮箱</div></td>
  92. <td height="25" bgcolor="#FFFFFF"> <a href="mailto:<?=$email?>">
  93. <?=$email?>
  94. </a></td>
  95. </tr>
  96. <?=$memberinfo?>
  97. <tr>
  98. <td>&nbsp;</td>
  99. <td height="25"> <input type='button' name='Submit2' value='返回' onclick='history.go(-1)'></td>
  100. </tr>
  101. </table>
  102. <?php
  103. require(ECMS_PATH.'e/template/incfile/footer.php');
  104. ?>