📄 view.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> </td>");
echo("</tr>");
}
echo("</table>");
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -