sitelist.php

来自「PHP免费网摘程序 详细说明: 安装说明: 1、把文件上穿上去以后」· PHP 代码 · 共 194 行

PHP
194
字号
<? include("conn.php");?>
<? include("include/function.php");?>
<? include("include/setup.php");?>
<? include("head.php");?>
<?
 
 $sort=$_GET['typeid'];
 if($sort) $se=" and  typeid='$sort' "; 
?>
<div>
<TABLE width=770 height="25" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF" align=center>
  <TBODY>
    <TR>
      <TD height=4 class=fontbig><IMG height=1 src="images/1.gif" 
width=1>&nbsp;&nbsp;您位于:<a href="index.htm"><font color="#FF0000"><b><? echo $sitename;?></b></FONT></a> &gt; <a href="../sites.php"><font color="#0000FF"><b>精彩网站</b></font></a>
          <? if($sort!=""){   echo " &gt; <font color=#ff0000><b>".$typename[$sort]."</b></font>";  }?></TD>
       <td width=107><a href="jsfeed.php?tag=<? echo $title;?>" target="_blank"><img src="images/icon-js.gif" alt="JS格式输出" width="26" height="14" border="0"></a> <a href="rss2feed.php?tag=<? echo $title;?>" target="_blank"><img src="images/icon-rss.gif" alt="RSS格式输出" width="26" height="14" border="0"></a> <a href="dtag.php?tag=<? echo $title;?>"><img src="images/icon-sub.gif" width="36" height="14" border="0"></a></td>
      <td width=220><a href="help.php" title="网页添加收藏代码"><font color="#FF0000"><b>添加收藏代码</b></font></a> | 示例:<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(zhai=window.open('http://mmei8.com/icollect.php#t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'zhai','scrollbars=no,width=480,height=430,left=75,top=50,status=no,resizable=yes'));zhai.focus();">收藏到妹妹网摘</a></td>
    
    </TR>
  </TBODY>
</TABLE>
<table width="770" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="1" bgcolor="#0066CC"></td>
  </tr>
  <TR bgcolor="#ffffff">
      <TD height=4></TD>
  </TR>
</table>
</div> 
 <div>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="173" valign="top" bgcolor="#FcFcFc">
	
	   
	
        <table width="100%"  border="0" cellspacing="0">
  <tr>
    <td height="22" bgcolor="#DCE8F3"><table height=20 cellspacing=0 cellpadding=0 width="100%" bgcolor=7c57b0
      border=0>
      <tbody>
        <tr>
          <td width=8><img height=1 width=1></td>
          <td width=4 bgcolor=#ffffff><img height=1 width=1></td>
          <td width=4><img height=1 width=1></td>
          <td width=1 bgcolor=#ffffff><img height=1 width=1></td>
          <td   width=100><a 
            href="itemzhai.php?sort=4" 
            target=_blank class=white_12_b>推荐站点</a></td>
        </tr>
      </tbody>
    </table></td>
  </tr>
  <tr>
    <td><? 
	 
   $sql="select * from site where  isshow='y'    order by incount desc limit 15";
	$qr1=mysql_query($sql);
	while($data=mysql_fetch_array($qr1)){
	;?>
             ·<a href='out.php?user=<? echo $data[user];?>&url=<? echo $data[url];?>' target='_blank'    ><? echo $data[web];?></a><br>
              <?
	} ;?>
</td>
  </tr>
  <tr>
    <td align="right">   <a href="sitelist.php?typeid=<? echo $sort;?>">>>>更多</a></td>
  </tr>
  <tr>
    <td height="22" bgcolor="#DCE8F3" class="style2"><table height=20 cellspacing=0 cellpadding=0 width="100%" bgcolor=4d9c09
      border=0>
        <tbody>
          <tr>
            <td width=8><img height=1 width=1></td>
            <td width=4 bgcolor=#ffffff><img height=1 width=1></td>
            <td width=4><img height=1 width=1></td>
            <td width=1 bgcolor=#ffffff><img height=1 width=1></td>
            <td   width=100><a 
            href="itemzhai.php?sort=4" 
            target=_blank class=white_12_b>合作站点</a></td>
          </tr>
        </tbody>
      </table></td>
  </tr>
  <tr>
    <td>
	 
	 <?
   $sql="select * from site where  isshow='y'  $se   order by rand() desc limit 10";
     $query=mysql_query($sql);
		while($zh=mysql_fetch_array($query)){
		 ?>
      ·<a href='out.php?user=<? echo $zh[user];?>&url<? echo $zh[url];?>' target='_blank'><? echo $zh[web];?></a><br>
      <?
	 }
	 ?>

</td>
  </tr>
  
  <tr>
    <td align="right">   <a href="sites.htm" target="_self">>>>更多</a></td>
  </tr>
</table>    </td>
    <td colspan="3" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="4"  >
      
          <?
		$rcperpage=30;  
		 $page=$_GET[page];
		if(!$page){
			$page=1;
		}
 
			$sql="select * from site where  isshow='y' $se  order by incount desc limit ".trim(($page-1)*$rcperpage).",$rcperpage";
		$tsql="select count(*) as c from site where  isshow='y' $se ";
 
		 
		 $pgcount=$_GET[pacount];
		 if(!$pgcount){
		 $tqr=mysql_query($tsql);
		 $total=mysql_fetch_array($tqr);
		 
		 
		 $pgcount=floor((chop($total[0])-1)/$rcperpage)+1; 
		 }
		 
		 
     $qr=mysql_query($sql);
	 $i=0;
		while($rs=mysql_fetch_array($qr)){
		  $i=$i+1;
		 
		 ?>
		 <tr>
        <td>
          <?
				echo("·<a href='out.php?user=$rs[user]&url=$rs[url]' class='site' target='_blank'  alt='".$rs[web]."<br>".$rs[url]."<br>点进:".$rs[incount]."<br>点出:".$rs[outcount]."'>".$rs[web]."</a>(in:".$rs[incount].",out:".$rs[outcount].")</font><br>");
				 
				 $i=$i+1;
				 ?>
			
    </td> 
      </tr>
	  <?
	  if($i%5==0){
				?>
				
				<tr><td   height="1" bgcolor="#CCCCCC"></td></tr>
				<?
				  }
				?> 
	  
	  <?
	  }
	  ?>
		 
    </table>
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0"  >
      <tr>
        <td valign="top"  >
         
              <? echo $page;?> 页 共 <? echo $pgcount;?> 页
              <?			
			if($page>1){
				echo(" <a href='?sort=".$sort."&title=$title&page=1&pgcount=$pgcount'>第一页</a>");
				echo(" <a href='?sort=".$sort."&title=$title&pgcount=$pgcount&page=".($page-1)."'>上一页</a>");
			}else{
				echo(" 第一页");
				echo(" 上一页");
			}
			if($page < $pgcount){
				echo(" <a href='?sort=".$sort."&title=$title&pgcount=$pgcount&page=".($page+1)."'>下一页</a>");
				echo(" <a href='?sort=".$sort."&title=$title&pgcount=$pgcount&page=".$pgcount."'>最末页</a>");
			}else{

				echo(" 下一页");
				echo(" 最末面");
			}			
			;?>
</td>
      </tr>
    </table>
	
	</td>
  </tr>
  <tr>
    <td height="2" colspan="4"></td>
  </tr>
</table>
</div>
<? include("bottom.php");?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?