⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view_message.php

📁 邮箱加即时聊天
💻 PHP
字号:
<?
include "Sysconf.php";
include "function.php";
	$messageid=$_GET["messageid"];
	$query ="select* from message where message_id='$messageid'";
	$result=mysql_query($query)or die("wwwwwww");
	$row=mysql_fetch_array($result);
	$size=$row["size"];
	$content=$row["content_path"];
	$fromid=$row["sender_id"];
	$from= getusername($fromid);
	$host="192.168.1.154";
	$annex_path=$row["annex_path"];	
	
	$sendtime=$row["send_time"];

	$topic=$row["subject"];
	if($size<150)
	{
		$query ="update  message  set message_flag =0 where message_id ='$messageid'";
		mysql_query($query) or die("数据库更新失败");
		
	}
	else{
		$file=explode("/www/",$content);
		//$pa="uploads/".$file[3]."/".$file[4];
	}
	//else =
	   //fileopen()
	//elsebu
		
?>


<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
form {  margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; font-family: "宋体", "黑体", "仿宋_GB2312", "System", "Fixedsys"; font-size: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px}
div {  font-family: "宋体", "幼圆", "黑体", "仿宋_GB2312", "System", "Fixedsys"; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px}
h6 {  font-size: 9pt; font-weight: bolder; font-style: normal; text-decoration: blink; line-height: normal}
h5 {  font-size: 14px; font-weight: bolder; line-height: normal}
h4 {  font-size: 15px; font-weight: bolder; line-height: normal}
h3 {  font-size: 16px; font-weight: bolder; line-height: normal}
h2 {  font-size: 18px; font-weight: bolder; letter-spacing: -1px; line-height: normal}
h1 {  font-size: 20px; font-weight: bolder; letter-spacing: -1px}
pre {  font-size: 9pt; color: #999999; line-height: normal; font-family: "宋体", "幼圆", "黑体", 
"仿宋_GB2312", "System", "Fixedsys"}
body, td, p, li, input, select{
	font-family: "宋体", "黑体", "仿宋_GB2312", "System", "Fixedsys";
	color: #000044;
	font-size: 12px;
	margin-top: 1px;
	margin-right: 1px;
	margin-bottom: 1px;
	margin-left: 1px;
	list-style-type: square;
	line-height: 130%;

}
body {background-color: #fafaff}
.font_大字显示全高 {line-height: 130%}
.TABLE_真1边框 {BORDER-COLLAPSE: collapse;LETTER-SPACING: 2px }
</style>
</head>

<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>
<body onLoad="FP_preloadImgs(/*url*/'moren/button9m.jpg', /*url*/'moren/button8m.jpg', /*url*/'moren/button6m.jpg', /*url*/'moren/button5m.jpg', /*url*/'moren/buttonCm.jpg', /*url*/'moren/buttonBm.jpg')">

<hr>
     <table width=100%>
	<tr>
	  <td align=right width=7% height="32">
		<img border="0" id="img5" src="moren/button7m.jpg" height="20" width="100" alt="发信人" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'moren/button8m.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'moren/button7m.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'moren/button9m.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'moren/button8m.jpg')" fp-style="fp-btn: Corporate 4; fp-font; fp-orig: 0" fp-title="发信人"><input type=text name=from value="<? echo $from; ?>"</td>
	  <td width=60% height="32"> </td>
	  <td align=left height="32">
		 </td>
	</tr>
	<tr>
	  <td align=right>
		<img border="0" id="img2" src="moren/button4mm.jpg" height="20" width="100" alt="主    题" fp-style="fp-btn: Corporate 4; fp-font; fp-orig: 0" fp-title="主    题" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'moren/button5mm.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'moren/button4mm.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'moren/button6mm.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'moren/button5mm.jpg')"><input type=text name=topic value="<? echo $topic; ?>"</td><td> </td>
	</tr>
	<tr>
	  <td align=left height="35">
		<img border="0" id="img3" src="moren/buttonAy.jpg" height="20" width="100" alt="附   件" fp-style="fp-btn: Corporate 4; fp-font; fp-orig: 0" fp-title="附   件" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'moren/buttonBy.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'moren/buttonAy.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'moren/buttonCy.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'moren/buttonBy.jpg')"></a>	
		<? if($annex_path!=""){
						$username=$_COOKIE['username'];
						$name=explode("/$username/",$annex_path); 
						$filename=$name[1];
						echo "<A href=down.php?username=$username&filename=$filename>$filename</A>";
					 }
							?>				
		</td>
		<td height="35"> </td>
	</tr>
    </table>
    <hr>


<table width="100%" height=70% border="1" cellpadding="0" cellspacing="0" frame=box>
  <tr> 
    <td width="100%" valign=top> 

<? if($size < 150*8) 
		echo $content;
	else{
?>

<iframe src="<? echo $file[1]; ?>" width=100% height=100%></iframe>
<? } ?>	 </td>
  </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -