mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
removing smarty - part XV (aaaand done!)
- unified lv handling * data should always be in the same structure now * use of tabs is determined by the template, unless forced) - Currency: fixed path on detail page - Profiler: fixed use of dataKey - Util::alphaMapCheck() 'images/' was removed long ago..; alphaMaps are now in 'cache/' - Item: REALLY fixed markdown in tooltips
This commit is contained in:
@@ -718,7 +718,7 @@ class ItemList extends BaseType
|
|||||||
$x .= Lang::$item['durability'].' '.$dur.' / '.$dur.'<br />';
|
$x .= Lang::$item['durability'].' '.$dur.' / '.$dur.'<br />';
|
||||||
|
|
||||||
// required classes
|
// required classes
|
||||||
if ($classes = Lang::getClassString($this->curTpl['requiredClass'], $jsg, $__, !$interactive))
|
if ($classes = Lang::getClassString($this->curTpl['requiredClass'], $jsg, $__))
|
||||||
{
|
{
|
||||||
foreach ($jsg as $js)
|
foreach ($jsg as $js)
|
||||||
if (empty($this->jsGlobals[TYPE_CLASS][$js]))
|
if (empty($this->jsGlobals[TYPE_CLASS][$js]))
|
||||||
@@ -728,7 +728,7 @@ class ItemList extends BaseType
|
|||||||
}
|
}
|
||||||
|
|
||||||
// required races
|
// required races
|
||||||
if ($races = Lang::getRaceString($this->curTpl['requiredRace'], $__, $jsg, $__, !$interactive))
|
if ($races = Lang::getRaceString($this->curTpl['requiredRace'], $__, $jsg, $__))
|
||||||
{
|
{
|
||||||
foreach ($jsg as $js)
|
foreach ($jsg as $js)
|
||||||
if (empty($this->jsGlobals[TYPE_RACE][$js]))
|
if (empty($this->jsGlobals[TYPE_RACE][$js]))
|
||||||
|
|||||||
@@ -1392,7 +1392,7 @@ class Util
|
|||||||
|
|
||||||
public static function alphaMapCheck($areaId, array &$coords)
|
public static function alphaMapCheck($areaId, array &$coords)
|
||||||
{
|
{
|
||||||
$file = 'images\\alphaMaps\\'.$areaId.'.png';
|
$file = 'cache\\alphaMaps\\'.$areaId.'.png';
|
||||||
if (!file_exists($file))
|
if (!file_exists($file))
|
||||||
{
|
{
|
||||||
self::addNote(U_GROUP_STAFF, 'Util::alphaMapCheck no suitable alphaMap found for area '.$areaId.'. Positional check omitted!');
|
self::addNote(U_GROUP_STAFF, 'Util::alphaMapCheck no suitable alphaMap found for area '.$areaId.'. Positional check omitted!');
|
||||||
|
|||||||
@@ -183,14 +183,13 @@ class AchievementPage extends GenericPage
|
|||||||
['id', $this->typeId, '!']
|
['id', $this->typeId, '!']
|
||||||
);
|
);
|
||||||
$saList = new AchievementList($conditions);
|
$saList = new AchievementList($conditions);
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $saList->getListviewData(),
|
'data' => $saList->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'see-also',
|
'id' => 'see-also',
|
||||||
'name' => '$LANG.tab_seealso',
|
'name' => '$LANG.tab_seealso',
|
||||||
'visibleCols' => "$['category']",
|
'visibleCols' => "$['category']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->extendGlobalData($saList->getJSGlobals());
|
$this->extendGlobalData($saList->getJSGlobals());
|
||||||
@@ -203,14 +202,13 @@ class AchievementPage extends GenericPage
|
|||||||
if (!empty($refs))
|
if (!empty($refs))
|
||||||
{
|
{
|
||||||
$coList = new AchievementList(array(['id', $refs]));
|
$coList = new AchievementList(array(['id', $refs]));
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $coList->getListviewData(),
|
'data' => $coList->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'criteria-of',
|
'id' => 'criteria-of',
|
||||||
'name' => '$LANG.tab_criteriaof',
|
'name' => '$LANG.tab_criteriaof',
|
||||||
'visibleCols' => "$['category']",
|
'visibleCols' => "$['category']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->extendGlobalData($coList->getJSGlobals());
|
$this->extendGlobalData($coList->getJSGlobals());
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class AchievementsPage extends GenericPage
|
|||||||
$params['_errors'] = '$1';
|
$params['_errors'] = '$1';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => $params
|
'params' => $params
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class ClassPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($genSpells->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($genSpells->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $genSpells->getListviewData(),
|
'data' => $genSpells->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
@@ -141,7 +141,6 @@ class ClassPage extends GenericPage
|
|||||||
'visibleCols' => "$['level', 'schools', 'type', 'classes']",
|
'visibleCols' => "$['level', 'schools', 'type', 'classes']",
|
||||||
'hiddenCols' => "$['reagents', 'skill']",
|
'hiddenCols' => "$['reagents', 'skill']",
|
||||||
'sort' => "$['-level', 'type', 'name']",
|
'sort' => "$['-level', 'type', 'name']",
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'computeDataFunc' => '$Listview.funcBox.initSpellFilter',
|
'computeDataFunc' => '$Listview.funcBox.initSpellFilter',
|
||||||
'onAfterCreate' => '$Listview.funcBox.addSpellIndicator'
|
'onAfterCreate' => '$Listview.funcBox.addSpellIndicator'
|
||||||
)
|
)
|
||||||
@@ -165,13 +164,12 @@ class ClassPage extends GenericPage
|
|||||||
if (!$items->hasDiffFields(['requiredRace']))
|
if (!$items->hasDiffFields(['requiredRace']))
|
||||||
$hidden = "$['side']";
|
$hidden = "$['side']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $items->getListviewData(),
|
'data' => $items->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'items',
|
'id' => 'items',
|
||||||
'name' => '$LANG.tab_items',
|
'name' => '$LANG.tab_items',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'visibleCols' => "$['dps', 'armor', 'slot']",
|
'visibleCols' => "$['dps', 'armor', 'slot']",
|
||||||
'hiddenCols' => isset($hidden) ? $hidden : null,
|
'hiddenCols' => isset($hidden) ? $hidden : null,
|
||||||
'computeDataFunc' => '$Listview.funcBox.initSubclassFilter',
|
'computeDataFunc' => '$Listview.funcBox.initSubclassFilter',
|
||||||
@@ -193,13 +191,10 @@ class ClassPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($quests->getJSGlobals());
|
$this->extendGlobalData($quests->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $quests->getListviewData(),
|
'data' => $quests->getListviewData(),
|
||||||
'params' => array(
|
'params' => ['sort' => "$['reqlevel', 'name']"]
|
||||||
'sort' => "$['reqlevel', 'name']",
|
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,14 +204,13 @@ class ClassPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($sets->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($sets->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'itemset',
|
'file' => 'itemset',
|
||||||
'data' => $sets->getListviewData(),
|
'data' => $sets->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'note' => sprintf(Util::$filterResultString, '?itemsets&filter=cl='.$this->typeId),
|
'note' => sprintf(Util::$filterResultString, '?itemsets&filter=cl='.$this->typeId),
|
||||||
'hiddenCols' => "$['classes']",
|
'hiddenCols' => "$['classes']",
|
||||||
'sort' => "$['-level', 'name']",
|
'sort' => "$['-level', 'name']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -231,13 +225,12 @@ class ClassPage extends GenericPage
|
|||||||
$trainer = new CreatureList($conditions);
|
$trainer = new CreatureList($conditions);
|
||||||
if (!$trainer->error)
|
if (!$trainer->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $trainer->getListviewData(),
|
'data' => $trainer->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'trainers',
|
'id' => 'trainers',
|
||||||
'name' => '$LANG.tab_trainers',
|
'name' => '$LANG.tab_trainers'
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -246,12 +239,10 @@ class ClassPage extends GenericPage
|
|||||||
$races = new CharRaceList(array(['classMask', $_mask, '&']));
|
$races = new CharRaceList(array(['classMask', $_mask, '&']));
|
||||||
if (!$races->error)
|
if (!$races->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'race',
|
'file' => 'race',
|
||||||
'data' => $races->getListviewData(),
|
'data' => $races->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class ClassesPage extends GenericPage
|
|||||||
$classes = new CharClassList();
|
$classes = new CharClassList();
|
||||||
if (!$classes->error)
|
if (!$classes->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'class',
|
'file' => 'class',
|
||||||
'data' => $classes->getListviewData(),
|
'data' => $classes->getListviewData(),
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class CurrenciesPage extends GenericPage
|
|||||||
$conditions[] = ['category', (int)$this->category[0]];
|
$conditions[] = ['category', (int)$this->category[0]];
|
||||||
|
|
||||||
$money = new CurrencyList($conditions);
|
$money = new CurrencyList($conditions);
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'currency',
|
'file' => 'currency',
|
||||||
'data' => $money->getListviewData(),
|
'data' => $money->getListviewData(),
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class CurrencyPage extends GenericPage
|
|||||||
|
|
||||||
protected function generatePath()
|
protected function generatePath()
|
||||||
{
|
{
|
||||||
$this->path[] = $this->subject->getField('typeCat');
|
$this->path[] = $this->subject->getField('category');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function generateTitle()
|
protected function generateTitle()
|
||||||
@@ -83,11 +83,10 @@ class CurrencyPage extends GenericPage
|
|||||||
|
|
||||||
foreach ($lootTabs->iterate() as $tab)
|
foreach ($lootTabs->iterate() as $tab)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => $tab[0],
|
'file' => $tab[0],
|
||||||
'data' => $tab[1],
|
'data' => $tab[1],
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => $tab[2],
|
'name' => $tab[2],
|
||||||
'id' => $tab[3],
|
'id' => $tab[3],
|
||||||
'extraCols' => $tab[4] ? '$['.implode(', ', array_unique($tab[4])).']' : null,
|
'extraCols' => $tab[4] ? '$['.implode(', ', array_unique($tab[4])).']' : null,
|
||||||
@@ -162,11 +161,10 @@ class CurrencyPage extends GenericPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $sbData,
|
'data' => $sbData,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_soldby',
|
'name' => '$LANG.tab_soldby',
|
||||||
'id' => 'sold-by-npc',
|
'id' => 'sold-by-npc',
|
||||||
'extraCols' => '$['.implode(', ', $extraCols).']',
|
'extraCols' => '$['.implode(', ', $extraCols).']',
|
||||||
@@ -188,11 +186,10 @@ class CurrencyPage extends GenericPage
|
|||||||
if ($createdBy->hasSetFields(['reagent1']))
|
if ($createdBy->hasSetFields(['reagent1']))
|
||||||
$visCols = ['reagents'];
|
$visCols = ['reagents'];
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $createdBy->getListviewData(),
|
'data' => $createdBy->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_createdby',
|
'name' => '$LANG.tab_createdby',
|
||||||
'id' => 'created-by',
|
'id' => 'created-by',
|
||||||
'visibleCols' => isset($visCols) ? '$'.json_encode($visCols) : null
|
'visibleCols' => isset($visCols) ? '$'.json_encode($visCols) : null
|
||||||
@@ -228,11 +225,10 @@ class CurrencyPage extends GenericPage
|
|||||||
$boughtBy = new ItemList(array(['id', $boughtBy]));
|
$boughtBy = new ItemList(array(['id', $boughtBy]));
|
||||||
if (!$boughtBy->error)
|
if (!$boughtBy->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $boughtBy->getListviewData(ITEMINFO_VENDOR, [TYPE_CURRENCY => $this->typeId]),
|
'data' => $boughtBy->getListviewData(ITEMINFO_VENDOR, [TYPE_CURRENCY => $this->typeId]),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_currencyfor',
|
'name' => '$LANG.tab_currencyfor',
|
||||||
'id' => 'currency-for',
|
'id' => 'currency-for',
|
||||||
'extraCols' => "$[Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]",
|
'extraCols' => "$[Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]",
|
||||||
|
|||||||
@@ -106,13 +106,10 @@ class EventPage extends GenericPage
|
|||||||
foreach ($data as &$d)
|
foreach ($data as &$d)
|
||||||
$d['method'] = $npcIds[$d['id']];
|
$d['method'] = $npcIds[$d['id']];
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => CreatureList::$brickFile,
|
'file' => CreatureList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => array(
|
'params' => ['note' => $hasFilter ? sprintf(Util::$filterResultString, '?npcs&filter=cr=38;crs='.$this->hId.';crv=0') : null]
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $hasFilter ? sprintf(Util::$filterResultString, '?npcs&filter=cr=38;crs='.$this->hId.';crv=0') : null
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,13 +124,10 @@ class EventPage extends GenericPage
|
|||||||
foreach ($data as &$d)
|
foreach ($data as &$d)
|
||||||
$d['method'] = $objectIds[$d['id']];
|
$d['method'] = $objectIds[$d['id']];
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => GameObjectList::$brickFile,
|
'file' => GameObjectList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => array(
|
'params' => ['note' => $hasFilter ? sprintf(Util::$filterResultString, '?objects&filter=cr=16;crs='.$this->hId.';crv=0') : null]
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $hasFilter ? sprintf(Util::$filterResultString, '?objects&filter=cr=16;crs='.$this->hId.';crv=0') : null
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -147,11 +141,10 @@ class EventPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($acvs->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($acvs->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => AchievementList::$brickFile,
|
'file' => AchievementList::$brickFile,
|
||||||
'data' => $acvs->getListviewData(),
|
'data' => $acvs->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $hasFilter ? sprintf(Util::$filterResultString, '?achievements&filter=cr=11;crs='.$this->hId.';crv=0') : null,
|
'note' => $hasFilter ? sprintf(Util::$filterResultString, '?achievements&filter=cr=11;crs='.$this->hId.';crv=0') : null,
|
||||||
'visibleCols' => "$['category']"
|
'visibleCols' => "$['category']"
|
||||||
)
|
)
|
||||||
@@ -173,13 +166,10 @@ class EventPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($quests->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
$this->extendGlobalData($quests->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => QuestList::$brickFile,
|
'file' => QuestList::$brickFile,
|
||||||
'data' => $quests->getListviewData(),
|
'data' => $quests->getListviewData(),
|
||||||
'params' => array(
|
'params' => ['note' => $hasFilter ? sprintf(Util::$filterResultString, '?quests&filter=cr=33;crs='.$this->hId.';crv=0') : null]
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $hasFilter ? sprintf(Util::$filterResultString, '?quests&filter=cr=33;crs='.$this->hId.';crv=0') : null
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$questItems = [];
|
$questItems = [];
|
||||||
@@ -212,13 +202,10 @@ class EventPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($eventItems->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($eventItems->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => ItemList::$brickFile,
|
'file' => ItemList::$brickFile,
|
||||||
'data' => $eventItems->getListviewData(),
|
'data' => $eventItems->getListviewData(),
|
||||||
'params' => array(
|
'params' => ['note' => $hasFilter ? sprintf(Util::$filterResultString, '?items&filter=cr=160;crs='.$this->hId.';crv=0') : null]
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $hasFilter ? sprintf(Util::$filterResultString, '?items&filter=cr=160;crs='.$this->hId.';crv=0') : null
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -266,13 +253,12 @@ class EventPage extends GenericPage
|
|||||||
$relData = array_merge($relData, $d);
|
$relData = array_merge($relData, $d);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => WorldEventList::$brickFile,
|
'file' => WorldEventList::$brickFile,
|
||||||
'data' => $relData,
|
'data' => $relData,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'see-also',
|
'id' => 'see-also',
|
||||||
'name' => '$LANG.tab_seealso',
|
'name' => '$LANG.tab_seealso',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'hiddenCols' => "$['date']",
|
'hiddenCols' => "$['date']",
|
||||||
'extraCols' => '$[Listview.extraCols.condition]'
|
'extraCols' => '$[Listview.extraCols.condition]'
|
||||||
)
|
)
|
||||||
@@ -312,7 +298,7 @@ class EventPage extends GenericPage
|
|||||||
/* finalize related events */
|
/* finalize related events */
|
||||||
/***************************/
|
/***************************/
|
||||||
|
|
||||||
foreach($this->lvData as &$view)
|
foreach($this->lvTabs as &$view)
|
||||||
{
|
{
|
||||||
if ($view['file'] != WorldEventList::$brickFile)
|
if ($view['file'] != WorldEventList::$brickFile)
|
||||||
continue;
|
continue;
|
||||||
@@ -327,8 +313,6 @@ class EventPage extends GenericPage
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,19 +49,16 @@ class EventsPage extends GenericPage
|
|||||||
if ($d = $events->getField('requires'))
|
if ($d = $events->getField('requires'))
|
||||||
$this->deps[$events->id] = $d;
|
$this->deps[$events->id] = $d;
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'event',
|
'file' => 'event',
|
||||||
'data' => $events->getListviewData(),
|
'data' => $events->getListviewData(),
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'calendar',
|
'file' => 'calendar',
|
||||||
'data' => array_filter($events->getListviewData(), function($x) {return $x['id'] > 0;}),
|
'data' => array_filter($events->getListviewData(), function($x) {return $x['id'] > 0;}),
|
||||||
'params' => array(
|
'params' => ['hideCount' => 1]
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'hideCount' => 1
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +78,7 @@ class EventsPage extends GenericPage
|
|||||||
protected function postCache()
|
protected function postCache()
|
||||||
{
|
{
|
||||||
// recalculate dates with now()
|
// recalculate dates with now()
|
||||||
foreach ($this->lvData as &$views)
|
foreach ($this->lvTabs as &$views)
|
||||||
{
|
{
|
||||||
foreach ($views['data'] as &$data)
|
foreach ($views['data'] as &$data)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -164,7 +164,6 @@ class FactionPage extends GenericPage
|
|||||||
'data' => $items->getListviewData(),
|
'data' => $items->getListviewData(),
|
||||||
'showRep' => true,
|
'showRep' => true,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'extraCols' => '$_',
|
'extraCols' => '$_',
|
||||||
'sort' => "$['standing', 'name']"
|
'sort' => "$['standing', 'name']"
|
||||||
)
|
)
|
||||||
@@ -173,7 +172,7 @@ class FactionPage extends GenericPage
|
|||||||
if ($items->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
if ($items->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
||||||
$tab['params']['note'] = sprintf(Util::$filterResultString, '?items&filter=cr=17;crs='.$this->typeId.';crv=0');
|
$tab['params']['note'] = sprintf(Util::$filterResultString, '?items&filter=cr=17;crs='.$this->typeId.';crv=0');
|
||||||
|
|
||||||
$this->lvData[] = $tab;
|
$this->lvTabs[] = $tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tab: creatures with onKill reputation
|
// tab: creatures with onKill reputation
|
||||||
@@ -195,15 +194,13 @@ class FactionPage extends GenericPage
|
|||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $killCreatures->getListviewData(),
|
'data' => $killCreatures->getListviewData(),
|
||||||
'showRep' => true,
|
'showRep' => true,
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($killCreatures->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
if ($killCreatures->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
||||||
$tab['params']['note'] = sprintf(Util::$filterResultString, '?npcs&filter=cr=42;crs='.$this->typeId.';crv=0');
|
$tab['params']['note'] = sprintf(Util::$filterResultString, '?npcs&filter=cr=42;crs='.$this->typeId.';crv=0');
|
||||||
|
|
||||||
$this->lvData[] = $tab;
|
$this->lvTabs[] = $tab;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -220,15 +217,14 @@ class FactionPage extends GenericPage
|
|||||||
'showRep' => true,
|
'showRep' => true,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'member',
|
'id' => 'member',
|
||||||
'name' => '$LANG.tab_members',
|
'name' => '$LANG.tab_members'
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($members->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
if ($members->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
||||||
$tab['params']['note'] = sprintf(Util::$filterResultString, '?npcs&filter=cr=3;crs='.$this->typeId.';crv=0');
|
$tab['params']['note'] = sprintf(Util::$filterResultString, '?npcs&filter=cr=3;crs='.$this->typeId.';crv=0');
|
||||||
|
|
||||||
$this->lvData[] = $tab;
|
$this->lvTabs[] = $tab;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,12 +234,10 @@ class FactionPage extends GenericPage
|
|||||||
$objects = new GameObjectList(array(['faction', $_]));
|
$objects = new GameObjectList(array(['faction', $_]));
|
||||||
if (!$objects->error)
|
if (!$objects->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'object',
|
'file' => 'object',
|
||||||
'data' => $objects->getListviewData(),
|
'data' => $objects->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -266,16 +260,13 @@ class FactionPage extends GenericPage
|
|||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $quests->getListviewData($this->typeId),
|
'data' => $quests->getListviewData($this->typeId),
|
||||||
'showRep' => true,
|
'showRep' => true,
|
||||||
'params' => array(
|
'params' => ['extraCols' => '$_']
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'extraCols' => '$_'
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($quests->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
if ($quests->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
||||||
$tab['params']['note'] = sprintf(Util::$filterResultString, '?quests&filter=cr=1;crs='.$this->typeId.';crv=0');
|
$tab['params']['note'] = sprintf(Util::$filterResultString, '?quests&filter=cr=1;crs='.$this->typeId.';crv=0');
|
||||||
|
|
||||||
$this->lvData[] = $tab;
|
$this->lvTabs[] = $tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tab: achievements
|
// tab: achievements
|
||||||
@@ -288,13 +279,12 @@ class FactionPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($acvs->getJSGlobals(GLOBALINFO_ANY));
|
$this->extendGlobalData($acvs->getJSGlobals(GLOBALINFO_ANY));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $acvs->getListviewData(),
|
'data' => $acvs->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'criteria-of',
|
'id' => 'criteria-of',
|
||||||
'name' => '$LANG.tab_criteriaof',
|
'name' => '$LANG.tab_criteriaof',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'visibleCols' => "$['category']"
|
'visibleCols' => "$['category']"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class FactionsPage extends GenericPage
|
|||||||
if (!$factions->error)
|
if (!$factions->error)
|
||||||
$data = $factions->getListviewData();
|
$data = $factions->getListviewData();
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'faction',
|
'file' => 'faction',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ trait DetailPage
|
|||||||
{
|
{
|
||||||
protected $hasComContent = true;
|
protected $hasComContent = true;
|
||||||
protected $category = null; // not used on detail pages
|
protected $category = null; // not used on detail pages
|
||||||
|
protected $lvTabs = []; // most pages have this
|
||||||
|
|
||||||
private $subject = null; // so it will not get cached
|
private $subject = null; // so it will not get cached
|
||||||
|
|
||||||
@@ -30,6 +31,7 @@ trait ListPage
|
|||||||
protected $category = null;
|
protected $category = null;
|
||||||
protected $typeId = 0;
|
protected $typeId = 0;
|
||||||
protected $filter = [];
|
protected $filter = [];
|
||||||
|
protected $lvTabs = []; // most pages have this
|
||||||
|
|
||||||
private $filterObj = null;
|
private $filterObj = null;
|
||||||
|
|
||||||
|
|||||||
@@ -411,11 +411,10 @@ class ItemPage extends genericPage
|
|||||||
|
|
||||||
foreach ($lootTabs->iterate() as $tab)
|
foreach ($lootTabs->iterate() as $tab)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => $tab[0],
|
'file' => $tab[0],
|
||||||
'data' => $tab[1],
|
'data' => $tab[1],
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => $tab[2],
|
'name' => $tab[2],
|
||||||
'id' => $tab[3],
|
'id' => $tab[3],
|
||||||
'extraCols' => $tab[4] ? '$['.implode(', ', array_unique($tab[4])).']' : null,
|
'extraCols' => $tab[4] ? '$['.implode(', ', array_unique($tab[4])).']' : null,
|
||||||
@@ -454,11 +453,10 @@ class ItemPage extends genericPage
|
|||||||
$lv['condition'][] = ['type' => TYPE_QUEST, 'typeId' => &$reqQuest[$lv['id']], 'status' => 1];
|
$lv['condition'][] = ['type' => TYPE_QUEST, 'typeId' => &$reqQuest[$lv['id']], 'status' => 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $lootTab->getResult(),
|
'data' => $lootTab->getResult(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => $sf[2],
|
'name' => $sf[2],
|
||||||
'id' => $sf[3],
|
'id' => $sf[3],
|
||||||
'extraCols' => $sf[4] ? "$[".implode(', ', array_unique($sf[4]))."]" : null,
|
'extraCols' => $sf[4] ? "$[".implode(', ', array_unique($sf[4]))."]" : null,
|
||||||
@@ -505,11 +503,10 @@ class ItemPage extends genericPage
|
|||||||
if (!$contains->hasSetFields(['slot']))
|
if (!$contains->hasSetFields(['slot']))
|
||||||
$hCols[] = 'slot';
|
$hCols[] = 'slot';
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $contains->getListviewData(),
|
'data' => $contains->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_cancontain',
|
'name' => '$LANG.tab_cancontain',
|
||||||
'id' => 'can-contain',
|
'id' => 'can-contain',
|
||||||
'hiddenCols' => '$'.json_encode($hCols)
|
'hiddenCols' => '$'.json_encode($hCols)
|
||||||
@@ -526,11 +523,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($contains->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($contains->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $contains->getListviewData(),
|
'data' => $contains->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_canbeplacedin',
|
'name' => '$LANG.tab_canbeplacedin',
|
||||||
'id' => 'can-be-placed-in',
|
'id' => 'can-be-placed-in',
|
||||||
'hiddenCols' => "$['side']"
|
'hiddenCols' => "$['side']"
|
||||||
@@ -554,11 +550,10 @@ class ItemPage extends genericPage
|
|||||||
if (!$criteriaOf->hasSetFields(['rewardIds']))
|
if (!$criteriaOf->hasSetFields(['rewardIds']))
|
||||||
$hCols = ['rewards'];
|
$hCols = ['rewards'];
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $criteriaOf->getListviewData(),
|
'data' => $criteriaOf->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_criteriaof',
|
'name' => '$LANG.tab_criteriaof',
|
||||||
'id' => 'criteria-of',
|
'id' => 'criteria-of',
|
||||||
'visibleCols' => "$['category']",
|
'visibleCols' => "$['category']",
|
||||||
@@ -579,11 +574,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($reagent->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($reagent->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $reagent->getListviewData(),
|
'data' => $reagent->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_reagentfor',
|
'name' => '$LANG.tab_reagentfor',
|
||||||
'id' => 'reagent-for',
|
'id' => 'reagent-for',
|
||||||
'visibleCols' => "$['reagents']"
|
'visibleCols' => "$['reagents']"
|
||||||
@@ -605,11 +599,10 @@ class ItemPage extends genericPage
|
|||||||
$lockedObj = new GameObjectList(array(['lockId', $lockIds]));
|
$lockedObj = new GameObjectList(array(['lockId', $lockIds]));
|
||||||
if (!$lockedObj->error)
|
if (!$lockedObj->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'object',
|
'file' => 'object',
|
||||||
'data' => $lockedObj->getListviewData(),
|
'data' => $lockedObj->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_unlocks',
|
'name' => '$LANG.tab_unlocks',
|
||||||
'id' => 'unlocks-object'
|
'id' => 'unlocks-object'
|
||||||
]
|
]
|
||||||
@@ -622,11 +615,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($lockedItm->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($lockedItm->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $lockedItm->getListviewData(),
|
'data' => $lockedItm->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_unlocks',
|
'name' => '$LANG.tab_unlocks',
|
||||||
'id' => 'unlocks-item'
|
'id' => 'unlocks-item'
|
||||||
]
|
]
|
||||||
@@ -658,11 +650,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($saItems->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($saItems->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $saItems->getListviewData(),
|
'data' => $saItems->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_seealso',
|
'name' => '$LANG.tab_seealso',
|
||||||
'id' => 'see-also'
|
'id' => 'see-also'
|
||||||
]
|
]
|
||||||
@@ -677,11 +668,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($starts->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
$this->extendGlobalData($starts->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $starts->getListviewData(),
|
'data' => $starts->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_starts',
|
'name' => '$LANG.tab_starts',
|
||||||
'id' => 'starts-quest'
|
'id' => 'starts-quest'
|
||||||
]
|
]
|
||||||
@@ -700,11 +690,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($objective->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
$this->extendGlobalData($objective->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $objective->getListviewData(),
|
'data' => $objective->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_objectiveof',
|
'name' => '$LANG.tab_objectiveof',
|
||||||
'id' => 'objective-of-quest'
|
'id' => 'objective-of-quest'
|
||||||
]
|
]
|
||||||
@@ -722,11 +711,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($provided->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
$this->extendGlobalData($provided->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_REWARDS));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $provided->getListviewData(),
|
'data' => $provided->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_providedfor',
|
'name' => '$LANG.tab_providedfor',
|
||||||
'id' => 'provided-for-quest'
|
'id' => 'provided-for-quest'
|
||||||
]
|
]
|
||||||
@@ -742,11 +730,10 @@ class ItemPage extends genericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($sameModel->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($sameModel->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'genericmodel',
|
'file' => 'genericmodel',
|
||||||
'data' => $sameModel->getListviewData(ITEMINFO_MODEL),
|
'data' => $sameModel->getListviewData(ITEMINFO_MODEL),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_samemodelas',
|
'name' => '$LANG.tab_samemodelas',
|
||||||
'id' => 'same-model-as',
|
'id' => 'same-model-as',
|
||||||
'genericlinktype' => 'item'
|
'genericlinktype' => 'item'
|
||||||
@@ -815,11 +802,10 @@ class ItemPage extends genericPage
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $sbData,
|
'data' => $sbData,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_soldby',
|
'name' => '$LANG.tab_soldby',
|
||||||
'id' => 'sold-by-npc',
|
'id' => 'sold-by-npc',
|
||||||
'extraCols' => '$['.implode(', ', $extraCols).']',
|
'extraCols' => '$['.implode(', ', $extraCols).']',
|
||||||
@@ -853,11 +839,10 @@ class ItemPage extends genericPage
|
|||||||
$iCur = new CurrencyList(array(['itemId', $this->typeId]));
|
$iCur = new CurrencyList(array(['itemId', $this->typeId]));
|
||||||
$filter = $iCur->error ? [TYPE_ITEM => $this->typeId] : [TYPE_CURRENCY => $iCur->id];
|
$filter = $iCur->error ? [TYPE_ITEM => $this->typeId] : [TYPE_CURRENCY => $iCur->id];
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $boughtBy->getListviewData(ITEMINFO_VENDOR, $filter),
|
'data' => $boughtBy->getListviewData(ITEMINFO_VENDOR, $filter),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_currencyfor',
|
'name' => '$LANG.tab_currencyfor',
|
||||||
'id' => 'currency-for',
|
'id' => 'currency-for',
|
||||||
'extraCols' => "$[Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]"
|
'extraCols' => "$[Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]"
|
||||||
@@ -899,14 +884,13 @@ class ItemPage extends genericPage
|
|||||||
if ($taughtSpells->hasSetFields(['reagent1']))
|
if ($taughtSpells->hasSetFields(['reagent1']))
|
||||||
$visCols[] = 'reagents';
|
$visCols[] = 'reagents';
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $taughtSpells->getListviewData(),
|
'data' => $taughtSpells->getListviewData(),
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$tabsRelated',
|
'name' => '$LANG.tab_teaches',
|
||||||
'name' => '$LANG.tab_teaches',
|
'id' => 'teaches',
|
||||||
'id' => 'teaches',
|
'visibleCols' => '$'.json_encode($visCols)
|
||||||
'visibleCols' => '$'.json_encode($visCols),
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ class ItemsPage extends GenericPage
|
|||||||
protected function generateContent()
|
protected function generateContent()
|
||||||
{
|
{
|
||||||
$this->addJS('?data=weight-presets&locale='.User::$localeId.'&t='.$_SESSION['dataKey']);
|
$this->addJS('?data=weight-presets&locale='.User::$localeId.'&t='.$_SESSION['dataKey']);
|
||||||
$this->hasGroupedTabs = false;
|
|
||||||
|
|
||||||
$conditions = [];
|
$conditions = [];
|
||||||
|
|
||||||
@@ -237,7 +236,7 @@ class ItemsPage extends GenericPage
|
|||||||
if ($groups)
|
if ($groups)
|
||||||
{
|
{
|
||||||
$nameSource = Lang::$item['inventoryType'];
|
$nameSource = Lang::$item['inventoryType'];
|
||||||
$this->hasGroupedTabs = true;
|
$this->forceTabs = true;
|
||||||
$gbField = 'slot';
|
$gbField = 'slot';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -263,7 +262,7 @@ class ItemsPage extends GenericPage
|
|||||||
$groups[] = $l; // push last value as negativ to signal misc group after $this level
|
$groups[] = $l; // push last value as negativ to signal misc group after $this level
|
||||||
$extraOpts = ['i' => ['o' => ['itemlevel DESC']]];
|
$extraOpts = ['i' => ['o' => ['itemlevel DESC']]];
|
||||||
$nameSource[$l] = Lang::$item['tabOther'];
|
$nameSource[$l] = Lang::$item['tabOther'];
|
||||||
$this->hasGroupedTabs = true;
|
$this->forceTabs = true;
|
||||||
$gbField = 'itemlevel';
|
$gbField = 'itemlevel';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +274,7 @@ class ItemsPage extends GenericPage
|
|||||||
});
|
});
|
||||||
|
|
||||||
$nameSource = Lang::$game['sources'];
|
$nameSource = Lang::$game['sources'];
|
||||||
$this->hasGroupedTabs = true;
|
$this->forceTabs = true;
|
||||||
$gbField = 'source';
|
$gbField = 'source';
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -299,6 +298,7 @@ class ItemsPage extends GenericPage
|
|||||||
|
|
||||||
$this->extendGlobalData($items->getJSGlobals());
|
$this->extendGlobalData($items->getJSGlobals());
|
||||||
$tab = array(
|
$tab = array(
|
||||||
|
'file' => 'item',
|
||||||
'data' => $items->getListviewData($infoMask),
|
'data' => $items->getListviewData($infoMask),
|
||||||
'params' => $this->sharedLV
|
'params' => $this->sharedLV
|
||||||
);
|
);
|
||||||
@@ -396,7 +396,7 @@ class ItemsPage extends GenericPage
|
|||||||
if ($gbField)
|
if ($gbField)
|
||||||
$tab['params']['hideCount'] = '$1';
|
$tab['params']['hideCount'] = '$1';
|
||||||
|
|
||||||
$this->lvData[] = $tab;
|
$this->lvTabs[] = $tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
// reformat for use in template
|
// reformat for use in template
|
||||||
@@ -404,8 +404,8 @@ class ItemsPage extends GenericPage
|
|||||||
$this->filter['upg'] = implode(':', array_keys($this->filter['upg']));
|
$this->filter['upg'] = implode(':', array_keys($this->filter['upg']));
|
||||||
|
|
||||||
// whoops, we have no data? create emergency content
|
// whoops, we have no data? create emergency content
|
||||||
if (!$this->lvData)
|
if (empty($this->lvTabs))
|
||||||
$this->lvData[] = ['data' => [], 'params' => []];
|
$this->lvTabs[] = ['file' => 'item', 'data' => [], 'params' => []];
|
||||||
|
|
||||||
// sort for dropdown-menus
|
// sort for dropdown-menus
|
||||||
asort(Lang::$game['ra']);
|
asort(Lang::$game['ra']);
|
||||||
|
|||||||
@@ -253,15 +253,14 @@ class ItemsetPage extends GenericPage
|
|||||||
'data' => $relSets->getListviewData(),
|
'data' => $relSets->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'see-also',
|
'id' => 'see-also',
|
||||||
'name' => '$LANG.tab_seealso',
|
'name' => '$LANG.tab_seealso'
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!$relSets->hasDiffFields(['classMask']))
|
if (!$relSets->hasDiffFields(['classMask']))
|
||||||
$lv['params']['hiddenCols'] = "$['classes']";
|
$lv['params']['hiddenCols'] = "$['classes']";
|
||||||
|
|
||||||
$this->lvData[] = $lv;
|
$this->lvTabs[] = $lv;
|
||||||
|
|
||||||
$this->extendGlobalData($relSets->getJSGlobals());
|
$this->extendGlobalData($relSets->getJSGlobals());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class ItemsetsPage extends GenericPage
|
|||||||
if ($this->filterObj->error)
|
if ($this->filterObj->error)
|
||||||
$lv['params']['_errors'] = '$1';
|
$lv['params']['_errors'] = '$1';
|
||||||
|
|
||||||
$this->lvData = $lv;
|
$this->lvTabs[] = $lv;
|
||||||
|
|
||||||
// sort for dropdown-menus
|
// sort for dropdown-menus
|
||||||
asort(Lang::$itemset['notes'], SORT_NATURAL);
|
asort(Lang::$itemset['notes'], SORT_NATURAL);
|
||||||
|
|||||||
@@ -296,25 +296,23 @@ class NpcPage extends GenericPage
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($normal)
|
if ($normal)
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $normal,
|
'data' => $normal,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
'name' => '$LANG.tab_abilities',
|
||||||
'name' => '$LANG.tab_abilities',
|
'id' => 'abilities'
|
||||||
'id' => 'abilities'
|
)
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($controled)
|
if ($controled)
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $controled,
|
'data' => $controled,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
'name' => '$LANG.tab_controlledabilities',
|
||||||
'name' => '$LANG.tab_controlledabilities',
|
'id' => 'controlled-abilities'
|
||||||
'id' => 'controlled-abilities'
|
)
|
||||||
]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -332,14 +330,13 @@ class NpcPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($summoned->getJSGlobals());
|
$this->extendGlobalData($summoned->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $summoned->getListviewData(),
|
'data' => $summoned->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_summonedby',
|
'name' => '$LANG.tab_summonedby',
|
||||||
'id' => 'summoned-by'
|
'id' => 'summoned-by'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,16 +382,15 @@ class NpcPage extends GenericPage
|
|||||||
$data[$sId]['trainingcost'] = $_;
|
$data[$sId]['trainingcost'] = $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_teaches',
|
'name' => '$LANG.tab_teaches',
|
||||||
'id' => 'teaches',
|
'id' => 'teaches',
|
||||||
'visibleCols' => "$['trainingcost']",
|
'visibleCols' => "$['trainingcost']",
|
||||||
'extraCols' => $extra ? '$['.implode(', ', $extra).']' : null
|
'extraCols' => $extra ? '$['.implode(', ', $extra).']' : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -410,15 +406,14 @@ class NpcPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($soldItems->getJSGlobals());
|
$this->extendGlobalData($soldItems->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $soldItems->getListviewData(ITEMINFO_VENDOR, [TYPE_NPC => $this->typeId]),
|
'data' => $soldItems->getListviewData(ITEMINFO_VENDOR, [TYPE_NPC => $this->typeId]),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_sells',
|
'name' => '$LANG.tab_sells',
|
||||||
'id' => 'currency-for',
|
'id' => 'currency-for',
|
||||||
'extraCols' => "$[Listview.extraCols.condition, Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]"
|
'extraCols' => "$[Listview.extraCols.condition, Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]"
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -488,18 +483,17 @@ class NpcPage extends GenericPage
|
|||||||
$lv['condition'][] = ['type' => TYPE_QUEST, 'typeId' => &$reqQuest[$lv['id']], 'status' => 1];
|
$lv['condition'][] = ['type' => TYPE_QUEST, 'typeId' => &$reqQuest[$lv['id']], 'status' => 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $creatureLoot->getResult(),
|
'data' => $creatureLoot->getResult(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => $sf[2],
|
'name' => $sf[2],
|
||||||
'id' => $sf[3],
|
'id' => $sf[3],
|
||||||
'extraCols' => $sf[4] ? "$[".implode(', ', array_unique($sf[4]))."]" : null,
|
'extraCols' => $sf[4] ? "$[".implode(', ', array_unique($sf[4]))."]" : null,
|
||||||
'hiddenCols' => $sf[5] ? "$".json_encode($sf[5]) : null,
|
'hiddenCols' => $sf[5] ? "$".json_encode($sf[5]) : null,
|
||||||
'visibleCols' => $sf[6] ? '$'.json_encode($sf[6]) : null,
|
'visibleCols' => $sf[6] ? '$'.json_encode($sf[6]) : null,
|
||||||
'sort' => "$['-percent', 'name']",
|
'sort' => "$['-percent', 'name']",
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -548,27 +542,25 @@ class NpcPage extends GenericPage
|
|||||||
|
|
||||||
if ($_[0])
|
if ($_[0])
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $_[0],
|
'data' => $_[0],
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_starts',
|
'name' => '$LANG.tab_starts',
|
||||||
'id' => 'starts'
|
'id' => 'starts'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_[1])
|
if ($_[1])
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $_[1],
|
'data' => $_[1],
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_ends',
|
'name' => '$LANG.tab_ends',
|
||||||
'id' => 'ends'
|
'id' => 'ends'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -587,14 +579,13 @@ class NpcPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($objectiveOf->getJSGlobals());
|
$this->extendGlobalData($objectiveOf->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $objectiveOf->getListviewData(),
|
'data' => $objectiveOf->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_objectiveof',
|
'name' => '$LANG.tab_objectiveof',
|
||||||
'id' => 'objective-of'
|
'id' => 'objective-of'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -609,14 +600,13 @@ class NpcPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($crtOf->getJSGlobals());
|
$this->extendGlobalData($crtOf->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $crtOf->getListviewData(),
|
'data' => $crtOf->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_criteriaof',
|
'name' => '$LANG.tab_criteriaof',
|
||||||
'id' => 'criteria-of'
|
'id' => 'criteria-of'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class NpcsPage extends GenericPage
|
|||||||
if ($this->filterObj->error)
|
if ($this->filterObj->error)
|
||||||
$lv['params']['_errors'] = '$1';
|
$lv['params']['_errors'] = '$1';
|
||||||
|
|
||||||
$this->lvData = $lv;
|
$this->lvTabs[] = $lv;
|
||||||
|
|
||||||
// sort for dropdown-menus
|
// sort for dropdown-menus
|
||||||
asort(Lang::$game['fa']);
|
asort(Lang::$game['fa']);
|
||||||
|
|||||||
@@ -270,14 +270,13 @@ class ObjectPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($summons->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($summons->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $summons->getListviewData(),
|
'data' => $summons->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'summoned-by',
|
'id' => 'summoned-by',
|
||||||
'name' => '$LANG.tab_summonedby'
|
'name' => '$LANG.tab_summonedby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,16 +292,15 @@ class ObjectPage extends GenericPage
|
|||||||
foreach ($data as $relId => $d)
|
foreach ($data as $relId => $d)
|
||||||
$data[$relId]['trigger'] = array_search($relId, $_);
|
$data[$relId]['trigger'] = array_search($relId, $_);
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'spells',
|
'id' => 'spells',
|
||||||
'name' => '$LANG.tab_spells',
|
'name' => '$LANG.tab_spells',
|
||||||
'hiddenCols' => "$['skill']",
|
'hiddenCols' => "$['skill']",
|
||||||
'extraCols' => "$[Listview.funcBox.createSimpleCol('trigger', 'Condition', '10%', 'trigger')]"
|
'extraCols' => "$[Listview.funcBox.createSimpleCol('trigger', 'Condition', '10%', 'trigger')]"
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -313,14 +311,13 @@ class ObjectPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($acvs->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($acvs->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $acvs->getListviewData(),
|
'data' => $acvs->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
'id' => 'criteria-of',
|
||||||
'id' => 'criteria-of',
|
'name' => '$LANG.tab_criteriaof'
|
||||||
'name' => '$LANG.tab_criteriaof'
|
)
|
||||||
]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -344,27 +341,25 @@ class ObjectPage extends GenericPage
|
|||||||
|
|
||||||
if ($_[0])
|
if ($_[0])
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $_[0],
|
'data' => $_[0],
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_starts',
|
'name' => '$LANG.tab_starts',
|
||||||
'id' => 'starts'
|
'id' => 'starts'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_[1])
|
if ($_[1])
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $_[1],
|
'data' => $_[1],
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_ends',
|
'name' => '$LANG.tab_ends',
|
||||||
'id' => 'ends'
|
'id' => 'ends'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -377,14 +372,13 @@ class ObjectPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($relQuest->getJSGlobals());
|
$this->extendGlobalData($relQuest->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $relQuest->getListviewData(),
|
'data' => $relQuest->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_quests',
|
'name' => '$LANG.tab_quests',
|
||||||
'id' => 'quests'
|
'id' => 'quests'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -420,16 +414,15 @@ class ObjectPage extends GenericPage
|
|||||||
|
|
||||||
$extraCols[] = 'Listview.extraCols.percent';
|
$extraCols[] = 'Listview.extraCols.percent';
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $goLoot->getResult(),
|
'data' => $goLoot->getResult(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_contains',
|
'name' => '$LANG.tab_contains',
|
||||||
'id' => 'contains',
|
'id' => 'contains',
|
||||||
'extraCols' => "$[".implode(', ', array_unique($extraCols))."]",
|
'extraCols' => "$[".implode(', ', array_unique($extraCols))."]",
|
||||||
'hiddenCols' => $hiddenCols ? '$'.json_encode(array_values($hiddenCols)) : null
|
'hiddenCols' => $hiddenCols ? '$'.json_encode(array_values($hiddenCols)) : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -464,14 +457,13 @@ class ObjectPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($sameModel->getJSGlobals());
|
$this->extendGlobalData($sameModel->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'object',
|
'file' => 'object',
|
||||||
'data' => $sameModel->getListviewData(),
|
'data' => $sameModel->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_samemodelas',
|
'name' => '$LANG.tab_samemodelas',
|
||||||
'id' => 'same-model-as'
|
'id' => 'same-model-as'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class ObjectsPage extends GenericPage
|
|||||||
$params['_errors'] = '$1';
|
$params['_errors'] = '$1';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'object',
|
'file' => 'object',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => $params
|
'params' => $params
|
||||||
|
|||||||
@@ -86,12 +86,11 @@ class PetPage extends GenericPage
|
|||||||
);
|
);
|
||||||
$tng = new CreatureList($condition);
|
$tng = new CreatureList($condition);
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $tng->getListviewData(NPCINFO_TAMEABLE),
|
'data' => $tng->getListviewData(NPCINFO_TAMEABLE),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'name' => '$LANG.tab_tameable',
|
'name' => '$LANG.tab_tameable',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'hiddenCols' => "$['type']",
|
'hiddenCols' => "$['type']",
|
||||||
'visibleCols' => "$['skin']",
|
'visibleCols' => "$['skin']",
|
||||||
'note' => sprintf(Util::$filterResultString, '?npcs=1&filter=fa=38'),
|
'note' => sprintf(Util::$filterResultString, '?npcs=1&filter=fa=38'),
|
||||||
@@ -99,12 +98,10 @@ class PetPage extends GenericPage
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'model',
|
'file' => 'model',
|
||||||
'data' => $tng->getListviewData(NPCINFO_MODEL),
|
'data' => $tng->getListviewData(NPCINFO_MODEL),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// tab: diet
|
// tab: diet
|
||||||
@@ -117,12 +114,11 @@ class PetPage extends GenericPage
|
|||||||
$food = new ItemList(array(['i.subClass', [5, 8]], ['i.FoodType', $list], CFG_SQL_LIMIT_NONE));
|
$food = new ItemList(array(['i.subClass', [5, 8]], ['i.FoodType', $list], CFG_SQL_LIMIT_NONE));
|
||||||
$this->extendGlobalData($food->getJSGlobals());
|
$this->extendGlobalData($food->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $food->getListviewData(),
|
'data' => $food->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'name' => '$LANG.diet',
|
'name' => '$LANG.diet',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'hiddenCols' => "$['source', 'slot', 'side']",
|
'hiddenCols' => "$['source', 'slot', 'side']",
|
||||||
'sort' => "$['level']",
|
'sort' => "$['level']",
|
||||||
'id' => 'diet'
|
'id' => 'diet'
|
||||||
@@ -155,12 +151,11 @@ class PetPage extends GenericPage
|
|||||||
$spells = new SpellList($conditions);
|
$spells = new SpellList($conditions);
|
||||||
$this->extendGlobalData($spells->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($spells->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $spells->getListviewData(),
|
'data' => $spells->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'name' => '$LANG.tab_abilities',
|
'name' => '$LANG.tab_abilities',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'visibleCols' => "$['schools', 'level']",
|
'visibleCols' => "$['schools', 'level']",
|
||||||
'id' => 'abilities'
|
'id' => 'abilities'
|
||||||
)
|
)
|
||||||
@@ -186,11 +181,10 @@ class PetPage extends GenericPage
|
|||||||
$talents = new SpellList($conditions);
|
$talents = new SpellList($conditions);
|
||||||
$this->extendGlobalData($talents->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($talents->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $talents->getListviewData(),
|
'data' => $talents->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'visibleCols' => "$['tier', 'level']",
|
'visibleCols' => "$['tier', 'level']",
|
||||||
'name' => '$LANG.tab_talents',
|
'name' => '$LANG.tab_talents',
|
||||||
'id' => 'talents',
|
'id' => 'talents',
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class PetsPage extends GenericPage
|
|||||||
if (!$pets->hasDiffFields(['type']))
|
if (!$pets->hasDiffFields(['type']))
|
||||||
$params['hiddenCols'] = "$['type']";
|
$params['hiddenCols'] = "$['type']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'pet',
|
'file' => 'pet',
|
||||||
'data' => $pets->getListviewData(),
|
'data' => $pets->getListviewData(),
|
||||||
'params' => $params
|
'params' => $params
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class ProfilePage extends GenericPage
|
|||||||
protected $path = [1, 5, 1];
|
protected $path = [1, 5, 1];
|
||||||
protected $tabId = 1;
|
protected $tabId = 1;
|
||||||
protected $tpl = 'profile';
|
protected $tpl = 'profile';
|
||||||
protected $reqDataKey = true;
|
protected $gDataKey = true;
|
||||||
protected $js = ['filters.js', 'TalentCalc.js', 'swfobject.js', 'profile_all.js', 'profile.js', 'Profiler.js'];
|
protected $js = ['filters.js', 'TalentCalc.js', 'swfobject.js', 'profile_all.js', 'profile.js', 'Profiler.js'];
|
||||||
protected $css = array(
|
protected $css = array(
|
||||||
['path' => 'TalentCalc.css'],
|
['path' => 'TalentCalc.css'],
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class ProfilesPage extends GenericPage
|
|||||||
// dont send ID for real chars unless they have some kind of custom avatar
|
// dont send ID for real chars unless they have some kind of custom avatar
|
||||||
// on second thought .. ids are required for resync, but the function that generates the icon is faulty
|
// on second thought .. ids are required for resync, but the function that generates the icon is faulty
|
||||||
|
|
||||||
$this->lvData = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'profile',
|
'file' => 'profile',
|
||||||
'data' => [$exampleRow],
|
'data' => [$exampleRow],
|
||||||
'params' => [
|
'params' => [
|
||||||
|
|||||||
@@ -547,7 +547,7 @@ class QuestPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($maTab)
|
if ($maTab)
|
||||||
$this->lvData[] = $maTab;
|
$this->lvTabs[] = $maTab;
|
||||||
|
|
||||||
if ($_ = $this->subject->getField('reqMinRepFaction'))
|
if ($_ = $this->subject->getField('reqMinRepFaction'))
|
||||||
{
|
{
|
||||||
@@ -572,14 +572,13 @@ class QuestPage extends GenericPage
|
|||||||
if (!$seeAlso->error)
|
if (!$seeAlso->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($seeAlso->getJSGlobals());
|
$this->extendGlobalData($seeAlso->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $seeAlso->getListviewData(),
|
'data' => $seeAlso->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_seealso',
|
'name' => '$LANG.tab_seealso',
|
||||||
'id' => 'see-also'
|
'id' => 'see-also'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -588,14 +587,13 @@ class QuestPage extends GenericPage
|
|||||||
if (!$criteriaOf->error)
|
if (!$criteriaOf->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($criteriaOf->getJSGlobals());
|
$this->extendGlobalData($criteriaOf->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $criteriaOf->getListviewData(),
|
'data' => $criteriaOf->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_criteriaof',
|
'name' => '$LANG.tab_criteriaof',
|
||||||
'id' => 'criteria-of'
|
'id' => 'criteria-of'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -825,13 +823,12 @@ class QuestPage extends GenericPage
|
|||||||
$attachmentTab = array(
|
$attachmentTab = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $mailLoot->getResult(),
|
'data' => $mailLoot->getResult(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '[Mail Attachments]',
|
'name' => '[Mail Attachments]',
|
||||||
'id' => 'mail-attachments',
|
'id' => 'mail-attachments',
|
||||||
'extraCols' => "$[".implode(', ', array_merge($extraCols, $mailLoot->extraCols))."]",
|
'extraCols' => "$[".implode(', ', array_merge($extraCols, $mailLoot->extraCols))."]",
|
||||||
'hiddenCols' => "$['side', 'slot', 'reqlevel']"
|
'hiddenCols' => "$['side', 'slot', 'reqlevel']"
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class QuestsPage extends GenericPage
|
|||||||
if ($this->filterObj->error)
|
if ($this->filterObj->error)
|
||||||
$lv['params']['_errors'] = '$1';
|
$lv['params']['_errors'] = '$1';
|
||||||
|
|
||||||
$this->lvData = $lv;
|
$this->lvTabs[] = $lv;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function generateTitle()
|
protected function generateTitle()
|
||||||
|
|||||||
@@ -109,12 +109,10 @@ class RacePage extends GenericPage
|
|||||||
if (!$classes->error)
|
if (!$classes->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($classes->getJSGlobals());
|
$this->extendGlobalData($classes->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'class',
|
'file' => 'class',
|
||||||
'data' => $classes->getListviewData(),
|
'data' => $classes->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,14 +126,13 @@ class RacePage extends GenericPage
|
|||||||
if (!$tongues->error)
|
if (!$tongues->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($tongues->getJSGlobals());
|
$this->extendGlobalData($tongues->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $tongues->getListviewData(),
|
'data' => $tongues->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'languages',
|
'id' => 'languages',
|
||||||
'name' => '$LANG.tab_languages',
|
'name' => '$LANG.tab_languages',
|
||||||
'hiddenCols' => "$['reagents']",
|
'hiddenCols' => "$['reagents']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -150,14 +147,13 @@ class RacePage extends GenericPage
|
|||||||
if (!$racials->error)
|
if (!$racials->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($racials->getJSGlobals());
|
$this->extendGlobalData($racials->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $racials->getListviewData(),
|
'data' => $racials->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'racial-traits',
|
'id' => 'racial-traits',
|
||||||
'name' => '$LANG.tab_racialtraits',
|
'name' => '$LANG.tab_racialtraits',
|
||||||
'hiddenCols' => "$['reagents']",
|
'hiddenCols' => "$['reagents']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -173,12 +169,10 @@ class RacePage extends GenericPage
|
|||||||
if (!$quests->error)
|
if (!$quests->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($quests->getJSGlobals());
|
$this->extendGlobalData($quests->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $quests->getListviewData(),
|
'data' => $quests->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,13 +190,12 @@ class RacePage extends GenericPage
|
|||||||
if (!$mounts->error)
|
if (!$mounts->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($mounts->getJSGlobals());
|
$this->extendGlobalData($mounts->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $mounts->getListviewData(),
|
'data' => $mounts->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'mounts',
|
'id' => 'mounts',
|
||||||
'name' => '$LANG.tab_mounts',
|
'name' => '$LANG.tab_mounts',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'hiddenCols' => "$['slot', 'type']"
|
'hiddenCols' => "$['slot', 'type']"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class RacesPage extends GenericPage
|
|||||||
$races = new CharRaceList(array(['side', 0, '!']));
|
$races = new CharRaceList(array(['side', 0, '!']));
|
||||||
if (!$races->error)
|
if (!$races->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'race',
|
'file' => 'race',
|
||||||
'data' => $races->getListviewData(),
|
'data' => $races->getListviewData(),
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
@@ -146,10 +146,10 @@ class SearchPage extends GenericPage
|
|||||||
|
|
||||||
protected function postCache()
|
protected function postCache()
|
||||||
{
|
{
|
||||||
if (!empty($this->lvData[3])) // has world events
|
if (!empty($this->lvTabs[3])) // has world events
|
||||||
{
|
{
|
||||||
// update WorldEvents to date()
|
// update WorldEvents to date()
|
||||||
foreach ($this->lvData[3]['data'] as &$d)
|
foreach ($this->lvTabs[3]['data'] as &$d)
|
||||||
{
|
{
|
||||||
$updated = WorldEventList::updateDates($d['_date']);
|
$updated = WorldEventList::updateDates($d['_date']);
|
||||||
unset($d['_date']);
|
unset($d['_date']);
|
||||||
@@ -162,12 +162,12 @@ class SearchPage extends GenericPage
|
|||||||
if ($this->searchMask & SEARCH_TYPE_REGULAR)
|
if ($this->searchMask & SEARCH_TYPE_REGULAR)
|
||||||
{
|
{
|
||||||
$foundTotal = 0;
|
$foundTotal = 0;
|
||||||
foreach ($this->lvData as $_)
|
foreach ($this->lvTabs as $_)
|
||||||
$foundTotal += count($_['data']);
|
$foundTotal += count($_['data']);
|
||||||
|
|
||||||
if ($foundTotal == 1) // only one match -> redirect to find
|
if ($foundTotal == 1) // only one match -> redirect to find
|
||||||
{
|
{
|
||||||
$_ = array_pop($this->lvData);
|
$_ = array_pop($this->lvTabs);
|
||||||
$type = Util::$typeStrings[$_['type']];
|
$type = Util::$typeStrings[$_['type']];
|
||||||
$typeId = key($_['data']);
|
$typeId = key($_['data']);
|
||||||
|
|
||||||
@@ -246,7 +246,7 @@ class SearchPage extends GenericPage
|
|||||||
|
|
||||||
if (!$asError)
|
if (!$asError)
|
||||||
{
|
{
|
||||||
if ($itemData = @$this->lvData[6]['data'])
|
if ($itemData = @$this->lvTabs[6]['data'])
|
||||||
{
|
{
|
||||||
$items = [];
|
$items = [];
|
||||||
foreach ($itemData as $k => $v)
|
foreach ($itemData as $k => $v)
|
||||||
@@ -255,7 +255,7 @@ class SearchPage extends GenericPage
|
|||||||
$outItems = "\t".implode(",\n\t", $items)."\n";
|
$outItems = "\t".implode(",\n\t", $items)."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($setData = @$this->lvData[5]['data'])
|
if ($setData = @$this->lvTabs[5]['data'])
|
||||||
{
|
{
|
||||||
$sets = [];
|
$sets = [];
|
||||||
foreach ($setData as $k => $v)
|
foreach ($setData as $k => $v)
|
||||||
@@ -282,13 +282,13 @@ class SearchPage extends GenericPage
|
|||||||
$names = [];
|
$names = [];
|
||||||
$info = [];
|
$info = [];
|
||||||
|
|
||||||
foreach ($this->lvData as $_)
|
foreach ($this->lvTabs as $_)
|
||||||
$foundTotal += $_['matches'];
|
$foundTotal += $_['matches'];
|
||||||
|
|
||||||
if (!$foundTotal || $asError)
|
if (!$foundTotal || $asError)
|
||||||
return '["'.Util::jsEscape($this->search).'", []]';
|
return '["'.Util::jsEscape($this->search).'", []]';
|
||||||
|
|
||||||
foreach ($this->lvData as $idx => $set)
|
foreach ($this->lvTabs as $idx => $set)
|
||||||
{
|
{
|
||||||
$max = max(1, intVal($limit * $set['matches'] / $foundTotal));
|
$max = max(1, intVal($limit * $set['matches'] / $foundTotal));
|
||||||
$limit -= $max;
|
$limit -= $max;
|
||||||
@@ -365,7 +365,7 @@ class SearchPage extends GenericPage
|
|||||||
foreach ($this->searches as $idx => $ref)
|
foreach ($this->searches as $idx => $ref)
|
||||||
if ($this->searchMask & (1 << $idx))
|
if ($this->searchMask & (1 << $idx))
|
||||||
if ($_ = $this->$ref[0]($cndBase, $shared))
|
if ($_ = $this->$ref[0]($cndBase, $shared))
|
||||||
$this->lvData[$idx] = $_;
|
$this->lvTabs[$idx] = $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function _searchCharClass($cndBase) // 0 Classes: $searchMask & 0x00000001
|
private function _searchCharClass($cndBase) // 0 Classes: $searchMask & 0x00000001
|
||||||
@@ -386,7 +386,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $classes->getMatches(),
|
'matches' => $classes->getMatches(),
|
||||||
'file' => CharClassList::$brickFile,
|
'file' => CharClassList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($classes->getMatches() > $this->maxResults)
|
if ($classes->getMatches() > $this->maxResults)
|
||||||
@@ -417,7 +417,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $races->getMatches(),
|
'matches' => $races->getMatches(),
|
||||||
'file' => CharRaceList::$brickFile,
|
'file' => CharRaceList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($races->getMatches() > $this->maxResults)
|
if ($races->getMatches() > $this->maxResults)
|
||||||
@@ -448,7 +448,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $titles->getMatches(),
|
'matches' => $titles->getMatches(),
|
||||||
'file' => TitleList::$brickFile,
|
'file' => TitleList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($titles->getMatches() > $this->maxResults)
|
if ($titles->getMatches() > $this->maxResults)
|
||||||
@@ -486,7 +486,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $wEvents->getMatches(),
|
'matches' => $wEvents->getMatches(),
|
||||||
'file' => WorldEventList::$brickFile,
|
'file' => WorldEventList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($wEvents->getMatches() > $this->maxResults)
|
if ($wEvents->getMatches() > $this->maxResults)
|
||||||
@@ -517,7 +517,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $money->getMatches(),
|
'matches' => $money->getMatches(),
|
||||||
'file' => CurrencyList::$brickFile,
|
'file' => CurrencyList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($money->getMatches() > $this->maxResults)
|
if ($money->getMatches() > $this->maxResults)
|
||||||
@@ -551,7 +551,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $sets->getMatches(),
|
'matches' => $sets->getMatches(),
|
||||||
'file' => ItemsetList::$brickFile,
|
'file' => ItemsetList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs'],
|
'params' => [],
|
||||||
);
|
);
|
||||||
|
|
||||||
$shared['pcsToSet'] = $sets->pieceToSet;
|
$shared['pcsToSet'] = $sets->pieceToSet;
|
||||||
@@ -625,7 +625,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $items->getMatches(),
|
'matches' => $items->getMatches(),
|
||||||
'file' => ItemList::$brickFile,
|
'file' => ItemList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($items->getMatches() > $this->maxResults)
|
if ($items->getMatches() > $this->maxResults)
|
||||||
@@ -681,7 +681,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'abilities',
|
'id' => 'abilities',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_abilities',
|
'name' => '$LANG.tab_abilities',
|
||||||
'visibleCols' => '$'.json_encode($vis)
|
'visibleCols' => '$'.json_encode($vis)
|
||||||
]
|
]
|
||||||
@@ -737,7 +736,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'talents',
|
'id' => 'talents',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_talents',
|
'name' => '$LANG.tab_talents',
|
||||||
'visibleCols' => '$'.json_encode($vis)
|
'visibleCols' => '$'.json_encode($vis)
|
||||||
]
|
]
|
||||||
@@ -784,7 +782,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'glyphs',
|
'id' => 'glyphs',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_glyphs',
|
'name' => '$LANG.tab_glyphs',
|
||||||
'visibleCols' => "$['singleclass', 'glyphtype']"
|
'visibleCols' => "$['singleclass', 'glyphtype']"
|
||||||
]
|
]
|
||||||
@@ -831,7 +828,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'proficiencies',
|
'id' => 'proficiencies',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_proficiencies',
|
'name' => '$LANG.tab_proficiencies',
|
||||||
'visibleCols' => "$['classes']"
|
'visibleCols' => "$['classes']"
|
||||||
]
|
]
|
||||||
@@ -878,7 +874,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'professions',
|
'id' => 'professions',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_professions',
|
'name' => '$LANG.tab_professions',
|
||||||
'visibleCols' => "$['source', 'reagents']"
|
'visibleCols' => "$['source', 'reagents']"
|
||||||
]
|
]
|
||||||
@@ -925,7 +920,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'companions',
|
'id' => 'companions',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_companions',
|
'name' => '$LANG.tab_companions',
|
||||||
'visibleCols' => "$['reagents']"
|
'visibleCols' => "$['reagents']"
|
||||||
]
|
]
|
||||||
@@ -972,7 +966,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'mounts',
|
'id' => 'mounts',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_mounts',
|
'name' => '$LANG.tab_mounts',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@@ -1012,7 +1005,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'npcs',
|
'id' => 'npcs',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_npcs',
|
'name' => '$LANG.tab_npcs',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@@ -1052,7 +1044,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $quests->getMatches(),
|
'matches' => $quests->getMatches(),
|
||||||
'file' => QuestList::$brickFile,
|
'file' => QuestList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($quests->getMatches() > $this->maxResults)
|
if ($quests->getMatches() > $this->maxResults)
|
||||||
@@ -1095,7 +1087,6 @@ class SearchPage extends GenericPage
|
|||||||
'file' => AchievementList::$brickFile,
|
'file' => AchievementList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'visibleCols' => "$['category']"
|
'visibleCols' => "$['category']"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@@ -1135,7 +1126,6 @@ class SearchPage extends GenericPage
|
|||||||
'file' => AchievementList::$brickFile,
|
'file' => AchievementList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'visibleCols' => "$['category']",
|
'visibleCols' => "$['category']",
|
||||||
'hiddenCols' => "$['side', 'points', 'rewards']",
|
'hiddenCols' => "$['side', 'points', 'rewards']",
|
||||||
'name' => '$LANG.tab_statistics',
|
'name' => '$LANG.tab_statistics',
|
||||||
@@ -1175,9 +1165,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $zones->getMatches(),
|
'matches' => $zones->getMatches(),
|
||||||
'file' => ZoneList::$brickFile,
|
'file' => ZoneList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => []
|
||||||
'tabs' => '$myTabs'
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($zones->getMatches() > $this->maxResults)
|
if ($zones->getMatches() > $this->maxResults)
|
||||||
@@ -1207,9 +1195,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $objects->getMatches(),
|
'matches' => $objects->getMatches(),
|
||||||
'file' => GameObjectList::$brickFile,
|
'file' => GameObjectList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => []
|
||||||
'tabs' => '$myTabs'
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($objects->getMatches() > $this->maxResults)
|
if ($objects->getMatches() > $this->maxResults)
|
||||||
@@ -1241,9 +1227,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $factions->getMatches(),
|
'matches' => $factions->getMatches(),
|
||||||
'file' => FactionList::$brickFile,
|
'file' => FactionList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => []
|
||||||
'tabs' => '$myTabs'
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($factions->getMatches() > $this->maxResults)
|
if ($factions->getMatches() > $this->maxResults)
|
||||||
@@ -1274,9 +1258,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $skills->getMatches(),
|
'matches' => $skills->getMatches(),
|
||||||
'file' => SkillList::$brickFile,
|
'file' => SkillList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => []
|
||||||
'tabs' => '$myTabs'
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($skills->getMatches() > $this->maxResults)
|
if ($skills->getMatches() > $this->maxResults)
|
||||||
@@ -1307,7 +1289,7 @@ class SearchPage extends GenericPage
|
|||||||
'matches' => $pets->getMatches(),
|
'matches' => $pets->getMatches(),
|
||||||
'file' => PetList::$brickFile,
|
'file' => PetList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($pets->getMatches() > $this->maxResults)
|
if ($pets->getMatches() > $this->maxResults)
|
||||||
@@ -1346,7 +1328,6 @@ class SearchPage extends GenericPage
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'id' => 'npc-abilities',
|
'id' => 'npc-abilities',
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_npcabilities',
|
'name' => '$LANG.tab_npcabilities',
|
||||||
'visibleCols' => "$['level']",
|
'visibleCols' => "$['level']",
|
||||||
'hiddenCols' => "$['skill']"
|
'hiddenCols' => "$['skill']"
|
||||||
@@ -1393,7 +1374,6 @@ class SearchPage extends GenericPage
|
|||||||
'file' => SpellList::$brickFile,
|
'file' => SpellList::$brickFile,
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$myTabs',
|
|
||||||
'name' => '$LANG.tab_uncategorizedspells',
|
'name' => '$LANG.tab_uncategorizedspells',
|
||||||
'visibleCols' => "$['level']",
|
'visibleCols' => "$['level']",
|
||||||
'hiddenCols' => "$['skill']",
|
'hiddenCols' => "$['skill']",
|
||||||
|
|||||||
@@ -73,11 +73,10 @@ class SkillPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($recipes->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($recipes->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $recipes->getListviewData(),
|
'data' => $recipes->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'recipes',
|
'id' => 'recipes',
|
||||||
'name' => '$LANG.tab_recipes',
|
'name' => '$LANG.tab_recipes',
|
||||||
'visibleCols' => "$['reagents', 'source']",
|
'visibleCols' => "$['reagents', 'source']",
|
||||||
@@ -102,13 +101,12 @@ class SkillPage extends GenericPage
|
|||||||
if ($_ = array_search($this->typeId, $filterRecipe))
|
if ($_ = array_search($this->typeId, $filterRecipe))
|
||||||
$_ = sprintf(Util::$filterResultString, "?items=9.".$_);
|
$_ = sprintf(Util::$filterResultString, "?items=9.".$_);
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $recipeItems->getListviewData(),
|
'data' => $recipeItems->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'recipe-items',
|
'id' => 'recipe-items',
|
||||||
'name' => '$LANG.tab_recipeitems',
|
'name' => '$LANG.tab_recipeitems',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $_
|
'note' => $_
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -132,13 +130,12 @@ class SkillPage extends GenericPage
|
|||||||
if ($_ = array_search($this->typeId, $filterItem))
|
if ($_ = array_search($this->typeId, $filterItem))
|
||||||
$_ = sprintf(Util::$filterResultString, "?items&filter=cr=86;crs=".$_.";crv=0");
|
$_ = sprintf(Util::$filterResultString, "?items&filter=cr=86;crs=".$_.";crv=0");
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $created->getListviewData(),
|
'data' => $created->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'crafted-items',
|
'id' => 'crafted-items',
|
||||||
'name' => '$LANG.tab_crafteditems',
|
'name' => '$LANG.tab_crafteditems',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $_
|
'note' => $_
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -160,13 +157,12 @@ class SkillPage extends GenericPage
|
|||||||
if ($_ = array_search($this->typeId, $filterItem))
|
if ($_ = array_search($this->typeId, $filterItem))
|
||||||
$_ = sprintf(Util::$filterResultString, "?items&filter=cr=99:168;crs=".$_.":2;crv=0:0");
|
$_ = sprintf(Util::$filterResultString, "?items&filter=cr=99:168;crs=".$_.":2;crv=0:0");
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $reqBy->getListviewData(),
|
'data' => $reqBy->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'required-by',
|
'id' => 'required-by',
|
||||||
'name' => '$LANG.tab_requiredby',
|
'name' => '$LANG.tab_requiredby',
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'note' => $_
|
'note' => $_
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -183,13 +179,12 @@ class SkillPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($reqBy->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($reqBy->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'itemset',
|
'file' => 'itemset',
|
||||||
'data' => $reqBy->getListviewData(),
|
'data' => $reqBy->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'required-by-set',
|
'id' => 'required-by-set',
|
||||||
'name' => '$LANG.tab_requiredby',
|
'name' => '$LANG.tab_requiredby'
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -226,10 +221,7 @@ class SkillPage extends GenericPage
|
|||||||
$lv = array(
|
$lv = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $spells->getListviewData(),
|
'data' => $spells->getListviewData(),
|
||||||
'params' => array(
|
'params' => ['visibleCols' => "$['source']"]
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'visibleCols' => "$['source']"
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
switch ($this->cat)
|
switch ($this->cat)
|
||||||
@@ -247,7 +239,7 @@ class SkillPage extends GenericPage
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = $lv;
|
$this->lvTabs[] = $lv;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tab: trainers [npcs]
|
// tab: trainers [npcs]
|
||||||
@@ -282,11 +274,10 @@ class SkillPage extends GenericPage
|
|||||||
{
|
{
|
||||||
$this->extendGlobalData($trainer->getJSGlobals());
|
$this->extendGlobalData($trainer->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $trainer->getListviewData(),
|
'data' => $trainer->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'trainer',
|
'id' => 'trainer',
|
||||||
'name' => '$LANG.tab_trainers',
|
'name' => '$LANG.tab_trainers',
|
||||||
)
|
)
|
||||||
@@ -320,12 +311,10 @@ class SkillPage extends GenericPage
|
|||||||
if (!$quests->error)
|
if (!$quests->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($quests->getJSGlobals());
|
$this->extendGlobalData($quests->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $quests->getListviewData(),
|
'data' => $quests->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -342,12 +331,10 @@ class SkillPage extends GenericPage
|
|||||||
$classes = new CharClassList(array(['id', $class]));
|
$classes = new CharClassList(array(['id', $class]));
|
||||||
if (!$classes->error)
|
if (!$classes->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'class',
|
'file' => 'class',
|
||||||
'data' => $classes->getListviewData(),
|
'data' => $classes->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -363,12 +350,10 @@ class SkillPage extends GenericPage
|
|||||||
$races = new CharRaceList(array(['id', $race]));
|
$races = new CharRaceList(array(['id', $race]));
|
||||||
if (!$races->error)
|
if (!$races->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'race',
|
'file' => 'race',
|
||||||
'data' => $races->getListviewData(),
|
'data' => $races->getListviewData(),
|
||||||
'params' => array(
|
'params' => []
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class SkillsPage extends GenericPage
|
|||||||
|
|
||||||
$skills = new SkillList($conditions);
|
$skills = new SkillList($conditions);
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'skill',
|
'file' => 'skill',
|
||||||
'data' => $skills->getListviewData(), // listview content
|
'data' => $skills->getListviewData(), // listview content
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
122
pages/spell.php
122
pages/spell.php
@@ -327,16 +327,15 @@ class SpellPage extends GenericPage
|
|||||||
if (!$modSpells->hasSetFields(['skillLines']))
|
if (!$modSpells->hasSetFields(['skillLines']))
|
||||||
$msH = "$['skill']";
|
$msH = "$['skill']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $modSpells->getListviewData(),
|
'data' => $modSpells->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'modifies',
|
'id' => 'modifies',
|
||||||
'name' => '$LANG.tab_modifies',
|
'name' => '$LANG.tab_modifies',
|
||||||
'visibleCols' => "$['level']",
|
'visibleCols' => "$['level']",
|
||||||
'hiddenCols' => isset($msH) ? $msH : null
|
'hiddenCols' => isset($msH) ? $msH : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($modSpells->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($modSpells->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -379,16 +378,15 @@ class SpellPage extends GenericPage
|
|||||||
if (!$modsSpell->hasSetFields(['skillLines']))
|
if (!$modsSpell->hasSetFields(['skillLines']))
|
||||||
$mbH = "$['skill']";
|
$mbH = "$['skill']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $modsSpell->getListviewData(),
|
'data' => $modsSpell->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'modified-by',
|
'id' => 'modified-by',
|
||||||
'name' => '$LANG.tab_modifiedby',
|
'name' => '$LANG.tab_modifiedby',
|
||||||
'visibleCols' => "$['level']",
|
'visibleCols' => "$['level']",
|
||||||
'hiddenCols' => isset($mbH) ? $mbH : null
|
'hiddenCols' => isset($mbH) ? $mbH : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($modsSpell->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($modsSpell->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -444,17 +442,16 @@ class SpellPage extends GenericPage
|
|||||||
if (!$saSpells->hasSetFields(['skillLines']))
|
if (!$saSpells->hasSetFields(['skillLines']))
|
||||||
$saH = "$['skill']";
|
$saH = "$['skill']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'see-also',
|
'id' => 'see-also',
|
||||||
'name' => '$LANG.tab_seealso',
|
'name' => '$LANG.tab_seealso',
|
||||||
'visibleCols' => "$['level']",
|
'visibleCols' => "$['level']",
|
||||||
'extraCols' => isset($saE) ? $saE : null,
|
'extraCols' => isset($saE) ? $saE : null,
|
||||||
'hiddenCols' => isset($saH) ? $saH : null
|
'hiddenCols' => isset($saH) ? $saH : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($saSpells->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($saSpells->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -470,14 +467,13 @@ class SpellPage extends GenericPage
|
|||||||
$ubSets = new ItemsetList($conditions);
|
$ubSets = new ItemsetList($conditions);
|
||||||
if (!$ubSets->error)
|
if (!$ubSets->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'itemset',
|
'file' => 'itemset',
|
||||||
'data' => $ubSets->getListviewData(),
|
'data' => $ubSets->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'used-by-itemset',
|
'id' => 'used-by-itemset',
|
||||||
'name' => '$LANG.tab_usedby'
|
'name' => '$LANG.tab_usedby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($ubSets->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($ubSets->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -496,14 +492,13 @@ class SpellPage extends GenericPage
|
|||||||
$ubItems = new ItemList($conditions);
|
$ubItems = new ItemList($conditions);
|
||||||
if (!$ubItems->error)
|
if (!$ubItems->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $ubItems->getListviewData(),
|
'data' => $ubItems->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'used-by-item',
|
'id' => 'used-by-item',
|
||||||
'name' => '$LANG.tab_usedby'
|
'name' => '$LANG.tab_usedby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($ubItems->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($ubItems->getJSGlobals(GLOBALINFO_SELF));
|
||||||
@@ -519,14 +514,13 @@ class SpellPage extends GenericPage
|
|||||||
$ubObjects = new GameObjectList($conditions);
|
$ubObjects = new GameObjectList($conditions);
|
||||||
if (!$ubObjects->error)
|
if (!$ubObjects->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'object',
|
'file' => 'object',
|
||||||
'data' => $ubObjects->getListviewData(),
|
'data' => $ubObjects->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'used-by-object',
|
'id' => 'used-by-object',
|
||||||
'name' => '$LANG.tab_usedby'
|
'name' => '$LANG.tab_usedby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($ubObjects->getJSGlobals());
|
$this->extendGlobalData($ubObjects->getJSGlobals());
|
||||||
@@ -542,14 +536,13 @@ class SpellPage extends GenericPage
|
|||||||
$coAchievemnts = new AchievementList($conditions);
|
$coAchievemnts = new AchievementList($conditions);
|
||||||
if (!$coAchievemnts->error)
|
if (!$coAchievemnts->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $coAchievemnts->getListviewData(),
|
'data' => $coAchievemnts->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'criteria-of',
|
'id' => 'criteria-of',
|
||||||
'name' => '$LANG.tab_criteriaof'
|
'name' => '$LANG.tab_criteriaof'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($coAchievemnts->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($coAchievemnts->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -591,16 +584,15 @@ class SpellPage extends GenericPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $lv,
|
'data' => $lv,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'name' => '$LANG.tab_contains',
|
'name' => '$LANG.tab_contains',
|
||||||
'id' => 'contains',
|
'id' => 'contains',
|
||||||
'hiddenCols' => "$['side', 'slot', 'source', 'reqlevel']",
|
'hiddenCols' => "$['side', 'slot', 'source', 'reqlevel']",
|
||||||
'extraCols' => '$'.json_encode($extraCols, JSON_NUMERIC_CHECk)
|
'extraCols' => '$'.json_encode($extraCols, JSON_NUMERIC_CHECk)
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -652,16 +644,15 @@ class SpellPage extends GenericPage
|
|||||||
if (!$stacks->hasSetFields(['skillLines']))
|
if (!$stacks->hasSetFields(['skillLines']))
|
||||||
$sH = "$['skill']";
|
$sH = "$['skill']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'spell-group-stack',
|
'id' => 'spell-group-stack',
|
||||||
'name' => 'Stack Group', // todo (med): localize
|
'name' => 'Stack Group', // todo (med): localize
|
||||||
'visibleCols' => "$['stackRules']",
|
'visibleCols' => "$['stackRules']",
|
||||||
'hiddenCols' => isset($sH) ? $sH : null
|
'hiddenCols' => isset($sH) ? $sH : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($stacks->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($stacks->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -705,16 +696,15 @@ class SpellPage extends GenericPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'spell-link',
|
'id' => 'spell-link',
|
||||||
'name' => 'Linked with', // todo (med): localize
|
'name' => 'Linked with', // todo (med): localize
|
||||||
'hiddenCols' => "$['skill', 'name']",
|
'hiddenCols' => "$['skill', 'name']",
|
||||||
'visibleCols' => "$['linkedTrigger', 'linkedEffect']"
|
'visibleCols' => "$['linkedTrigger', 'linkedEffect']"
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($linked->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($linked->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
@@ -732,14 +722,13 @@ class SpellPage extends GenericPage
|
|||||||
$trigger = new SpellList($conditions);
|
$trigger = new SpellList($conditions);
|
||||||
if (!$trigger->error)
|
if (!$trigger->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $trigger->getListviewData(),
|
'data' => $trigger->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'triggered-by',
|
'id' => 'triggered-by',
|
||||||
'name' => '$LANG.tab_triggeredby'
|
'name' => '$LANG.tab_triggeredby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($trigger->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($trigger->getJSGlobals(GLOBALINFO_SELF));
|
||||||
@@ -758,14 +747,13 @@ class SpellPage extends GenericPage
|
|||||||
$ubCreature = new CreatureList($conditions);
|
$ubCreature = new CreatureList($conditions);
|
||||||
if (!$ubCreature->error)
|
if (!$ubCreature->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $ubCreature->getListviewData(),
|
'data' => $ubCreature->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'used-by-npc',
|
'id' => 'used-by-npc',
|
||||||
'name' => '$LANG.tab_usedby'
|
'name' => '$LANG.tab_usedby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($ubCreature->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($ubCreature->getJSGlobals(GLOBALINFO_SELF));
|
||||||
@@ -883,14 +871,13 @@ class SpellPage extends GenericPage
|
|||||||
$_ = array_merge($_, $parents[$_['parentArea']]);
|
$_ = array_merge($_, $parents[$_['parentArea']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'zone',
|
'file' => 'zone',
|
||||||
'data' => $lv,
|
'data' => $lv,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'extraCols' => $extra ? '$[Listview.extraCols.condition]' : null,
|
'extraCols' => $extra ? '$[Listview.extraCols.condition]' : null,
|
||||||
'hiddenCols' => $extra ? "$['instancetype']" : null
|
'hiddenCols' => $extra ? "$['instancetype']" : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -916,16 +903,15 @@ class SpellPage extends GenericPage
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $teaches->getListviewData(),
|
'data' => $teaches->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'teaches-spell',
|
'id' => 'teaches-spell',
|
||||||
'name' => '$LANG.tab_teaches',
|
'name' => '$LANG.tab_teaches',
|
||||||
'visibleCols' => '$'.json_encode($vis),
|
'visibleCols' => '$'.json_encode($vis),
|
||||||
'hiddenCols' => $hid ? '$'.json_encode($hid) : null
|
'hiddenCols' => $hid ? '$'.json_encode($hid) : null
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -976,11 +962,10 @@ class SpellPage extends GenericPage
|
|||||||
if (!$tbTrainer->error)
|
if (!$tbTrainer->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($tbTrainer->getJSGlobals());
|
$this->extendGlobalData($tbTrainer->getJSGlobals());
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'creature',
|
'file' => 'creature',
|
||||||
'data' => $tbTrainer->getListviewData(),
|
'data' => $tbTrainer->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'taught-by-npc',
|
'id' => 'taught-by-npc',
|
||||||
'name' => '$LANG.tab_taughtby',
|
'name' => '$LANG.tab_taughtby',
|
||||||
)
|
)
|
||||||
@@ -1002,14 +987,13 @@ class SpellPage extends GenericPage
|
|||||||
if (!$tbSpell->error)
|
if (!$tbSpell->error)
|
||||||
{
|
{
|
||||||
$tbsData = $tbSpell->getListviewData();
|
$tbsData = $tbSpell->getListviewData();
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => $tbsData,
|
'data' => $tbsData,
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'taught-by-spell',
|
'id' => 'taught-by-spell',
|
||||||
'name' => '$LANG.tab_taughtby'
|
'name' => '$LANG.tab_taughtby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($tbSpell->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($tbSpell->getJSGlobals(GLOBALINFO_SELF));
|
||||||
@@ -1029,14 +1013,13 @@ class SpellPage extends GenericPage
|
|||||||
$tbQuest = new QuestList($conditions);
|
$tbQuest = new QuestList($conditions);
|
||||||
if (!$tbQuest->error)
|
if (!$tbQuest->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $tbQuest->getListviewData(),
|
'data' => $tbQuest->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'reward-from-quest',
|
'id' => 'reward-from-quest',
|
||||||
'name' => '$LANG.tab_rewardfrom'
|
'name' => '$LANG.tab_rewardfrom'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($tbQuest->getJSGlobals());
|
$this->extendGlobalData($tbQuest->getJSGlobals());
|
||||||
@@ -1055,14 +1038,13 @@ class SpellPage extends GenericPage
|
|||||||
$tbItem = new ItemList($conditions);
|
$tbItem = new ItemList($conditions);
|
||||||
if (!$tbItem->error)
|
if (!$tbItem->error)
|
||||||
{
|
{
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'item',
|
'file' => 'item',
|
||||||
'data' => $tbItem->getListviewData(),
|
'data' => $tbItem->getListviewData(),
|
||||||
'params' => [
|
'params' => array(
|
||||||
'tabs' => '$tabsRelated',
|
|
||||||
'id' => 'taught-by-item',
|
'id' => 'taught-by-item',
|
||||||
'name' => '$LANG.tab_taughtby'
|
'name' => '$LANG.tab_taughtby'
|
||||||
]
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->extendGlobalData($tbItem->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($tbItem->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class SpellsPage extends GenericPage
|
|||||||
$conditions = [];
|
$conditions = [];
|
||||||
$visibleCols = [];
|
$visibleCols = [];
|
||||||
$hiddenCols = [];
|
$hiddenCols = [];
|
||||||
$this->lvData = array(
|
$tab = array(
|
||||||
'file' => 'spell',
|
'file' => 'spell',
|
||||||
'data' => [],
|
'data' => [],
|
||||||
'params' => []
|
'params' => []
|
||||||
@@ -200,10 +200,10 @@ class SpellsPage extends GenericPage
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData['params']['note'] = '$$WH.sprintf(LANG.lvnote_pettalents, "'.$url.'")';
|
$tab['params']['note'] = '$$WH.sprintf(LANG.lvnote_pettalents, "'.$url.'")';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lvData['params']['_petTalents'] = 1; // not conviced, this is correct, but .. it works
|
$tab['params']['_petTalents'] = 1; // not conviced, this is correct, but .. it works
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case -11: // Proficiencies ... the subIds are actually SkillLineCategories
|
case -11: // Proficiencies ... the subIds are actually SkillLineCategories
|
||||||
@@ -298,8 +298,8 @@ class SpellsPage extends GenericPage
|
|||||||
if (is_array($note))
|
if (is_array($note))
|
||||||
$note = $note[0];
|
$note = $note[0];
|
||||||
|
|
||||||
$this->lvData['params']['note'] = sprintf(Lang::$spell['relItems']['base'], $txt, $note);
|
$tab['params']['note'] = sprintf(Lang::$spell['relItems']['base'], $txt, $note);
|
||||||
$this->lvData['params']['sort'] = "$['skill', 'name']";
|
$tab['params']['sort'] = "$['skill', 'name']";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,8 +337,8 @@ class SpellsPage extends GenericPage
|
|||||||
if (is_array($note))
|
if (is_array($note))
|
||||||
$note = $note[0];
|
$note = $note[0];
|
||||||
|
|
||||||
$this->lvData['params']['note'] = sprintf(Lang::$spell['relItems']['base'], $txt, $note);
|
$tab['params']['note'] = sprintf(Lang::$spell['relItems']['base'], $txt, $note);
|
||||||
$this->lvData['params']['sort'] = "$['skill', 'name']";
|
$tab['params']['sort'] = "$['skill', 'name']";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -362,7 +362,7 @@ class SpellsPage extends GenericPage
|
|||||||
$spells = new SpellList($conditions);
|
$spells = new SpellList($conditions);
|
||||||
|
|
||||||
$this->extendGlobalData($spells->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
$this->extendGlobalData($spells->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||||
$this->lvData['data'] = $spells->getListviewData();
|
$tab['data'] = $spells->getListviewData();
|
||||||
|
|
||||||
// recreate form selection
|
// recreate form selection
|
||||||
$this->filter = array_merge($this->filterObj->getForm('form'), $this->filter);
|
$this->filter = array_merge($this->filterObj->getForm('form'), $this->filter);
|
||||||
@@ -370,17 +370,17 @@ class SpellsPage extends GenericPage
|
|||||||
$this->filter['fi'] = $this->filterObj->getForm();
|
$this->filter['fi'] = $this->filterObj->getForm();
|
||||||
|
|
||||||
if (!empty($this->filter['fi']['extraCols']))
|
if (!empty($this->filter['fi']['extraCols']))
|
||||||
$this->lvData['params']['extraCols'] = '$fi_getExtraCols(fi_extraCols, 0, 0)';
|
$tab['params']['extraCols'] = '$fi_getExtraCols(fi_extraCols, 0, 0)';
|
||||||
|
|
||||||
// create note if search limit was exceeded; overwriting 'note' is intentional
|
// create note if search limit was exceeded; overwriting 'note' is intentional
|
||||||
if ($spells->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
if ($spells->getMatches() > CFG_SQL_LIMIT_DEFAULT)
|
||||||
{
|
{
|
||||||
$this->lvData['params']['note'] = sprintf(Util::$tryFilteringString, 'LANG.lvnote_spellsfound', $spells->getMatches(), CFG_SQL_LIMIT_DEFAULT);
|
$tab['params']['note'] = sprintf(Util::$tryFilteringString, 'LANG.lvnote_spellsfound', $spells->getMatches(), CFG_SQL_LIMIT_DEFAULT);
|
||||||
$this->lvData['params']['_truncated'] = 1;
|
$tab['params']['_truncated'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->filterObj->error)
|
if ($this->filterObj->error)
|
||||||
$this->lvData['params']['_errors'] = '$1';
|
$tab['params']['_errors'] = '$1';
|
||||||
|
|
||||||
$mask = $spells->hasSetFields(['reagent1', 'skillLines', 'trainingCost']);
|
$mask = $spells->hasSetFields(['reagent1', 'skillLines', 'trainingCost']);
|
||||||
if ($mask & 0x1)
|
if ($mask & 0x1)
|
||||||
@@ -391,10 +391,12 @@ class SpellsPage extends GenericPage
|
|||||||
$visibleCols[] = 'trainingcost';
|
$visibleCols[] = 'trainingcost';
|
||||||
|
|
||||||
if ($visibleCols)
|
if ($visibleCols)
|
||||||
$this->lvData['params']['visibleCols'] = '$'.json_encode($visibleCols);
|
$tab['params']['visibleCols'] = '$'.json_encode($visibleCols);
|
||||||
|
|
||||||
if ($hiddenCols)
|
if ($hiddenCols)
|
||||||
$this->lvData['params']['hiddenCols'] = '$'.json_encode($hiddenCols);
|
$tab['params']['hiddenCols'] = '$'.json_encode($hiddenCols);
|
||||||
|
|
||||||
|
$this->lvTabs[] = $tab;
|
||||||
|
|
||||||
// sort for dropdown-menus
|
// sort for dropdown-menus
|
||||||
asort(Lang::$game['ra']);
|
asort(Lang::$game['ra']);
|
||||||
|
|||||||
@@ -97,15 +97,14 @@ class TitlePage extends GenericPage
|
|||||||
$quests = new QuestList(array(['id', $entries]));
|
$quests = new QuestList(array(['id', $entries]));
|
||||||
$this->extendGlobalData($quests->getJSGlobals(GLOBALINFO_REWARDS));
|
$this->extendGlobalData($quests->getJSGlobals(GLOBALINFO_REWARDS));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'quest',
|
'file' => 'quest',
|
||||||
'data' => $quests->getListviewData(),
|
'data' => $quests->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'reward-from-quest',
|
'id' => 'reward-from-quest',
|
||||||
'name' => '$LANG.tab_rewardfrom',
|
'name' => '$LANG.tab_rewardfrom',
|
||||||
'hiddenCols' => "$['experience', 'money']",
|
'hiddenCols' => "$['experience', 'money']",
|
||||||
'visibleCols' => "$['category']",
|
'visibleCols' => "$['category']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
@@ -113,15 +112,14 @@ class TitlePage extends GenericPage
|
|||||||
$acvs = new AchievementList(array(['id', $entries]));
|
$acvs = new AchievementList(array(['id', $entries]));
|
||||||
$this->extendGlobalData($acvs->getJSGlobals());
|
$this->extendGlobalData($acvs->getJSGlobals());
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'achievement',
|
'file' => 'achievement',
|
||||||
'data' => $acvs->getListviewData(),
|
'data' => $acvs->getListviewData(),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'id' => 'reward-from-achievement',
|
'id' => 'reward-from-achievement',
|
||||||
'name' => '$LANG.tab_rewardfrom',
|
'name' => '$LANG.tab_rewardfrom',
|
||||||
'visibleCols' => "$['category']",
|
'visibleCols' => "$['category']",
|
||||||
'sort' => "$['reqlevel', 'name']",
|
'sort' => "$['reqlevel', 'name']"
|
||||||
'tabs' => '$tabsRelated'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class TitlesPage extends GenericPage
|
|||||||
if (!$titles->hasAnySource())
|
if (!$titles->hasAnySource())
|
||||||
$params['hiddenCols'] = "$['source']";
|
$params['hiddenCols'] = "$['source']";
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'title',
|
'file' => 'title',
|
||||||
'data' => $titles->getListviewData(),
|
'data' => $titles->getListviewData(),
|
||||||
'params' => $params
|
'params' => $params
|
||||||
|
|||||||
@@ -67,34 +67,34 @@ class UtilityPage extends GenericPage
|
|||||||
header('Location: ?'.Util::$typeStrings[$type].'='.$typeId);
|
header('Location: ?'.Util::$typeStrings[$type].'='.$typeId);
|
||||||
die();
|
die();
|
||||||
case 'latest-comments':
|
case 'latest-comments':
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'commentpreview',
|
'file' => 'commentpreview',
|
||||||
'data' => [],
|
'data' => [],
|
||||||
'params' => []
|
'params' => []
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 'latest-screenshots':
|
case 'latest-screenshots':
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'screenshot',
|
'file' => 'screenshot',
|
||||||
'data' => [],
|
'data' => [],
|
||||||
'params' => []
|
'params' => []
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 'latest-videos':
|
case 'latest-videos':
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'video',
|
'file' => 'video',
|
||||||
'data' => [],
|
'data' => [],
|
||||||
'params' => []
|
'params' => []
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 'latest-articles':
|
case 'latest-articles':
|
||||||
$this->lvData = [];
|
$this->lvTabs = [];
|
||||||
break;
|
break;
|
||||||
case 'latest-additions':
|
case 'latest-additions':
|
||||||
$extraText = '';
|
$extraText = '';
|
||||||
break;
|
break;
|
||||||
case 'unrated-comments':
|
case 'unrated-comments':
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'commentpreview',
|
'file' => 'commentpreview',
|
||||||
'data' => [],
|
'data' => [],
|
||||||
'params' => []
|
'params' => []
|
||||||
@@ -115,10 +115,10 @@ class UtilityPage extends GenericPage
|
|||||||
if (!$typeObj->error)
|
if (!$typeObj->error)
|
||||||
{
|
{
|
||||||
$this->extendGlobalData($typeObj->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED | GLOBALINFO_REWARDS));
|
$this->extendGlobalData($typeObj->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED | GLOBALINFO_REWARDS));
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => $typeObj::$brickFile,
|
'file' => $typeObj::$brickFile,
|
||||||
'data' => $typeObj->getListviewData(),
|
'data' => $typeObj->getListviewData(),
|
||||||
'params' => ['tabs' => '$myTabs']
|
'params' => []
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,7 +127,7 @@ class UtilityPage extends GenericPage
|
|||||||
if ($this->category && !in_array($this->category[0], [1, 7, 30]))
|
if ($this->category && !in_array($this->category[0], [1, 7, 30]))
|
||||||
header('Location: ?most-comments=1'.($this->rss ? '&rss' : null));
|
header('Location: ?most-comments=1'.($this->rss ? '&rss' : null));
|
||||||
|
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'commentpreview',
|
'file' => 'commentpreview',
|
||||||
'data' => [],
|
'data' => [],
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class ZonesPage extends GenericPage
|
|||||||
$zones = new ZoneList($conditions);
|
$zones = new ZoneList($conditions);
|
||||||
|
|
||||||
$this->map = null;
|
$this->map = null;
|
||||||
$this->lvData[] = array(
|
$this->lvTabs[] = array(
|
||||||
'file' => 'zone',
|
'file' => 'zone',
|
||||||
'data' => $zones->getListviewData(),
|
'data' => $zones->getListviewData(),
|
||||||
'params' => []
|
'params' => []
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<div class="clear"></div>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<h2><?php echo Lang::$main['contribute']; ?></h2>
|
<h2><?php echo Lang::$main['contribute']; ?></h2>
|
||||||
</div>
|
</div>
|
||||||
@@ -17,4 +18,3 @@
|
|||||||
tabsContribute.add(LANG.tab_suggestavideo, {id: 'suggest-a-video'});
|
tabsContribute.add(LANG.tab_suggestavideo, {id: 'suggest-a-video'});
|
||||||
tabsContribute.flush();
|
tabsContribute.flush();
|
||||||
</script>
|
</script>
|
||||||
<div class="clear"></div>
|
|
||||||
|
|||||||
46
template/bricks/lvTabs.tpl.php
Normal file
46
template/bricks/lvTabs.tpl.php
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
$relTabs = !empty($relTabs);
|
||||||
|
$tabVar = $relTabs ? 'tabsRelated' : 'myTabs';
|
||||||
|
$isTabbed = !empty($this->forceTabs) || $relTabs || count($this->lvTabs) > 1;
|
||||||
|
|
||||||
|
if ($isTabbed):
|
||||||
|
?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<div id="tabs-generic"></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<div id="lv-generic" class="listview"></div>
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
<?php
|
||||||
|
if (!empty($this->gemScores)): // inherited from items.tpl.php
|
||||||
|
echo " var fi_gemScores = ".json_encode($this->gemScores, JSON_NUMERIC_CHECK).";\n";
|
||||||
|
endif;
|
||||||
|
|
||||||
|
if ($isTabbed):
|
||||||
|
echo " var ".$tabVar." = new Tabs({parent: \$WH.ge('tabs-generic')});\n";
|
||||||
|
endif;
|
||||||
|
|
||||||
|
foreach ($this->lvTabs as $lv):
|
||||||
|
if (!empty($lv['data']) || (count($this->lvTabs) == 1 && !$relTabs)):
|
||||||
|
if ($isTabbed):
|
||||||
|
$lv['params']['tabs'] = '$'.$tabVar;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
|
||||||
|
if ($relTabs):
|
||||||
|
?>
|
||||||
|
new Listview({template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: <?php echo $tabVar; ?>, parent: 'lv-generic', data: lv_comments});
|
||||||
|
new Listview({template: 'screenshot', id: 'screenshots', name: LANG.tab_screenshots, tabs: <?php echo $tabVar; ?>, parent: 'lv-generic', data: lv_screenshots});
|
||||||
|
if (lv_videos.length || (g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO)))
|
||||||
|
new Listview({template: 'video', id: 'videos', name: LANG.tab_videos, tabs: <?php echo $tabVar; ?>, parent: 'lv-generic', data: lv_videos});
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
|
||||||
|
if ($isTabbed):
|
||||||
|
echo " ".$tabVar.".flush();\n";
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
//]]></script>
|
||||||
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<div id="tabs-generic"></div>
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
var tabsRelated = new Tabs({parent: $WH.ge('tabs-generic')});
|
|
||||||
<?php
|
|
||||||
foreach ($this->lvData as $lv):
|
|
||||||
if (!empty($lv['data'])):
|
|
||||||
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
|
||||||
endif;
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
new Listview({template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'lv-generic', data: lv_comments});
|
|
||||||
new Listview({template: 'screenshot', id: 'screenshots', name: LANG.tab_screenshots, tabs: tabsRelated, parent: 'lv-generic', data: lv_screenshots});
|
|
||||||
if (lv_videos.length || (g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO)))
|
|
||||||
new Listview({template: 'video', id: 'videos', name: LANG.tab_videos, tabs: tabsRelated, parent: 'lv-generic', data: lv_videos});
|
|
||||||
tabsRelated.flush();
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
|
|
||||||
<?php $this->brick('announcement'); ?>
|
<?php $this->brick('announcement'); ?>
|
||||||
|
|
||||||
@@ -10,21 +10,21 @@
|
|||||||
|
|
||||||
<?php $this->brick('infobox'); ?>
|
<?php $this->brick('infobox'); ?>
|
||||||
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<h1><?php echo Lang::$account['myAccount']; ?></h1>
|
<h1><?php echo Lang::$account['myAccount']; ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Banned-Minibox
|
// Banned-Minibox
|
||||||
if ($b = $this->banned):
|
if ($b = $this->banned):
|
||||||
?>
|
?>
|
||||||
<div style="max-width:300px;" class="minibox">
|
<div style="max-width:300px;" class="minibox">
|
||||||
<h1 class="q10"><?php echo Lang::$account['accBanned']; ?></h1>
|
<h1 class="q10"><?php echo Lang::$account['accBanned']; ?></h1>
|
||||||
<ul style="text-align:left">
|
<ul style="text-align:left">
|
||||||
<li><div><?php echo '<b>'.Lang::$account['bannedBy'].'</b>'.Lang::$main['colon'].'<a href="?user='.$b['by'][0].'">'.$b['by'][1].'</a>'; ?></div></li>
|
<li><div><?php echo '<b>'.Lang::$account['bannedBy'].'</b>'.Lang::$main['colon'].'<a href="?user='.$b['by'][0].'">'.$b['by'][1].'</a>'; ?></div></li>
|
||||||
<li><div><?php echo '<b>'.Lang::$account['ends'].'</b>'.Lang::$main['colon'].($b['end'] ? date(Lang::$main['dateFmtLong'], $b['end']) : Lang::$account['permanent']); ?></div></li>
|
<li><div><?php echo '<b>'.Lang::$account['ends'].'</b>'.Lang::$main['colon'].($b['end'] ? date(Lang::$main['dateFmtLong'], $b['end']) : Lang::$account['permanent']); ?></div></li>
|
||||||
<li><div><?php echo '<b>'.Lang::$account['reason'].'</b>'.Lang::$main['colon'].'<span class="msg-failure">'.($b['reason'] ?: Lang::$account['noReason']).'</span>'; ?></div></li>
|
<li><div><?php echo '<b>'.Lang::$account['reason'].'</b>'.Lang::$main['colon'].'<span class="msg-failure">'.($b['reason'] ?: Lang::$account['noReason']).'</span>'; ?></div></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
/* todo (sometime else)
|
/* todo (sometime else)
|
||||||
else:
|
else:
|
||||||
@@ -105,21 +105,18 @@ echo ' '.Lang::$account['editAccount']."\n";
|
|||||||
*/
|
*/
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
<div class="clear"></div>
|
/*
|
||||||
|
<div class="clear"></div>
|
||||||
<div id="related-tabs"></div>
|
<div id="related-tabs"></div>
|
||||||
<div id="lv-generic" class="listview">
|
<div id="lv-generic" class="listview">
|
||||||
<script type="text/javascript">//<![CDATA[
|
<script type="text/javascript">//<![CDATA[
|
||||||
var tabsRelated = new Tabs({parent: $WH.ge('related-tabs')});
|
var tabsRelated = new Tabs({parent: $WH.ge('related-tabs')});
|
||||||
<?php
|
|
||||||
foreach ($this->lvData as $lv):
|
// relevant tabs here
|
||||||
if (!empty($lv['data'])):
|
|
||||||
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
# set in header
|
||||||
endif;
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
/* set in header*/
|
|
||||||
var lv_comments = [{id:1191765,type:12,typeId:1,subject:'Example Comment',preview:'And here is a little preview for this comment, that is capped after 75 char....',rating:15,date:'2010/11/27 22:23:16',elapsed:43866462,deleted:0,purged:1,domain:'live'}];
|
var lv_comments = [{id:1191765,type:12,typeId:1,subject:'Example Comment',preview:'And here is a little preview for this comment, that is capped after 75 char....',rating:15,date:'2010/11/27 22:23:16',elapsed:43866462,deleted:0,purged:1,domain:'live'}];
|
||||||
var lv_screenshots = [], lv_videos = [];
|
var lv_screenshots = [], lv_videos = [];
|
||||||
new Listview({template: "commentpreview", id: "comments", name: LANG.tab_comments, tabs: tabsRelated, parent: "lv-generic", onBeforeCreate: Listview.funcBox.beforeUserComments, hiddenCols: ['author'], data: lv_comments});
|
new Listview({template: "commentpreview", id: "comments", name: LANG.tab_comments, tabs: tabsRelated, parent: "lv-generic", onBeforeCreate: Listview.funcBox.beforeUserComments, hiddenCols: ['author'], data: lv_comments});
|
||||||
@@ -127,7 +124,13 @@ endforeach;
|
|||||||
new Listview({template: "video", id: "videos", name: LANG.tab_videos, tabs: tabsRelated, parent: "lv-generic", data: lv_videos});
|
new Listview({template: "video", id: "videos", name: LANG.tab_videos, tabs: tabsRelated, parent: "lv-generic", data: lv_videos});
|
||||||
tabsRelated.flush();
|
tabsRelated.flush();
|
||||||
//]]></script>
|
//]]></script>
|
||||||
</div>
|
*/
|
||||||
</div>
|
?>
|
||||||
|
|
||||||
|
<?php $this->brick('lvTabs'); ?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div><!-- main-contents -->
|
||||||
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -1,127 +1,129 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
<div class="pad3"></div>
|
<div class="pad3"></div>
|
||||||
<?php if (!empty($this->text)): ?>
|
<?php if (!empty($this->text)): ?>
|
||||||
|
<div class="inputbox">
|
||||||
|
<h1><?php echo $this->head; ?></h1>
|
||||||
|
<div id="inputbox-error"></div>
|
||||||
|
<div style="text-align: center; font-size: 110%"><?php echo $this->text; ?></div>
|
||||||
|
</div>
|
||||||
|
<?php elseif ($this->resetPass): ?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function inputBoxValidate(f)
|
||||||
|
{
|
||||||
|
_ = f.elements[0];
|
||||||
|
if (_.value.length == 0)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enternewpass;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (_.value.length < 4)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordmin;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ = f.elements[1];
|
||||||
|
if (_.value.length == 0 || f.elements[1].value != _.value)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordsdonotmatch;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
var e = $('input[name=email]', f)
|
||||||
|
if (e.val().length == 0)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enteremail;
|
||||||
|
e.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!g_isEmailValid(e.val()))
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_emailnotvalid;
|
||||||
|
e.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<form action="?account=signup&next=<?php echo $this->next . '&token=' . $this->token; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
||||||
|
<div class="inputbox" style="position: relative">
|
||||||
|
<h1><?php echo $this->head; ?></h1>
|
||||||
|
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
||||||
|
|
||||||
|
<table align="center">
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['email'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="text" name="email" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['newPass'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="password" name="password" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['passConfirm'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="password" name="c_password" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right" valign="top"></td>
|
||||||
|
<td><input type="submit" name="signup" value="<?php echo Lang::$account['signup']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<input type="hidden" name="token" value="<?php echo $this->token; ?>" />
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||||
|
<?php else: ?>
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
function inputBoxValidate(f)
|
||||||
|
{
|
||||||
|
var e = $('input[name=email]', f);
|
||||||
|
if (e.val().length == 0)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enteremail;
|
||||||
|
e.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!g_isEmailValid(e.val()))
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_emailnotvalid;
|
||||||
|
e.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<form action="?account=<?php echo $this->category[0]; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
||||||
<div class="inputbox">
|
<div class="inputbox">
|
||||||
<h1><?php echo $this->head; ?></h1>
|
<h1><?php echo $this->head; ?></h1>
|
||||||
<div id="inputbox-error"></div>
|
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
||||||
<div style="text-align: center; font-size: 110%"><?php echo $this->text; ?></div>
|
|
||||||
|
<div style="text-align: center">
|
||||||
|
<?php echo Lang::$account['email'].Lang::$main['colon']; ?><input type="text" name="email" value="" id="email-generic" style="width: 12em" />
|
||||||
|
<div class="pad2"></div>
|
||||||
|
|
||||||
|
<input type="submit" value="<?php echo Lang::$account['continue']; ?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php elseif ($this->resetPass): ?>
|
</form>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">$WH.ge('email-generic').focus()</script>
|
||||||
function inputBoxValidate(f)
|
|
||||||
{
|
|
||||||
_ = f.elements[0];
|
|
||||||
if (_.value.length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enternewpass;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if (_.value.length < 4)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordmin;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_ = f.elements[1];
|
|
||||||
if (_.value.length == 0 || f.elements[1].value != _.value)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordsdonotmatch;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
var e = $('input[name=email]', f)
|
|
||||||
if (e.val().length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enteremail;
|
|
||||||
e.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_isEmailValid(e.val()))
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_emailnotvalid;
|
|
||||||
e.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<form action="?account=signup&next=<?php echo $this->next . '&token=' . $this->token; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
|
||||||
<div class="inputbox" style="position: relative">
|
|
||||||
<h1><?php echo $this->head; ?></h1>
|
|
||||||
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
|
||||||
<table align="center">
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['email'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="text" name="email" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['newPass'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="password" name="password" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['passConfirm'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="password" name="c_password" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right" valign="top"></td>
|
|
||||||
<td><input type="submit" name="signup" value="<?php echo Lang::$account['signup']; ?>" /></td>
|
|
||||||
</tr>
|
|
||||||
<input type="hidden" name="token" value="<?php echo $this->token; ?>" />
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
|
||||||
<?php else: ?>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
function inputBoxValidate(f)
|
|
||||||
{
|
|
||||||
var e = $('input[name=email]', f);
|
|
||||||
if (e.val().length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enteremail;
|
|
||||||
e.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_isEmailValid(e.val()))
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_emailnotvalid;
|
|
||||||
e.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<form action="?account=<?php echo $this->category[0]; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
|
||||||
<div class="inputbox">
|
|
||||||
<h1><?php echo $this->head; ?></h1>
|
|
||||||
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
|
||||||
|
|
||||||
<div style="text-align: center">
|
|
||||||
<?php echo Lang::$account['email'].Lang::$main['colon']; ?><input type="text" name="email" value="" id="email-generic" style="width: 12em" />
|
|
||||||
<div class="pad2"></div>
|
|
||||||
|
|
||||||
<input type="submit" value="<?php echo Lang::$account['continue']; ?>" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<script type="text/javascript">$WH.ge('email-generic').focus()</script>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div><!-- main-contents -->
|
||||||
</div>
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -1,67 +1,68 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
<div class="pad3"></div>
|
<div class="pad3"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function inputBoxValidate(f)
|
function inputBoxValidate(f)
|
||||||
|
{
|
||||||
|
var _ = f.elements[0];
|
||||||
|
if (_.value.length == 0)
|
||||||
{
|
{
|
||||||
var _ = f.elements[0];
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enterusername;
|
||||||
if (_.value.length == 0)
|
_.focus();
|
||||||
{
|
return false;
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterusername;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_ = f.elements[1];
|
|
||||||
if (_.value.length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterpassword;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
|
|
||||||
<form action="?account=signin&next=<?php echo $this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
_ = f.elements[1];
|
||||||
<div class="inputbox" style="position: relative">
|
if (_.value.length == 0)
|
||||||
<h1><?php echo Lang::$account['doSignIn']; ?></h1>
|
{
|
||||||
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enterpassword;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<table align="center">
|
<form action="?account=signin&next=<?php echo $this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
||||||
<tr>
|
<div class="inputbox" style="position: relative">
|
||||||
<td align="right"><?php echo Lang::$account['user'].lang::$main['colon']; ?></td>
|
<h1><?php echo Lang::$account['doSignIn']; ?></h1>
|
||||||
<td><input type="text" name="username" value="<?php echo $this->user; ?>" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['pass'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="password" name="password" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" checked="checked" /></td>
|
|
||||||
<td>
|
|
||||||
<label for="remember_me"><?php echo Lang::$account['rememberMe']; ?></label>
|
|
||||||
<div class="pad2"></div>
|
|
||||||
<input type="submit" value="<?php echo Lang::$account['signIn']; ?>" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<div style="position: absolute; right: 5px; bottom: 5px;"><?php echo Lang::$account['forgot'].lang::$main['colon']; ?><a href="?account=forgotusername"><?php echo Lang::$account['forgotUser']; ?></a> | <a href="?account=forgotpassword"><?php echo Lang::$account['forgotPass']; ?></a></div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<div class="pad3"></div>
|
<table align="center">
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['user'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="text" name="username" value="<?php echo $this->user; ?>" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['pass'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="password" name="password" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" checked="checked" /></td>
|
||||||
|
<td>
|
||||||
|
<label for="remember_me"><?php echo Lang::$account['rememberMe']; ?></label>
|
||||||
|
<div class="pad2"></div>
|
||||||
|
<input type="submit" value="<?php echo Lang::$account['signIn']; ?>" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div style="position: absolute; right: 5px; bottom: 5px;"><?php echo Lang::$account['forgot'].lang::$main['colon']; ?><a href="?account=forgotusername"><?php echo Lang::$account['forgotUser']; ?></a> | <a href="?account=forgotpassword"><?php echo Lang::$account['forgotPass']; ?></a></div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="pad3"></div>
|
||||||
<?php
|
<?php
|
||||||
if (CFG_ALLOW_REGISTER):
|
if (CFG_ALLOW_REGISTER):
|
||||||
echo ' <div style="text-align: center; line-height: 1.5em; font-size: 125%">'.Lang::$account['accCreate']."</div>\n";
|
echo ' <div style="text-align: center; line-height: 1.5em; font-size: 125%">'.Lang::$account['accCreate']."</div>\n";
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div><!-- main-contents -->
|
||||||
</div>
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -1,117 +1,119 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
<div class="pad3"></div>
|
<div class="pad3"></div>
|
||||||
<?php if (!empty($this->text)): ?>
|
<?php if (!empty($this->text)): ?>
|
||||||
<div class="inputbox">
|
<div class="inputbox">
|
||||||
<h1><?php echo $this->head; ?></h1>
|
<h1><?php echo $this->head; ?></h1>
|
||||||
<div id="inputbox-error"></div>
|
<div id="inputbox-error"></div>
|
||||||
<div style="text-align: center; font-size: 110%"><?php echo $this->text; ?></div>
|
<div style="text-align: center; font-size: 110%"><?php echo $this->text; ?></div>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function inputBoxValidate(f)
|
|
||||||
{
|
|
||||||
var _ = f.elements[0];
|
|
||||||
if (_.value.length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterusername;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if (_.value.length < 4)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_usernamemin;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if (!g_isUsernameValid(_.value))
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_usernamenotvalid;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_ = f.elements[1];
|
|
||||||
if (_.value.length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterpassword;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if (_.value.length < 4)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordmin;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_ = f.elements[2];
|
|
||||||
if (_.value.length == 0 || f.elements[1].value != _.value)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordsdonotmatch;
|
|
||||||
_.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
var e = $('input[name=email]', f)
|
|
||||||
if (e.val().length == 0)
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enteremail;
|
|
||||||
e.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_isEmailValid(e.val()))
|
|
||||||
{
|
|
||||||
$WH.ge('inputbox-error').innerHTML = LANG.message_emailnotvalid;
|
|
||||||
e.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<form action="?account=signup&next=<?php echo $this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
|
||||||
<div class="inputbox" style="position: relative">
|
|
||||||
<h1><?php echo $this->head; ?></h1>
|
|
||||||
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
|
||||||
<table align="center">
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['user'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="text" name="username" value="" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['pass'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="password" name="password" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['passConfirm'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="password" name="c_password" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><?php echo Lang::$account['email'].lang::$main['colon']; ?></td>
|
|
||||||
<td><input type="text" name="email" style="width: 10em" /></td>
|
|
||||||
</tr>
|
|
||||||
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" /></td>
|
|
||||||
<td>
|
|
||||||
<label for="remember_me"><?php echo Lang::$account['rememberMe']; ?></label>
|
|
||||||
<div class="pad2"></div>
|
|
||||||
<input type="submit" name="signup" value="<?php echo Lang::$account['continue']; ?>" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
|
||||||
<?php endif; ?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<?php else: ?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function inputBoxValidate(f)
|
||||||
|
{
|
||||||
|
var _ = f.elements[0];
|
||||||
|
if (_.value.length == 0)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enterusername;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (_.value.length < 4)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_usernamemin;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!g_isUsernameValid(_.value))
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_usernamenotvalid;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ = f.elements[1];
|
||||||
|
if (_.value.length == 0)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enterpassword;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (_.value.length < 4)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordmin;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ = f.elements[2];
|
||||||
|
if (_.value.length == 0 || f.elements[1].value != _.value)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_passwordsdonotmatch;
|
||||||
|
_.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
var e = $('input[name=email]', f)
|
||||||
|
if (e.val().length == 0)
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_enteremail;
|
||||||
|
e.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!g_isEmailValid(e.val()))
|
||||||
|
{
|
||||||
|
$WH.ge('inputbox-error').innerHTML = LANG.message_emailnotvalid;
|
||||||
|
e.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<form action="?account=signup&next=<?php echo $this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
|
||||||
|
<div class="inputbox" style="position: relative">
|
||||||
|
<h1><?php echo $this->head; ?></h1>
|
||||||
|
<div id="inputbox-error"><?php echo $this->error; ?></div>
|
||||||
|
|
||||||
|
<table align="center">
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['user'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="text" name="username" value="" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['pass'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="password" name="password" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['passConfirm'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="password" name="c_password" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right"><?php echo Lang::$account['email'].lang::$main['colon']; ?></td>
|
||||||
|
<td><input type="text" name="email" style="width: 10em" /></td>
|
||||||
|
</tr>
|
||||||
|
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" /></td>
|
||||||
|
<td>
|
||||||
|
<label for="remember_me"><?php echo Lang::$account['rememberMe']; ?></label>
|
||||||
|
<div class="pad2"></div>
|
||||||
|
<input type="submit" name="signup" value="<?php echo Lang::$account['continue']; ?>" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||||
|
<?php endif; ?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div><!-- main-contents -->
|
||||||
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -106,11 +106,12 @@ endif;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -78,10 +78,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php $this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']] ); ?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -1,25 +1,26 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
|
|
||||||
<?php $this->brick('announcement'); ?>
|
<?php $this->brick('announcement'); ?>
|
||||||
|
|
||||||
<script type="text/javascript">g_initPath([1,3])</script>
|
<script type="text/javascript">g_initPath([1,3])</script>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<div id="compare-generic"></div>
|
<div id="compare-generic"></div>
|
||||||
<script type="text/javascript">//<![CDATA[
|
<script type="text/javascript">//<![CDATA[
|
||||||
<?php
|
<?php
|
||||||
foreach ($this->cmpItems as $item):
|
foreach ($this->cmpItems as $item):
|
||||||
echo ' g_items.add('.$item[0].', {name_'.User::$localeString.':\''.Util::jsEscape($item[1]).'\', quality:'.$item[2].', icon:\''.$item[3].'\', jsonequip:'.json_encode($item[4], JSON_NUMERIC_CHECK)."});\n";
|
echo ' g_items.add('.$item[0].', {name_'.User::$localeString.':\''.Util::jsEscape($item[1]).'\', quality:'.$item[2].', icon:\''.$item[3].'\', jsonequip:'.json_encode($item[4], JSON_NUMERIC_CHECK)."});\n";
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
new Summary({template:'compare',id:'compare',parent:'compare-generic',groups:<?php echo json_encode($this->summary, JSON_NUMERIC_CHECK); ?>});
|
new Summary({template:'compare',id:'compare',parent:'compare-generic',groups:<?php echo json_encode($this->summary, JSON_NUMERIC_CHECK); ?>});
|
||||||
//]]></script>
|
//]]></script>
|
||||||
</div>
|
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div><!-- main-contents -->
|
||||||
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -55,11 +55,12 @@ endif;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -83,11 +83,12 @@ $this->brick('book');
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ endif;
|
|||||||
|
|
||||||
<div id="fi" style="display: <?php echo empty($f['query']) ? 'none' : 'block' ?>;">
|
<div id="fi" style="display: <?php echo empty($f['query']) ? 'none' : 'block' ?>;">
|
||||||
<form action="?items<?php echo $this->subCat; ?>&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
<form action="?items<?php echo $this->subCat; ?>&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||||
|
|
||||||
<div class="rightpanel">
|
<div class="rightpanel">
|
||||||
<div style="float: left"><?php echo Lang::$item['_quality'].Lang::$main['colon']; ?></div>
|
<div style="float: left"><?php echo Lang::$item['_quality'].Lang::$main['colon']; ?></div>
|
||||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['qu[]'].selectedIndex = -1; return false" onmousedown="return false"><?php echo Lang::$main['clear']; ?></a></small>
|
<small><a href="javascript:;" onclick="document.forms['fi'].elements['qu[]'].selectedIndex = -1; return false" onmousedown="return false"><?php echo Lang::$main['clear']; ?></a></small>
|
||||||
@@ -193,31 +192,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<?php
|
<?php $this->brick('lvTabs'); ?>
|
||||||
if ($this->hasGroupedTabs):
|
|
||||||
echo " <div id=\"tabs-generic\"></div>\n";
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php
|
|
||||||
if (!empty($this->gemScores)):
|
|
||||||
echo " var fi_gemScores = ".json_encode($this->gemScores, JSON_NUMERIC_CHECK).";\n";
|
|
||||||
endif;
|
|
||||||
|
|
||||||
if ($this->hasGroupedTabs):
|
|
||||||
echo " var tabsGroups = new Tabs({parent: \$WH.ge('tabs-generic')});\n";
|
|
||||||
endif;
|
|
||||||
|
|
||||||
foreach ($this->lvData as $tab):
|
|
||||||
$this->lvBrick('item', ['data' => $tab['data'], 'params' => $tab['params']]);
|
|
||||||
endforeach;
|
|
||||||
|
|
||||||
if ($this->hasGroupedTabs):
|
|
||||||
echo " tabsGroups.flush();\n";
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -83,11 +83,12 @@ endforeach;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$this->brick('header');
|
$this->brick('header');
|
||||||
$f = $this->filter
|
$f = $this->filter; // shorthand
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="main" id="main">
|
<div class="main" id="main">
|
||||||
@@ -13,7 +13,7 @@ $f = $this->filter
|
|||||||
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
||||||
<?php
|
<?php
|
||||||
if (!empty($f['query'])):
|
if (!empty($f['query'])):
|
||||||
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [2]), { filter: '+={$filter.query|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [2])) });
|
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [2]), { filter: '+={$f['query']|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [2])) });
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
@@ -27,9 +27,7 @@ endif;
|
|||||||
<select name="qu[]" size="7" multiple="multiple" class="rightselect" style="background-color: #181818">
|
<select name="qu[]" size="7" multiple="multiple" class="rightselect" style="background-color: #181818">
|
||||||
<?php
|
<?php
|
||||||
foreach (Lang::$item['quality'] as $i => $str):
|
foreach (Lang::$item['quality'] as $i => $str):
|
||||||
if ($str):
|
echo ' <option value="'.$i.'" class="q'.$i.'"'.(isset($f['qu']) && in_array($i, (array)$f['qu']) ? ' selected' : null).'>'.$str."</option>\n";
|
||||||
echo ' <option value="'.$i.'" class="q'.$i.'"'.(isset($f['qu']) && in_array($i, (array)$f['qu']) ? ' selected' : null).'>'.$str."</option>\n";
|
|
||||||
endif;
|
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
@@ -121,10 +119,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php $this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']]); ?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -18,37 +18,14 @@
|
|||||||
if (!empty($this->name) || !empty($this->h1Links)):
|
if (!empty($this->name) || !empty($this->h1Links)):
|
||||||
echo '<div class="text">' .
|
echo '<div class="text">' .
|
||||||
(!empty($this->h1Links) ? '<div class="h1-links">'.$this->h1Links.'</div>' : null) .
|
(!empty($this->h1Links) ? '<div class="h1-links">'.$this->h1Links.'</div>' : null) .
|
||||||
(!empty($this->name) ? ' <h1>'.$this->name.'</h1>' : null) .
|
(!empty($this->name) ? '<h1>'.$this->name.'</h1>' : null) .
|
||||||
'</div>';
|
'</div>';
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if (!empty($this->lvData)):
|
$this->brick('lvTabs');
|
||||||
if (count($this->lvData) > 1):
|
|
||||||
echo '<div id="tabs-generic"></div>';
|
|
||||||
endif;
|
|
||||||
?>
|
?>
|
||||||
<div id="lv-generic" class="listview"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php
|
|
||||||
if (count($this->lvData) > 1):
|
|
||||||
echo 'var myTabs = new Tabs({parent: $WH.ge(\'tabs-generic\')});';
|
|
||||||
endif;
|
|
||||||
|
|
||||||
foreach ($this->lvData as $lv):
|
<div class="clear"></div>
|
||||||
if (isset($lv['file'])):
|
|
||||||
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
|
||||||
endif;
|
|
||||||
endforeach;
|
|
||||||
|
|
||||||
if (count($this->lvData) > 1):
|
|
||||||
echo 'myTabs.flush();';
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
//]]></script>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<?php
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
|
|
||||||
<?php $this->brick('announcement'); ?>
|
<?php $this->brick('announcement'); ?>
|
||||||
|
|
||||||
@@ -55,7 +55,8 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div><!-- main-contents -->
|
||||||
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -147,10 +147,12 @@ endif;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ $f = $this->filter; // shorthand
|
|||||||
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
||||||
<?php
|
<?php
|
||||||
if (!empty($f['query'])):
|
if (!empty($f['query'])):
|
||||||
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [4]), { filter: '+={$filter.query|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [45])) });
|
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [4]), { filter: '+={$f['query']|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [45])) });
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
@@ -111,10 +111,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php $this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']]); ?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -84,11 +84,12 @@ $this->brick('book');
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ $f = $this->filter; // shorthand
|
|||||||
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
||||||
<?php
|
<?php
|
||||||
if (!empty($f['query'])):
|
if (!empty($f['query'])):
|
||||||
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [5]), { filter: '+={$filter.query|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [5])) });
|
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [5]), { filter: '+={$f['query']|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [5])) });
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
@@ -52,10 +52,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php $this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']]); ?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -114,10 +114,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php $this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']]); ?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -225,11 +225,12 @@ endif;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ $f = $this->filter; // shorthand
|
|||||||
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
||||||
<?php
|
<?php
|
||||||
if (!empty($f['query'])):
|
if (!empty($f['query'])):
|
||||||
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [3]), { filter: '+={$filter.query|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [3])) });
|
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [3]), { filter: '+={$f['query']|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [3])) });
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
@@ -93,10 +93,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php $this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']]); ?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div class="main-contents" id="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
|
|
||||||
<?php $this->brick('announcement'); ?>
|
<?php $this->brick('announcement'); ?>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<div class="text">
|
<div class="text">
|
||||||
<a href="<?php echo Util::$wowheadLink; ?>" class="button-red"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>
|
<a href="<?php echo Util::$wowheadLink; ?>" class="button-red"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>
|
||||||
<?php
|
<?php
|
||||||
if ($this->lvData):
|
if ($this->lvTabs):
|
||||||
echo ' <h1>'.Lang::$search['foundResult'].' <i>'.Util::htmlEscape($this->search).'</i>';
|
echo ' <h1>'.Lang::$search['foundResult'].' <i>'.Util::htmlEscape($this->search).'</i>';
|
||||||
if ($this->invalid):
|
if ($this->invalid):
|
||||||
echo '<span class="sub">'.sprintf(Lang::$search['ignoredTerms'], implode(', ', $this->invalid)).'</span>';
|
echo '<span class="sub">'.sprintf(Lang::$search['ignoredTerms'], implode(', ', $this->invalid)).'</span>';
|
||||||
@@ -17,18 +17,9 @@ if ($this->lvData):
|
|||||||
echo "</h1>\n";
|
echo "</h1>\n";
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div id="tabs-generic"></div>
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var myTabs = new Tabs({parent: $WH.ge('tabs-generic')});
|
|
||||||
<?php
|
|
||||||
foreach ($this->lvData as $lv):
|
|
||||||
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
myTabs.flush();
|
|
||||||
</script>
|
|
||||||
<?php
|
<?php
|
||||||
|
$this->brick('lvTabs');
|
||||||
|
|
||||||
else:
|
else:
|
||||||
echo ' <h1>'.Lang::$search['noResult'].' <i>'.Util::htmlEscape($this->search).'</i>';
|
echo ' <h1>'.Lang::$search['noResult'].' <i>'.Util::htmlEscape($this->search).'</i>';
|
||||||
if ($this->invalid):
|
if ($this->invalid):
|
||||||
@@ -36,16 +27,14 @@ else:
|
|||||||
endif;
|
endif;
|
||||||
echo "</h1>\n";
|
echo "</h1>\n";
|
||||||
?>
|
?>
|
||||||
<div class="search-noresults"/></div>
|
<div class="search-noresults"></div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo ' '.Lang::$search['tryAgain']."\n";
|
echo ' '.Lang::$search['tryAgain']."\n";
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
</div><!-- main-contents -->
|
||||||
</div>
|
</div><!-- main -->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
@@ -232,10 +232,11 @@ endforeach;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$this->brick('tabsRelated');
|
$this->brick('lvTabs', ['relTabs' => true]);
|
||||||
|
|
||||||
$this->brick('contribute');
|
$this->brick('contribute');
|
||||||
?>
|
?>
|
||||||
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
</div><!-- main -->
|
</div><!-- main -->
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ $f = $this->filter; // shorthand
|
|||||||
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK).', '.(empty($f['query']) ? 0 : 1) ?>);
|
||||||
<?php
|
<?php
|
||||||
if (!empty($f['query'])):
|
if (!empty($f['query'])):
|
||||||
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [1]), { filter: '+={$filter.query|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [1])) });
|
// todo: update menu-class Menu.modifyUrl(Menu.findItem(mn_database, [1]), { filter: '+={$f['query']|escape:'quotes'}' }, { onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [1])) });
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
@@ -159,12 +159,7 @@ endforeach;
|
|||||||
?>
|
?>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
<?php $this->brick('lvTabs'); ?>
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
<?php
|
|
||||||
$this->lvBrick($this->lvData['file'], ['data' => $this->lvData['data'], 'params' => $this->lvData['params']]);
|
|
||||||
?>
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><!-- main-contents -->
|
</div><!-- main-contents -->
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php $this->brick('header'); ?>
|
<?php $this->brick('header'); ?>
|
||||||
|
|
||||||
<div id="main">
|
<div class="main" id="main">
|
||||||
<div id="main-precontents"></div>
|
<div class="main-precontents" id="main-precontents"></div>
|
||||||
<div id="main-contents" class="main-contents">
|
<div class="main-contents" id="main-contents">
|
||||||
|
|
||||||
<?php $this->brick('announcement'); ?>
|
<?php $this->brick('announcement'); ?>
|
||||||
|
|
||||||
@@ -15,8 +15,9 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<?php echo $this->tcType; ?>_init();
|
<?php echo $this->tcType; ?>_init();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div><!-- main-contents -->
|
||||||
</div>
|
</div><!-- main -->
|
||||||
|
|
||||||
<?php $this->brick('footer'); ?>
|
<?php $this->brick('footer'); ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user