WorldEvents: initial implementation

- hm. should i move the (SERVERSIDE) to db to be searchable?
 - detail-page is nyi
 - some static data should be moved to install scripts and some point .. e.g. when install scripts come to existance
 - calendar is commented in pages/events.php as it's not really working yet
This commit is contained in:
Sarjuuk
2013-03-11 00:13:32 +01:00
parent a1f35d3523
commit 7c482e9319
14 changed files with 474 additions and 38 deletions

View File

@@ -162,6 +162,22 @@ abstract class BaseType
return $this->curTpl[$field];
}
public function filterGetJs()
{
if ($this->filter && isset($this->filter->fiData['c']['cr']))
return "fi_setCriteria([".@implode(',',$this->filter->fiData['c']['cr'])."], [".@implode(',',$this->filter->fiData['c']['crs'])."], ['".@implode('\', \'',$this->filter->fiData['c']['crv'])."']);";
else
return null;
}
public function filterGetForm()
{
if ($this->filter)
return $this->filter->form;
else
return [];
}
// should return data required to display a listview of any kind
// this is a rudimentary example, that will not suffice for most Types
abstract public function getListviewData();
@@ -188,12 +204,13 @@ class Lang
public static $account;
public static $achievement;
public static $compare;
public static $event;
public static $item;
public static $maps;
public static $spell;
public static $talent;
public static $zone;
public static $title;
public static $zone;
public static function load($loc)
{
@@ -417,6 +434,9 @@ class Util
'clothChestArmor', 'leatherChestArmor', 'mailChestArmor', 'plateChestArmor'
);
public static $dateFormatShort = "Y/m/d";
public static $dateFormatLong = "Y/m/d H:i:s";
public static $changeLevelString = '<a href="javascript:;" onmousedown="return false" class="tip" style="color: white; cursor: pointer" onclick="$WH.g_staticTooltipLevelClick(this, null, 0)" onmouseover="$WH.Tooltip.showAtCursor(event, \'<span class=\\\'q2\\\'>\' + LANG.tooltip_changelevel + \'</span>\')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()"><!--lvl-->%s</a>';
public static $filterResultString = 'sprintf(%s, %s, %s) + LANG.dash + LANG.lvnote_tryfiltering.replace(\'<a>\', \'<a href="javascript:;" onclick="fi_toggle()">\')';