📄 showb1.php
字号:
<? include("conn.php");?>
<? include("include/function.php");?>
<? include("include/setup.php");?>
<?
$id=trim($_GET[id]);
$server1=$HTTP_SERVER_VARS['HTTP_HOST'];
$server2=$HTTP_SERVER_VARS['HTTP_REFERER'];
if(eregi($server1,$server2)){
mysql_query("update zhai set outcount=outcount+1 where id='$id' limit 1");
}
$qr=mysql_query("select title,userid,fromurl, posttime,tags,intro,rank from zhai where id='$id' limit 1");
$rs=mysql_fetch_array($qr);
$title=$rs[title];
$userid=$rs[userid];
$fromurl=$rs[fromurl];
$posttime=$rs[posttime];
//取第一个标签
$tagarray = explode(" ",$rs[tags]);
$tags=$tagarray[0];
$intro=ereg_replace("vbcRLf","\r\n",$rs[intro]);
$rank=$rs[rank];
?>
<html>
<head>
<title></title>
<meta http-equiv=content-Type content="text/html; charset=gb2312">
<style type=text/css>
td {
font-size: 12px
}
.td-center {
border-right: #c8c8c8 1px solid; font-size: 12px; border-left: #ffffff 1px solid; color: #454545; line-height: 15px; text-decoration: none
}
.td-left {
border-right: #c8c8c8 1px solid; font-size: 12px; color: #454545; line-height: 15px; text-decoration: none
}
.td-right {
border-left: #ffffff 1px solid
}
.f12 {
font-size: 12px; color: #000000; line-height: 16px; text-decoration: none
}
.f12 a:link {
font-size: 12px; color: #2a2a2a; line-height: 17px; text-decoration: underline
}
.f12 a:visited {
font-size: 12px; color: #2a2a2a; line-height: 17px; text-decoration: underline
}
.f12 a:hover {
font-size: 12px; color: #ff3300; line-height: 17px; text-decoration: underline
}
.f12 a:active {
font-size: 12px; color: #ff3300; line-height: 17px; text-decoration: underline
}
.rank {
color: #FF9900;
}
-->
</style>
<script language="JavaScript">
function changeWin()
{
var menuSwitch = document.getElementById("menuSwitch");
if(parent.forum.rows != "*,0")
{
parent.forum.rows = "*,0";
}
}
function winOpen()
{
var title='<? echo $title;?>';
var url='<? echo $fromurl;?>';
var sel='<? echo $intro;?>';
window.open('icollect.php#t='+escape(title)+'&u='+escape(url)+'&c='+escape(sel),'_blank','scrollbars=no,width=480,height=420,left=75,top=50,status=no,resizable=yes');
}
</script>
</head>
<body leftMargin="0" topMargin="0" marginwidth="0">
<table height="3" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td bgcolor="#bbbbbb" height="1"></td></tr>
<tr>
<td width="75%" bgcolor="#f9f9f9" height="2"></td></tr></table>
<table height="60" cellSpacing="0" cellPadding="0" width="100%" bgcolor="#ebebeb" border="0">
<TR bgcolor="#ebebeb">
<td colSpan="4" height="1"></td></tr>
<tr>
<td class="td-left" style="padding-top: 5px" valign="top" align="center" width="15%">
<a href="<? echo $siteurl;?>" target="_blank"><IMG src="images/7xm.gif" alt="妹妹网摘,尽收经典藏!" border="0"></a></td>
<td class=td-center style="padding-left: 2px" width="30%">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td class="f12" nowrap height="1"8>收藏人数:<? echo GetZhais($fromurl);?> <font color="red">查看</font></td>
<td class="f12" nowrap>点击次数:<? echo Getreads($id);?></td>
</tr>
<tr>
<td height="1"8>收藏时间:<? echo date("Y-m-d",$posttime);?></td>
<td class="f12">所属标签:<a
href="tagzhai.php?tag=<? echo $tags;?>"
target="_blank" title="<? echo $tags;?>"><? echo $tags;?></a></td>
</tr>
<tr>
<td class="f12" colspan="2">
<span class="rank">
<?
for($j=0;$j<$rank;$j++){
echo("★");
}
for($j=5-$rank;$j<5;$j++){
echo("☆");
}
;?>
</span>
已有0人评论 <font color="red">查看</font>| <font color="red">发表</font></td>
</tr></table></td>
<td width="44%" class=td-center style="padding-left: 2px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="f12"><a href="userzhai.php?zhaiuser=<? echo $userid;?>" target="_blank"><? echo $userid;?></a> 的最新2条收藏:</td>
</tr>
<?
$row=0;
$qr=mysql_query("select id, title,fromurl from zhai where userid='$userid' order by id desc limit 2");
while($rszhai=mysql_fetch_array($qr)){
echo("<tr>");
echo("<td class='f12'><a href='/html/".$rszhai[id].".htm' target='_blank'>".sub($rszhai[title],60)."</a> <a href=".$rszhai[fromurl]." target='_blank'><img src='images/icon-link.gif' border='0' title='网摘链接'></a></td>");
$row=$row+1;
echo("</tr>");
}
if($row<2){
for ($i=0;$i<(2-$row);$i++){
echo("<tr>");
echo("<td class='f12'> </td>");
echo("</tr>");
}
}
;?>
</table>
</td>
<td width="11%" valign="top" bgcolor="#F6F6F6" class="td-right">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td valign="bottom" class="f12">
<a href="http://www.mmei8.com/union/" target="_blank"><font color="#FF0000">加入流量联盟</font></a></td>
</tr>
<tr>
<td valign="bottom" class="f12">
<a href="mailto:<? echo $siteemail;?>" target="_blank">不良信息检举</a></td>
</tr>
<tr>
<td valign="bottom" class="f12"> QQ:<font color="#FF0000">22499225</font></td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -