📄 sitelist1.php
字号:
<? include("conn.php");?>
<? include("include/function.php");?>
<? include("include/setup.php");?>
<? include("head.php");?>
<?
$sort=$_GET['typeid'];
if($sort) $se=" and typeid='$sort' ";
?>
<TABLE width=770 height="32" 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> 您位于:<a href="default.asp"><font color="#FF0000"><strong><? echo $sitename;?></strong></FONT></a>> <a href="../sites.php"><font color="#0000FF">精彩网站</font></a>> <? echo $typename[$sort];?></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://pictop.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">
<tr>
<td height="1" bgcolor="#0066CC"></td>
</tr>
</table>
<table width="770" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="173" valign="top" bgcolor="#FcFcFc">
<table width="100%" border="0" cellspacing="0">
<tr>
<td height="22" bgcolor="#DCE8F3"> <img src="images/biaozhi.jpg" width="14" height="14"> <SPAN class=style2>推荐站点</SPAN></td>
</tr>
<tr>
<td><?
$sql="select * from site where id>0 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"> <img src="images/biaozhi.jpg" width="14" height="14"> 热门标签</td>
</tr>
<tr>
<td>
<table width="100%" >
<tr>
<?
$ii=0;
$sql="select tag,sum(num) as n from tags where tag!='' group by tag order by n desc limit 20";
$qr3=mysql_query($sql);
while($tag=mysql_fetch_array($qr3)){
?>
<td>·<a href="searchzhai.php?title=<? echo $tag[tag];?>&typeid=<? echo $t[id];?>"><? echo $tag[tag];?></a></td>
<?
$ii=$ii+1;
if($ii%2==0 && $ii!=20){
?>
</tr>
<tr>
<?
}
?>
<?
}
?>
</tr>
</table></td>
</tr>
<tr>
<td align="right"> <a href="tags.php">>>>更多</a></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="173" height="22" bgcolor="#DCE8F3"> <img src="images/biaozhi.jpg" width="14" height="14"> <SPAN class=style2>合作站点</SPAN></td>
</tr>
<tr>
<td bgcolor="#FcFcFc">
<?
$sql="select * from site where incount>0 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 height="2"></td>
</tr>
</table></td>
<td width="1" bgcolor="#CCCCCC"></td>
<td colspan="3" align="right" valign="top"><table width="98%" border="0" cellpadding="3" cellspacing="0" >
<tr>
<td valign="top" bgcolor="#FcFcFc" >
<?
$rcperpage=30;
$page=$_GET[page];
if(!$page){
$page=1;
}
$sql="select * from site where id>0 $se order by incount desc limit ".trim(($page-1)*$rcperpage).",$rcperpage";
$tsql="select count(*) as c from site where incount>0 $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;
;?>
<?
echo("·<a href='../out.php?user=$rs[user]&url=$rs[url]' class='site' target='_blank' title='".$rs[intro]."' >".$rs[web]."</a><font color=#666666>(in:".$rs[incount].",out:".$rs[outcount].")</font><br>");
if($i%6==0){
echo "<hr width=100% color=#999999 noShade SIZE=1>";
}
}
;?>
<br>
第
<? echo $page;?>
页 共
<? echo $pgcount;?>
页
<?
if($page>1){
echo(" <a href='itemzhai.php?sort=".$sort."&title=$title&page=1&pgcount=$pgcount'>第一页</a>");
echo(" <a href='itemzhai.php?sort=".$sort."&title=$title&pgcount=$pgcount&page=".($page-1)."'>上一页</a>");
}else{
echo(" 第一页");
echo(" 上一页");
}
if($page < $pgcount){
echo(" <a href='itemzhai.php?sort=".$sort."&title=$title&pgcount=$pgcount&page=".($page+1)."'>下一页</a>");
echo(" <a href='itemzhai.php?sort=".$sort."&title=$title&pgcount=$pgcount&page=".$pgcount."'>最末页</a>");
}else{
echo(" 下一页");
echo(" 最末面");
}
;?>
</td>
</tr>
</table></td>
</tr>
</table>
<? include("bottom.php");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -