more fixes

This commit is contained in:
Ulf Gebhardt 2017-01-12 21:18:07 +01:00
parent 9b00c6e1c5
commit b0113e1d78
18 changed files with 15 additions and 52 deletions

View File

@ -44,8 +44,8 @@ if (!$item = load_cache(5, $id)) {
$rows = $DB->select('
SELECT c.?#, c.entry
{
, l.name_loc?d as `name_loc`
, l.subname_loc' . $_SESSION['locale'] . ' as `subname_loc`
, l.name?d as `name`
, l.subname' . ' as `subname`
}
FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factiontemplate, ?_creature_template c
{ LEFT JOIN (?_locales_creature l) ON l.entry=c.entry AND ? }

View File

@ -83,7 +83,7 @@ if (!$npc = load_cache(1, intval($id))) {
$npc['faction_num'] = $row['factionID'];
$npc['faction'] = $row['faction-name'];
// Деньги
$money = ($row['mingold'] + $row['maxgold']) / 2;
$money = ($row['MinLootGold'] + $row['MaxLootGold']) / 2;
$npc['moneygold'] = floor($money / 10000);
$npc['moneysilver'] = floor(($money - ($npc['moneygold'] * 10000)) / 100);
$npc['moneycopper'] = floor($money - ($npc['moneygold'] * 10000) - ($npc['moneysilver'] * 100));

View File

@ -161,7 +161,7 @@ foreach ($rows as $numRow => $row)
$rows = $DB->select('
SELECT *
FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_itemset
WHERE name_loc' . $_SESSION['locale'] . ' LIKE ?
WHERE name' . ' LIKE ?
', $nsearch
);
foreach ($rows as $numRow => $row)
@ -172,7 +172,7 @@ $rows = $DB->select('
SELECT ?#, spellID
FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_spell s, '.$UDWBaseconf['aowow']['db'].'.?_aowow_spellicons i
WHERE
s.spellname_loc' . $_SESSION['locale'] . ' like ?
s.spellname' . ' like ?
AND i.id = s.spellicon
', $spell_cols[2], $nsearch
);

View File

@ -43,8 +43,6 @@ new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comment
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
</div>
</div>
</div>

View File

@ -25,16 +25,6 @@
</div>
</div>
<div id="toplinks" class="toplinks">
{if isset($user)}
<a href="?user={$user.name}">{$user.name}</a>|<a href="?account=signout{if $query}&amp;next={$query|escape}{/if}">{#Sign_out#}</a>
{else}
<a href="?account=signin{if $query}&amp;next={$query|escape}{/if}">{#Sign_in#}</a>
<a href="?account=signup{if $query}&amp;next={$query|escape}{/if}">{#Signup#}</a>
{/if}
|<a href="javascript:;" id="language-changer">{#Language#} <small>&#9660;</small></a>
</div>
<div id="wrapper">
<div id="toptabs">
<div id="toptabs-inner">

View File

@ -93,7 +93,6 @@ new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comment
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
</div>
</div>

View File

@ -62,8 +62,6 @@ new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comment
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
</div>
</div>
</div>

View File

@ -6,7 +6,7 @@ var mn_quests = [[0, "Eastern Kingdoms", , [[36, "Alterac Mountains"], [45, "Ara
var mn_spells = [[7, "Class Skills", , [[11, "Druid", , [[574, "Balance"], [134, "Feral Combat"], [573, "Restoration"]]], [3, "Hunter", , [[50, "Beast Mastery"], [163, "Marksmanship"], [51, "Survival"]]], [8, "Mage", , [[237, "Arcane"], [8, "Fire"], [6, "Frost"]]], [2, "Paladin", , [[594, "Holy"], [267, "Protection"], [184, "Retribution"]]], [5, "Priest", , [[613, "Discipline"], [56, "Holy"], [78, "Shadow Magic"]]], [4, "Rogue", , [[253, "Assassination"], [38, "Combat"], [633, "Lockpicking"], [40, "Poisons"], [39, "Subtlety"]]], [7, "Shaman", , [[375, "Elemental Combat"], [373, "Enhancement"], [374, "Restoration"]]], [9, "Warlock", , [[355, "Affliction"], [354, "Demonology"], [593, "Destruction"]]], [1, "Warrior", , [[26, "Arms"], [256, "Fury"], [257, "Protection"]]]]], /*[ - 2, "Talents", , [[11, "Druid", , [[574, "Balance"], [134, "Feral Combat"], [573, "Restoration"]]], [3, "Hunter", , [[50, "Beast Mastery"], [163, "Marksmanship"], [51, "Survival"]]], [8, "Mage", , [[237, "Arcane"], [8, "Fire"], [6, "Frost"]]], [2, "Paladin", , [[594, "Holy"], [267, "Protection"], [184, "Retribution"]]], [5, "Priest", , [[613, "Discipline"], [56, "Holy"], [78, "Shadow"]]], [4, "Rogue", , [[253, "Assassination"], [38, "Combat"], [39, "Subtlety"]]], [7, "Shaman", , [[375, "Elemental Combat"], [373, "Enhancement"], [374, "Restoration"]]], [9, "Warlock", , [[355, "Affliction"], [354, "Demonology"], [593, "Destruction"]]], [1, "Warrior", , [[26, "Arms"], [256, "Fury"], [257, "Protection"]]]]],*/ [ - 3, "Pet Skills", , [[, "Hunter"], [270, "Generic"], [653, "Bat"], [210, "Bear"], [211, "Boar"], [213, "Carrion Bird"], [209, "Cat"], [214, "Crab"], [212, "Crocolisk"], [763, "Dragonhawk"], [215, "Gorilla"], [654, "Hyena"], [764, "Nether Ray"], [655, "Owl"], [217, "Raptor"], [767, "Ravager"], [236, "Scorpid"], [768, "Serpent"], [203, "Spider"], [218, "Tallstrider"], [251, "Turtle"], [766, "Warp Stalker"], [656, "Wind Serpent"], [208, "Wolf"], [, "Warlock"], [761, "Felguard"], [189, "Felhunter"], [188, "Imp"], [205, "Succubus"], [204, "Voidwalker"]]], [11, "Professions", , [[171, "Alchemy"], [164, "Blacksmithing", , [[9788, "Armorsmithing"], [9787, "Weaponsmithing"], [17041, "Master Axesmithing"], [17040, "Master Hammersmithing"], [17039, "Master Swordsmithing"]]], [333, "Enchanting"], [202, "Engineering", , [[20219, "Gnomish Engineering"], [20222, "Goblin Engineering"]]], [182, "Herbalism"], [755, "Jewelcrafting"], [165, "Leatherworking", , [[10656, "Dragonscale Leatherworking"], [10658, "Elemental Leatherworking"], [10660, "Tribal Leatherworking"]]], [186, "Mining"], [393, "Skinning"], [197, "Tailoring", , [[26798, "Mooncloth Tailoring"], [26801, "Shadoweave Tailoring"], [26797, "Spellfire Tailoring"]]]]], [9, "Secondary Skills", , [[185, "Cooking"], [129, "First Aid"], [356, "Fishing"], [762, "Riding"]]], [6, "Weapon Skills"], [8, "Armor Proficiencies"], [10, "Languages"], [ - 4, "Racial Traits"], [0, "Uncategorized"]];
var mn_zones = [[0, "Eastern Kingdoms"], [1, "Kalimdor"], [8, "Outland"], [2, "Dungeons"], [3, "Raids"], [6, "Battlegrounds"], [9, "Arenas"]];
var mn_talentCalc = [["0", "Druid"], ["c", "Hunter"], ["o", "Mage"], ["s", "Paladin"], ["b", "Priest"], ["f", "Rogue"], ["h", "Shaman"], ["I", "Warlock"], ["L", "Warrior"]];
var mn_database = [[, "Browse"], [0, "Items", "?items", mn_items], [2, "Item Sets", "?itemsets"/*, mn_itemSets*/], [4, "NPCs", "?npcs", mn_npcs], [5, "Objects", "?objects", mn_objects], [3, "Quests", "?quests", mn_quests], [1, "Spells", "?spells", mn_spells], /*[6, "Zones", "?zones", mn_zones],*/ [7, "Factions", "?factions"], [, "Utilities"], /*[28, "Latest Additions", "?latest=additions"], [29, "Latest Articles", "?latest=articles"],*/ [30, "Latest Comments", "?latest=comments"]/*, [31, "Latest Screenshots", "?latest=screenshots"], [99, "Random Page", "?random"]*/];
var mn_database = [[0, "Items", "?items", mn_items], [2, "Item Sets", "?itemsets"/*, mn_itemSets*/], [4, "NPCs", "?npcs", mn_npcs], [5, "Objects", "?objects", mn_objects], [3, "Quests", "?quests", mn_quests], [1, "Spells", "?spells", mn_spells], /*[6, "Zones", "?zones", mn_zones],*/ [7, "Factions", "?factions"], ];
var mn_tools = [/*[0, "Talent Calculator", "?talent", mn_talentCalc],*/ [1, "Maps", "?maps"]];
var mn_forums = [[, "Boards"], [0, "WoW General"], [16, "Beginners"], [14, "PvE"], [15, "PvP"], [ - 2, "Classes", "", [[18, "Death Knight"], [3, "Druid"], [4, "Hunter"], [6, "Mage"], [7, "Paladin"], [8, "Priest"], [5, "Rogue"], [9, "Shaman"], [10, "Warlock"], [11, "Warrior"]]], [13, "Professions"], [12, "UI & Macros"], [17, "Guild Recruitment"], [2, "Randomness"], [1, "Site Feedback"], [, "Utilities"], [81, "Latest Replies", "?forums&latest-replies"], [80, "Latest Topics", "?forums&latest-topics"], [82, "Unanswered Topics", "?forums&unanswered-topics"]];
var mn_more = [[, "All About Wowhead"], [0, "About Us & Contact", "?aboutus"], [3, "FAQ", "?faq"], [4, "IRC Channel", "?irc"], [6, "News & Announcements", "?news"], [7, "Under Development", "?underdev"], [2, "Wowhead Client", "?client"], [, "Goodies"], [1, "Contests", "?contests"], [10, "Powered by Wowhead", "?powered"], [9, "Spread Wowhead", "?spread"], [8, "Search Plugins (FF, IE7, ...)", "?searchplugins", , "Search Plugins"], [, "Even More"], [5, "Network Sites", , [[99, "Allakhazam", "http://www.allakhazam.com/", [[99, "Dark Age of Camelot", "http://camelot.allakhazam.com"], [99, "EVE Online", "http://eve.allakhazam.com"], [99, "EverQuest", "http://everquest.allakhazam.com"], [99, "EverQuest II", "http://eq2.allakhazam.com"], [99, "EverQuest Online Adventures", "http://eqoa.allakhazam.com"], [99, "Final Fantasy XI", "http://ffxi.allakhazam.com"], [99, "Lineage II", "http://l2.allakhazam.com"], [99, "Lord of the Rings Online", "http://lotr.allakhazam.com"], [99, "Star Wars Galaxies", "http://swg.allakhazam.com"], [99, "World of Warcraft", "http://wow.allakhazam.com"]]], [99, "MMO Interface", "http://www.mmointerface.com/", [[99, "EverQuest", "http://www.eqinterface.com"], [99, "EverQuest II", "http://www.eq2interface.com"], [99, "Lord of the Rings Online", "http://www.lotrointerface.com"], [99, "Vanguard: Saga of Heroes", "http://www.vginterface.com"], [99, "World of Warcraft", "http://www.wowinterface.com"]]], [99, "Online Gaming Radio", "http://www.onlinegamingradio.com/"], [99, "Thottbot", "http://www.thottbot.com/"]]]];

View File

@ -25,10 +25,6 @@
</script>
<div class="pad"></div>
<div id="toplinks" class="toplinks">
{if $user}<a href="?user={$user.name}">{$user.name}</a>|<a href="?account=signout">{#Sign_out#}</a>{else}<a href="?account=signin">{#Sign_in#}</a>{/if}|<a href="javascript:;" id="language-changer">{#Language#} <small>&#9660;</small></a>
</div>
<script type="text/javascript">g_initLanguageChanger()</script>
<div class="pad"></div>
@ -37,18 +33,6 @@
<input type="text" name="search" size="38" id="search-generic" /><input type="submit" value="{#search#}" />
</form>
{if $news}
<div class="news">
<div class="news-list text">
<ul>
{foreach from=$news item=item}
<li><div>{$item.text}</div></li>
{/foreach}
</ul>
</div>
</div>
{/if}
<script type="text/javascript">
var _ = ge('search-generic');
LiveSearch.attach(_);

View File

@ -19,9 +19,9 @@
<li><div>{#Classification#}: {$npc.rank}</div></li>
<li><div>{#React#}: <span class="q{if $npc.A==-1}7{elseif $npc.A==1}2{else}{/if}">A</span> <span class="q{if $npc.H==-1}7{elseif $npc.H==1}2{else}{/if}">H</span></div></li>
<li><div>{#Faction#}: <a href="?faction={$npc.faction_num}">{$npc.faction}</a></div></li>
<li><div>{#Health#}: {if $npc.minlevelhealth<>$npc.maxlevelhealth}{$npc.minlevelhealth} - {/if}{$npc.maxlevelhealth}</div></li>
{if ($npc.minlevelmana or $npc.maxlevelmana)}
<li><div>{#Mana#}: {if $npc.minlevelmana<>$npc.maxlevelmana}{$npc.minlevelmana} - {/if}{$npc.maxlevelmana}</div></li>
<li><div>{#Health#}: {if $npc.MinLevelHealth<>$npc.MaxLevelHealth}{$npc.MinLevelHealth} - {/if}{$npc.MaxLevelHealth}</div></li>
{if ($npc.MinLevelMana or $npc.MaxLevelMana)}
<li><div>{#Mana#}: {if $npc.MinLevelMana<>$npc.MaxLevelMana}{$npc.MinLevelMana} - {/if}{$npc.MaxLevelMana}</div></li>
{/if}
{if ($npc.moneysilver>0) or ($npc.moneygold>0) or ($npc.moneycopper>0)}
<li><div>{#Wealth#}:{if ($npc.moneygold>0)}
@ -32,11 +32,11 @@
<span class="moneycopper">{$npc.moneycopper}</span>{/if}
</div></li>
{/if}
{if $npc.minmeeledmg > 0 and $npc.maxmeeledmg > 0}
<li><div>{#Damage#}: {$npc.minmeeledmg} - {$npc.maxmeeledmg}</div></li>
{if $npc.MinMeeleDmg > 0 and $npc.MaxMeeleDmg > 0}
<li><div>{#Damage#}: {$npc.MinMeeleDmg} - {$npc.MaxMeeleDmg}</div></li>
{/if}
{if $npc.minrangeddmg > 0 and $npc.maxrangeddmg > 0}
<li><div>{#Damage#}: {$npc.minrangeddmg} - {$npc.maxrangeddmg}</div></li>
{if $npc.MinRangedDmg > 0 and $npc.MaxRangedDmg > 0}
<li><div>{#Damage#}: {$npc.MinRangedDmg} - {$npc.MaxRangedDmg}</div></li>
{/if}
{if $npc.armor > 0}
<li><div>{#Armor#}: {$npc.armor}</div></li>
@ -87,6 +87,7 @@
{/foreach}
</span>
{/strip}
<br>
<div id="mapper-generic"></div>
<div class="clear"></div>
<script type="text/javascript">
@ -122,8 +123,6 @@ new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comment
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
<div class="clear"></div>
</div>
</div>

View File

@ -108,8 +108,6 @@ new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comment
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
</div>
</div>
</div>

View File

@ -435,8 +435,6 @@
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
</div>
</div>
</div>

View File

@ -207,10 +207,9 @@ var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
{if isset($spell.usedbyitem)}{include file='bricks/item_table.tpl' id='used-by-item' tabsid='tabsRelated' data=$spell.usedbyitem name='usedby' }{/if}
{if isset($spell.usedbyitemset)}{include file='bricks/itemset_table.tpl' id='itemsets' tabsid='tabsRelated' data=$spell.usedbyitemset name='usedby' }{/if}
{if isset($spell.seealso)}{include file='bricks/spell_table.tpl' id='see-also-ability' tabsid='tabsRelated' data=$spell.seealso name='seealso' }{/if}
new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
//new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
tabsRelated.flush();
</script>
{include file='bricks/contribute.tpl'}
<div class="clear"></div>
</div>
</div>