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

📄 message_viewold.php

📁 VIP信息处理系统源码
💻 PHP
字号:
<link href="../public/index.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../public/check.js"></script>
<?
include_once("../public/db_conn.php");
include_once("../public/function.php");

$sql_message="select * from message where id='$_REQUEST[id]' and username='$_SESSION[adser_username]'";
$rs_message=mysql_query($sql_message);
$row_message=mysql_fetch_array($rs_message);
	$tit=$row_message[tit];
  	$time=$row_message["time"];
	$conn=$row_message[conn];
  	$s_name=$row_message[s_name];
	$to_type=$row_mess[to_type];
	$str_namere=($to_type==2)?"管理员 $row_message[admin_user]":$s_name;
	$conn=nl2br($conn);
?>
<style type="text/css">
<!--
.style1 {color: #000088}
-->
</style>
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="listtable">
	<tr align="center" class="listbody">
		<td height="150" valign="top">
			<table width='100%'>
  			<tr>
    			<td>
				<span class="style1"><?=$str_namere?></span>&nbsp;留言于 <span class="style1"><?=$time?></span>&nbsp; 主题: <?=$tit?> 
   			  	<hr noshade size="1" color="758ba2"><?=$conn?>
				</td>
  			</tr>
			</table><br>
		</td>
	</tr>
	<?
		$sql_mess="select*from message where s_id=$row_message[id] order by id asc";
		$rs_mess=mysql_query($sql_mess);
		while($row_mess=mysql_fetch_array($rs_mess)){
			$tit=$row_mess[tit];
  			$time=$row_mess["time"];
			$conn=$row_mess[conn];
  			$s_name=$row_mess[s_name];
			$to_type=$row_mess[to_type];
			$str_namere=($to_type==2)?"管理员 $row_mess[admin_user]":$s_name;
			$conn=nl2br($conn);
		?>
	<tr bgcolor="#f9f9f9">
		<td height="150" valign="top">
			<table width='100%'>
  			<tr>
    			<td>
				<span class="style1"><?=$str_namere?></span>&nbsp;回复于 <span class="style1"><?=$time?></span>&nbsp; <? if(!empty($tit)){ echo "主题: $tit<br>";}?>
    			<hr noshade size="1" color="758ba2">
				<?=$conn?>
				<br>
				</td>
  			</tr>
			</table>
		</td>
	</tr>
	<? 	}?>
</table>

⌨️ 快捷键说明

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