<?
include "config.php";
include("flush.php");
?>

<html>
<head>
<title><? echo("$yourhome");?></title>
<meta content="text/html;" charset="gb2312" http-equiv="content-type">
<style type="text/css">
<!--

-->
</style>
<SCRIPT language=JavaScript> function pop(pageurl){var popwin=window.open(pageurl,"popWin","scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width=400,height=300,left=190,top=50,");return false;}</SCRIPT>
<script language="javaScript" type="text/javascript" SRC="chromeless_30.js"></SCRIPT>
<SCRIPT>
function openIT(theURL,W,H,X,Y, wname) {
CLOSEdwn 		= "img/close_d.gif"
CLOSEup 		= "img/close_a.gif"
CLOSEovr 		= "img/close_o.gif"
MINIdwn 		= "img/mini_dwn.gif"
MINIup 			= "img/mini_up.gif"
MINIovr 		= "img/mini_ovr.gif"
NONEgrf 		= "img/none.gif"
CLOCKgrf		= "img/clock.gif"
titHTML 	    = "<font face=verdana size=1>&nbsp;<?echo "$yourhome";?></font>"
titWIN			= "<?echo "$yourhome";?>"
winBORDERCOLOR   	= "#000000"
winBORDERCOLORsel	= "#000000"
winBGCOLOR    		= "#5CB5FF"
winBGCOLORsel 		= "#5CB5FF"
return openchromeless(theURL, wname, W, H, X, Y, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel)
}

</SCRIPT>
<script language="JavaScript">
function reg()
{

window.open("","reg","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0,width=230,height=120")


}
</script>

<script><!--
  if (top.location != this.location) {
   top.location = this.location;
  }
