⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view.php

📁 PHP免费网摘程序 详细说明: 安装说明: 1、把文件上穿上去以后
💻 PHP
字号:
<? include("conn.php");?>
<? include("include/function.php");?>
<? include("include/setup.php");?>
<?
$w=$_GET[w];//width
$h=$_GET[h];//height
$t=$_GET[t];//tag
$u=$_GET[u];//user
$i=$_GET[i];//image
$l=$_GET[l];//limit
$type=$_GET[type];//limit
?>
<html>
<head>
<meta http-equiv="content-Type" content="text/html; charset=gb2312">
<title><? echo $sitename;?></title>
</head>
<style type="text/css">
<!--
td {
	font-size: 12px;
}
a { 
	color: #336666; text-decoration: none
	}
a:hover { 
	color: #000000; text-decoration: none
	}	 
-->
</style>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<?
$row=0;
if($l==""){
	$l=10;
}
$size=$w/15;
$sql="select   * from zhai where ispub='1'";
$where="";
if($t!=""){
	$where.=" and  tags  like '%$t%'";
}
if($u!=""){
	$where=$where." and userid='$u'";
}
if($type!=""){
	$where=$where." and typeid='$type'";
}


$sql=$sql.$where." order by id desc  limit $l";
 
$qr=mysql_query($sql);
echo("<table>");
while($rszhai=mysql_fetch_array($qr)){
	echo("<tr>");
	echo("<td>");
	if($i=="y"){
		echo("<img src='images/point.gif' width='10' height='8'>");
	}
	if($rszhai[htm]=="y"){$url="html/".$rszhai[id]."/index.htm";}else{$url="zhaishow.php?id=".$rszhai[id]."";}
	echo(" <a href='$url' target='_blank'>".sub($rszhai[title],50)."</a></td>");
 
	$row=$row+1;
	echo("</tr>");
}
if($row<2){
for ($i=0;$i<$row;$i++){
		echo("<tr>");
		echo("<td>&nbsp;</td>");
		echo("</tr>");
	}
echo("</table>");
}
?>
</body>
</html>

⌨️ 快捷键说明

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