implemented pages:

- Achievement / Achievements (filtrable)
 - Classes
 - Currencies
 - Itemsets (filtrable)
 - Races
 - Title / Titles
 - Events
This commit is contained in:
Sarjuuk
2013-03-23 16:03:12 +01:00
parent c045fe1081
commit 6c25f69c16
20 changed files with 1474 additions and 21 deletions

37
pages/races.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
$cacheKey = implode('_', [CACHETYPE_PAGE, TYPE_RACE, -1, -1, User::$localeId]);
if (!$smarty->loadCache($cacheKey, $pageData))
{
$races = new CharRaceList(array(['side', 0, '!'])); // only playable
$pageData = array(
'file' => 'race',
'data' => $races->getListviewData(),
'params' => array(
'tabs' => false
)
);
$smarty->saveCache($cacheKey, $pageData);
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
'title' => ucFirst(Lang::$game['races']),
'path' => "[0, 13]",
);
$smarty->updatePageVars($page);
$smarty->assign('lang', Lang::$main);
$smarty->assign('mysql', DB::Aowow()->getStatistics());
$smarty->assign('lvData', $pageData);
$smarty->display('generic-no-filter.tpl');
?>