本文整理汇总了PHP中Archive::getArchiveIndex方法的典型用法代码示例。如果您正苦于以下问题:PHP Archive::getArchiveIndex方法的具体用法?PHP Archive::getArchiveIndex怎么用?PHP Archive::getArchiveIndex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Archive
的用法示例。
在下文中一共展示了Archive::getArchiveIndex方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: LinkCat
$links->setFileName("/links.php");
$links->setPage($vars['page'], "page");
$links->setCatId($vars['cat']);
$links->setId($vars['id']);
$linksCat = new LinkCat();
$linksCat->setFileName("/links.php");
$linksCat->setPage($vars['page'], "page");
$linksCat->setId($vars['cat']);
$Archive->BuildData();
$links->BuildData();
$linksCat->BuildData();
if ($vars['id']) {
header("location: {$links->getRecords()}");
} else {
if ($vars['cat']) {
$title = "Links : ( {$linksCat->getTitle()} ) Page : " . (1 + $links->getPage()) . " of " . $links->getnumOfRecords();
$loadFile = "links.tpl";
$records = $links->getRecords();
$pageList = $links->getCountDisplay();
} else {
$title = "Link Categories : Page : " . (1 + $linksCat->getPage()) . " of " . $linksCat->getnumOfRecords();
$loadFile = "linkcat.tpl";
$records = $linksCat->getRecords();
$pageList = $linksCat->getCountDisplay();
}
$smarty->assign(array("title" => "Compubomb.The Development Solutions : Blog & Everything Else", "page_name" => $title, "load" => "links/" . $loadFile, "filename" => $Archive->getFilename(), "archive_index" => $Archive->getArchiveIndex(), "records" => $records, "archive_page_list" => $pageList));
$smarty->display('public/body/index.tpl');
}
} catch (Exception $e) {
print "Exception: " . $e->getMessage();
}