mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
removing smarty - part I
- converting syntax for bricks
This commit is contained in:
102
template/pages/achievement.tpl
Normal file
102
template/pages/achievement.tpl
Normal file
@@ -0,0 +1,102 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim}; // username:XXX in profiles
|
||||
g_initPath({$path});
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl' info=$infobox series=$series}
|
||||
|
||||
<div class="text">
|
||||
{include file='bricks/headIcons.tpl'}
|
||||
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1{if isset($expansion)} class="h1-icon"><span class="icon-{$expansion}-right">{$name}</span>{else}>{$name}{/if}</h1>
|
||||
|
||||
{$description}
|
||||
|
||||
{if !empty($criteria)}<h3>{$lang.criteria}{if $count} – <small><b>{$lang.reqNumCrt} {$count} {$lang.outOf} {$nCriteria}</b></small>{/if}</h3>{/if}
|
||||
|
||||
<div style="float: left; margin-right: 25px">
|
||||
<table class="iconlist">
|
||||
{strip}
|
||||
{foreach from=$criteria item=cr name=criteria}
|
||||
<tr>
|
||||
<th{if isset($cr.icon)} align="right" id="iconlist-icon{$cr.icon}"{/if}>
|
||||
{* for reference and standard entries *}
|
||||
{if !isset($cr.icon) && (isset($cr.link) || isset($cr.standard))}
|
||||
<ul><li><var> </var></li></ul>
|
||||
{/if}
|
||||
</th>
|
||||
<td>
|
||||
{if isset($cr.link)}<a href="{$cr.link.href}"{if isset($cr.link.quality)} class="q{$cr.link.quality}"{/if}>{$cr.link.text|escape:"html"}</a>{if isset($cr.link.count) && $cr.link.count > 1} ({$cr.link.count}){/if}{/if}
|
||||
|
||||
{* STANDARD TEXT *}
|
||||
{if isset($cr.extra_text)} {$cr.extra_text}{/if}
|
||||
{if $user.roles > 0} <small title="{$lang.criteriaType} {$cr.type}" class="q0">[{$cr.id}]</small>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{* If the first column is over (it may be a greater element) *}
|
||||
{if $smarty.foreach.criteria.index+1 == round(count($criteria) / 2)}
|
||||
</table>
|
||||
</div>
|
||||
<div style="float: left">
|
||||
<table class="iconlist">
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/strip}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{foreach from=$icons key=k item=ic}
|
||||
$WH.ge('iconlist-icon{$ic.itr}').appendChild({$ic.type}.createIcon({$ic.id}, 0, {if isset($ic.count) && $ic.count > 0}{$ic.count}{else}0{/if}));
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div style="clear: left"></div>
|
||||
|
||||
{if $itemReward} {* for items *}
|
||||
<h3>{$lang.rewards}</h3>
|
||||
{include file='bricks/rewards.tpl' rewTitle=$lang.itemReward rewData=$itemReward offset=0}
|
||||
{/if}
|
||||
|
||||
{if $titleReward} {* for titles *}
|
||||
<h3>{$lang.gains}</h3>
|
||||
<ul>
|
||||
{foreach from=$titleReward item=i}
|
||||
<li><div>{$i}</div></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
{if !$titleReward && !$itemReward && $reward}
|
||||
<h3>{$lang.rewards}</h3>
|
||||
<ul>
|
||||
<li><div>{$reward}</div></li>
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
83
template/pages/achievements.tpl
Normal file
83
template/pages/achievements.tpl
Normal file
@@ -0,0 +1,83 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)}0{else}1{/if});
|
||||
{if isset($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [9]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [9])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display: {if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?achievements{$subCat}&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name|ucFirst}{$lang.colon}</td>
|
||||
<td colspan="3">
|
||||
<table><tr>
|
||||
<td> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na}"{/if}/></td>
|
||||
<td> <input type="checkbox" name="ex" value="on" id="achievement-ex" {if isset($filter.ex)}checked="checked"{/if}/></td>
|
||||
<td><label for="achievement-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_extendedachievementsearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{$lang.extSearch}</span></label></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.side}{$lang.colon}</td>
|
||||
<td class="padded"> <select name="si">
|
||||
<option></option>
|
||||
{foreach from=$lang.si key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.si) && $filter.si == $i}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="padded"><table><tr>
|
||||
<td> {$lang.points}{$lang.colon}</td>
|
||||
<td> <input type="text" name="minpt" maxlength="2" class="smalltextbox" {if isset($filter.minpt)}value="{$filter.minpt}"{/if}/> - <input type="text" name="maxpt" maxlength="2" class="smalltextbox" {if isset($filter.maxpt)}value="{$filter.maxpt}"{/if}/></td>
|
||||
</tr></table></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked"{/if} /><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked"{/if} /><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('achievements');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/achievement.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
26
template/pages/compare.tpl
Normal file
26
template/pages/compare.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">g_initPath([1,3])</script>
|
||||
<div class="text">
|
||||
<div id="compare-generic"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{foreach name=cmpItems from=$items item=curr}
|
||||
g_items.add({$curr[0]}, {ldelim}name_{$user.language}:'{$curr[1]}', quality:{$curr[2]}, icon:'{$curr[3]}', jsonequip:{$curr[4]}{rdelim});
|
||||
{/foreach}
|
||||
new Summary({ldelim}template:'compare',id:'compare',parent:'compare-generic',groups:{$summary}{rdelim});
|
||||
//]]></script>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
132
template/pages/dashboard.tpl
Normal file
132
template/pages/dashboard.tpl
Normal file
@@ -0,0 +1,132 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<script type="text/javascript">var g_pageInfo = {ldelim} username: '{$user.name}' {rdelim}</script>
|
||||
<table class="infobox">
|
||||
<tr><th>{$lang.quickFacts}</th></tr>
|
||||
<tr><td>
|
||||
<div id="ci_msg"></div>
|
||||
<div class="infobox-spacer"></div>
|
||||
<ul>
|
||||
<li><div>{$lang.login}: {$user.login}</div></li>
|
||||
<li><div>{$lang.joinDate}{$lang.colon}<span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, '{'l, G:i:s'|date:$user.joinDate}', 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{'Y/m/d'|date:$user.joinDate}</span></div></li>
|
||||
<li><div>{$lang.lastLogin}{$lang.colon}<span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, '{'l, G:i:s'|date:$user.lastLogin}', 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{'Y/m/d'|date:$user.lastLogin}</span></div></li>
|
||||
<li><div>{$lang.userGroups}{$lang.colon}<span>{$user.roles}</span></div></li>
|
||||
<li><div>{$lang.email}: {$user.email}</div></li>
|
||||
<li><div>{$lang.lastIP}: {$user.lastIP}</span></div></li>
|
||||
<!--<li><div><a href="?item=35200" class="q3 icontiny" style="background-image:url(images/icons/tiny/inv_scroll_04.gif)">Pinter's Bill</a>: ???</div></li>-->
|
||||
</ul>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<div class="text">
|
||||
|
||||
<h1>{$lang.myAccount}</h1>
|
||||
{* BANNED POPUP *}
|
||||
{if !empty($user.banned)}
|
||||
<div class="minibox">
|
||||
<h3 class="q7">[Account banned]</h3>
|
||||
<ul style="text-align:left">
|
||||
<li><div><b>[banner]</b>: {$user.bannedBy}</div></li>
|
||||
<li><div><b>[end]</b>: {$user.unbanDate}</div></li>
|
||||
<li><div><b>[reason]</b>{$lang.colon}<span class="msg-failure">{if isset($user.banReason)}{$user.banReason}{else}[none given.]{/if}</span></div></li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{$lang.editAccount}
|
||||
|
||||
<ul class="last">
|
||||
<li><div><a href="#community">{$lang.publicDesc}</a></div></li>
|
||||
<li><div><a href="#claim-characters">{$lang.claimChars}</a></div></li>
|
||||
<li><div><a href="#change-avatar">{$lang.changeAvatar}</a></div></li>
|
||||
<li><div><a href="#change-password">{$lang.pass}</a></div></li>
|
||||
<li><div><a href="#change-name">{$lang.pass}</a></div></li>
|
||||
<li><div><a href="#change-email">{$lang.pass}</a></div></li>
|
||||
</ul>
|
||||
|
||||
{* USER-PROFILE EDITING *}
|
||||
|
||||
<h2 id="community">{$lang.publicDesc}</h2>
|
||||
<div class="msg-success" style="display:{if $pdupdate}block{else}none{/if};">{$lang.Your_description_has_been_updated_successfully}.</div>
|
||||
|
||||
<form action="?account=public-description" name="pd" method="post" onsubmit="return spd(this)">
|
||||
{$lang.viewPublicDesc|sprintf:$user.name}.
|
||||
<div class="pad2"></div>
|
||||
<div id="pd"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
Listview.funcBox.coEditAppend($WH.ge('pd'), {ldelim}body: '{$user.community|escape:"javascript"}'{rdelim}, 2);
|
||||
//]]></script>
|
||||
<div class="pad"></div>
|
||||
<input type="submit" value="{$lang.submit}" />
|
||||
</form>
|
||||
{* CLAIM CHARACTERS *}
|
||||
<h2 id="select-character">[Select Character]</h2>
|
||||
{strip}
|
||||
|
||||
{if $user.chars}
|
||||
<table>
|
||||
{foreach from=$user.chars item=c}
|
||||
<tr>
|
||||
<td><div class="iconsmall"><ins style="background-image: url(images/icons/small/{$c.icon}.jpg);"></ins><del></del></div></td>
|
||||
<td>
|
||||
{if $c.this}
|
||||
<b>{$c.name}</b>
|
||||
{else}
|
||||
<a href="?account=select-character&id={$c.guid}">{$c.name}</a>
|
||||
{/if}
|
||||
|
||||
{if $c.guild}
|
||||
<b><{$c.guild|escape:"html"}></b>
|
||||
{/if}
|
||||
— {$c.text}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
[no characters on ths account]
|
||||
{/if}
|
||||
<div class="pad"></div>
|
||||
|
||||
{/strip}
|
||||
{* CHANGE PASSWORD / EMAIL / DISPLAYNAME / AVATAR * }
|
||||
<h2 id="change-password">{$lang.Change_password}</h2>
|
||||
<form action="?account" method="post">
|
||||
<input type="hidden" name="what" value="change-pass" />
|
||||
{if isset($cpmsg)}
|
||||
<div class="msg-{$cpmsg.class}">{$cpmsg.msg}</div>
|
||||
{/if}
|
||||
<table cellspacing="5" cellpadding="0" border="0">
|
||||
<tr><td nowrap="nowrap">{$lang.Current_password}{$lang.colon}</td><td><input style="width: 15em" name="old" type="password" value="" /></td></tr>
|
||||
<tr><td nowrap="nowrap">{$lang.New_password}{$lang.colon}</td><td><input style="width: 15em" name="new" type="password" value="" /></td></tr>
|
||||
<tr><td nowrap="nowrap">{$lang.Confirm_new_password}{$lang.colon}</td><td><input style="width: 15em" name="new2" type="password" value="" /></td></tr>
|
||||
<tr><td></td><td><input value="{$lang.submit}" type="submit" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div id="related-tabs"></div>
|
||||
<div id="lv-generic" class="listview">
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var tabsRelated = new Tabs({ldelim}parent: $WH.ge('related-tabs'){rdelim});
|
||||
{include file='listviews/character.tpl' data=$user.chars.data params=$user.chars.params }
|
||||
{include file='listviews/profile.tpl' data=$user.profiles.data params=$user.profiles.params}
|
||||
|
||||
/* set in header*/ var lv_comments = [{ldelim}id:1191768,type:2,typeId:194390,subject:'Stolen Explorers\' League Document',preview:'Here\'s a link to a map, showing all the locations of the different scrolls....',rating:3,date:'2010/11/27 22:23:22',elapsed:43866456,deleted:0,removed:0,domain:'live'{rdelim},{ldelim}id:1191765,type:2,typeId:194391,subject:'Stolen Explorers\' League Document',preview:'Here\'s a link to a map, showing all the locations of the different scrolls....',rating:5,date:'2010/11/27 22:23:16',elapsed:43866462,deleted:0,removed:0,domain:'live'{rdelim}];
|
||||
var lv_screenshots = [], lv_videos = [];
|
||||
new Listview({ldelim}template: "commentpreview", id: "comments", name: LANG.tab_comments, tabs: tabsRelated, parent: "lv-generic", onBeforeCreate: Listview.funcBox.beforeUserComments, data: lv_comments{rdelim});
|
||||
new Listview({ldelim}template: "screenshot", id: "screenshots", name: LANG.tab_screenshots, tabs: tabsRelated, parent: "lv-generic", data: lv_screenshots{rdelim});
|
||||
new Listview({ldelim}template: "video", id: "videos", name: LANG.tab_videos, tabs: tabsRelated, parent: "lv-generic", data: lv_videos{rdelim});
|
||||
tabsRelated.flush();
|
||||
//]]></script>
|
||||
</div>
|
||||
</div>
|
||||
{include file='footer.tpl'}
|
||||
66
template/pages/detail-page-generic.tpl.php
Normal file
66
template/pages/detail-page-generic.tpl.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php $this->brick('header'); ?>
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
<?php $this->brick('announcement'); ?>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
<?php
|
||||
$this->brick('community');
|
||||
echo "var g_pageInfo = ".json_encode($this->gPageInfo, JSON_NUMERIC_CHECK).";\n" .
|
||||
"g_initPath(".json_encode($this->path, JSON_NUMERIC_CHECK).");\n";
|
||||
?>
|
||||
//]]></script>
|
||||
|
||||
<?php $this->brick('infobox'); ?>
|
||||
|
||||
<div class="text">
|
||||
<?php
|
||||
$this->brick('headIcons');
|
||||
|
||||
$this->brick('redButtons');
|
||||
?>
|
||||
|
||||
<h1<?php echo isset($this->expansion) ? 'class="h1-icon"><span class="icon-'.$this->expansion.'-right">'.$this->name.'</span>' : '>'.$this->name; ?></h1>
|
||||
|
||||
<?php
|
||||
$this->brick('article');
|
||||
|
||||
$this->brick('mapper');
|
||||
|
||||
if (isset($this->extraText)):
|
||||
?>
|
||||
<div id="text-generic" class="left"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
Markup.printHtml("<?php echo $this->extraText; ?>", "text-generic", {
|
||||
allow: Markup.CLASS_ADMIN,
|
||||
dbpage: true
|
||||
});
|
||||
//]]></script>
|
||||
|
||||
<div class="pad2"></div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if (isset($this->unavailable)):
|
||||
?>
|
||||
<div class="pad"></div>
|
||||
<b style="color: red"><?php echo Lang::$main['_unavailable']; ?></b>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
<h2 class="clear"><?php echo Lang::$main['related']; ?></h2>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$this->brick('tabsRelated');
|
||||
|
||||
$this->brick('contribute');
|
||||
?>
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
<?php $this->brick('footer'); ?>
|
||||
77
template/pages/guilds.tpl
Normal file
77
template/pages/guilds.tpl
Normal file
@@ -0,0 +1,77 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$page.path}, {if empty($filter.query)} 0 {else} 1 {/if}); _// activeTab: 1, breadcrumb: [1,5,2,'eu','blackout','dragonblight']});
|
||||
{if isset($filter.query)}Menu.append(mn_database[1], '&filter={$filter.query|escape:'quotes'}'); // todo: menu order varies per locale{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi">
|
||||
<form action="/web/20120205222627/http://www.wowhead.com/filter=guilds" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name}{$lang.colon}</td>
|
||||
<td colspan="3">
|
||||
<table><tr>
|
||||
<td> <input type="text" name="na" size="30" /></td>
|
||||
<td> <input type="checkbox" name="ex" value="on" id="profile-ex" /></td>
|
||||
<td><label for="profile-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_exactprofilesearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">Exact match</span></label></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">Region{$lang.colon}</td>
|
||||
<td class="padded"> <select name="rg" onchange="pr_onChangeRegion(this.form, null, null)">
|
||||
<option></option>
|
||||
<option value="us">US & Oceanic</option>
|
||||
<option value="eu" selected="selected">Europe</option>
|
||||
</select> </td>
|
||||
<td class="padded"> Realm{$lang.colon}</td>
|
||||
<td class="padded"> <select name="sv"><option></option></select><input type="hidden" name="bg" value="blackout" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">{$lang.side}{$lang.colon}</td>
|
||||
<td class="padded"> <select name="si">
|
||||
<option></option>
|
||||
<option value="1" {if isset($filter.si) && $filter.si == 1}selected{/if}>{$lang.alliance}</option>
|
||||
<option value="2" {if isset($filter.si) && $filter.si == 2}selected{/if}>{$lang.horde}</option>
|
||||
</select> </td>
|
||||
<td class="padded"> Level{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="2" class="smalltextbox" /> - <input type="text" name="maxle" maxlength="2" class="smalltextbox" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded"></div>
|
||||
<input type="submit" value="{$lang.applyFilter}" /><div style="float: right">{$lang.refineSearch}</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
// pr_setRegionRealm($WH.ge('fi').firstChild, 'eu', 'Dragonblight');
|
||||
// var fi_type = 'guilds';
|
||||
fi_init('guilds');
|
||||
{if isset($filter.setCr)}{$filter.setCr}{/if}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-guilds" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/profiles.tpl' data=$data.page params=$data.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
83
template/pages/item.tpl
Normal file
83
template/pages/item.tpl
Normal file
@@ -0,0 +1,83 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$path});
|
||||
{if $user.id && $redButtons[$smarty.const.BUTTON_EQUIP]}
|
||||
DomContentLoaded.addEvent(function() {ldelim} pr_addEquipButton('equip-pinned-button', {$typeId}); {rdelim});
|
||||
{/if}
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl'}
|
||||
|
||||
<div class="text">
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1{if isset($expansion)} class="h1-icon"><span class="icon-{$expansion}-right">{$name}</span>{else}>{$name}{/if}</h1>
|
||||
|
||||
{include file='bricks/tooltip.tpl'}
|
||||
|
||||
{include file='bricks/article.tpl'}
|
||||
|
||||
{if !empty($disabled)}
|
||||
<div class="pad"></div>
|
||||
<b style="color: red">{$lang._unavailable}</b>
|
||||
{/if}
|
||||
{if !empty($transfer)}
|
||||
<div class="pad"></div>
|
||||
{$transfer}
|
||||
{/if}
|
||||
{if !empty($subItems)}
|
||||
<div class="clear"></div>
|
||||
<h3>{$lang._rndEnchants}</h3>
|
||||
|
||||
<div class="random-enchantments" style="margin-right: 25px">
|
||||
<ul>
|
||||
{foreach from=$subItems item=i key=k}{if $k < (count($subItems) / 2)}
|
||||
<li><div>
|
||||
<span class="q{$quality}">...{$i.name}</span>
|
||||
<small class="q0">{$lang._chance|@sprintf:$i.chance}</small>
|
||||
<br />{$i.enchantment}
|
||||
</div></li>
|
||||
{/if}{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{if count($subItems) > 1}
|
||||
<div class="random-enchantments" style="margin-right: 25px">
|
||||
<ul>
|
||||
{foreach from=$subItems item=i key=k}{if $k >= (count($subItems) / 2)}
|
||||
<li><div>
|
||||
<span class="q{$quality}">...{$i.name}</span>
|
||||
<small class="q0">{$lang._chance|@sprintf:$i.chance}</small>
|
||||
<br />{$i.enchantment}
|
||||
</div></li>
|
||||
{/if}{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{include file='bricks/book.tpl'}
|
||||
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
196
template/pages/items.tpl
Normal file
196
template/pages/items.tpl
Normal file
@@ -0,0 +1,196 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)}0{else}1{/if});
|
||||
{if isset($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [0]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [0])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display: {if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?items{$subCat}&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
|
||||
<div class="rightpanel">
|
||||
<div style="float: left">{$lang._quality}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['qu[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="qu[]" size="7" multiple="multiple" class="rightselect" style="background-color: #181818">
|
||||
{foreach from=$lang.quality key=k item=str}
|
||||
<option value="{$k}" class="q{$k}"{if isset($filter.qu) && in_array($k, (array)$filter.qu)} selected{/if}>{$str}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{if !empty($filter.slot)}
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.slot}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['sl[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="sl[]" size="{if $filter.slot|@count < 7}{$filter.slot|@count}{else}7{/if}" multiple="multiple" class="rightselect">
|
||||
{foreach from=$filter.slot key=k item=str}
|
||||
<option value="{$k}"{if isset($filter.sl) && in_array($k, (array)$filter.sl)} selected{/if}>{$str}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($filter.type)}
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.type}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ty[]" size="{if $filter.type|@count < 7}{$filter.type|@count}{else}7{/if}" multiple="multiple" class="rightselect">
|
||||
{foreach from=$filter.type key=k item=str}
|
||||
<option value="{$k}"{if isset($filter.ty) && in_array($k, (array)$filter.ty)} selected{/if}>{$str}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name|ucFirst}{$lang.colon}</td>
|
||||
<td colspan="2"> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na|escape:'html'}" {/if}/></td>
|
||||
<td></td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.level}{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="3" class="smalltextbox2" {if isset($filter.minle)}value="{$filter.minle}" {/if}/> - <input type="text" name="maxle" maxlength="3" class="smalltextbox2" {if isset($filter.maxle)}value="{$filter.maxle}" {/if}/></td>
|
||||
<td class="padded">
|
||||
<table>
|
||||
<tr>
|
||||
<td> {$lang._reqLevel}{$lang.colon}</td>
|
||||
<td> <input type="text" name="minrl" maxlength="2" class="smalltextbox" {if isset($filter.minrl)}value="{$filter.minrl}" {/if}/> - <input type="text" name="maxrl" maxlength="2" class="smalltextbox" {if isset($filter.maxrl)}value="{$filter.maxrl}" {/if}/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.usableBy}{$lang.colon}</td>
|
||||
<td class="padded"> <select name="si" style="margin-right: 0.5em">
|
||||
<option></option>
|
||||
{foreach from=$lang.si key=k item=str}
|
||||
<option value="{$k}"{if isset($filter.si) && $k == $filter.si} selected{/if}>{$str}</option>
|
||||
{/foreach}
|
||||
</select></td>
|
||||
<td class="padded">
|
||||
<select name="ub">
|
||||
<option></option>
|
||||
{foreach from=$lang.cl key=k item=str}{if $str}
|
||||
<option value="{$k}"{if isset($filter.ub) && $k == $filter.ub} selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select></td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked" {/if}/><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked" {/if}/><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="pad3"></div>
|
||||
|
||||
<div class="text">
|
||||
<h3 class="first"><a id="fi_weight_toggle" href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('statweight-disclosure'), this)">{$lang.createWS}</a></h3>
|
||||
</div>
|
||||
|
||||
<div id="statweight-disclosure" style="display: none">
|
||||
<div id="statweight-help">
|
||||
<div><a href="?help=stat-weighting" target="_blank" id="statweight-help" class="icon-help">{$lang.help}</a></div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.preset}{$lang.colon}</td>
|
||||
<td id="fi_presets"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">{$lang.gems}{$lang.colon}</td>
|
||||
<td class="padded">
|
||||
<select name="gm">
|
||||
<option {if !isset($filter.gm)}selected{/if}></option>
|
||||
<option value="2" {if isset($filter.gm) && $filter.gm == 2}selected{/if}>{$lang.quality[2]}</option>
|
||||
<option value="3" {if isset($filter.gm) && $filter.gm == 3}selected{/if}>{$lang.quality[3]}</option>
|
||||
<option value="4" {if isset($filter.gm) && $filter.gm == 4}selected{/if}>{$lang.quality[4]}</option>
|
||||
</select>
|
||||
<input type="checkbox" name="jc" value="1" id="jc" {if isset($filter.jc) && $filter.jc == 1}checked="checked"{/if}/><label for="jc">{$lang.jcGemsOnly|sprintf:' class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_jconlygems, 0, 0, \'q\')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()"'}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_weight" class="criteria" style="display: none"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addweight" onclick="fi_addCriterion(this); return false" style="display: none">{$lang.addWeight}</a></div>
|
||||
<div class="pad2"></div>
|
||||
<small>{$lang.cappedHint}</small>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="padded">{$lang.groupBy}{$lang.colon}
|
||||
{foreach from=$lang.gb key=k item=str}
|
||||
{if $k == 0}
|
||||
<input type="radio" name="gb" value="" id="gb-{$str[1]}" {if empty($filter.gb)}checked="checked" {/if}/><label for="gb-{$str[1]}">{$str[0]}</label>
|
||||
{else}
|
||||
<input type="radio" name="gb" value="{$k}" id="gb-{$str[1]}" {if !empty($filter.gb) && $filter.gb == $k}checked="checked" {/if}/><label for="gb-{$str[1]}">{$str[0]}</label>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="upg"{if !empty($filter.upg)} value="{$filter.upg}"{/if}/>
|
||||
|
||||
<div class="pad"></div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('items');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
{if $lvData.isGrouped}
|
||||
<div id="tabs-generic"></div>
|
||||
{/if}
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{if !empty($gemScores)}var fi_gemScores = {$gemScores};{/if}
|
||||
|
||||
{if $lvData.isGrouped}
|
||||
var tabsGroups = new Tabs({ldelim}parent: $WH.ge('tabs-generic'){rdelim});
|
||||
{/if}
|
||||
{foreach from=$lvData.tabs item="tab"}
|
||||
{include file="listviews/item.tpl" data=$tab.data params=$tab.params}
|
||||
{/foreach}
|
||||
{if $lvData.isGrouped}
|
||||
tabsGroups.flush();
|
||||
{/if}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
81
template/pages/itemset.tpl
Normal file
81
template/pages/itemset.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$path});
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl'}
|
||||
|
||||
<div class="text">
|
||||
{include file='bricks/headIcons.tpl'}
|
||||
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1{if isset($expansion)} class="h1-icon"><span class="icon-{$expansion}-right">{$name}</span>{else}>{$name}{/if}</h1>
|
||||
|
||||
{include file='bricks/article.tpl'}
|
||||
|
||||
{$description}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{section name=i loop=$pieces}
|
||||
g_items.add({$pieces[i].id}, {ldelim}name_{$user.language}:'{$pieces[i].name|escape:'javascript'}', quality:{$pieces[i].quality}, icon:'{$pieces[i].icon}', jsonequip:{$pieces[i].json}{rdelim});
|
||||
{/section}
|
||||
//]]></script>
|
||||
|
||||
<table class="iconlist">
|
||||
{section name=i loop=$pieces}
|
||||
<tr><th align="right" id="iconlist-icon{$smarty.section.i.index + 1}"></th><td><span class="q{$pieces[i].quality}"><a href="?item={$pieces[i].id}">{$pieces[i].name}</a></span></td></tr>
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{section name=i loop=$pieces}
|
||||
$WH.ge('iconlist-icon{$smarty.section.i.index + 1}').appendChild(g_items.createIcon({$pieces[i].id}, 0, 0));
|
||||
{/section}
|
||||
//]]></script>
|
||||
|
||||
{if $unavailable}
|
||||
<div class="pad"></div>
|
||||
<b style="color: red">{$lang._unavailable}</b>
|
||||
{/if}
|
||||
|
||||
<h3>{$lang._setBonuses}{$bonusExt}</h3>
|
||||
|
||||
{$lang._conveyBonus}
|
||||
<ul>
|
||||
{section name=i loop=$spells}
|
||||
<li><div>{$spells[i].bonus} {$lang._pieces}{$lang.colon}<a href="?spell={$spells[i].id}">{$spells[i].desc}</a></div></li>
|
||||
{/section}
|
||||
</ul>
|
||||
|
||||
<h2 class="clear">{$lang.summary}</h2>
|
||||
|
||||
<div id="summary-generic"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
new Summary({ldelim} id: 'itemset', template: 'itemset', parent: 'summary-generic', groups: [[[{']],[['|implode:$compare.items}]]], level: {$compare.level}{rdelim});
|
||||
//]]></script>
|
||||
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
114
template/pages/itemsets.tpl
Normal file
114
template/pages/itemsets.tpl
Normal file
@@ -0,0 +1,114 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)} 0 {else} 1 {/if});
|
||||
{if !empty($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [2]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [2])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display:{if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?itemsets&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<div class="rightpanel">
|
||||
<div style="float: left">{$lang._quality}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['qu[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="qu[]" size="7" multiple="multiple" class="rightselect" style="background-color: #181818">
|
||||
{foreach from=$lang.quality key=i item=str}{if $str}
|
||||
<option value="{$i}" class="q{$i}" {if isset($filter.qu) && in_array($i, (array)$filter.qu)}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.type}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ty[]" size="7" multiple="multiple" class="rightselect">
|
||||
{foreach from=$lang.types key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.ty) && in_array($i, (array)$filter.ty)}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name|ucFirst}{$lang.colon}</td>
|
||||
<td colspan="3"> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na}" {/if}/></td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.level}{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="3" class="smalltextbox2"{if isset($filter.minle)} value="{$filter.minle}"{/if} /> - <input type="text" name="maxle" maxlength="3" class="smalltextbox2"{if isset($filter.maxle)} value="{$filter.maxle}"{/if} /></td>
|
||||
<td class="padded" width="100%">
|
||||
<table><tr>
|
||||
<td> {$lang._reqLevel}{$lang.colon}</td>
|
||||
<td> <input type="text" name="minrl" maxlength="2" class="smalltextbox"{if isset($filter.minrl)} value="{$filter.minrl}"{/if} /> - <input type="text" name="maxrl" maxlength="2" class="smalltextbox"{if isset($filter.maxrl)} value="{$filter.maxrl}"{/if} /></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.class|ucfirst}{$lang.colon}</td>
|
||||
<td class="padded"> <select name="cl">
|
||||
<option></option>
|
||||
{foreach from=$lang.cl key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.cl) && $filter.cl == $i}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select></td>
|
||||
<td class="padded">
|
||||
<table><tr>
|
||||
<td> {$lang._tag}{$lang.colon}</td>
|
||||
<td> <select name="ta">
|
||||
<option></option>
|
||||
{foreach from=$lang.notes key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.ta) && $filter.ta == $i}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked"{/if} /><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked"{/if} /><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('itemsets');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/itemset.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
55
template/pages/list-page-generic.tpl.php
Normal file
55
template/pages/list-page-generic.tpl.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php $this->brick('header'); ?>
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
<?php
|
||||
$this->brick('announcement');
|
||||
|
||||
$this->brick('mapper');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK); ?>);
|
||||
//]]></script>
|
||||
|
||||
<?php
|
||||
if (!empty($this->name) || !empty($this->h1Links)):
|
||||
echo '<div class="text">' .
|
||||
(!empty($this->h1Links) ? '<div class="h1-links">'.$this->h1Links.'</div>' : null) .
|
||||
(!empty($this->name) ? ' <h1>'.$this->name.'</h1>' : null) .
|
||||
'</div>';
|
||||
endif;
|
||||
|
||||
if (!empty($this->lvData)):
|
||||
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):
|
||||
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 -->
|
||||
|
||||
<?php $this->brick('footer'); ?>
|
||||
62
template/pages/main.tpl.php
Normal file
62
template/pages/main.tpl.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<?php $this->brick('head'); ?>
|
||||
<style type="text/css">
|
||||
.menu-buttons a { border-color: black }
|
||||
.news { position: relative; text-align: left; width: 415px; height: 191px; margin: 30px auto 0 auto; background: url(static/images/<?php echo User::$localeString; ?>/mainpage-bg-news.jpg) no-repeat }
|
||||
.news-list { padding: 26px 0 0 26px; margin: 0 }
|
||||
.news-list li { line-height: 2em }
|
||||
.news-img1 { position: absolute; left: 60px; top: 155px; width: 172px; height: 17px }
|
||||
.news-img2 { position: absolute; left: 246px; top: 48px; width: 145px; height: 127px }
|
||||
.news-talent { position: absolute; left: 240px; top: 29px; width: 152px; height: 146px }
|
||||
.announcement { margin: auto; max-width: 1200px; padding: 0px 15px 15px 15px }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layers"></div>
|
||||
<div id="home">
|
||||
|
||||
<?php $this->brick('announcements'); ?>
|
||||
|
||||
<span id="menu_buttons-generic" class="menu-buttons"></span>
|
||||
<script type="text/javascript">
|
||||
Menu.addButtons($WH.ge('menu_buttons-generic'), mn_path);
|
||||
</script>
|
||||
|
||||
<div class="pad"></div>
|
||||
|
||||
<form method="get" action="." onsubmit="if($WH.trim(this.elements[0].value) == '') return false">
|
||||
<input type="text" name="search" size="38" id="livesearch-generic" /><input type="submit" value="<?php echo Lang::$main['searchButton']; ?>" />
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">var _ = $WH.ge('livesearch-generic'); LiveSearch.attach(_); _.focus();</script>
|
||||
|
||||
<?php
|
||||
if (!empty($this->news)):
|
||||
?>
|
||||
<div class="news">
|
||||
<div class="news-list text">
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($this->news as $item):
|
||||
echo ' <li><div>'.$item['text']."</div></li>\n";
|
||||
endforeach;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div id="toplinks" class="toplinks">
|
||||
<?php $this->brick('headerMenu'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
</div>
|
||||
<noscript><div id="noscript-bg"></div><div id="noscript-text"><b><?php echo Lang::$main['jsError']; ?></div></noscript>
|
||||
<script type="text/javascript">DomContentLoaded.now()</script>
|
||||
</body>
|
||||
</html>
|
||||
21
template/pages/maintenance.tpl.php
Normal file
21
template/pages/maintenance.tpl.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="expires" content="-1" />
|
||||
<title>Maintenance</title>
|
||||
|
||||
<style type="text/css">
|
||||
body { text-align: center; font-family: Arial; background-color: black; color: white }
|
||||
.maintenance { background: url(<?php echo STATIC_URL; ?>/images/logos/logo.png) no-repeat center top; width: 900px; margin: 40px auto; text-align: center; padding-top: 70px; }
|
||||
.maintenance div { color: #00DD00; font-weight: bold; padding: 20px }
|
||||
.maintenance p { background: url(<?php echo STATIC_URL; ?>/images/maintenance/brbgnomes.jpg) no-repeat center bottom; padding-bottom: 300px }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="maintenance">
|
||||
<div>The website is currently closed for maintenance.</div>
|
||||
<p>It will take a few minutes...</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
63
template/pages/maps.tpl
Normal file
63
template/pages/maps.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<div class="text">
|
||||
<div style="text-align: center">
|
||||
<script type="text/javascript">g_initPath([1,1])</script>
|
||||
<div class="text">
|
||||
<div style="text-align: center">
|
||||
<select id="maps-ek" onchange="ma_ChooseZone(this)" class="zone-picker" style="margin: 0">
|
||||
<option value="0" style="color: #bbbbbb">{$lang.EasternKingdoms}</option>
|
||||
</select>
|
||||
<select id="maps-kalimdor" onchange="ma_ChooseZone(this)" class="zone-picker">
|
||||
<option value="0" style="color: #bbbbbb">{$lang.Kalimdor}</option>
|
||||
</select>
|
||||
<select id="maps-outland" onchange="ma_ChooseZone(this)" class="zone-picker">
|
||||
<option value="0" style="color: #bbbbbb">{$lang.Outland}</option>
|
||||
</select>
|
||||
<select id="maps-northrend" onchange="ma_ChooseZone(this)" class="zone-picker">
|
||||
<option value="0" style="color: #bbbbbb">{$lang.Northrend}</option>
|
||||
</select>
|
||||
<div style="padding-bottom: 4px"></div>
|
||||
<select onchange="ma_ChooseZone(this)" class="zone-picker">
|
||||
<option value="0" style="color: #bbbbbb">{$lang.Instances}</option>
|
||||
<optgroup label="{$lang.Dungeons}" id="maps-dungeons"></optgroup>
|
||||
<optgroup label="{$lang.Raids}" id="maps-raids"></optgroup>
|
||||
</select>
|
||||
<select onchange="ma_ChooseZone(this)" class="zone-picker">
|
||||
<option value="0" style="color: #bbbbbb">{$lang.More}</option>
|
||||
<optgroup label="{$lang.Battlegrounds}" id="maps-battlegrounds"></optgroup>
|
||||
<optgroup label="{$lang.Miscellaneous}">
|
||||
<option value="-1">{$lang.Azeroth}</option>
|
||||
<option value="-3">{$lang.EasternKingdoms}</option>
|
||||
<option value="-6">{$lang.Kalimdor}</option>
|
||||
<option value="-2">{$lang.Outland}</option>
|
||||
<option value="-5">{$lang.Northrend}</option>
|
||||
<option value="-4">{$lang.CosmicMap}</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
<div id="mapper" style="display: none; width: 778px; margin: 0 auto">
|
||||
<div id="mapper-generic"></div>
|
||||
<div class="pad"></div>
|
||||
<div style="text-align: center; font-size: 13px">
|
||||
<a href="javascript:;" style="margin-right: 2em" id="link-to-this-map">{$lang.linkToThisMap}</a>
|
||||
<a href="javascript:;" onclick="myMapper.setCoords([])" onmousedown="return false">{$lang.clear}</a>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">ma_Init();</script>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
128
template/pages/npc.tpl
Normal file
128
template/pages/npc.tpl
Normal file
@@ -0,0 +1,128 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$path});
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl'}
|
||||
|
||||
<div class="text">
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1>{$name}{if $subname} <{$subname}>{/if}</h1>
|
||||
|
||||
{include file='bricks/article.tpl'}
|
||||
|
||||
{if is_array($position)}
|
||||
<div>{$lang.difficultyPH} <a href="?npc={$position[0]}">{$position[1]}</a>.</div>
|
||||
<div class="pad"></div>
|
||||
{elseif $position}
|
||||
<div>{#This_NPC_can_be_found_in#} {strip}<span id="locations">
|
||||
{foreach from=$position item=zone name=zone}
|
||||
<a href="javascript:;" onclick="
|
||||
{if $zone.atid}
|
||||
myMapper.update(
|
||||
{ldelim}
|
||||
zone:{$zone.atid}
|
||||
{if $zone.points}
|
||||
,
|
||||
{/if}
|
||||
{if $zone.points}
|
||||
coords:[
|
||||
{foreach from=$zone.points item=point name=point}
|
||||
[{$point.x},{$point.y},
|
||||
{ldelim}
|
||||
label:'$<br>
|
||||
<div class=q0>
|
||||
<small>
|
||||
{if isset($point.r)}
|
||||
{#Respawn#}:
|
||||
{if isset($point.r.h)} {$point.r.h}{#hr#}{/if}
|
||||
{if isset($point.r.m)} {$point.r.m}{#min#}{/if}
|
||||
{if isset($point.r.s)} {$point.r.s}{#sec#}{/if}
|
||||
{else}
|
||||
{#Waypoint#}
|
||||
{/if}
|
||||
{if isset($point.events)}<br>{$point.events|escape:"quotes"}{/if}
|
||||
</small>
|
||||
</div>',type:'{$point.type}'
|
||||
{rdelim}]
|
||||
{if !$smarty.foreach.point.last},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
{/if}
|
||||
{rdelim});
|
||||
$WH.ge('mapper-generic').style.display='block';
|
||||
{else}
|
||||
$WH.ge('mapper-generic').style.display='none';
|
||||
{/if}
|
||||
g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
|
||||
{$zone.name}</a>{if $zone.population > 1} ({$zone.population}){/if}{if $smarty.foreach.zone.last}.{else}, {/if}
|
||||
{/foreach}
|
||||
</span></div>
|
||||
{/strip}
|
||||
<div id="mapper-generic"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var myMapper = new Mapper({ldelim}parent: 'mapper-generic', zone: '{$position[0].atid}'{rdelim});
|
||||
$WH.gE($WH.ge('locations'), 'a')[0].onclick();
|
||||
</script>
|
||||
{else}
|
||||
{$lang.unkPosition}
|
||||
{/if}
|
||||
|
||||
{if $quotes}
|
||||
<h3><a class="disclosure-off" onclick="return g_disclose($WH.ge('quotes-generic'), this)">{$lang.quotes} ({$quotes[1]})</a></h3>
|
||||
<div id="quotes-generic" style="display: none"><ul>{strip}
|
||||
{foreach from=$quotes[0] item=group}
|
||||
{if $group|@count > 1}<ul>{/if}
|
||||
<li>
|
||||
{foreach from=$group name=quote item=itr}
|
||||
<div><span class="s{$itr.type}">{if $itr.type != 4}{$name} {$lang.textTypes[$itr.type]}{$lang.colon}{if $itr.lang}[{$itr.lang}] {/if}{/if}{$itr.text}</span></div>
|
||||
{if $smarty.foreach.quote.last}{else}</li><li>{/if}
|
||||
{/foreach}
|
||||
</li>
|
||||
{if $group|@count > 1}</li></ul>{/if}
|
||||
{/foreach}
|
||||
{/strip}</ul></div>
|
||||
{/if}
|
||||
|
||||
{if $reputation}
|
||||
<h3>{$lang.gains}</h3>
|
||||
|
||||
{$lang.gainsDesc}{$lang.colon}
|
||||
{foreach from=$reputation item=set}
|
||||
{if $reputation|@count > 1}<ul><li><span class="rep-difficulty">{$set[0]}</span></li>{/if}
|
||||
<ul>
|
||||
{foreach from=$set[1] item=itr}
|
||||
<li><div{if $itr.qty < 0} class="reputation-negative-amount"{/if}><span>{$itr.qty}</span> {$lang.repWith} <a href="?faction={$itr.id}">{$itr.name}</a>{if $itr.cap && $itr.qty > 0} ({$lang.stopsAt|@sprintf:$itr.cap}){/if}</div></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $reputation|@count > 1}</ul>{/if}
|
||||
{/foreach}
|
||||
|
||||
{/if}
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
112
template/pages/npcs.tpl
Normal file
112
template/pages/npcs.tpl
Normal file
@@ -0,0 +1,112 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)} 0 {else} 1 {/if});
|
||||
{if !empty($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [4]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [4])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display: {if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?npcs{$subCat}&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<div class="rightpanel">
|
||||
<div style="float: left">{$lang.classification}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['cl[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="cl[]" size="5" multiple="multiple" class="rightselect" style="width: 9.5em">
|
||||
{foreach from=$lang.rank key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.cl) && in_array($i, (array)$filter.cl)}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{if $petFamPanel}
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.petFamily}{$lang.colon}</div><small><a href="javascript:;" onclick="document.forms['fi'].elements['fa[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="fa[]" size="7" multiple="multiple" class="rightselect">
|
||||
{foreach from=$lang.fa key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.fa) && in_array($i, (array)$filter.fa)}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name|ucFirst}{$lang.colon}</td>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na|escape:'html'}" {/if}/></td>
|
||||
<td> <input type="checkbox" name="ex" value="on" id="npc-ex" {if isset($filter.ex)}checked="checked" {/if}/></td>
|
||||
<td><label for="npc-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_extendednpcsearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{$lang.extSearch}</span></label></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.level}{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="2" class="smalltextbox" {if isset($filter.minle)}value="{$filter.minle}" {/if}/> - <input type="text" name="maxle" maxlength="2" class="smalltextbox" {if isset($filter.maxle)}value="{$filter.maxle}" {/if}/></td>
|
||||
<td class="padded" width="100%">
|
||||
<table><tr>
|
||||
<td> {$lang.react}{$lang.colon}</td>
|
||||
<td> <select name="ra" onchange="fi_dropdownSync(this)" onkeyup="fi_dropdownSync(this)" style="background-color: #181818" {if isset($filter.ra)}class="q{if $filter.ra == 1}2{elseif $filter.ra == -1}10{/if}"{/if}>
|
||||
<option></option>
|
||||
<option value="1" class="q2"{if isset($filter.ra) && $filter.ra == 1} selected{/if}>A</option>
|
||||
<option value="0" class="q"{if isset($filter.ra) && $filter.ra == 0} selected{/if}>A</option>
|
||||
<option value="-1" class="q10"{if isset($filter.ra) && $filter.ra == -1} selected{/if}>A</option>
|
||||
</select>
|
||||
<select name="rh" onchange="fi_dropdownSync(this)" onkeyup="fi_dropdownSync(this)" style="background-color: #181818" {if isset($filter.rh)}class="q{if $filter.rh == 1}2{elseif $filter.rh == -1}10{/if}"{/if}>
|
||||
<option></option>
|
||||
<option value="1" class="q2"{if isset($filter.rh) && $filter.rh == 1} selected{/if}>H</option>
|
||||
<option value="0" class="q"{if isset($filter.rh) && $filter.rh == 0} selected{/if}>H</option>
|
||||
<option value="-1" class="q10"{if isset($filter.rh) && $filter.rh == -1} selected{/if}>H</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2 clear">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked"{/if} /><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked"{/if} /><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('npcs');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/creature.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
91
template/pages/object.tpl
Normal file
91
template/pages/object.tpl
Normal file
@@ -0,0 +1,91 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$path});
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl'}
|
||||
|
||||
<div class="text">
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1>{$name}</h1>
|
||||
|
||||
{include file='bricks/article.tpl'}
|
||||
|
||||
{if $positions}
|
||||
<div>{#This_Object_can_be_found_in#}
|
||||
{strip}
|
||||
<span id="locations">
|
||||
{foreach from=$object.position item=zone name=zone}
|
||||
<a href="javascript:;" onclick="
|
||||
myMapper.update(
|
||||
{ldelim}
|
||||
{if $zone.atid}
|
||||
zone:{$zone.atid}
|
||||
{if $zone.points}
|
||||
,
|
||||
{/if}
|
||||
{else}
|
||||
show:false
|
||||
{/if}
|
||||
{if $zone.points}
|
||||
coords:[
|
||||
{foreach from=$zone.points item=point name=point}
|
||||
[{$point.x},{$point.y},
|
||||
{ldelim}
|
||||
label:'$<br>
|
||||
<div class=q0>
|
||||
<small>{#Respawn#}:
|
||||
{if isset($point.r.h)} {$point.r.h}{#hr#}{/if}
|
||||
{if isset($point.r.m)} {$point.r.m}{#min#}{/if}
|
||||
{if isset($point.r.s)} {$point.r.s}{#sec#}{/if}
|
||||
{if isset($point.events)}<br>{$point.events|escape:"quotes"}{/if}
|
||||
</small>
|
||||
</div>',type:'{$point.type}'
|
||||
{rdelim}]
|
||||
{if !$smarty.foreach.point.last},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
{/if}
|
||||
{rdelim});
|
||||
g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
|
||||
{$zone.name}</a>{if $zone.population > 1} ({$zone.population}){/if}{if $smarty.foreach.zone.last}.{else}, {/if}
|
||||
{/foreach}
|
||||
</span></div>
|
||||
{/strip}
|
||||
<div id="mapper-generic"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var myMapper = new Mapper({ldelim}parent: 'mapper-generic', zone: '{$position[0].atid}'{rdelim});
|
||||
$WH.gE($WH.ge('locations'), 'a')[0].onclick();
|
||||
</script>
|
||||
{else}
|
||||
{$lang.unkPosition}
|
||||
{/if}
|
||||
{include file='bricks/book.tpl'}
|
||||
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
61
template/pages/objects.tpl
Normal file
61
template/pages/objects.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)} 0 {else} 1 {/if});
|
||||
{if !empty($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [5]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [5])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display: {if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?objects{$subCat}&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<table>
|
||||
<tr><td>{$lang.name|ucFirst}: </td><td> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na|escape:'html'}" {/if}/></td></tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2 clear">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked"{/if} /><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked"{/if} /><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('objects');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/object.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
39
template/pages/profile.tpl
Normal file
39
template/pages/profile.tpl
Normal file
@@ -0,0 +1,39 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path});
|
||||
var temp_path = {$path}; {*kill with pageTemplate*}
|
||||
{*
|
||||
PageTemplate.set({pageName: 'profile', activeTab: 1, breadcrumb: [1,5,0,'eu']});
|
||||
PageTemplate.init();
|
||||
|
||||
old:
|
||||
var g_serverTime = new Date('2010/04/11 01:50:39');
|
||||
var g_pageName = 'profile';
|
||||
var g_pageValue = '';
|
||||
|
||||
*}
|
||||
</script>
|
||||
|
||||
<div id="profilah-generic"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var profilah = new Profiler();
|
||||
profilah.initialize('profilah-generic', {ldelim} id: {$profileId} {rdelim});
|
||||
pr_setRegionRealm($WH.gE($WH.ge('topbar'), 'form')[0], '{$region}', '{$realm}');
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
114
template/pages/profiles.tpl
Normal file
114
template/pages/profiles.tpl
Normal file
@@ -0,0 +1,114 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)} 0 {else} 1 {/if});
|
||||
var temp_path = {$path}; {*kill with pageTemplate*}
|
||||
{*
|
||||
PageTemplate.set({pageName: 'profiles', activeTab: 1, breadcrumb: [1,5,0,'eu']});
|
||||
PageTemplate.init();
|
||||
*}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display:{if empty($filter.query)}none{else}block{/if};"><form {* for some arcane reason a linebreak means, the first childNode is a text instead of the form *}
|
||||
action="?profiles&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<div class="rightpanel">
|
||||
<div style="float: left">{$lang.class|ucfirst}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['cl[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="cl[]" size="7" multiple="multiple" class="rightselect" style="background-color: #181818">
|
||||
{foreach from=$lang.cl key=i item=str}{if $str}
|
||||
<option classvalue="{$i}"{if isset($filter.cl) && ($filter.cl == $i || @in_array($i, $filter.cl))} selected{/if} class="c{$i}">{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.race|ucfirst}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['ra[]'].selectedIndex = -1; pr_onChangeRace(); return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ra[]" size="7" multiple="multiple" class="rightselect" onchange="pr_onChangeRace()">
|
||||
{foreach from=$lang.ra key=i item=str}{if $str}{if $i > 0}
|
||||
<option value="{$i}"{if isset($filter.ra) && $filter.ra == $i} selected{/if}>{$str}</option>
|
||||
{/if}{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Name{$lang.colon}</td>
|
||||
<td colspan="3">
|
||||
<table><tr>
|
||||
<td> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na|escape:'html'}"{/if}/></td>
|
||||
<td> <input type="checkbox" name="ex" value="on" id="profile-ex" {if isset($filter.ex)}checked="checked"{/if}/></td>
|
||||
<td><label for="profile-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_exactprofilesearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{$lang.exactMatch}</span></label></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">Region{$lang.colon}</td>
|
||||
<td class="padded"> <select name="rg" onchange="pr_onChangeRegion(this.form, null, null)">
|
||||
<option></option>
|
||||
<option value="us">Americas</option>
|
||||
<option value="eu" selected="selected">Europe</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="padded"> Realm{$lang.colon}</td>
|
||||
<td class="padded"> <select name="sv"><option></option></select><input type="hidden" name="bg" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">Side{$lang.colon}</td>
|
||||
<td class="padded"> <select name="si">
|
||||
<option></option>
|
||||
<option value="1">Alliance</option>
|
||||
<option value="2">Horde</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="padded"> {$lang.level}{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="2" class="smalltextbox" {if isset($filter.minle)}value="{$filter.minle}"{/if}/> - <input type="text" name="maxle" maxlength="2" class="smalltextbox" {if isset($filter.maxle)}value="{$filter.maxle}"{/if}/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2">
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" checked="checked" /><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" /><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded"></div>
|
||||
<input type="submit" value="Apply filter" />
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
pr_setRegionRealm($WH.ge('fi').firstChild, '{$region}', '{$realm}');
|
||||
pr_onChangeRace();
|
||||
fi_init('profiles');
|
||||
{if isset($filter.setCr)}{$filter.setCr}{/if}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/profile.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
189
template/pages/quest.tpl
Normal file
189
template/pages/quest.tpl
Normal file
@@ -0,0 +1,189 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$path});
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl'}
|
||||
|
||||
<div class="text">
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1>{$name}</h1>
|
||||
{if isset($unavailable)}
|
||||
<div class="pad"></div>
|
||||
<b style="color: red">{$lang.unavailable}</b>
|
||||
{/if}
|
||||
|
||||
{if isset($reqMinRep) || isset($reqMaxRep)}
|
||||
<h3>{$lang.additionalReq}{$lang.colon}</h3>
|
||||
<ul style="border-bottom:solid 1px #505050;">
|
||||
{if isset($reqMinRep)}<li><div>{$reqMinRep}</div></li>{/if}
|
||||
{if isset($reqMaxRep)}<li><div>{$reqMaxRep}</div></li>{/if}
|
||||
<br /> {*shudder*}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
{if $objectives}
|
||||
{$objectives}
|
||||
{elseif $requestItems}
|
||||
<h3>{$lang.progress}</h3>
|
||||
{$requestItems}
|
||||
{elseif $offerReward}
|
||||
<h3>{$lang.completion}</h3>
|
||||
{$offerReward}
|
||||
{/if}
|
||||
|
||||
{if $end}
|
||||
<table class="iconlist">
|
||||
<tr><th><p style="height: 26px; width: 30px;"> </p></th><td>{$end}</td></tr>
|
||||
{if $suggestedPl}
|
||||
<tr><th><p style="height: 26px; width: 30px;"> </p></th><td>{$lang.suggestedPl}{$lang.colon}{$suggestedPl}</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
<div class="pad"></div>
|
||||
{/if}
|
||||
|
||||
{if $objectiveList}
|
||||
{if $end}
|
||||
{$lang.providedItem}{$lang.colon}
|
||||
{/if}
|
||||
<table class="iconlist">
|
||||
{foreach from=$objectiveList item=i key=k}
|
||||
{if isset($i.typeStr) && ($i.typeStr == 'item' || $i.typeStr == 'spell')}
|
||||
<tr><th align="right" id="iconlist-icon-{$k}"></th><td><span class="q{$i.quality}"><a href="?{$i.typeStr}={$i.id}">{$i.name}</a></span>{if !$end}{$i.extraText}{/if}{if $i.qty > 1} ({$i.qty}){/if}</td></tr>
|
||||
{elseif !empty($i.typeStr)}
|
||||
<tr><th><ul><li><var> </var></li></ul></th><td><span class="q"><a href="?{$i.typeStr}={$i.id}">{$i.name}</a></span>{if !$end}{$i.extraText}{/if}{if $i.qty > 1} ({$i.qty}){/if}</td></tr>
|
||||
{* todo: research, when we want plain text as unordered list element *}
|
||||
{else}
|
||||
<tr><th><p style="height: 26px; width: 30px;"> </p></th><td>{$i.text}</td></tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $suggestedPl && !$end}
|
||||
<tr><th><p style="height: 26px; width: 30px;"> </p></th><td>{$lang.suggestedPl}{$lang.colon}{$suggestedPl}</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{foreach from=$objectiveList item=i key=k}
|
||||
{if isset($i.typeStr) && ($i.typeStr == 'item' || $i.typeStr == 'spell')}
|
||||
$WH.ge('iconlist-icon-{$k}').appendChild(g_{$i.typeStr}s.createIcon({$i.id}, 0, {$i.qty}));
|
||||
{/if}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
{/if}
|
||||
|
||||
{include file='bricks/mapper.tpl'}
|
||||
|
||||
{* Description *}
|
||||
{if $details}
|
||||
<h3>{$lang.description}</h3>
|
||||
{$details}
|
||||
{/if}
|
||||
|
||||
{* Progress (disclosed) *}
|
||||
{if $requestItems && $objectives}
|
||||
<h3><a href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('disclosure-progress'), this)">{$lang.progress}</a></h3>
|
||||
<div id="disclosure-progress" style="display: none">{$requestItems}</div>
|
||||
{/if}
|
||||
|
||||
{* Completion (disclosed) *}
|
||||
{if $offerReward && ($requestItems || $objectives)}
|
||||
<h3><a href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('disclosure-completion'), this)">{$lang.completion}</a></h3>
|
||||
<div id="disclosure-completion" style="display: none">{$offerReward}</div>
|
||||
{/if}
|
||||
|
||||
{* Rewards *}
|
||||
{if !empty($rewards.items) || !empty($rewards.money) || !empty($rewards.spells) || !empty($rewards.choice)}
|
||||
{assign var='offset' value=0}
|
||||
<h3>{$lang.rewards}</h3>
|
||||
|
||||
{if isset($rewards.choice)}
|
||||
{include file='bricks/rewards.tpl' rewTitle=$lang.chooseItems rewData=$rewards.choice offset=$offset}
|
||||
{math assign='offset' equation="x + y" x=$offset y=$rewards.choice|@count}
|
||||
{/if}
|
||||
|
||||
{if isset($rewards.spells)}
|
||||
{if isset($rewards.choice)}
|
||||
<div class="pad"></div>
|
||||
{/if}
|
||||
|
||||
{if isset($rewards.spells.learn)}
|
||||
{include file='bricks/rewards.tpl' rewTitle=$lang.spellLearn rewData=$rewards.spells.learn offset=$offset extra=$rewards.spells.extra}
|
||||
{math assign='offset' equation="x + y" x=$offset y=$rewards.spells.learn|@count}
|
||||
{else}
|
||||
{include file='bricks/rewards.tpl' rewTitle=$lang.spellCast rewData=$rewards.spells.cast offset=$offset extra=$rewards.spells.extra}
|
||||
{math assign='offset' equation="x + y" x=$offset y=$rewards.spells.cast|@count}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if !empty($rewards.items) || !empty($rewards.money)}
|
||||
{if isset($rewards.choice) || isset($rewards.spells)}
|
||||
<div class="pad"></div>
|
||||
{/if}
|
||||
|
||||
{if isset($rewards.choice)} {* bullshit!! *}
|
||||
{include file='bricks/rewards.tpl' rewTitle=$lang.receiveAlso rewData=$rewards.items offset=$offset extra=$rewards.money}
|
||||
{else}
|
||||
{include file='bricks/rewards.tpl' rewTitle=$lang.receiveItems rewData=$rewards.items offset=$offset extra=$rewards.money}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{* Gains *}
|
||||
{if $gains}
|
||||
<h3>{$lang.gains}</h3>
|
||||
{$lang.gainsDesc}{$lang.colon}
|
||||
<ul>{strip}
|
||||
{if isset($gains.xp)}
|
||||
<li><div>{$gains.xp|number_format} {$lang.experience}</div></li>
|
||||
{/if}
|
||||
|
||||
{if !empty($gains.rep)}
|
||||
{foreach from=$gains.rep item=i}
|
||||
<li><div>{if $i.qty < 0}<b class="q10">{$i.qty}</b>{else}{$i.qty}{/if} {$lang.repWith} <a href="?faction={$i.id}">{$i.name}</a></div></li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{if isset($gains.title)}
|
||||
<li><div>{$gains.title}</div></li>
|
||||
{/if}
|
||||
|
||||
{if isset($gains.tp)}
|
||||
<li><div>{$gains.tp} {$lang.bonusTalents}</div></li>
|
||||
{/if}
|
||||
</ul>{/strip}
|
||||
{/if}
|
||||
|
||||
{if $mail}
|
||||
<h3>{$lang.mailDelivery|sprintf:$mail.delay}</h3>
|
||||
{if $mail.subject}
|
||||
<div class="book"><div class="page">{$mail.subject}</div></div>
|
||||
{/if}
|
||||
{if $mail.text}
|
||||
<div class="book"><div class="page">{$mail.text}</div></div>
|
||||
{/if}
|
||||
{/if}
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
98
template/pages/quests.tpl
Normal file
98
template/pages/quests.tpl
Normal file
@@ -0,0 +1,98 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)} 0 {else} 1 {/if});
|
||||
{if !empty($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [3]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [3])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display: {if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?quests{$subCat}&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<div class="rightpanel">
|
||||
<div style="float: left">{$lang.type}{$lang.colon}</div><small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ty[]" size="6" multiple="multiple" class="rightselect">
|
||||
{foreach from=$lang.questInfo key=k item=str}
|
||||
<option value="{$k}"{if isset($filter.ty) && in_array($k, (array)$filter.ty)} selected{/if}>{$str}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name|ucFirst}{$lang.colon}</td>
|
||||
<td colspan="3">
|
||||
<table><tr>
|
||||
<td> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na}" {/if}/></td>
|
||||
<td> <input type="checkbox" name="ex" value="on" id="quest-ex" {if isset($filter.ex)}checked {/if}/></td>
|
||||
<td><label for="quest-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_extendedquestsearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{$lang.extSearch}</span></label></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">{$lang.level}{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="2" class="smalltextbox" {if isset($filter.minle)}value="{$filter.minle}" {/if}/> - <input type="text" name="maxle" maxlength="2" class="smalltextbox" {if isset($filter.maxle)}value="{$filter.maxle}" {/if}/></td>
|
||||
<td class="padded" width="100%">
|
||||
<table><tr>
|
||||
<td> {$lang._reqLevel}{$lang.colon}</td>
|
||||
<td> <input type="text" name="minrl" maxlength="2" class="smalltextbox" {if isset($filter.minrl)}value="{$filter.minrl}" {/if}/> - <input type="text" name="maxrl" maxlength="2" class="smalltextbox" {if isset($filter.maxrl)}value="{$filter.maxrl}" {/if}/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded">{$lang.side}{$lang.colon}</td>
|
||||
<td class="padded" colspan="3"> <select name="si">
|
||||
<option></option>
|
||||
{foreach from=$lang.si key=k item=str}
|
||||
<option value="{$k}"{if isset($filter.si) && $k == $filter.si} selected{/if}>{$str}</option>
|
||||
{/foreach}
|
||||
</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2 clear">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked" {/if}/><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked"{/if} /><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('quests');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/quest.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
32
template/pages/recoverPass.tpl
Normal file
32
template/pages/recoverPass.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
<div class="pad3"></div>
|
||||
|
||||
<form action="/account=forgotpassword" method="post" onsubmit="return inputBoxValidate(this)">
|
||||
<div class="inputbox">
|
||||
<h1>[Password Reset: Step 1 of 2]</h1>
|
||||
<div id="inputbox-error"></div>
|
||||
|
||||
<div style="text-align: center">
|
||||
[Email address]{$lang.colon}<input type="text" name="email" value="" id="nmbv325c32" style="width: 12em" />
|
||||
<div class="pad2"></div>
|
||||
|
||||
<div id="captcha-reprecated" class="captcha-center"></div>
|
||||
<div class="pad2"></div>
|
||||
|
||||
<input type="submit" value="Continue" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
31
template/pages/recoverUser.tpl
Normal file
31
template/pages/recoverUser.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
<div class="pad3"></div>
|
||||
|
||||
<form action="/account=forgotusername" method="post" onsubmit="return inputBoxValidate(this)">
|
||||
<div class="inputbox">
|
||||
<h1>[Username Request]</h1>
|
||||
<div id="inputbox-error"></div>
|
||||
|
||||
<div style="text-align: center">
|
||||
[Email address]{$lang.colon}<input type="text" name="email" value="" id="nmbv325c32" style="width: 12em" />
|
||||
<div class="pad2"></div>
|
||||
|
||||
<div id="captcha-reprecated" class="captcha-center"></div>
|
||||
<div class="pad2"></div>
|
||||
|
||||
<input type="submit" value="Continue" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
38
template/pages/search.tpl
Normal file
38
template/pages/search.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<div class="text">
|
||||
<a href="{$wowhead}" class="button-red"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>
|
||||
{if !empty($found)}
|
||||
<h1>{$lang.foundResult} <i>{$search|escape:"html"}</i>{if $ignored}<span class="sub">{$lang.ignoredTerms|sprintf:$ignored}</span>{/if}</h1>
|
||||
</div>
|
||||
<div id="tabs-generic"></div>
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">
|
||||
var myTabs = new Tabs({ldelim}parent: $WH.ge('tabs-generic'){rdelim});
|
||||
{foreach from=$found item="f"}
|
||||
{include file="listviews/`$f.file`.tpl" data=$f.data params=$f.params}
|
||||
{/foreach}
|
||||
myTabs.flush();
|
||||
</script>
|
||||
{else}
|
||||
<h1>{$lang.noResult} <i>{$search|escape:"html"}</i>{if $ignored}<span class="sub">{$lang.ignoredTerms|sprintf:$ignored}</span>{/if}</h1>
|
||||
<div class="search-noresults"/></div>
|
||||
|
||||
{$lang.tryAgain}
|
||||
{/if}
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
63
template/pages/signin.tpl
Normal file
63
template/pages/signin.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
<div class="pad3"></div>
|
||||
<script type="text/javascript">
|
||||
function inputBoxValidate(f)
|
||||
{ldelim}
|
||||
var _ = f.elements[0];
|
||||
if(_.value.length == 0)
|
||||
{ldelim}
|
||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterusername;
|
||||
_.focus();
|
||||
return false;
|
||||
{rdelim}
|
||||
|
||||
_ = f.elements[1];
|
||||
if(_.value.length == 0)
|
||||
{ldelim}
|
||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterpassword;
|
||||
_.focus();
|
||||
return false;
|
||||
{rdelim}
|
||||
{rdelim}
|
||||
</script>
|
||||
|
||||
<form action="?account=signin_do&next={$next}" method="post" onsubmit="return inputBoxValidate(this)">
|
||||
<div class="inputbox" style="position: relative">
|
||||
<h1>{$lang.doSignIn}</h1>
|
||||
<div id="inputbox-error">{if isset($signinError)}{$signinError}{/if}</div>
|
||||
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td align="right">{$lang.user}{$lang.colon}</td>
|
||||
<td><input type="text" name="username" value="" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">{$lang.pass}{$lang.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">{$lang.rememberMe}</label>
|
||||
<div class="pad2"></div>
|
||||
<input type="submit" value="{$lang.signIn}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<div style="position: absolute; right: 5px; bottom: 5px;">{$lang.forgot}{$lang.colon}<a href="?account=forgotusername">{$lang.user}</a> | <a href="?account=forgotpassword">{$lang.pass}</a></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="pad3"></div>
|
||||
{if $register}<div style="text-align: center; line-height: 1.5em; font-size: 125%">{$lang.accNoneYet}? <a href="?account=signup">{$lang.accCreateNow}!</a></div>{/if}
|
||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
75
template/pages/signup.tpl
Normal file
75
template/pages/signup.tpl
Normal file
@@ -0,0 +1,75 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
<div class="pad3"></div>
|
||||
<script type="text/javascript">
|
||||
function inputBoxValidate(f)
|
||||
{ldelim}
|
||||
var _ = f.elements[0];
|
||||
if(_.value.length == 0)
|
||||
{ldelim}
|
||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterusername;
|
||||
_.focus();
|
||||
return false;
|
||||
{rdelim}
|
||||
|
||||
_ = f.elements[1];
|
||||
if(_.value.length == 0)
|
||||
{ldelim}
|
||||
$WH.ge('inputbox-error').innerHTML = LANG.message_enterpassword;
|
||||
_.focus();
|
||||
return false;
|
||||
{rdelim}
|
||||
|
||||
_ = f.elements[2];
|
||||
if(_.value.length == 0)
|
||||
{ldelim}
|
||||
$WH.ge('inputbox-error').innerHTML = message_passwordsdonotmatch;
|
||||
_.focus();
|
||||
return false;
|
||||
{rdelim}
|
||||
{rdelim}
|
||||
</script>
|
||||
|
||||
<form action="?account=signup_do&next={$next}" method="post" onsubmit="return inputBoxValidate(this)">
|
||||
<div class="inputbox" style="position: relative">
|
||||
<h1>{$lang.accCreate}</h1>
|
||||
<div id="inputbox-error">{if isset($signupError)}{$signupError}{/if}</div>
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td align="right">{$lang.user}{$lang.colon}</td>
|
||||
<td><input type="text" name="username" value="" maxlength="16" id="username-generic" style="width: 10em" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">{$lang.pass}{$lang.colon}</td>
|
||||
<td><input type="password" name="password" style="width: 10em" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">{$lang.passConfirm}{$lang.colon}</td>
|
||||
<td><input type="password" name="c_password" style="width: 10em" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td align="right">{$lang.email}{$lang.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">{$lang.rememberMe}</label>
|
||||
<div class="pad2"></div>
|
||||
<input type="submit" name="signup" value="{$lang.signup}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
188
template/pages/spell.tpl
Normal file
188
template/pages/spell.tpl
Normal file
@@ -0,0 +1,188 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$path});
|
||||
//]]></script>
|
||||
|
||||
{include file='bricks/infobox.tpl'}
|
||||
|
||||
<div class="text">
|
||||
{*include file='bricks/headIcons.tpl'*}
|
||||
|
||||
{include file='bricks/redButtons.tpl'}
|
||||
|
||||
<h1 class="h1-icon">{$name}</h1>
|
||||
|
||||
{include file='bricks/tooltip.tpl'}
|
||||
|
||||
{if $reagents[0]}
|
||||
{if $tools}<div style="float: left; margin-right: 75px">{/if}
|
||||
{include file='bricks/reagentList.tpl' reagents=$reagents[1] enhanced=$reagents[0]}
|
||||
{if $tools}</div>{/if}
|
||||
{/if}
|
||||
|
||||
{if $tools}
|
||||
{if $reagents[0]}<div style="float: left">{/if}
|
||||
<h3>{$lang.tools}</h3>
|
||||
<table class="iconlist">
|
||||
{section name=i loop=$tools}
|
||||
<tr><th align="right" id="iconlist-icon{$iconlist1++}"></th><td><span class="q1"><a href="{$tools[i].url}">{$tools[i].name}</a></span></td></tr>
|
||||
{/section}
|
||||
</table>
|
||||
<script type="text/javascript">
|
||||
{section name=i loop=$tools}{if isset($tools[i].itemId)}
|
||||
$WH.ge('iconlist-icon{$iconlist2++}').appendChild(g_items.createIcon({$tools[i].itemId}, 0, 1));
|
||||
{/if}{/section}
|
||||
</script>
|
||||
{if $reagents[0]}</div>{/if}
|
||||
{/if}
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
{include file='bricks/article.tpl'}
|
||||
|
||||
{*
|
||||
if !empty($transfer)}
|
||||
<div class="pad"></div>
|
||||
{$lang._transfer|sprintf:$transfer.id:´´:$transfer.icon:$transfer.name:$transfer.facInt:$transfer.facName}
|
||||
{/if}
|
||||
*}
|
||||
|
||||
{if isset($unavailable)}
|
||||
<div class="pad"></div>
|
||||
<b style="color: red">{$lang._unavailable}</b>
|
||||
{/if}
|
||||
|
||||
<h3>{$lang._spellDetails}</h3>
|
||||
|
||||
<table class="grid" id="spelldetails">
|
||||
<colgroup>
|
||||
<col width="8%" />
|
||||
<col width="42%" />
|
||||
<col width="50%" />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td colspan="2" style="padding: 0; border: 0; height: 1px"></td>
|
||||
<td rowspan="6" style="padding: 0; border-left: 3px solid #404040">
|
||||
<table class="grid" style="border: 0">
|
||||
<tr>
|
||||
<td style="height: 0; padding: 0; border: 0" colspan="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0; border-top: 0">{$lang.duration}</th>
|
||||
<td width="100%" style="border-top: 0">{if !empty($duration)}{$duration}{else}<span class="q0">{$lang.n_a}</span>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0">{$lang.school}</th>
|
||||
<td>{$school}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0">{$lang.mechanic}</th>
|
||||
<td width="100%" style="border-top: 0">{if $mechanic}{$mechanic}{else}<span class="q0">{$lang.n_a}</span>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0">{$lang.dispelType}</th>
|
||||
<td width="100%" style="border-top: 0">{if $dispel}{$dispel}{else}<span class="q0">{$lang.n_a}</span>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-bottom: 0; border-left: 0">{$lang._gcdCategory}</th>
|
||||
<td style="border-bottom: 0">{if $gcdCat}{$gcdCat}{else}<span class="q0">{$lang.n_a}</span>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-top: 0">{$lang._cost}</th>
|
||||
<td style="border-top: 0">{if !empty($powerCost)}{$powerCost}{else}{$lang._none}{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang._range}</th>
|
||||
<td>{$range} {$lang._distUnit} <small>({$rangeName})</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang._castTime}</th>
|
||||
<td>{$castTime}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang._cooldown}</th>
|
||||
<td>{if !empty($cooldown)}{$cooldown}{else}<span class="q0">{$lang.n_a}</span>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><dfn title="{$lang._globCD}">{$lang._gcd}</dfn></th>
|
||||
<td>{$gcd}</td>
|
||||
</tr>
|
||||
{if !empty($scaling)}
|
||||
<tr>
|
||||
<th>{$lang._scaling}</th>
|
||||
<td colspan="3">{$scaling}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if !empty($stances)}
|
||||
<tr>
|
||||
<th>{$lang._forms}</th>
|
||||
<td colspan="3">{$stances}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if !empty($items)}
|
||||
<tr>
|
||||
<th>{$lang.requires2}</th>
|
||||
<td colspan="3">{$items}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{section name=i loop=$effect}
|
||||
<tr>
|
||||
<th>{$lang._effect} #{$smarty.section.i.index+1}</th>
|
||||
<td colspan="3" style="line-height: 17px">
|
||||
{$effect[i].name}
|
||||
|
||||
<small>
|
||||
{if isset($effect[i].value)}<br>{$lang._value}{$lang.colon}{$effect[i].value}{/if}
|
||||
{if isset($effect[i].radius)}<br>{$lang._radius}{$lang.colon}{$effect[i].radius} {$lang._distUnit}{/if}
|
||||
{if isset($effect[i].interval)}<br>{$lang._interval}{$lang.colon}{$effect[i].interval}{/if}
|
||||
{if isset($effect[i].mechanic)}<br>{$lang.mechanic}{$lang.colon}{$effect[i].mechanic}{/if}
|
||||
{if isset($effect[i].procData)}<br>{if $effect[i].procData[0] < 0}{$lang.ppm|sprintf:$effect[i].procData[0]*-1}{else}{$lang.procChance}{$lang.colon}{$effect[i].procData[0]}%{/if}{if $effect[i].procData[1]} ({$lang.cooldown|sprintf:$effect[i].procData[1]}){/if}{/if}
|
||||
</small>
|
||||
{if isset($effect[i].icon)}
|
||||
<table class="icontab">
|
||||
<tr>
|
||||
<th id="icontab-icon{$smarty.section.i.index}"></th>
|
||||
{if isset($effect[i].icon.quality)}
|
||||
<td><span class="q{$effect[i].icon.quality}"><a href="?item={$effect[i].icon.id}">{$effect[i].icon.name}</a></span></td>
|
||||
{else}
|
||||
<td>{if !$effect[i].icon.name|strpos:"#"}<a href="?spell={$effect[i].icon.id}">{/if}{$effect[i].icon.name}{if !$effect[i].icon.name|strpos:"#"}</a>{/if}</td>
|
||||
{/if}
|
||||
<th></th><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<script type="text/javascript">
|
||||
$WH.ge('icontab-icon{$smarty.section.i.index}').appendChild({if isset($effect[i].icon.quality)}g_items{else}g_spells{/if}.createIcon({$effect[i].icon.id}, 1, {$effect[i].icon.count}));
|
||||
</script>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
<h2 class="clear">{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
141
template/pages/spells.tpl
Normal file
141
template/pages/spells.tpl
Normal file
@@ -0,0 +1,141 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
g_initPath({$path}, {if empty($filter.query)} 0 {else} 1 {/if});
|
||||
{if !empty($filter.query)}
|
||||
Menu.modifyUrl(Menu.findItem(mn_database, [1]), {ldelim} filter: '+={$filter.query|escape:'quotes'}' {rdelim}, {ldelim} onAppendCollision: fi_mergeFilterParams, onAppendEmpty: fi_setFilterParams, menuUrl: Menu.getItemUrl(Menu.findItem(mn_database, [1])) {rdelim});
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
<div id="fi" style="display: {if empty($filter.query)}none{else}block{/if};">
|
||||
<form action="?spells{$subCat}&filter" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
|
||||
<div class="rightpanel">
|
||||
<div style="float: left">{$lang.school}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['sc[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="sc[]" size="7" multiple="multiple" class="rightselect" style="width: 8em">
|
||||
{foreach from=$lang.sc key=i item=str}{if $str}
|
||||
<option value="{$i}" {if isset($filter.sc) && in_array($i, (array)$filter.sc)}selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{if $filter.classPanel}
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.class|ucfirst}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['cl[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="cl[]" size="8" multiple="multiple" class="rightselect" style="width: 8em; background-color: #181818">
|
||||
{foreach from=$lang.cl key=i item=str}{if $str}
|
||||
<option value="{$i}"{if isset($filter.cl) && in_array($i, (array)$filter.cl)} selected{/if} class="c{$i}">{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if $filter.glyphPanel}
|
||||
<div class="rightpanel2">
|
||||
<div style="float: left">{$lang.glyphType|ucfirst}{$lang.colon}</div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['gl[]'].selectedIndex = -1; return false" onmousedown="return false">{$lang.clear}</a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="gl[]" size="2" multiple="multiple" class="rightselect" style="width: 8em">
|
||||
{foreach from=$lang.gl key=i item=str}{if $str}
|
||||
<option value="{$i}"{if isset($filter.gl) && in_array($i, (array)$filter.gl)} selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$lang.name|ucFirst}{$lang.colon}</td>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td> <input type="text" name="na" size="30" {if isset($filter.na)}value="{$filter.na|escape:'html'}" {/if}/></td>
|
||||
<td> <input type="checkbox" name="ex" value="on" id="spell-ex" {if isset($filter.ex)}checked="checked" {/if}/></td>
|
||||
<td><label for="spell-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_extendedspellsearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()">{$lang.extSearch}</span></label></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.level}{$lang.colon}</td>
|
||||
<td class="padded"> <input type="text" name="minle" maxlength="2" class="smalltextbox" {if isset($filter.minle)}value="{$filter.minle}" {/if}/> - <input type="text" name="maxle" maxlength="2" class="smalltextbox" {if isset($filter.maxle)}value="{$filter.maxle}" {/if}/></td>
|
||||
<td class="padded">
|
||||
<table cellpadding="0" cellspacing="0" border="0"><tr>
|
||||
<td> {$lang.reqSkillLevel}{$lang.colon}</td>
|
||||
<td> <input type="text" name="minrs" maxlength="3" class="smalltextbox2" {if isset($filter.minrs)}value="{$filter.minrs}" {/if}/> - <input type="text" name="maxrs" maxlength="3" class="smalltextbox2" {if isset($filter.maxrs)}value="{$filter.maxrs}" {/if}/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.race|ucfirst}{$lang.colon}</td>
|
||||
<td class="padded"> <select name="ra">
|
||||
<option></option>
|
||||
{foreach from=$lang.ra key=i item=str}{if $str}{if $i > 0}
|
||||
<option value="{$i}"{if isset($filter.ra) && $filter.ra == $i} selected{/if}>{$str}</option>
|
||||
{/if}{/if}{/foreach}
|
||||
</select></td>
|
||||
<td class="padded"></td>
|
||||
</tr><tr>
|
||||
<td class="padded">{$lang.mechAbbr}{$lang.colon}</td>
|
||||
<td class="padded"> <select name="me">
|
||||
<option></option>
|
||||
{foreach from=$lang.me key=i item=str}{if $str}
|
||||
<option value="{$i}"{if isset($filter.me) && $filter.me == $i} selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select></td>
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0" border="0"><tr>
|
||||
<td> {$lang.dispelType}{$lang.colon}</td>
|
||||
<td> <select name="dt">
|
||||
<option></option>
|
||||
{foreach from=$lang.dt key=i item=str}{if $str}
|
||||
<option value="{$i}"{if isset($filter.dt) && $filter.dt == $i} selected{/if}>{$str}</option>
|
||||
{/if}{/foreach}
|
||||
</select></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="fi_criteria" class="padded criteria"><div></div></div>
|
||||
<div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false">{$lang.addFilter}</a></div>
|
||||
|
||||
<div class="padded2">
|
||||
<div style="float: right">{$lang.refineSearch}</div>
|
||||
{$lang.match}{$lang.colon}<input type="radio" name="ma" value="" id="ma-0" {if !isset($filter.ma)}checked="checked" {/if}/><label for="ma-0">{$lang.allFilter}</label><input type="radio" name="ma" value="1" id="ma-1" {if isset($filter.ma)}checked="checked" {/if}/><label for="ma-1">{$lang.oneFilter}</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="padded">
|
||||
<input type="submit" value="{$lang.applyFilter}" />
|
||||
<input type="reset" value="{$lang.resetForm}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
fi_init('spells');
|
||||
{foreach from=$filter.fi item=str}
|
||||
{$str}
|
||||
{/foreach}
|
||||
//]]></script>
|
||||
|
||||
<div id="lv-generic" class="listview"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
{include file='listviews/spell.tpl' data=$lvData.data params=$lvData.params}
|
||||
//]]></script>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
{include file='footer.tpl'}
|
||||
24
template/pages/talent.tpl
Normal file
24
template/pages/talent.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
{if !empty($announcements)}
|
||||
{foreach from=$announcements item=item}
|
||||
{include file='bricks/announcement.tpl' an=$item}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<div id="{$tcType}-classes">
|
||||
<div id="{$tcType}-classes-outer">
|
||||
<div id="{$tcType}-classes-inner"><p>{if $tcType == 'tc'}{$lang.chooseClass}{else}{$lang.chooseFamily}{/if}{$lang.colon}</p></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="{$tcType}-itself"></div>
|
||||
<script type="text/javascript">
|
||||
{$tcType}_init();
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
50
template/pages/text-page-generic.tpl.php
Normal file
50
template/pages/text-page-generic.tpl.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php $this->brick('header'); ?>
|
||||
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
||||
<?php
|
||||
$this->brick('announcements');
|
||||
|
||||
if (isset($this->subject)):
|
||||
?>
|
||||
<div class="pad3"></div>
|
||||
|
||||
<div class="inputbox">
|
||||
<h1><?php echo Util::ucFirst($this->subject).' #'.$this->typeId; ?></h1>
|
||||
<div id="inputbox-error"><?php echo sprintf(Lang::$main['pageNotFound'], $this->subject); ?></div>
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var g_pageInfo = <?php echo json_encode($this->gPageInfo, JSON_NUMERIC_CHECK); ?>;
|
||||
<?php echo isset($this->path) ? 'g_initPath('.json_encode($this->path, JSON_NUMERIC_CHECK).');' : null; ?>
|
||||
//]]></script>
|
||||
|
||||
<div class="text">
|
||||
<h1><?php echo $this->name; ?></h1>
|
||||
|
||||
<?php
|
||||
$this->brick('article');
|
||||
|
||||
if (isset($this->extraText)):
|
||||
?>
|
||||
<div id="text-generic" class="left"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
Markup.printHtml("<?php echo Util::jsEscape($extraText); ?>", "text-generic", {
|
||||
allow: Markup.CLASS_ADMIN,
|
||||
dbpage: true
|
||||
});
|
||||
//]]></script>
|
||||
|
||||
<div class="pad2"></div>
|
||||
<?php
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
<?php $this->brick('footer'); ?>
|
||||
89
template/pages/zone.tpl
Normal file
89
template/pages/zone.tpl
Normal file
@@ -0,0 +1,89 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
|
||||
<script type="text/javascript">
|
||||
{include file='bricks/community.tpl'}
|
||||
var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeId}, name: '{$zone.name|escape:"quotes"}'{rdelim};
|
||||
g_initPath({$page.path});
|
||||
</script>
|
||||
|
||||
<div class="text">
|
||||
|
||||
<a href="{$wowhead}" class="button-red"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>
|
||||
<h1>{$zone.name}</h1>
|
||||
|
||||
{include file='bricks/article.tpl'}
|
||||
|
||||
{if $zone.position}
|
||||
<div>
|
||||
{strip}
|
||||
<span id="locations">
|
||||
{foreach from=$zone.position item=zoneitem name=zoneitem}
|
||||
<a href="javascript:;" onclick="
|
||||
myMapper.update(
|
||||
{ldelim}
|
||||
{if $zoneitem.atid}
|
||||
zone:{$zoneitem.atid}
|
||||
{if isset($zoneitem.points)}
|
||||
,
|
||||
{/if}
|
||||
{else}
|
||||
show:false
|
||||
{/if}
|
||||
{if isset($zoneitem.points)}
|
||||
coords:[
|
||||
{foreach from=$zoneitem.points item=point name=point}
|
||||
[{$point.x},{$point.y},
|
||||
{ldelim}
|
||||
label:'{if isset($point.name)}{$point.name|escape:"html"|escape:"html"}{else}${/if}<br>
|
||||
{if isset($point.r.h) or isset($point.r.m) or isset($point.r.s) or isset($point.events)}
|
||||
<div class=q0>
|
||||
<small>{$lang.respawn}:
|
||||
{if isset($point.r.h)} {$point.r.h}{$lang.abbrHour}{/if}
|
||||
{if isset($point.r.m)} {$point.r.m}{$lang.abbrMinute}{/if}
|
||||
{if isset($point.r.s)} {$point.r.s}{$lang.abbrSecond}{/if}
|
||||
{if isset($point.events)}<br>{$point.events|escape:"quotes"}{/if}
|
||||
</small>
|
||||
</div>
|
||||
{/if}',
|
||||
{if isset($point.url)}url:'{$point.url|escape:"quotes"}',{/if}
|
||||
type:'{$point.type}'
|
||||
{rdelim}]
|
||||
{if !$smarty.foreach.point.last},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
{/if}
|
||||
{rdelim});
|
||||
g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
|
||||
{$zoneitem.name}</a>{if $zoneitem.population > 1} ({$zoneitem.population}){/if}{if $smarty.foreach.zoneitem.last}{else}, {/if}
|
||||
{/foreach}
|
||||
</span></div>
|
||||
{/strip}
|
||||
<div id="mapper-generic"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var myMapper = new Mapper({ldelim}parent: 'mapper-generic', zone: '{$zone.position[0].atid}'{rdelim});
|
||||
$WH.gE($WH.ge('locations'), 'a')[0].onclick();
|
||||
</script>
|
||||
{/if}
|
||||
{if isset($zone.parentname) and isset($zone.parent)}
|
||||
<div class="pad"></div>
|
||||
<div>{$lang.zonePartOf} <a href="?zone={$zone.parent}">{$zone.parentname}</a>.</div>
|
||||
{/if}
|
||||
<h2>{$lang.related}</h2>
|
||||
</div>
|
||||
|
||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData.relTabs}
|
||||
|
||||
{include file='bricks/contribute.tpl'}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='footer.tpl'}
|
||||
Reference in New Issue
Block a user