📄 showtz.php
字号:
<?php session_start();include("../conn.php"); ?>
<?php if($page==""){$page=1;};?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>华宇在线论坛</title>
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style1 {
font-size: 13px;
font-family: "宋体";
}
.style2 {
font-size: 12px;
font-family: "宋体";
}
.style3 {font-size: 13px;
font-family: "宋体";
font-weight: normal;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EFF3FF;
}
td{
font-size:9pt;
}
-->
</style></head>
<script language="javascript" >
function hf(){
if($uername==""&&$password==""){
alert("请先注册登录,然后可以回复信息!!");
return false;
}
}
</script>
<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><?php include("../gly/head.php");?></td>
</tr>
</table>
<table width="776" height="177" border="0" align="center" cellpadding="0" cellspacing="0" background="image/6.gif">
<tr>
<td width="776" height="30"><span class="style1"> 主题:『<?php echo $zhuti;?>』</span></td>
</tr>
<tr>
<td height="147" colspan="3" align="left" valign="top">
<table width="100%" height="145" border="0" cellpadding="0" cellspacing="0">
<?php $id=$_GET[recid];
$query="select * from hw_tzxx where zhuti='$zhuti'and id='$id'";
$result=mysql_query($query);
$ztrow=mysql_fetch_array($result); ?>
<tr>
<?php
$id=$_GET[recid];
$update="update hw_tzxx set fwjl=fwjl+1 where id='$id'";
$result=mysql_query($update);
$query="select * from hw_user where username='$ztrow[username]'";
$result=mysql_query($query);
$row=mysql_fetch_array($result) ?>
<td width="136" height="145" align="left" valign="top">
<table width="136" height="145" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" align="center" valign="middle" class="style1"><?Php echo $row[username];?></td>
</tr>
<tr>
<td height="64" align="center" valign="middle"><img src="<?php echo $row[tx];?>"width="60" height="60"></td>
</tr>
<tr>
<td height="26" align="center" valign="middle" class="style1">我是:<?php echo $row[sex];?>生</td>
</tr>
<tr>
<td height="30" align="center" valign="middle"><img src="<?php echo "image_11.php?recid=$ztrow[xq]";?>"></td>
</tr>
</table>
</td>
<td width="1"> </td>
<td width="643" align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="80%" height="24" class="style1"> Email:<?php echo $row[email];?> QQ:<?php echo $row[qq];?> 发表时间:<?php echo $ztrow[fbsj];?></td>
<td width="20%" class="style1"><a href="hftj.php?zhuti=<?php echo urlencode($zhuti);?>&recid=<?php echo $id;?>">回复</a></td>
</tr>
<tr>
<td height="3" colspan="2"> </td>
</tr>
<tr>
<td width="505" class="style2"> <?php echo $ztrow[neirong];?> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<?php
if($page){
$page_size=2;
$quer="select count(*) as total from hw_hftz where ljid='$id'";
$resul=mysql_query($quer);
$message_count=mysql_result($resul,0,'total');
$page_count=ceil($message_count/$page_size);
$offset=($page-1)*$page_size;
$quer="select * from hw_hftz where ljid='$id' order by id desc limit $offset ,$page_size";
$resul=mysql_query($quer);
if($resul){
while($myrow=mysql_fetch_array($resul)){
?>
<tr>
<td height="28" colspan="3" valign="middle" background="image/5.gif" class="style1"> 回 复:<?php echo $myrow[hfzt];?></td>
</tr>
<tr>
<td height="100" align="left" valign="top"><table width="776" height="100" border="0" cellpadding="0" cellspacing="0" background="image/7.gif">
<?php $query="select * from hw_user where username='$myrow[username]'";
$result=mysql_query($query);
$xq=mysql_fetch_array($result);
?>
<tr>
<td width="136" align="center" valign="top"><table width="136" height="88" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" align="center" valign="middle" class="style1"><?php echo $myrow[username];?></td>
</tr>
<tr>
<td height="64" align="center" valign="middle"><img src="<?php echo $xq[tx];?>"width="60" height="60"></td>
</tr>
</table></td>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="80%" height="24" class="style1"> Email:<?php echo $xq[email];?> QQ:<?php echo $xq[qq];?> 发表时间:<?php echo $myrow[hfsj];?></td>
<td width="20%"> </td>
</tr>
<tr>
<td height="3" colspan="2"> </td>
</tr>
<tr>
<td colspan="2" class="style2"> <?php echo $myrow[hfnr];?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
}
}
?>
</table>
<table width="776" height="40" border="0" align="center" cellpadding="0" cellspacing="0" background="image/4.gif">
<tr>
<td height="20" colspan="3"> </td>
</tr>
<tr>
<td width="260" height="20"> </td>
<td width="460"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="style3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="style3">
<td width="45%" class="#ff0000"> 页次:<font class="#ff0000"><?php echo $page;?></font> / <font class="#ff0000"><?php echo $page_count;?> </font>页 记录:<font class="#ff0000"><?php echo $message_count;?> </font>条 </td>
<td width="45%" class="#ff0000"> 分页:
<?php
$zhuti=urlencode($zhuti);
$lmbs=urlencode($lmbs);
$xsoudh="zhuti=$zhuti&lmbs=$lmbs";
$next=$ljjl*10;
$n=$ljjl-1;
$m=$ljjl+1;
$prev_page=$page-10;
if ($ljjl==0){
echo "";
}else
{
echo "<a href='$PATH_INFO?vv=0&ljjl=0&page=1&$xsoudh'>首页</a> ";
$ccc=$vv-10;
echo "<a href='$PATH_INFO?vv=$ccc&ljjl=$n&page=$prev_page&$xsoudh'>上十页</a>";
}?>
<?php
for ($j=1;$j<=$page_count;$j++) {
$pnext=$next+$j;
if ($mm==10){
break;
}
if ($mm>$page_count){
break;
}
if ($page_count-$vv<10){
if ($mm>=$page_count-$vv){
break;
}
}
?>
<?php
echo "<a href='$PATH_INFO?vv=$vv&ljjl=$ljjl&page=$pnext&$xsoudh'>$pnext</a>";
$mm=$mm+1;
}
?>
</td>
<td width="10%">
<?php
$vv=$vv+$mm;
if ($page_count-$vv<=0){
echo "";
}else{
echo "<a href='$PATH_INFO?vv=$vv&ljjl=$m&page=$pnext&$xsoudh'>下十页</a>";
}
if ($message_count==0){
echo "没有记录!";
}
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<td width="56"> </td>
</tr>
</table>
<?php include("../gly/under.php");?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -