<?php
/**
 * @version        Somao_Search X1.0 9:23 2012-1-1 Somao $
 * @package        Somao_Search.Site
 * @copyright      Copyright (c) 2009 - 2012, Somao, Inc.
 * @license        http://www.somao123.com/
 * @link           http://www.somao.cc/
 */
require("global.php");
$link_id=intval($_SERVER['QUERY_STRING']);
if(empty($link_id ))
{
    header( "location:.".$config['url'] );
}
$link = $db->get_one( "select * from ve123_links where link_id='".$link_id."'" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $link['title']?></title>
<style type="text/css">
<!--
.STYLE a{
	color:#333333
}

.searchCon form{
	border:#9c9c9c solid 1px; background:url(/images/BgHome.gif) no-repeat 0px -36px; height:32px; padding-left:5px; /*position:relative;*/
}
.searchInputBot{
	height:21px; padding:4px 2px; margin:1px 0px; border:none; line-height:21px; overflow:hidden; font:16px arial; float:left; background:none; outline: none; /*position:absolute; top:0px; left:5px;*/
}
.searchInputBot{
	width:440px;
}
.searchBUtton{
	border:none; background:url(/images/BgHome.gif) no-repeat -209px 0px; width:90px; height:32px; float:right; cursor:pointer; font-size:14px; line-height:32px; /*position:absolute; top:0px; right:0px;*/ padding-left:2px;
}
.searchHome{
	width:100%; height:32px; float:left;
}
.searchDivHome{
	margin:auto; height:32px; padding:0px; width:470px;
}
.searchDivHome .searchCon{
	width:563px;
}
.searchDivHome .searchInputBot{
	width:460px;
}
-->
</style>
</head>
<body>
<table width="823" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td width="165"><a href="/"><img border="0" src="/images/logo2.gif" width="148" height="43" /></a></td>
    <td width="655" >

<div class="searchHome">
  <div class="searchDivHome">
    <div class="searchCon">
      <form method="get" action="/s" name=f id="frm" target="_blank">
        <input type="text" name="wd" class="searchInputBot" id="keyword" autocomplete="off" disableautocomplete maxlength="25" onkeydown="if(event.keyCode==32) return false"/>
        <input type="hidden" name=s value="0">
        <input type="submit" value="搜索" class="searchBUtton"/>
      </form>
    </div>
  </div>
</div>

</td>
  </tr>
</table>
<table width="823" border="0" align="center">
  <tr>
    <td></td>
  </tr>
</table>
<table width="823" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#9C9C9C">
  <tr>
    <td align="center" width="150" bgcolor="#EFF2FA"><strong>网站标题</strong></td>
    <td width="673" bgcolor="#FFFFFF"><?php echo $link['title']?></td>
  </tr>
  <tr>
    <td align="center" width="150" bgcolor="#EFF2FA"><strong>网站关键词</strong></td>
    <td width="673" bgcolor="#FFFFFF"><?php echo $link['keywords']?></td>
  </tr>
  <tr>
    <td align="center" width="150" bgcolor="#EFF2FA"><strong>网站描述</strong></td>
    <td width="673" bgcolor="#FFFFFF"><?php echo $link['description']?></td>
  </tr>
  <tr>
    <td align="center" width="150" bgcolor="#EFF2FA"><strong>网站地址</strong></td>
    <td width="673" bgcolor="#FFFFFF"><?php echo $link['url']?></td>
  </tr>
  <tr>
    <td align="center" width="150" bgcolor="#EFF2FA"><strong>收录时间</strong></td>
    <td width="673" bgcolor="#FFFFFF"><?php echo date( "Y-m-d H:i:s", $link['updatetime'] )?></td>
  </tr>
</table>
<table width="823" border="0" align="center">
  <tr>
    <td></td>
  </tr>
</table>
<table width="823" border="0" align="center" cellpadding="5" cellspacing="1"  bgcolor="#9C9C9C">
  <tr>
    <td align="center" bgcolor="#EFF2FA" width="397"><strong>最新收录10条结果</strong></td>
    <td align="center" bgcolor="#EFF2FA" width="397"><strong>最新更新10条结果</strong></td>
  </tr>
  <tr>
    <td width="397" bgcolor="#FFFFFF" class="STYLE">
    <?php
	   $i=0;
       $query=$db->query("select * from ve123_links where title<>'' order by link_id desc limit 10");
       while($row=$db->fetch_array($query)){
	   $i++;
     ?>
        <p><strong><?php echo $i;?></strong>：<a href="/zhandian/<?php echo $row['link_id'];?>.html"><?php echo str_cut($row['title'],42);?></a></p>
   <?php } ?>
	</td>
    <td width="397" bgcolor="#FFFFFF" class="STYLE">
    <?php
	   $i=0;
       $query=$db->query("select * from ve123_links where title<>'' order by updatetime desc limit 10");
       while($row=$db->fetch_array($query)){
	   $i++;
     ?>
        <p><strong><?php echo $i;?></strong>：<a href="/zhandian/<?php echo $row['link_id'];?>.html"><?php echo str_cut($row['title'],42);?></a></p>
   <?php } ?>
	</td>
  </tr>
</table>
<table width="823" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#9C9C9C" class="STYLE" style="margin-top:8px;">
  <tr>
    <td align="center" bgcolor="#FFFFFF">版权所有&copy;2014 泽许云腾团队 <a target="_blank" href="http://www.zxyt.cn/">泽许搜索</a></td>
  </tr>
</table>
</body>
</html>
