<?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/
**/
function index_foothtml()
{
    global $db,$config;
?>
<p style="height:14px">
<?php
$query=$db->query("select * from ve123_about where is_show order by sortid asc");
while($row=$db->fetch_array($query))
{
     if(!empty($row["url"]))
	 {
	    $url=$row["url"];
	 }
	 else
	 {
	    $url=$site["url"]."/a/".$row["filename"].".html";
	 }
?>
<a target="_blank" href="<?php echo $url;?>"><font color="#0B0BD5"><?php echo stripslashes($row["title"]);?></font></a> | 
<?php
}
?>&nbsp;<span><a href=a/about.html target=_blank style="color:#0B0BD5">关于<?php echo $config["name"];?></a></span></p>
</p><p id=b><font color="#999999"><?php echo $config["copyright"];?> <a href="/a/mianze.html"><font color="#999999">使用<?php echo $config["name"];?>前必读</a> <a href=http://www.miibeian.gov.cn target=_blank><?php echo $site["icp"];?></a>
<!--Powered by <a target="_blank" href="http://www.somao123.com/">Somao</a>-->&nbsp;<a target="_blank" href="http://www.miibeian.gov.cn/"><font color="#999999"><?php echo $config["icp"];?></a><img src=images/gs.gif>
</p>
<?php
}
?>
<?php
function pageshow($page,$totalpage,$total,$filename)
{   
    $str="<div class=\"pagestyle\">";
    $str=$str."<a href=\"".$filename."page=1\">第一页</a>&nbsp;";
    if($page==1)
    {
        $str=$str."上一页&nbsp;";
    }
    else
    {
        $str=$str."<a href=\"".$filename."page=".($page-1)."\">上一页</a>&nbsp;";
    }

 if ($page>=$totalpage)
 {
   $str=$str."下一页&nbsp;";
 }
 else
 {
   $str=$str."<a href=\"".$filename."page=".($page+1)."\">下一页</a>&nbsp;";
 }
$str=$str."<a href=\"".$filename."page=$totalpage\">最后一页</a>&nbsp;";
$str=$str."当前第".$page."页&nbsp;";
$str=$str."共".$totalpage."页&nbsp;";
$str=$str."共".$total."个记录&nbsp;";
$str=$str."</div>";
return $str;
}
?>