detailmsg.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:5k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="articleconn.asp"-->
  2. <!--#include file="security.asp"-->
  3. <%
  4. if session("flag")>1 then
  5. response.write "<br><p align=center>您没有操作的权限</p>"
  6. response.end
  7. end if
  8. %>
  9. <link rel="stylesheet" type="text/css" href="inc/Admin_STYLE.CSS">
  10. <html>
  11. <style type="text/css">
  12. <!--
  13. .样式1 {
  14. font-size: 9px;
  15. color: #000000;
  16. }
  17. -->
  18. </style>
  19. <head>
  20. <title>--短消息管理--</title>
  21. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  22. <style type=text/css>
  23. body  {
  24. background:#799AE1;
  25. margin:0px;
  26. font:9pt 宋体;
  27. background-color: #FFFFFF;
  28. }
  29. table  { border:0px; }
  30. td  { font:normal 12px 宋体; }
  31. img  { vertical-align:bottom; border:0px; }
  32. a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
  33. a:hover  { color:#428EFF;text-decoration:underline; }
  34. .sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
  35. .menu_title  { }
  36. .menu_title span  { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
  37. .menu_title2  { }
  38. .menu_title2 span  { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
  39. .样式2 {
  40. font-size: 9pt;
  41. font-weight: bold;
  42. }
  43. </style>
  44. </head>
  45. <body leftmargin="5" topmargin="20" marginwidth="0" marginheight="0" onLoad="javascript:window.focus();" >
  46. <%dim MsgId,msgRS
  47. msgID=clng(request.QueryString("msgID"))
  48. set msgRS=server.CreateObject("adodb.recordset")
  49. msgRS.open "select * from adminMsg where MsgId="&MsgId,conn,1,3
  50. if msgRS.eof then
  51.     response.write "对不起,此信息不存在或者已被删除"
  52. else
  53. msgRS("readle")=true
  54. msgRS.update
  55. response.write year(msgRS("sendDay"))&"年"&month(msgRS("sendDay"))&"月"&day(msgRS("sendDay"))&"日收到>>>&nbsp;"&trim(msgRS("msgTitile"))
  56. %>
  57. <table width="400" border="0" cellspacing="0" cellpadding="0" align="center">
  58.   <tr> 
  59.     <td> 
  60.       <table width="100%" height="135" border="0" cellpadding="0" cellspacing="0">
  61.         <tr> 
  62.           <td width="9" height="135" rowspan="2"></td>
  63.           <td class="12v"> 
  64.             <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
  65.               <tr> 
  66.                 <td class="12v" > 
  67.                   <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
  68.                     <tr> 
  69.                       <td height="135">
  70.                        <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  71.   <tr class="title"> 
  72.                           <tr> 
  73.                             <td height="22"> <div align="center" class="title 样式1 样式2"><%=trim(msgRS("msgTitile"))%></div></td>
  74.                           </tr>
  75.                           <tr> 
  76.                             <td height="97" valign="top" bgcolor="E1F4EE"> <table width="90%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
  77.                                 <tr> 
  78.                                   <td height="5"></td>
  79.                                 </tr>
  80.                               </table>
  81.                               <table width="90%" border="0" align="center" cellpadding="1" cellspacing="1">
  82.   <tr>
  83.                                   <td  colspan="2" class="tdbg"><%=trim(msgRS("content"))%></td>
  84.                                 </tr>
  85.                                 <tr> 
  86.                                   <td height="5" colspan="2" class="tdbg"></td>
  87.                                 </tr>
  88.                                 <tr> 
  89.                                   <td width="49%" valign="bottom" class="tdbg">&nbsp; </td>
  90.                                   <td width="51%" class="tdbg" style="PADDING-LEFT: 20px">来自:<%=trim(msgRS("sendBy"))%><br>
  91.                                   收到时间:<%=year(msgRS("sendDay"))&"年"&month(msgRS("sendDay"))&"月"&day(msgRS("sendDay"))&"日"%><br>                                  </td>
  92.                                 </tr>
  93.                               </table>                              </td>
  94.                           </tr>
  95.                           <tr>
  96.                             <td valign="top">
  97.                            <div align="center" class="tdbg 样式1">
  98.    <a href="#"  onClick="javascript:window.open('senduser.asp?userName=<%=trim(msgRS("sendBy"))%>','sendback','width=550,height=400')">回复信息</a>
  99.    &nbsp;&nbsp;<a href='javascript:window.close()'>点击关闭窗口</a></div></td>
  100.                           </tr>
  101.                         </table>
  102.                       </td>
  103.                     </tr>
  104.                   </table>
  105.                 </td>
  106.               </tr>
  107.             </table>
  108.           </td>
  109.           <td class="12v" width="9" rowspan="2"></td>
  110.         </tr>
  111.       </table>
  112.     </td>
  113.   </tr>
  114. </table>
  115. <br>
  116. <br>
  117. <%
  118. end if
  119. msgRS.close
  120. set msgRS=nothing%>
  121. </body>
  122. </html>