<?php session_start();?>
<?php
require ("inc/function.php");
$id=$_GET["id"];
axing_connect();
$sql="select * from base where id='$id'";
$result=mysql_query($sql);
if (mysql_num_rows($result))
{
$myrow=mysql_fetch_assoc($result);
?>
<head>
<title><?echo(FSubstr(($myrow[title]),0,10))?> - 内容预览 - <?echo($webtitle)?></title>
<style>
.style6{
width: 650px;
margin: 0px auto;
text-align:left;
margin-bottom:20px;
margin-top:50px;
border:1px solid #92B0DD;
background-color: #FFFFFf
}
.style6 h5{
margin: 1px;
padding:3px;
background-color: #E2EAF8;
height: 24px;
}
</style>
</head>
<body style="text-align:center">
<div class="style6"><h5><?echo(FSubstr(($myrow[title]),0,40))?> 内容预览</h5>
<ul style="font-size:14px;list-style-type:none; margin:20px">
<li>标题：<?php if ($myrow[title]==''){?><?echo(FSubstr($myrow[url],0,24));?><?php } else {?><?echo(FSubstr($myrow[title],0,12));?><?php }?>...</li>
<li>网址：<a href="<?echo($myrow[url])?>" target="_blank"><?echo($myrow[url])?></a></li>
<li>Keywords：<?echo($myrow[keywords])?></li>
<li>Description：<?echo($myrow[description])?></li>
<li>内容预览：<?echo($myrow[content])?>...</li>
<li>加入时间：<?echo($myrow[addtime])?></li>
<li>更新时间：<?echo($myrow[updatetime])?></li>
<li>最近点入：<?echo($myrow[cometime])?></li>
</ul>
</div>

</body>
<?php
}
else
{
echo "对不起，该网站还未通过审核或已经被管理员删除，<a href='index.php'>点此返回</a>网站首页！";
}
?>