<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<%dim messid
messid=SafeRequest("id",1)
set rs=server.CreateObject("adodb.recordset")
if messid="" then
rs.open "select top 1 * from mess order by messdtm desc",conn,1,1
else
rs.open "select * from mess where messid="&messid&"",conn,1,1
end if
%> 
<title><%=trim(rs("messsubject"))%>--最新新闻--<%=webname%></title>
<LINK 
href="img/code43.css" type=text/css rel=stylesheet>
<table align="center" width="404" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="12">&nbsp;</td>
    <td  width="100%" bgcolor="#0099CC" height="30"><div align="center"><b><font color="#FFFFFF">查看留言</font></b></div></td>
    <td width="65">&nbsp;</td>
  </tr>
  </table>
<table width="400" border="0" align="center" cellpadding="2" cellspacing="1" class=tableborder>
  <tr> 
    <td align="center" colspan="4" height="30" class="firstrow" >&nbsp;</td>
  </tr>
  <tr height=25> 
    <td width="80" class=firstrow style="PADDING-LEFT: 6px">留言类型：</td>
    <td width="120" class=firstrow style="PADDING-LEFT: 6px"> 
      <% select case rs("messtype")
case "1"
response.write "普通留言"
case "2"
response.write "意见建议"
case "3"
response.write "缺货登记"
case "4"
response.write "合作意向"
case "5"
response.write "产品投诉"
case "6"
response.write "服务投诉"
end select %>
    </td>
    <td width="80" class=firstrow style="PADDING-LEFT: 6px">来访 IP ：</td>
    <td width="120" class=firstrow style="PADDING-LEFT: 6px"> 
      <% if session("admin")="" then %>
      保密 
      <% else %>
      <% = trim(rs("messip")) %>
      <% end if %>
    </td>
  </tr>
  <tr height=25> 
    <td class=firstrow style="PADDING-LEFT: 6px">留言用户：</td>
    <td class=firstrow style="PADDING-LEFT: 6px"> 
      <% = trim(rs("messusername")) %>
    </td>
    <td class=firstrow style="PADDING-LEFT: 6px">电子邮件：</td>
    <td class=firstrow style="PADDING-LEFT: 6px"> 
      <% if session("admin")="" then %>
      保密 
      <% else %>
      <a href=mailto:<% = trim(rs("messemail"))%>> 
      <% = trim(rs("messemail")) %>
      </a> 
      <% end if %>
    </td>
  </tr>
  <tr height=25> 
    <td class=firstrow style="PADDING-LEFT: 6px">发表时间：</td>
    <td class=firstrow style="PADDING-LEFT: 6px"><%=rs("messdtm")%> </td>
    <td class=firstrow style="PADDING-LEFT: 6px">联系电话：</td>
    <td class=firstrow style="PADDING-LEFT: 6px"> 
      <% if session("admin")="" then %>
      保密 
      <% else %>
      <% = trim(rs("messtel")) %>
      <% end if %>
    </td>
  </tr>
  <tr height=25> 
    <td class=firstrow style="PADDING-LEFT: 6px">留言主题：</td>
    <td colspan="3" class=firstrow style="PADDING-LEFT: 6px"> <a href=mailto:<% = trim(rs("messemail"))%>> 
      </a><%=trim(rs("messsubject"))%></td>
  </tr>
  <tr height=30> 
    <td style="PADDING-LEFT: 6px" valign="top" class=firstrow>留言内容：</td>
    <td colspan="3" style="PADDING-LEFT: 6px" class=firstrow><%=trim(rs("messcontent"))%></td>
  </tr>
  <tr height=30> 
    <td valign="top" class=firstrow style="PADDING-LEFT: 6px">回　　复：</td>
    <td colspan="3" class=firstrow style="PADDING-LEFT: 6px">&nbsp;<%=trim(rs("messfrom"))%></td>
  </tr>
  <tr> 
    <td colspan="4" align="center" height="25" class="firstrow"> <a href='javascript:window.close()'>点击关闭窗口</a></td>
  </tr>
</table>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
