<?include('sys.php');?>

<html>
<head>
<title> <?echo"$sitename";?> </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META http-equiv=Page-Enter content=revealTrans(Transition=23,Duration=)>
<META http-equiv=Page-Exit content=revealTrans(Transition=23,Duration=)>
<style type="text/css">
<!--
<STYLE type=text/css>TD {
	FONT-SIZE: 9pt; LINE-HEIGHT: 150%
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
	COLOR: #000000; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; TEXT-DECORATION: none
}
A:active {
	COLOR: #ff0000; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
}
A:hover {
	COLOR: #ff0000; FONT-SIZE: 9pt; TEXT-DECORATION: underline
}
.Content1{
	FONT-SIZE: 11pt;
	LINE-HEIGHT: normal;
	font-family: "幼圆";
	color: #FFFFFF;
	display: block;
	filter: Glow(Color=#339933, Strength=2);
	font-weight: bold;
	cursor: crosshair;
);
}
td {
	font-size: 9pt;
	color: #000000;
}
	-->
</style>
</head>

<body bgcolor="#ffffff" text="#a4b6d7" topmargin="2">
<?include('head.php');?>
<?php
$e=file("gb/list.php");
$count=count($e);
function getfromlist($file)
{
$fp=fopen($file,"r");
$list=fread($fp,filesize($file));
fclose($fp);
return $list;}
?>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="images/td-bg.gif" style="BORDER-left: #a4b6d7 1px solid;BORDER-right: #a4b6d7 1px solid;BORDER-bottom: #a4b6d7 1px solid">
  <tr>
      <td>
        <table  width="100%" border="0" cellspacing="0" cellpadding="1" >
        <tr> 
            
          <td align="right" height="19">共有 <b> <?echo "$count";?> </b> 条留言 分页: 
            <?php
$one_page=$pagecount;//每页留言数
$page_count=$count;//总条数
$pages=ceil($page_count/$one_page);//页数
$allpages=ceil($pages/10);//显示页数
$i=0;
for(;$i<$pages;$i++)
{$y=$i+1;
echo "<a href=index.php?&page=$i>"."$y"."</a>&nbsp;";}
?>
            <? $page;
$beign_count=$page_count-$page*$one_page;
$last_count=$beign_count-$one_page;
for($beign_count;$beign_count>$last_count;$beign_count--)
{
$a=$beign_count-1;
$id=chop($e[$a]);//去掉字串尾部的空格
$filenames="gb/id_$id";
if(!file_exists($filenames))continue;
$fd=getfromlist($filenames);
$data=explode("||","$fd");
?>
          </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <TABLE style="BORDER-left: #a4b6d7 1px solid; BORDER-top: #a4b6d7 1px solid; BORDER-bottom: #a4b6d7 1px solid;BORDER-right: #a4b6d7 1px solid" cellSpacing=0 cellPadding=0 width=760 align=center >
  <TBODY>
    <TR> 
      <TD  align=left height=162> 
        <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
          <TBODY>
            <TR> 
              <TD  width=116 valign="top" bgcolor="#FFFFFF"> 
                <TABLE cellSpacing=0 cellPadding=0 width="85%" align=center 
border=0>
                  <TBODY>
                    <TR> 
                      <TD> <p><br>
                        </p>
                        </TD>
                    </TR>
                    <TR> 
                      <TD height=39 align=center><img name=id src=<?php echo("$data[6]") ?> alt="<?php echo("$data[0]") ?>" > 
                      </TD>
                    </TR>
                    <TR> 
                      <TD height=21 align=center class="Content1"><?php echo("$data[0]") ?></TD>
                    </TR>
                    <TR> 
                      <TD align="center"> <font style="FONT-SIZE: 11pt"1;>〖NO<strong>:<? echo "$beign_count";?></strong>〗</font></TD>
                    </TR>
                  </TBODY>
                </TABLE>
              </TD>
              <TD align=middle width=4 bgColor=#f2f8ff height=162> 
                <TABLE height="100%" cellSpacing=0 cellPadding=0 width=1 
            bgColor=#a4b6d7>
                  <TBODY>
                    <TR> 
                      <TD width=1></TD>
                    </TR>
                  </TBODY>
                </TABLE> </TD>
              <TD  align=left width=620 bgColor=#f2f8ff height=162> 
                <TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0 bordercolor="#E6F2FF">
                  <TBODY>
                    <TR> 
                      <TD height="20" colSpan=3><a href="<? echo" $data[2]"; ?>" target="_blank"><img src="images/homepage.gif" alt="<? echo "$data[2]"; ?>" border="0"></a> 
                        &nbsp;<a href="mailto:<? echo"$data[1]"; ?>" target="_blank"><img src="images/email.gif" border="0" alt="<?php echo("$data[1]") ?>"></a> 
                        <img src="images/oicq.gif" height="16" alt="<? echo"$data[5]";?>"> 
                        &nbsp;<a 
                  href="re.php?id=<?echo"$id";?>"><img 
                  alt=回复这个帖子 src="images/replynow.gif" border=0></a> </TD>
                    </TR>
                    <TR> 
                      <TD height="5" colSpan=3> 
                        <HR width="100%" color=#777777 SIZE=1> </TD>
                    </TR>
                    <TR > 
                      <TD height="30" 
                  colSpan=3 style="WwarmsunTH: 580px; ">内容:<br>
                        &nbsp;&nbsp;&nbsp;<?php echo("$data[3]") ?></TD>
                    </TR>
                    <TR >
                      <TD height="18" 
                  colSpan=3 style="WwarmsunTH: 580px; "> 
                        <?php
	  echo("$data[8]") ?>
                      </TD>
                    </TR>
                    <TR > 
                      <TD colSpan=3 height=16> 
                        <HR width="100%" color=#777777 SIZE=1> 
                      </TD>
                    </TR>
                    <TR > 
                      <TD width="255" height="18"><A 
                  href="re.php?id=<?echo"$id";?>"><IMG 
                  alt=回复这个帖子 src="images/replynow.gif" border=0></A> <A 
                  style="COLOR: #a4b6d7; TEXT-DECORATION: none" 
                  onclick="checkclick('您确定要删除主题?')" 
                  href="del.php?count=<? echo "$beign_count";?>&id=<? echo "$id";?>"><IMG 
                  src="images/del.gif" border=0></A></TD>
                      <TD width="274">　<img src="images/posttime.gif">发表时间:<?php echo("$data[7]") ?></TD>
                      <TD width="90"><img src="images/ip.gif" width="13" height="15" alt="IP: <? echo"$data[4]";?>"> 
                        IP：已记录</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE><br>
<?php
}?>
<?include('copyright.php');?></center>
</body>
</html>
