<?
/*
* ===========================================*
* 项目: Ourplus网站流量统计分析系统*
* 版本: Bate1*
* 开发: 看海*
* ===========================================*
* Copyright (c) 2004 - 2005*
* 主页: http://stat.ourplus.com*
* 信箱: fantasysisky@hotmail.com*
* 版权信息: 本软体为共享软体(shareware)提供个人网站免费使用，
                作者看海 (stat.ourplus.com) 保留全部权力，受相关法律和国际
				公约保护，请勿非法修改、转载、散播，或用于其他赢利行为，
				并请勿删除版权声明。*
* ===========================================*
*/

include_once ( './include.inc/page_class.php' );

function MakePageItems ( $RecordCount, $PageSize, $CurrentPage = 0, $EndChat = '', $URL = '' )
{
	$Pages = new Pages ( $RecordCount, $PageSize, $CurrentPage, $EndChat, $URL );
	$Pages->Text_FirstPage = "第一页";
	$Pages->Text_LastPage = "最后一页";
	$Pages->Text_PrevPage = "上一页";
	$Pages->Text_NextPage = "下一页";
	$PageItems = $Pages->MakePageItems ();
	return $PageItems;
}

function MakePageLinks ( $PageItems, $RecordName = "记录", $RecordUnit = "条" )
{
	global $Tpl;
	
	$PageItems[RecordName] = $RecordName;
	$PageItems[RecordUnit] = $RecordUnit;

	$Tpl->assign ( array (
		"PageItems" => $PageItems
		) );

	$PageLinks = $Tpl->fetch ( "pagelinks.html" );

	return $PageLinks;
}

?>