<?php
define('EmpireCMSAdmin','1');
require("../../../e/class/connect.php");
require("../../../e/class/functions.php");
require("../../../e/member/class/user.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//驗證用戶
$lur=is_login();
$logininid=(int)$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=(int)$lur['groupid'];
$loginadminstyleid=(int)$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
//驗證權限
CheckLevel($logininid,$loginin,$classid,"spacedata");
$fid=(int)$_GET['fid'];
$r=$empire->fetch1("select fid,name,company,phone,fax,email,address,zip,title,ftext,userid,ip,uid,uname,addtime,userid,eipport from {$dbtbpre}enewsmemberfeedback where fid='$fid'");
if(!$r['fid'])
{
	printerror('ErrorUrl','',1);
}
if($r['uid'])
{
	$r['uname']="<a href='../../../e/space/?userid=".$r['uid']."' target='_blank'>".$r['uname']."</a>";
}
else
{
	$r['uname']='遊客';
}
$ur=$empire->fetch1("select ".egetmf('username')." from ".eReturnMemberTable()." where ".egetmf('userid')."='".$r['userid']."'");
$username=$ur['username'];

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>查看反饋信息</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class=tableborder style='word-break:break-all'>
  <tr class=header> 
    <td height="25" colspan="2">標題：
      <?=$r['title']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="25">空間主人：</td>
    <td height="25"><a href="../../../e/space/?userid=<?=$r['userid']?>" target="_blank"><?=$username?></a></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td width="19%" height="25">提交者:</td>
    <td width="81%" height="25"> 
      <?=$r['uname']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">發佈時間:</td>
    <td height="25"> 
      <?=$r['addtime']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">IP地址:</td>
    <td height="25"> 
      <?=$r['ip']?>:<?=$r['eipport']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">姓名:</td>
    <td height="25">
      <?=$r['name']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">公司名稱:</td>
    <td height="25">
      <?=$r['company']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">聯繫郵箱:</td>
    <td height="25">
      <?=$r['email']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">聯繫電話:</td>
    <td height="25">
      <?=$r['phone']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">傳真:</td>
    <td height="25">
      <?=$r['fax']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">聯繫地址:</td>
    <td height="25">
      <?=$r['address']?>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;郵編：
      <?=$r['zip']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">信息標題:</td>
    <td height="25">
      <?=$r['title']?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25" valign="top">信息內容:</td>
    <td height="25">
      <?=nl2br($r['ftext'])?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25" colspan="2"><div align="center">[ <a href="javascript:window.close();">關 
        閉</a> ]</div></td>
  </tr>
</table>
<br>
</body>
</html>
<?php
db_close();
$empire=null;
?>