function windowOpener(wname){
  controlWindow=window.open("",wname,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=auto,resizable=yes,width=640,height=480");
  return true;
}function stoperror(){
return true
}
window.onerror=stoperror
//--></script>
<style type="text/css">
<!--
p, div {font-size:9pt; line-height:14pt; font-family:&#23435;&#20307}
.p1{font-size:9pt;font-family:&#23435;&#20307}
.p2{font-size:9pt;font-family:&#23435;&#20307;;line-height:17px}
.p3{font-size:14.8px;font-family:&#23435;&#20307}
.p4{font-size:14.8px;font-family:&#23435;&#20307;;line-height:17px}
.p5{font-size:1pt}
.gb				{font-family: &#23435;&#20307;; font-size: 9pt; line-height: 14pt}
a{text-decoration: none}
a:hover{color:red;}
a.t1:visited{color:red;}
.st{height: 20px; width: 100px; font-size: 9pt; color: #004080; background-color: #ffffff;
    border-left: #000000 1px solid; border-right: #000000 1px solid;
    border-top: #000000 1px solid; border-bottom: #000000 1px solid;}
.st1{height: 20px; width: 36px; font-size: 9pt; color: #004080; background-color: #c4ecff;
    border-left: #ffffff 1px solid; border-right: #00a3f0 1px solid;
    border-top: #ffffff 1px solid; border-bottom: #00a3f0 1px solid;
    clip: rect(   );}
.st2{height: 20px; width: 80px; font-size: 9pt; color: #004080; background-color: #ffffff;}
-->
</style>
</head>


<body bgcolor="white" text="#004080" link="#004080" vlink="#00a3f0" alink="red" onload="zxc()">
<div id=shnav style="position:absolute; left:0px; top:0px; height:20; visibility:visible; z-index:1">
<table border=0 width=760 cellpadding=0 cellspacing=0><tr><td height=15 nowrap bgcolor=C8E8F4  class=gb align=center>
   

</td></tr></table>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="750">
  <tr> 
    <td  align="right"> 
      <div align="left">&nbsp;<a href="http://xlzx.24cc.com/"><IMG src="file:///D:/php/free/xlimages/bj.gif" width="300" height="81" border="0"></a></div>
    
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="750">
  <tr>
    <td bgcolor="#0080c0" class="p5" height="1">.</td>
  </tr>
  <tr>
    <td bgcolor="#00a8f9" class="p5" height="1">.</td>
  </tr>
  <tr>
    <td bgcolor="#80d6ff" class="p5" height="1">.</td>
  </tr>
  <tr>
    <td bgcolor="#0080c0" class="p5" height="3">.</td>
  </tr>
  <tr>
    <td bgcolor="#0080c0" align="center">
      <table border="0" cellpadding="0" cellspacing="0" width="744">
        <tr>
          <td bgcolor="#0080c0" width="50%" class="p2">&nbsp;&nbsp;<span lang="zh-cn"><font color="#FFFFFF">小林在线</font></span><font color="#e0e0e0"><font color="#ffffff">&gt;&gt;</font><font color="#FFFFFF"> </font> <a href="index.php"><font color="#FFFFFF">贺卡中心</font></a></font></td> 
          <td bgcolor="#0080c0" width="50%" class="p2" align="right">　</td>
        </tr>
        <tr>
          <td bgcolor="ffffff" colspan="2" class="p2" align="center">
            &nbsp;<font color='ff0000'></font><?require("class.php");?><font color='ff0000'></font><a href="diskip.asp?lbname="></a> 
<?
$num1=$num1;
if($page==""){$page=1;}else{$page=$page;}
$num2=$num1*$page;
$num4=$page-1;
$num4=$num1*$num4;
$book="$data/$n.php";
$garray = file($book);
$abcde=count($garray);
$cog=$abcde;
if($cog<=$num2){$cog=$cog;}else{$cog=$num2;}


echo <<<EOD
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td bgcolor="#0080c0" class="p5" height="3">　</td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="225" align="left">
  <tr>
    <td bgcolor="#0080c0" align="right">
      <table border="0" cellpadding="0" cellspacing="0" width="222" bgcolor="white">
        
        <tr>
          <td bgcolor="#0080c0" height="5" class="p5"></td>
        </tr>
        <tr>
          <td bgcolor="#00a3f0" height="7" class="p5">.</td>
        </tr>
        <tr>
          <td bgcolor="#3cbfff" height="9" class="p5">.</td>
        </tr>
        <tr>
          <td bgcolor="#0080c0" align="center" class="p2"><font color="#ffffff">{---  
            $b 站长推见区 ---}</font></td> 
        </tr>
        <tr>
          <td class="p1"><table width=100% border=0 cellspacing=1 cellpadding=2>
<tr bgcolor=C8E8F4><td class="p2" bgcolor=C8E8F4 width=30 align=center>排名</td><td class="p2" width=75>名称</td><td width=55 class="p2">类别</td><td class="p2" width=30>点击</td>
EOD;
?>

<?
for($i=$num4;$i<$cog;$i++){
$larray = explode("|",$garray[$i]);

if($larray[8]=="true"){
echo "<tr><td bgcolor=F0F9FC align=center class=p3>$larray[0]</td><td class=p2 bgcolor=F0F9FC><a href=send.php?n=$n&m=$larray[7]&id=$larray[0]>$larray[1]</a></td><td class=p2 bgcolor=F0F9FC><a href=card.php?n=$n&b=$b>$b</a></td><td class=p2 bgcolor=F0F9FC>$larray[9]</td></tr>";}
}
?>
<? 
echo <<<EOD
   </table>
                      
 </td>
        </tr>
        <tr>
          <td bgcolor="#0080c0" height="2" class="p5">.</td>
        </tr><tr>
          <td bgcolor="#00a3f0" height="7" class="p5">.</td>
        </tr>
        <tr>
          <td bgcolor="#3cbfff" height="9" class="p5">.</td>
        </tr>
        <tr>
          <td bgcolor="#0080c0" align="center" class="p2"><font color="#ffffff">{---  
            $b 精华区 ---}</font></td> 
        </tr>
        <tr>
          <td class="p1"><table width=100% border=0 cellspacing=1 cellpadding=2>
<tr bgcolor=C8E8F4><td class="p2" bgcolor=C8E8F4 width=30 align=center>排名</td><td class="p2" width=75>名称</td><td width=55 class="p2">类别</td><td class="p2" width=30>点击</td>
EOD;
?>
<?
for($i=$num4;$i<$cog;$i++){
$larray = explode("|",$garray[$i]);




if($larray[9]>=$xlzxnum){
echo "<tr><td bgcolor=F0F9FC align=center class=p3>$larray[0]</td><td class=p2 bgcolor=F0F9FC><a href=kan.asp?id=188>$larray[1]</a></td><td class=p2 bgcolor=F0F9FC><a href=card.php?n=$n&b=$b>$b</a></td><td class=p2 bgcolor=F0F9FC>$larray[9]</td></tr>"
;}
}
?>
<?


$cog1=$abcde;
$num3=$cog1/$num1;
/*判断$num3是否为整数,若为整数则取其值,否则取小数的整数部分加一*/
$isint=is_int($num3);
if($isint){
$numb=$num3;
}else{
$numa=explode(".","$num3");
$numb=$numa[0]+1;}
/*---------------------------------------------------------*/

$z=$page-1;
if($z>=1){
$href="<A href=card.php?n=$n&page=$z&b=$b>上一页</A>";
}else{$href="上一页";}
$c=$page+1;
if($c<=$numb){
$hrefa="<A href=card.php?n=$n&page=$c&b=$b>下一页</A>";
}else
{$hrefa="下一页";}

echo <<<EOD
</table>
          </td>
        </tr>
        <tr>
          <td bgcolor="#0080c0" height="2" class="p5">.</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="525" align="left">
  <tr>
    <td bgcolor="#0080c0" align="center">
      <table border="0" cellpadding="0" cellspacing="0" width="519" bgcolor="white">
        <tr>
          <td background="images/desk1.gif" align="center" class="p2"><br>
            <font color="#0080c0">■</font><font color="#00a3f0">■</font><font color="#80d6ff">■</font><font color="#4dc5ff">┫</font> 
            $b <font color="#4dc5ff">┣</font><font color="#80d6ff">■</font><font color="#00a3f0">■</font><font color="#0080c0">■</font> 
  
 <form method=Post name="form1">
  <center>共<font color=""><b> $abcde </b></font>个动画 

   &nbsp;<A href=card.php?n=$n&page=1&b=$b>首页</A> $href &nbsp; 

$hrefa <A href=card.php?n=$n&page=$numb&b=$b>末页</A> 
 
  &nbsp;页次:<strong><font color="">$page/$numb</font></strong>页 
 转到:
        <input type="text"  style="background-color:#FFFFFF; color:#9999FF; border: 1 double #B4B4B4" onMouseOver="this.style.backgroundColor = '#E5F0FF'" onMouseOut="this.style.backgroundColor = ''" size="2" name="pageabc" value="$page">
</form>        

            　
            <table border="0" width="100%" cellspacing="0" cellpadding="0" class="TableLine"  bordercolorlight="" bgcolor="">
			  <tr>

				<td valign="top" class="p2" align=center>
<!--贺卡-->
EOD;
?>
<?
include("time.php");

for($i=$num4;$i<$cog;$i++){
$larray=explode("|",$garray[$i]);
$time=$larray[6]; 
$regdate=get_date_chi($time)." ".get_time($time);
echo <<<EOD
<table cellSpacing="0" cellPadding="0" bgColor="#ffffff" border="0">
  <tr>
    <td valign="top" class="p2" width="20%" height="77"> <a href=send.php?n=$n&m=$larray[7]&id=$larray[0]><img src="$larray[2]" alt=$larray[5]
 border="1" width="80" height="80"></a><img src="tk/yingzi4.gif" align="absBottom" width="10" height="80"><br>
      <img src="tk/yingzi2.gif" width="90" height="9"></td>
    <td width="30%" height="77">
                        <div> 名称:$larray[1]<br>
        类别:<a href="card.php?n=$n&b=$b">$b</a><br>
	所属:<script language="vbscript">
select case "$larray[7]"
case "p" document.write("图画")
case "f" document.write("FLASH")
end select
</script><br>
        人气:$larray[9]<br>
        时间:$regdate
	<br><a href=send.php?n=$n&m=$larray[7]&id=$larray[0]>发贺卡</a>     <a href="javascript://" onClick="mywinname=openIT('window.php?n=$n&m=$larray[7]&id=$larray[0]', 600, 450, null, null, 'mywinname');" >查看</a></div>      
    </td>
  </tr><HR size="0" width="494" color="#E7E7E7">
</table>
EOD;
}   
?> 
<!--贺卡-->
<hr size="1" width="85%" color="#E7E7E7"></td>

				<td valign="top" class="p2" align=center>
<hr size="1" width="85%" color="#E7E7E7"></td>
</tr><tr>
				<td valign="top" class="p2" align=center>
<hr size="1" width="85%" color="#E7E7E7"></td>

				<td valign="top" class="p2" align=center>
<hr size="1" width="85%" color="#E7E7E7"></td>
</tr><tr>
			</table>
<? 
			
			for($p=1;$p<$num3;$p++){
			print ("<B><A  
            href=card.php?n=$n&page=$p&b=$b>$p</A></B> ");
            


			}
			print ("<B><A  
          href=card.php?n=$n&page=$p&b=$b>$p</A></B> ");



echo <<<EOD
<form method=Post action="card.php?n=$n&page=$pageabc&b=$b">
  <center>共<font color=""><b> $abcde </b></font>个动画 

  &nbsp;<A href=card.php?n=$n&page=1&b=$b>首页</A> $href &nbsp; 

$hrefa <A href=card.php?n=$n&page=$numb&b=$b>末页</A> 
 
  &nbsp;页次:<strong><font color="">$page/$numb</font></strong>页 
 转到: <input type="text" style="background-color:#FFFFFF; color:#9999FF; border: 1 double #B4B4B4" onMouseOver="this.style.backgroundColor = '#E5F0FF'" onMouseOut="this.style.backgroundColor = ''" size="2" name="pageabc" value="$page">
</form>
EOD;
?>     
　</center></td>
        </tr>
        <tr>
          <td bgcolor="#0080c0" height="3" class="p5">.</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br clear="all">
<table border="0" cellpadding="0" cellspacing="0" width="750">
  <tr>
    <td height="5"></td>
  </tr>
  <tr>
    <td bgcolor="#0080c0" height="3" class="p5">.</td>
  </tr>
  </table>
<?include("foot.php");?>

</body>
</html>