📄 message_viewold.php
字号:
<?session_start();include_once("../public/db_conn.php");include_once("../public/function.php");if(!empty($_SESSION[admin_username])){ $sql_flag="";}else{ $sql_flag=" and username='$_SESSION[web_username]'";}$sql_message="select * from message where id='$_REQUEST[id]' $sql_flag";$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]."($row_message[username])"; $to_type=$row_mess[to_type]; $str_namere=($to_type==2 || $to_type==4)?"管理员 $row_message[admin_user]":$s_name; $conn=nl2br($conn);?><link href="../public/index.css" rel="stylesheet" type="text/css"><script language="javascript" src="../public/check.js"></script><style type="text/css"><!--.style1 {color: #000088}--></style><table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolorlight="#758ba2" bordercolordark="#ffffff" > <tr bgcolor="#f9f9f9"> <td height="150" valign="top"> <table width='100%'> <tr> <td> <span class="style1"><?=$str_namere?></span> 留言于 <span class="style1"><?=$time?></span> 主题: <?=$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]."($row_mess[username])"; $to_type=$row_mess[to_type]; $str_namere=($to_type==2 || $to_type==4)?"管理员 $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> 回复于 <span class="style1"><?=$time?></span> <? 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 + -