📄 index.php
字号:
<?php session_start();include("conn.php");$furl=getenv("http_referer");?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>华宇在线论坛</title>
<style type="text/css">
<!--
a:link {
color: #FF0000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #000000;
}
.style1 {
font-size: 13px;
font-family: "宋体";
font-weight: normal;
}
.style2 {
font-size: 14px;
font-family: "宋体";
}
.style3 {
font-size: 12px;
font-family: "宋体";
font-weight: normal;
}
.style4{
font-size:16px;
font-family:"宋体";
color:#000000;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EFF3FF;
}
td{
font-size:9pt;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<table width="776" border="0" align="center" cellpadding="1" cellspacing="1" >
<tr>
<td align="center" valign="middle"><?php include("head.php");?></td>
</tr>
<tr>
<td align="left" valign="middle"><?php include"dljm.php";?></td>
</tr>
<tr>
<td align="center" valign="middle">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="image/55.gif">
<tr>
<?php
date_default_timezone_set('PRC');
$date=date("Y-m-d H:i:s");?>
<td height="30"> </td>
<td width="580"><marquee direction="left" scrollamount="1" scrolldelay="7">
<img src="image/run.gif" width="19" height="18"><span class="style1">欢迎访问华宇论坛! <?php echo $date;?> </span>
</marquee></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
$query="select * from hw_zqxx where pb='否'";
$result=mysql_query($query);
echo mysql_error();
if($result){
while ($myrow=mysql_fetch_array($result)){
?>
<table width="776" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEFFFF">
<tr>
<td>
<table width="776" height="60" border="0" align="center" cellpadding="0" cellspacing="0" background="image/66.gif">
<tr>
<td width="61" height="60" align="right" valign="top"><?php echo "<img src=\"gly/$myrow[tb]\">";?>
</td>
<td width="525" height="60" align="center" valign="middle">
<table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="33" align="left" valign="middle" class="style1"><img src="image/greendot2.gif" width="11" height="13"><a href="showzq.php?zq=<?php echo urlencode($myrow[zq]);?>&id=<?php echo $myrow[id];?>" target="_self"><?php echo $myrow[zq];?></a>
</td>
</tr>
<tr>
<td height="27" align="left" valign="middle"><span class="style1"> 版主:<?php echo $myrow[bz];?></span>
</td>
</tr>
</table>
</td>
<td width="180" align="center" valign="middle">
<table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" valign="bottom"><span class="style3"> 创建日期:<?php echo $myrow[cjsj];?></span>
</td>
</tr>
<tr>
<td height="20" valign="middle"><span class="style3"> 主题总数:
<?php
$quer="select count(*)zts from hw_tzxx where zq='$myrow[zq]' ";
$resul=mysql_query($quer);
$zts=mysql_result($resul,0,"zts");
echo $zts;
?></span>
</td>
</tr>
<tr>
<td width="110" height="20" valign="top"><span class="style3"> 今日主题总数:
<?php
$jrzt="select count(*)jrzts from hw_tzxx where zq='$myrow[zq]' and fbsj='$date'";
$res=mysql_query($jrzt);
$jrzts=mysql_result($res,0,"jrzts");
echo $jrzts;
?>
</span></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#D0D0FF">
<td>
<table align="center" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr align="center">
<td width="60" height="26">状态</td>
<td width="443">主题</td>
<td width="80" align="center">作者</td>
<td width="80" align="center">回复/人气</td>
<td width="100"align="center">发表时间</td>
</tr>
</table>
</td>
</tr>
<?php
$tz="select * from hw_tzxx where zq='$myrow[zq]'";
$result1=mysql_query($tz);
echo mysql_error();
if($result1){
while ($myrow1=mysql_fetch_array($result1)){
?>
<tr align="center">
<td>
<table align="center" width="776">
<tr>
<td width="60" height="27" align="center" valign="middle"><?php echo $myrow1[zt]; ?></td>
<td height="27" width="456" align="left" valign="middle"><span class="style4"> <a href="showtz.php?zhuti=<?php echo urlencode($myrow1[zhuti]);?>&recid=<?php echo $myrow1[id];?>" target="_blank"><?php echo $myrow1[zhuti];?></a></span>
</td>
<td width="80" align="center"><?php echo $myrow1[username];?></td>
<td width="80" align="center"><?php $quer="select count(*) as hfjl from hw_hftz where ljid='$myrow1[id]'";
$resul=mysql_query($quer);
$hfjl=mysql_result($resul,0,'hfjl');
echo $hfjl;
?>
/<?php echo $myrow1[fwjl];?>
</td>
<td width="100" align="center"><?php echo $myrow1[fbsj];?></td>
</tr>
</table>
</td>
</tr>
<?php
}
}
?>
</table>
<?php
}
}?>
<div align="center"><?php include"under.php"?></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -