Changeset 439 for aowow


Ignore:
Timestamp:
Apr 9, 2010, 12:04:59 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Odkazy z AoWoW na vyhledání textů.
Location:
aowow/templates/wowhead
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • aowow/templates/wowhead/item.tpl

    r355 r439  
    11{include file='header.tpl'}
    22
    3                 <div id="main">
     3    <div id="main">
    44
    5                         <div id="main-precontents"></div>
    6                         <div id="main-contents" class="main-contents">
     5      <div id="main-precontents"></div>
     6      <div id="main-contents" class="main-contents">
    77
    8                                 <script type="text/javascript">
    9                                         {include file='bricks/allcomments.tpl'}
    10                                         var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeid}, name: '{$item.name|escape:"quotes"}'{rdelim};
    11                                         g_initPath({$page.path});
    12                                 </script>
     8        <script type="text/javascript">
     9          {include file='bricks/allcomments.tpl'}
     10          var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeid}, name: '{$item.name|escape:"quotes"}'{rdelim};
     11          g_initPath({$page.path});
     12        </script>
    1313
    14                                 <table class="infobox">
    15                                         <tr><th>{#Quick_Facts#}</th></tr>
    16                                         <tr><td>
    17                                                 <div class="infobox-spacer"></div>
    18                                                 <ul>
    19                                                         {* Уровень вещи *}
    20                                                         {if $item.level}<li><div>{#level#}: {$item.level}</div></li>{/if}
    21                                                         {* Стоимость вещи *}
    22                                                         {if $item.buygold or $item.buysilver or $item.buycopper}
    23                                                                 <li><div>
    24                                                                         {#Buy_for#}:
    25                                                                         {if $item.buygold}<span class="moneygold">{$item.buygold}</span>{/if}
    26                                                                         {if $item.buysilver}<span class="moneysilver">{$item.buysilver}</span>{/if}
    27                                                                         {if $item.buycopper}<span class="moneycopper">{$item.buycopper}</span>{/if}
    28                                                                 </div></li>
    29                                                         {/if}
    30                                                         {if $item.sellgold or $item.sellsilver or $item.sellcopper}
    31                                                                 <li><div>
    32                                                                         {#Sells_for#}:
    33                                                                         {if $item.sellgold}<span class="moneygold">{$item.sellgold}</span>{/if}
    34                                                                         {if $item.sellsilver}<span class="moneysilver">{$item.sellsilver}</span>{/if}
    35                                                                         {if $item.sellcopper}<span class="moneycopper">{$item.sellcopper}</span>{/if}
    36                                                                 </div></li>
    37                                                         {/if}
    38                                                         {if isset($item.disenchantskill)}<li><div>{#Disenchantable#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, LANG.tooltip_reqenchanting, 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$item.disenchantskill}</span>)</div></li>{/if}
    39                                                         {if isset($item.key)}<li><div>{#Can_be_placed_in_the_keyring#}</div></li>{/if}
    40                                                 </ul>
    41                                         </td></tr>
    42                                 </table>
     14        <table class="infobox">
     15          <tr><th>{#Quick_Facts#}</th></tr>
     16          <tr><td>
     17            <div class="infobox-spacer"></div>
     18            <ul>
     19              {* Уровень вещи *}
     20              {if $item.level}<li><div>{#level#}: {$item.level}</div></li>{/if}
     21              {* Стоимость вещи *}
     22              {if $item.buygold or $item.buysilver or $item.buycopper}
     23                <li><div>
     24                  {#Buy_for#}:
     25                  {if $item.buygold}<span class="moneygold">{$item.buygold}</span>{/if}
     26                  {if $item.buysilver}<span class="moneysilver">{$item.buysilver}</span>{/if}
     27                  {if $item.buycopper}<span class="moneycopper">{$item.buycopper}</span>{/if}
     28                </div></li>
     29              {/if}
     30              {if $item.sellgold or $item.sellsilver or $item.sellcopper}
     31                <li><div>
     32                  {#Sells_for#}:
     33                  {if $item.sellgold}<span class="moneygold">{$item.sellgold}</span>{/if}
     34                  {if $item.sellsilver}<span class="moneysilver">{$item.sellsilver}</span>{/if}
     35                  {if $item.sellcopper}<span class="moneycopper">{$item.sellcopper}</span>{/if}
     36                </div></li>
     37              {/if}
     38              {if isset($item.disenchantskill)}<li><div>{#Disenchantable#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, LANG.tooltip_reqenchanting, 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$item.disenchantskill}</span>)</div></li>{/if}
     39              {if isset($item.key)}<li><div>{#Can_be_placed_in_the_keyring#}</div></li>{/if}
     40            </ul>
     41          </td></tr>
     42        </table>
    4343
    44                                 <div class="text">
     44        <div class="text">
    4545
    46                                         <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=4&amp;action=searchentry&amp;ID={$item.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
    47                                         <a href="http://www.wowhead.com/?{$query}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
    48                                         <h1>{$item.name}</h1>
     46          <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=4&amp;state=0&amp;text=&amp;entry={$item.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
     47          <a href="http://www.wowhead.com/?{$query}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
     48          <h1>{$item.name}</h1>
    4949
    50                                         <div id="icon{$item.entry}-generic" style="float: left"></div>
    51                                         <div id="tooltip{$item.entry}-generic" class="tooltip" style="float: left; padding-top: 1px">
    52                                         <table><tr><td>{$item.info}</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>
    53                                         </div>
     50          <div id="icon{$item.entry}-generic" style="float: left"></div>
     51          <div id="tooltip{$item.entry}-generic" class="tooltip" style="float: left; padding-top: 1px">
     52          <table><tr><td>{$item.info}</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>
     53          </div>
    5454
    55                                         <div style="clear: left"></div>
     55          <div style="clear: left"></div>
    5656
    57                                         <script type="text/javascript">
    58                                                 ge('icon{$item.entry}-generic').appendChild(Icon.create('{$item.iconname}', 2, 0, 0, {$item.stackable}));
    59                                                 Tooltip.fix(ge('tooltip{$item.entry}-generic'), 1, 1);
    60                                         </script>
     57          <script type="text/javascript">
     58            ge('icon{$item.entry}-generic').appendChild(Icon.create('{$item.iconname}', 2, 0, 0, {$item.stackable}));
     59            Tooltip.fix(ge('tooltip{$item.entry}-generic'), 1, 1);
     60          </script>
    6161
    62                                         <h2>{#Related#}</h2>
     62          <h2>{#Related#}</h2>
    6363
    64                                 </div>
     64        </div>
    6565
    66                                 <div id="tabs-generic"></div>
    67                                 <div id="listview-generic" class="listview"></div>
     66        <div id="tabs-generic"></div>
     67        <div id="listview-generic" class="listview"></div>
    6868<script type="text/javascript">
    69 {if isset($allitems)}{include   file='bricks/allitems_table.tpl'        data=$allitems}{/if}
    70 {if isset($allspells)}{include  file='bricks/allspells_table.tpl'       data=$allspells}{/if}
     69{if isset($allitems)}{include file='bricks/allitems_table.tpl'  data=$allitems}{/if}
     70{if isset($allspells)}{include  file='bricks/allspells_table.tpl' data=$allspells}{/if}
    7171var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
    72 {if isset($item.unlocks)}{include                               file='bricks/object_table.tpl'                  id='unlocks'                            tabsid='tabsRelated' data=$item.unlocks                         name='unlocks'                  }{/if}
    73 {if isset($item.fishedin)}{include                              file='bricks/zone_table.tpl'                    id='fished-in'                          tabsid='tabsRelated' data=$item.fishedin                        name='fishedin'                 }{/if}
    74 {if isset($item.droppedby)}{include                             file='bricks/creature_table.tpl'                id='dropped-by'                         tabsid='tabsRelated' data=$item.droppedby                       name='droppedby'                }{/if}
    75 {if isset($item.soldby)}{include                                file='bricks/creature_table.tpl'                id='sold-by'                            tabsid='tabsRelated' data=$item.soldby                          name='soldby'                   }{/if}
    76 {if isset($item.teaches)}{include                               file='bricks/spell_table.tpl'                   id='teaches-recipe'                     tabsid='tabsRelated' data=$item.teaches                         name='teaches'                  }{/if}
    77 {if isset($item.containedinobject)}{include             file='bricks/object_table.tpl'                  id='contained-in-object'        tabsid='tabsRelated' data=$item.containedinobject       name='containedin'              }{/if}
    78 {if isset($item.minedfromobject)}{include               file='bricks/object_table.tpl'                  id='mined-from-object'          tabsid='tabsRelated' data=$item.minedfromobject         name='minedfrom'                }{/if}
    79 {if isset($item.gatheredfromobject)}{include    file='bricks/object_table.tpl'                  id='gathered-from-object'       tabsid='tabsRelated' data=$item.gatheredfromobject      name='gatheredfrom'             }{/if}
    80 {if isset($item.containedinitem)}{include               file='bricks/item_table.tpl'                    id='contained-in-item'          tabsid='tabsRelated' data=$item.containedinitem         name='containedin'              }{/if}
    81 {if isset($item.contains)}{include                              file='bricks/item_table.tpl'                    id='contains'                           tabsid='tabsRelated' data=$item.contains                        name='contains'                 }{/if}
    82 {if isset($item.pickpocketingloot)}{include             file='bricks/creature_table.tpl'                id='pick-pocketed-from'         tabsid='tabsRelated' data=$item.pickpocketingloot       name='pickpocketedfrom' }{/if}
    83 {if isset($item.skinnedfrom)}{include                   file='bricks/creature_table.tpl'                id='skinned-from'                       tabsid='tabsRelated' data=$item.skinnedfrom                     name='skinnedfrom'              }{/if}
    84 {if isset($item.prospectingloot)}{include               file='bricks/item_table.tpl'                    id='prospected-from'            tabsid='tabsRelated' data=$item.prospectingloot         name='prospectedfrom'   }{/if}
    85 {if isset($item.canbeplacedin)}{include                 file='bricks/item_table.tpl'                    id='can-be-placed-in'           tabsid='tabsRelated' data=$item.canbeplacedin           name='canbeplacedin'    }{/if}
    86 {if isset($item.objectiveof)}{include                   file='bricks/quest_table.tpl'                   id='objective-of'                       tabsid='tabsRelated' data=$item.objectiveof                     name='objectiveof'              }{/if}
    87 {if isset($item.starts)}{include                                file='bricks/quest_table.tpl'                   id='starts'                                     tabsid='tabsRelated' data=$item.starts                          name='starts'                   }{/if}
    88 {if isset($item.rewardof)}{include                              file='bricks/quest_table.tpl'                   id='reward-of'                          tabsid='tabsRelated' data=$item.rewardof                        name='rewardfrom'               }{/if}
    89 {if isset($item.reagentfor)}{include                    file='bricks/spell_table.tpl'                   id='reagent-for'                        tabsid='tabsRelated' data=$item.reagentfor                      name='reagentfor'               }{/if}
    90 {if isset($item.createdfrom)}{include                   file='bricks/spell_table.tpl'                   id='created-by'                         tabsid='tabsRelated' data=$item.createdfrom                     name='createdby'                }{/if}
    91 {if isset($item.disenchanting)}{include                 file='bricks/item_table.tpl'                    id='disenchanting'                      tabsid='tabsRelated' data=$item.disenchanting           name='disenchanting'    }{/if}
    92 {if isset($item.disenchantedfrom)}{include              file='bricks/item_table.tpl'                    id='disenchanting'                      tabsid='tabsRelated' data=$item.disenchantedfrom        name='disenchantedfrom' }{/if}
     72{if isset($item.unlocks)}{include       file='bricks/object_table.tpl'      id='unlocks'        tabsid='tabsRelated' data=$item.unlocks       name='unlocks'      }{/if}
     73{if isset($item.fishedin)}{include        file='bricks/zone_table.tpl'      id='fished-in'        tabsid='tabsRelated' data=$item.fishedin      name='fishedin'     }{/if}
     74{if isset($item.droppedby)}{include       file='bricks/creature_table.tpl'    id='dropped-by'       tabsid='tabsRelated' data=$item.droppedby     name='droppedby'    }{/if}
     75{if isset($item.soldby)}{include        file='bricks/creature_table.tpl'    id='sold-by'        tabsid='tabsRelated' data=$item.soldby        name='soldby'     }{/if}
     76{if isset($item.teaches)}{include       file='bricks/spell_table.tpl'     id='teaches-recipe'     tabsid='tabsRelated' data=$item.teaches       name='teaches'      }{/if}
     77{if isset($item.containedinobject)}{include   file='bricks/object_table.tpl'      id='contained-in-object'  tabsid='tabsRelated' data=$item.containedinobject name='containedin'    }{/if}
     78{if isset($item.minedfromobject)}{include   file='bricks/object_table.tpl'      id='mined-from-object'    tabsid='tabsRelated' data=$item.minedfromobject   name='minedfrom'    }{/if}
     79{if isset($item.gatheredfromobject)}{include  file='bricks/object_table.tpl'      id='gathered-from-object' tabsid='tabsRelated' data=$item.gatheredfromobject  name='gatheredfrom'   }{/if}
     80{if isset($item.containedinitem)}{include   file='bricks/item_table.tpl'      id='contained-in-item'    tabsid='tabsRelated' data=$item.containedinitem   name='containedin'    }{/if}
     81{if isset($item.contains)}{include        file='bricks/item_table.tpl'      id='contains'       tabsid='tabsRelated' data=$item.contains      name='contains'     }{/if}
     82{if isset($item.pickpocketingloot)}{include   file='bricks/creature_table.tpl'    id='pick-pocketed-from'   tabsid='tabsRelated' data=$item.pickpocketingloot name='pickpocketedfrom' }{/if}
     83{if isset($item.skinnedfrom)}{include     file='bricks/creature_table.tpl'    id='skinned-from'     tabsid='tabsRelated' data=$item.skinnedfrom     name='skinnedfrom'    }{/if}
     84{if isset($item.prospectingloot)}{include   file='bricks/item_table.tpl'      id='prospected-from'    tabsid='tabsRelated' data=$item.prospectingloot   name='prospectedfrom' }{/if}
     85{if isset($item.canbeplacedin)}{include     file='bricks/item_table.tpl'      id='can-be-placed-in'   tabsid='tabsRelated' data=$item.canbeplacedin   name='canbeplacedin'  }{/if}
     86{if isset($item.objectiveof)}{include     file='bricks/quest_table.tpl'     id='objective-of'     tabsid='tabsRelated' data=$item.objectiveof     name='objectiveof'    }{/if}
     87{if isset($item.starts)}{include        file='bricks/quest_table.tpl'     id='starts'         tabsid='tabsRelated' data=$item.starts        name='starts'     }{/if}
     88{if isset($item.rewardof)}{include        file='bricks/quest_table.tpl'     id='reward-of'        tabsid='tabsRelated' data=$item.rewardof      name='rewardfrom'   }{/if}
     89{if isset($item.reagentfor)}{include      file='bricks/spell_table.tpl'     id='reagent-for'      tabsid='tabsRelated' data=$item.reagentfor      name='reagentfor'   }{/if}
     90{if isset($item.createdfrom)}{include     file='bricks/spell_table.tpl'     id='created-by'       tabsid='tabsRelated' data=$item.createdfrom     name='createdby'    }{/if}
     91{if isset($item.disenchanting)}{include     file='bricks/item_table.tpl'      id='disenchanting'      tabsid='tabsRelated' data=$item.disenchanting   name='disenchanting'  }{/if}
     92{if isset($item.disenchantedfrom)}{include    file='bricks/item_table.tpl'      id='disenchanting'      tabsid='tabsRelated' data=$item.disenchantedfrom  name='disenchantedfrom' }{/if}
    9393new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
    9494tabsRelated.flush();
    9595</script>
    9696
    97                                 {include file='bricks/contribute.tpl'}
    98                         </div>
    99                 </div>
     97        {include file='bricks/contribute.tpl'}
     98      </div>
     99    </div>
    100100
    101101{include file='footer.tpl'}
  • aowow/templates/wowhead/npc.tpl

    r355 r439  
    11{include file='header.tpl'}
    22
    3         <div id="main">
     3  <div id="main">
    44
    5                 <div id="main-precontents"></div>
    6                 <div id="main-contents" class="main-contents">
     5    <div id="main-precontents"></div>
     6    <div id="main-contents" class="main-contents">
    77
    8                         <script type="text/javascript">
    9                                 {include file='bricks/allcomments.tpl'}
    10                                 var g_pageInfo = {ldelim}type: 1, typeId: {$npc.entry}, name: '{$npc.name|escape:"quotes"}'{rdelim};
    11                                 g_initPath([0,4,{$npc.type}]);
    12                         </script>
     8      <script type="text/javascript">
     9        {include file='bricks/allcomments.tpl'}
     10        var g_pageInfo = {ldelim}type: 1, typeId: {$npc.entry}, name: '{$npc.name|escape:"quotes"}'{rdelim};
     11        g_initPath([0,4,{$npc.type}]);
     12      </script>
    1313
    14                         <table class="infobox">
    15                                 <tr><th>{#Quick_Facts#}</th></tr>
    16                                 <tr><td><div class="infobox-spacer"></div>
    17                                         <ul>
    18                                                 <li><div>{#Level#}: {if $npc.minlevel<>$npc.maxlevel}{$npc.minlevel} - {/if}{$npc.maxlevel}</div></li>
    19                                                 <li><div>{#Classification#}: {$npc.rank}</div></li>
    20                                                 <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>
    21                                                 <li><div>{#Faction#}: <a href="?faction={$npc.faction_num}">{$npc.faction}</a></div></li>
    22                                                 <li><div>{#Health#}: {if $npc.minhealth<>$npc.maxhealth}{$npc.minhealth} - {/if}{$npc.maxhealth}</div></li>
     14      <table class="infobox">
     15        <tr><th>{#Quick_Facts#}</th></tr>
     16        <tr><td><div class="infobox-spacer"></div>
     17          <ul>
     18            <li><div>{#Level#}: {if $npc.minlevel<>$npc.maxlevel}{$npc.minlevel} - {/if}{$npc.maxlevel}</div></li>
     19            <li><div>{#Classification#}: {$npc.rank}</div></li>
     20            <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>
     21            <li><div>{#Faction#}: <a href="?faction={$npc.faction_num}">{$npc.faction}</a></div></li>
     22            <li><div>{#Health#}: {if $npc.minhealth<>$npc.maxhealth}{$npc.minhealth} - {/if}{$npc.maxhealth}</div></li>
    2323{if ($npc.minmana or $npc.maxmana)}
    24                                                 <li><div>{#Mana#}: {if $npc.minmana<>$npc.maxmana}{$npc.minmana} - {/if}{$npc.maxmana}</div></li>
     24            <li><div>{#Mana#}: {if $npc.minmana<>$npc.maxmana}{$npc.minmana} - {/if}{$npc.maxmana}</div></li>
    2525{/if}
    2626{if ($npc.moneysilver>0) or ($npc.moneygold>0) or ($npc.moneycopper>0)}
    27                                                 <li><div>{#Wealth#}:{if ($npc.moneygold>0)}
     27            <li><div>{#Wealth#}:{if ($npc.moneygold>0)}
    2828 <span class="moneygold">{$npc.moneygold}</span>{/if}
    2929{if ($npc.moneysilver>0)}
     
    3434{/if}
    3535{if $npc.mindmg > 0 and $npc.maxdmg > 0}
    36                                                 <li><div>{#Damage#}: {$npc.mindmg} - {$npc.maxdmg}</div></li>
     36            <li><div>{#Damage#}: {$npc.mindmg} - {$npc.maxdmg}</div></li>
    3737{/if}
    3838{if $npc.armor > 0}
    39                                                 <li><div>{#Armor#}: {$npc.armor}</div></li>
     39            <li><div>{#Armor#}: {$npc.armor}</div></li>
    4040{/if}
    41                                         </ul>
    42                                 </td></tr>
    43                         </table>
     41          </ul>
     42        </td></tr>
     43      </table>
    4444
    45                         <div class="text">
    46                                 <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=6&amp;action=searchentry&amp;ID={$npc.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
    47                                 <a href="http://www.wowhead.com/?{$query}" target="_blank" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
    48                                 <h1>{$npc.name}{if $npc.subname} &lt;{$npc.subname}&gt;{/if}</h1>
    49                                
     45      <div class="text">
     46        <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=6&amp;state=0&amp;text=&amp;entry={$npc.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
     47        <a href="http://www.wowhead.com/?{$query}" target="_blank" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
     48        <h1>{$npc.name}{if $npc.subname} &lt;{$npc.subname}&gt;{/if}</h1>
     49       
    5050{if $zonedata}
    51                                 {#This_NPC_can_be_found_in#}
     51        {#This_NPC_can_be_found_in#}
    5252{strip}
    53                                 <span id="locations">
    54                                         {foreach from=$zonedata item=zone_c name=zone_f}
    55                                                 <a {if ($exdata[$smarty.foreach.zone_f.index][0].x && $exdata[$smarty.foreach.zone_f.index][0].x)}
    56                                                         href="javascript:;" onclick="
    57                                                                 myMapper.update(
    58                                                                         {ldelim}
    59                                                                                 zone: {$zone_c.zone},
    60                                                                                 coords: [
    61                                                                                         {foreach from=$exdata[$smarty.foreach.zone_f.index] item=exdata_c name=exdata_f}
    62                                                                                                 {if (isset($exdata_c.x) and isset($exdata_c.y))}
    63                                                                                                         [{$exdata_c.x},{$exdata_c.y},
    64                                                                                                         {ldelim}
    65                                                                                                                 label:'$<br>
    66                                                                                                                 <div class=q0>
    67                                                                                                                         <small>{#Respawn#}:
    68                                                                                                                                 {if isset($exdata_c.r.h)} {$exdata_c.r.h}{#hr#}{/if}
    69                                                                                                                                 {if isset($exdata_c.r.m)} {$exdata_c.r.m}{#min#}{/if}
    70                                                                                                                                 {if isset($exdata_c.r.s)} {$exdata_c.r.s}{#sec#}{/if}
    71                                                                                                                         </small>
    72                                                                                                                 </div>',type:'0'
    73                                                                                                         {rdelim}]
    74                                                                                                 {if $smarty.foreach.exdata_f.last}{else},{/if}
    75                                                                                                 {/if}
    76                                                                                         {/foreach}
    77                                                                                 ]
    78                                                                         {rdelim});
    79                                                                 g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
    80                                                 {else}href="?zone={$zone_c.zone}">{/if}{$zone_c.name}</a>
    81                                                 {if $zone_c.count>1}&nbsp;({$zone_c.count}){/if}{if $smarty.foreach.zone_f.last}.{else}, {/if}
    82                                         {/foreach}
    83                                 </span>
     53        <span id="locations">
     54          {foreach from=$zonedata item=zone_c name=zone_f}
     55            <a {if ($exdata[$smarty.foreach.zone_f.index][0].x && $exdata[$smarty.foreach.zone_f.index][0].x)}
     56              href="javascript:;" onclick="
     57                myMapper.update(
     58                  {ldelim}
     59                    zone: {$zone_c.zone},
     60                    coords: [
     61                      {foreach from=$exdata[$smarty.foreach.zone_f.index] item=exdata_c name=exdata_f}
     62                        {if (isset($exdata_c.x) and isset($exdata_c.y))}
     63                          [{$exdata_c.x},{$exdata_c.y},
     64                          {ldelim}
     65                            label:'$<br>
     66                            <div class=q0>
     67                              <small>{#Respawn#}:
     68                                {if isset($exdata_c.r.h)} {$exdata_c.r.h}{#hr#}{/if}
     69                                {if isset($exdata_c.r.m)} {$exdata_c.r.m}{#min#}{/if}
     70                                {if isset($exdata_c.r.s)} {$exdata_c.r.s}{#sec#}{/if}
     71                              </small>
     72                            </div>',type:'0'
     73                          {rdelim}]
     74                        {if $smarty.foreach.exdata_f.last}{else},{/if}
     75                        {/if}
     76                      {/foreach}
     77                    ]
     78                  {rdelim});
     79                g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
     80            {else}href="?zone={$zone_c.zone}">{/if}{$zone_c.name}</a>
     81            {if $zone_c.count>1}&nbsp;({$zone_c.count}){/if}{if $smarty.foreach.zone_f.last}.{else}, {/if}
     82          {/foreach}
     83        </span>
    8484{/strip}
    85                                 <div id="mapper-generic"></div>
    86                                 <div class="clear"></div>
    87                                 <script type="text/javascript">
    88                                         var myMapper = new Mapper({ldelim}parent: 'mapper-generic', zone: '{$zonedata[0].zone}'{rdelim});
    89                                         gE(ge('locations'), 'a')[0].onclick();
    90                                 </script>
     85        <div id="mapper-generic"></div>
     86        <div class="clear"></div>
     87        <script type="text/javascript">
     88          var myMapper = new Mapper({ldelim}parent: 'mapper-generic', zone: '{$zonedata[0].zone}'{rdelim});
     89          gE(ge('locations'), 'a')[0].onclick();
     90        </script>
    9191{else}
    92                                 {#This_NPC_cant_be_found#}
     92        {#This_NPC_cant_be_found#}
    9393{/if}
    94                                 {$npc.article}
     94        {$npc.article}
    9595
    96                                 <h2>{#Related#}</h2>
     96        <h2>{#Related#}</h2>
    9797
    98                         </div>
     98      </div>
    9999
    100                         <div id="tabs-generic"></div>
     100      <div id="tabs-generic"></div>
    101101
    102                         <div id="listview-generic" class="listview"></div>
     102      <div id="listview-generic" class="listview"></div>
    103103<script type="text/javascript">
    104 {if isset($allitems)}{include                                           file='bricks/allitems_table.tpl'  data=$allitems}{/if}
    105 {if isset($allspells)}{include                                  file='bricks/allspells_table.tpl' data=$allspells}{/if}
     104{if isset($allitems)}{include           file='bricks/allitems_table.tpl'  data=$allitems}{/if}
     105{if isset($allspells)}{include          file='bricks/allspells_table.tpl' data=$allspells}{/if}
    106106var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
    107 {if isset($npc.sells)}{include                                  file='bricks/item_table.tpl'    id='sells'                                              name='sells'                                    tabsid='tabsRelated' data=$npc.sells}{/if}
    108 {if isset($npc.drop)}{include                                   file='bricks/item_table.tpl'    id='drop'                                                       name='drops'                                    tabsid='tabsRelated' data=$npc.drop}{/if}
    109 {if isset($npc.pickpocketing)}{include  file='bricks/item_table.tpl'    id='pick-pocketing'             name='pickpocketing'    tabsid='tabsRelated' data=$npc.pickpocketing}{/if}
    110 {if isset($npc.skinning)}{include                               file='bricks/item_table.tpl'    id='skinning'                                   name='skinning'                         tabsid='tabsRelated' data=$npc.skinning}{/if}
    111 {if isset($npc.starts)}{include                                 file='bricks/quest_table.tpl'   id='starts'                                             name='starts'                                   tabsid='tabsRelated' data=$npc.starts}{/if}
    112 {if isset($npc.ends)}{include                                           file='bricks/quest_table.tpl'   id='ends'                                                       name='ends'                                             tabsid='tabsRelated' data=$npc.ends}{/if}
    113 {if isset($npc.abilities)}{include                      file='bricks/spell_table.tpl'   id='abilities'                          name='abilities'                        tabsid='tabsRelated' data=$npc.abilities}{/if}
    114 {if isset($npc.objectiveof)}{include            file='bricks/quest_table.tpl'   id='objective-of'                       name='objectiveof'              tabsid='tabsRelated' data=$npc.objectiveof}{/if}
    115 {if isset($npc.teaches)}{include                                file='bricks/spell_table.tpl'   id='teaches-ability'    name='teaches'                          tabsid='tabsRelated' data=$npc.teaches}{/if}
     107{if isset($npc.sells)}{include          file='bricks/item_table.tpl'  id='sells'            name='sells'          tabsid='tabsRelated' data=$npc.sells}{/if}
     108{if isset($npc.drop)}{include           file='bricks/item_table.tpl'  id='drop'             name='drops'          tabsid='tabsRelated' data=$npc.drop}{/if}
     109{if isset($npc.pickpocketing)}{include  file='bricks/item_table.tpl'  id='pick-pocketing'   name='pickpocketing'  tabsid='tabsRelated' data=$npc.pickpocketing}{/if}
     110{if isset($npc.skinning)}{include       file='bricks/item_table.tpl'  id='skinning'         name='skinning'       tabsid='tabsRelated' data=$npc.skinning}{/if}
     111{if isset($npc.starts)}{include         file='bricks/quest_table.tpl' id='starts'           name='starts'         tabsid='tabsRelated' data=$npc.starts}{/if}
     112{if isset($npc.ends)}{include           file='bricks/quest_table.tpl' id='ends'             name='ends'           tabsid='tabsRelated' data=$npc.ends}{/if}
     113{if isset($npc.abilities)}{include      file='bricks/spell_table.tpl' id='abilities'        name='abilities'      tabsid='tabsRelated' data=$npc.abilities}{/if}
     114{if isset($npc.objectiveof)}{include    file='bricks/quest_table.tpl' id='objective-of'     name='objectiveof'    tabsid='tabsRelated' data=$npc.objectiveof}{/if}
     115{if isset($npc.teaches)}{include        file='bricks/spell_table.tpl' id='teaches-ability'  name='teaches'        tabsid='tabsRelated' data=$npc.teaches}{/if}
    116116new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
    117117tabsRelated.flush();
    118118</script>
    119119
    120                         {include file='bricks/contribute.tpl'}
     120      {include file='bricks/contribute.tpl'}
    121121
    122                         <div class="clear"></div>
    123                 </div>
    124         </div>
     122      <div class="clear"></div>
     123    </div>
     124  </div>
    125125
    126126{include file='footer.tpl'}
  • aowow/templates/wowhead/object.tpl

    r355 r439  
    33{include file='header.tpl'}
    44
    5         <div id="main">
     5  <div id="main">
    66
    7                 <div id="main-precontents"></div>
    8                 <div id="main-contents" class="main-contents">
     7    <div id="main-precontents"></div>
     8    <div id="main-contents" class="main-contents">
    99
    10                         <script type="text/javascript">
    11                                 {include file='bricks/allcomments.tpl'}
    12                                 var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeid}, name: '{$object.name|escape:"quotes"}'{rdelim};
    13                                 g_initPath({$page.path});
    14                         </script>
     10      <script type="text/javascript">
     11        {include file='bricks/allcomments.tpl'}
     12        var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeid}, name: '{$object.name|escape:"quotes"}'{rdelim};
     13        g_initPath({$page.path});
     14      </script>
    1515
    1616{if isset($object.key) or isset($object.lockpicking) or isset($object.mining) or isset($object.herbalism)}
    17                         <table class="infobox">
    18                                 <tr><th>{#Quick_Facts#}</th></tr>
    19                                 <tr><td><div class="infobox-spacer"></div>
    20                                 <ul>
    21                                         {if isset($object.key)}<li><div>{#Key#}: <a class="q{$object.key.quality}" href="?item={$object.key.id}">[{$object.key.name}]</a></div></li>{/if}
    22                                         {if isset($object.lockpicking)}<li><div>{#Lockpickable#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Required_lockpicking_skill#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$object.lockpicking}</span>)</div></li>{/if}
    23                                         {if isset($object.mining)}<li><div>{#Mining#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Required_mining_skill#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$object.mining}</span>)</div></li>{/if}
    24                                         {if isset($object.herbalism)}<li><div>{#Herb#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Required_herb_skill#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$object.herbalism}</span>)</div></li>{/if}
    25                                 </ul>
    26                                 </td></tr>
    27                         </table>
     17      <table class="infobox">
     18        <tr><th>{#Quick_Facts#}</th></tr>
     19        <tr><td><div class="infobox-spacer"></div>
     20        <ul>
     21          {if isset($object.key)}<li><div>{#Key#}: <a class="q{$object.key.quality}" href="?item={$object.key.id}">[{$object.key.name}]</a></div></li>{/if}
     22          {if isset($object.lockpicking)}<li><div>{#Lockpickable#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Required_lockpicking_skill#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$object.lockpicking}</span>)</div></li>{/if}
     23          {if isset($object.mining)}<li><div>{#Mining#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Required_mining_skill#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$object.mining}</span>)</div></li>{/if}
     24          {if isset($object.herbalism)}<li><div>{#Herb#} (<span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Required_herb_skill#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">{$object.herbalism}</span>)</div></li>{/if}
     25        </ul>
     26        </td></tr>
     27      </table>
    2828{/if}
    2929
    30                         <div class="text">
    31                                 <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=5&amp;action=searchentry&amp;ID={$object.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
    32                                 <a href="http://www.wowhead.com/?{$query}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
    33                                 <h1>{$object.name}</h1>
     30      <div class="text">
     31        <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=5&amp;state=0&amp;text=&amp;entry={$object.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
     32        <a href="http://www.wowhead.com/?{$query}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
     33        <h1>{$object.name}</h1>
    3434
    3535{if $zonedata}
    36                                 {#This_Object_can_be_found_in#}
     36        {#This_Object_can_be_found_in#}
    3737{strip}
    38                                 <span id="locations">
    39                                         {foreach from=$zonedata item=zone_c name=zone_f}
    40                                                 <a href="javascript:;" onclick="
    41                                                         myMapper.update(
    42                                                                 {ldelim}
    43                                                                         zone: {$zone_c.zone},
    44                                                                         coords: [
    45                                                                                 {foreach from=$exdata[$smarty.foreach.zone_f.index] item=exdata_c name=exdata_f}
    46                                                                                         {if ($exdata_c.x and $exdata_c.y)}
    47                                                                                                 [{$exdata_c.x},{$exdata_c.y},
    48                                                                                                 {ldelim}
    49                                                                                                         label:'$<br>
    50                                                                                                         <div class=q0>
    51                                                                                                                 <small>{#Respawn#}:
    52                                                                                                                         {if isset($exdata_c.r.h)} {$exdata_c.r.h}{#hr#}{/if}
    53                                                                                                                         {if isset($exdata_c.r.m)} {$exdata_c.r.m}{#min#}{/if}
    54                                                                                                                         {if isset($exdata_c.r.s)} {$exdata_c.r.s}{#sec#}{/if}
    55                                                                                                                 </small>
    56                                                                                                         </div>',type:'0'
    57                                                                                                 {rdelim}]
    58                                                                                         {if $smarty.foreach.exdata_f.last}{else},{/if}
    59                                                                                         {/if}
    60                                                                                 {/foreach}
    61                                                                         ]
    62                                                                 {rdelim});
    63                                                         g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
    64                                                         {$zone_c.name}</a>{if $zone_c.count>1}&nbsp;({$zone_c.count}){/if}{if $smarty.foreach.zone_f.last}.{else}, {/if}
    65                                         {/foreach}
    66                                 </span>
     38        <span id="locations">
     39          {foreach from=$zonedata item=zone_c name=zone_f}
     40            <a href="javascript:;" onclick="
     41              myMapper.update(
     42                {ldelim}
     43                  zone: {$zone_c.zone},
     44                  coords: [
     45                    {foreach from=$exdata[$smarty.foreach.zone_f.index] item=exdata_c name=exdata_f}
     46                      {if ($exdata_c.x and $exdata_c.y)}
     47                        [{$exdata_c.x},{$exdata_c.y},
     48                        {ldelim}
     49                          label:'$<br>
     50                          <div class=q0>
     51                            <small>{#Respawn#}:
     52                              {if isset($exdata_c.r.h)} {$exdata_c.r.h}{#hr#}{/if}
     53                              {if isset($exdata_c.r.m)} {$exdata_c.r.m}{#min#}{/if}
     54                              {if isset($exdata_c.r.s)} {$exdata_c.r.s}{#sec#}{/if}
     55                            </small>
     56                          </div>',type:'0'
     57                        {rdelim}]
     58                      {if $smarty.foreach.exdata_f.last}{else},{/if}
     59                      {/if}
     60                    {/foreach}
     61                  ]
     62                {rdelim});
     63              g_setSelectedLink(this, 'mapper'); return false" onmousedown="return false">
     64              {$zone_c.name}</a>{if $zone_c.count>1}&nbsp;({$zone_c.count}){/if}{if $smarty.foreach.zone_f.last}.{else}, {/if}
     65          {/foreach}
     66        </span>
    6767{/strip}
    68                                 <div id="mapper-generic"></div>
    69                                 <div class="clear"></div>
     68        <div id="mapper-generic"></div>
     69        <div class="clear"></div>
    7070{literal}
    71                                 <script type="text/javascript">
    72                                         var myMapper = new Mapper({parent: 'mapper-generic', zone: '{$zonedata[0].zone}'});
    73                                         gE(ge('locations'), 'a')[0].onclick();
    74                                 </script>
     71        <script type="text/javascript">
     72          var myMapper = new Mapper({parent: 'mapper-generic', zone: '{$zonedata[0].zone}'});
     73          gE(ge('locations'), 'a')[0].onclick();
     74        </script>
    7575{/literal}
    7676
    7777{else}
    78                                 {#This_Object_cant_be_found#}
     78        {#This_Object_cant_be_found#}
    7979{/if}
    8080
    8181{if isset($object.pagetext)}
    82         <h3>Content</h3>
    83         <div id="book-generic"></div>
    84         {strip}
    85                 <script>
    86                         new Book({ldelim} parent: 'book-generic', pages: [
    87                         {foreach from=$object.pagetext item=pagetext name=j}
    88                                 '{$pagetext|escape:"javascript"}'
    89                                 {if $smarty.foreach.j.last}{else},{/if}
    90                         {/foreach}
    91                         ]{rdelim})
    92                 </script>
    93         {/strip}
     82  <h3>Content</h3>
     83  <div id="book-generic"></div>
     84  {strip}
     85    <script>
     86      new Book({ldelim} parent: 'book-generic', pages: [
     87      {foreach from=$object.pagetext item=pagetext name=j}
     88        '{$pagetext|escape:"javascript"}'
     89        {if $smarty.foreach.j.last}{else},{/if}
     90      {/foreach}
     91      ]{rdelim})
     92    </script>
     93  {/strip}
    9494{/if}
    95                                 <h2>{#Related#}</h2>
     95        <h2>{#Related#}</h2>
    9696
    97                         </div>
     97      </div>
    9898
    99                         <div id="tabs-generic"></div>
    100                         <div id="listview-generic" class="listview"></div>
     99      <div id="tabs-generic"></div>
     100      <div id="listview-generic" class="listview"></div>
    101101<script type="text/javascript">
    102102{if isset($allitems)}{include file='bricks/allitems_table.tpl' data=$allitems}{/if}
     
    111111{include file='bricks/contribute.tpl'}
    112112
    113                         </div>
    114                 </div>
    115         </div>
     113      </div>
     114    </div>
     115  </div>
    116116
    117117{include file='footer.tpl'}
  • aowow/templates/wowhead/quest.tpl

    r355 r439  
    33{include file='header.tpl'}
    44
    5                 <div id="main">
    6 
    7                         <div id="main-precontents"></div>
    8 
    9                         <div id="main-contents" class="main-contents">
    10                                 <script type="text/javascript">
    11                                         {include file='bricks/allcomments.tpl'}
    12                                         var g_pageInfo = {ldelim}type: 5, typeId: {$quest.entry}, name: '{$quest.Title|escape:"quotes"}'{rdelim};
    13                                         g_initPath([0,3,{$quest.maincat},{$quest.category}]);
    14                                 </script>
    15 
    16                                 <script type="text/javascript">
    17                                         {if isset($allitems)}{include file='bricks/allitems_table.tpl' data=$allitems}{/if}
    18                                         {if isset($allspells)}{include file='bricks/allspells_table.tpl' data=$allspells}{/if}
    19                                 </script>
    20 
    21                                 <table class="infobox">
    22                                         <tr><th>{#Quick_Facts#}</th></tr>
    23                                         <tr><td>
    24                                                 <div class="infobox-spacer"></div>
    25                                                 <ul>
    26                                                         {if $quest.QuestLevel>0}<li><div>{#Level#}: {$quest.QuestLevel}</div></li>{/if}
    27                                                         {if $quest.MinLevel>0}<li><div>{#Requires_level#}: {$quest.MinLevel}</div></li>{/if}
    28                                                         {if $quest.typename}<li><div>{#Type#}: {$quest.typename}</div></li>{/if}
    29                                                         {if isset($quest.side)}<li><div>{#Side#}: <span class="{if ($quest.side.side==1)}alliance{elseif ($quest.side.side==2)}horde{else}both{/if}-icon">{$quest.side.name}</span></div></li>{/if}
    30                                                         {if isset($quest.start)}<li><div>{#Start#}: {section loop=$quest.start name=i}{if $quest.start[i].side}<span class="{$quest.start[i].side}-icon">{/if}<a href="?{$quest.start[i].type}={$quest.start[i].entry}"{if $quest.start[i].type == 'item'} class="icontiny q{$quest.start[i].quality}" style="background-image: url(images/icons/tiny/{$quest.start[i].iconname}.gif);"{/if}>{$quest.start[i].name}</a>{if $quest.start[i].side}</span>{/if}{if $smarty.section.i.last}{else}, <br><span style="visibility: hidden;">{#Start#}: </span>{/if}{/section}</div></li>{/if}
    31                                                         {if isset($quest.end)}<li><div>{#End#}: {section loop=$quest.end name=i}{if $quest.end[i].side}<span class="{$quest.start[i].side}-icon">{/if}<a href="?{$quest.end[i].type}={$quest.end[i].entry}">{$quest.end[i].name}</a>{if $quest.end[i].side}</span>{/if}{if $smarty.section.i.last}{else}, <br><span style="visibility: hidden;">{#End#}: </span>{/if}{/section}</div></li>{/if}
    32                                                         {if isset($quest.reqskill)}<li><div>{#Skill#}: {$quest.reqskill.name} ({$quest.reqskill.value})</div></li>{/if}
    33                                                         {if isset($quest.reqclass)}<li><div>{#Class#}: {$quest.reqclass}</div></li>{/if}
    34                                                         {strip}{if isset($quest.LimitTime)}
    35                                                                 <li><div>
    36                                                                         {#Timer#}:
    37                                                                         {if isset($quest.LimitTime.h)} {$quest.LimitTime.h} {#hr#}{/if}
    38                                                                         {if isset($quest.LimitTime.m)} {$quest.LimitTime.m} {#min#}{/if}
    39                                                                         {if isset($quest.LimitTime.s)} {$quest.LimitTime.s} {#sec#}{/if}
    40                                                                 </div></li>
    41                                                         {/if}{/strip}
    42                                                         {if isset($quest.Sharable)}<li><div>{#Sharable#}</div></li>{/if}
    43                                                         {if isset($quest.Daily)}<li><div>{#Daily#}</div></li>{elseif isset($quest.Repeatable)}<li><div>{#Repeatable#}</div></li>{/if}
    44                                                 </ul>
    45                                         </td></tr>
    46 {strip}         {* Серия квестов *}
    47                                         {if isset($quest.series)}
    48                                         <tr><th>{#Series#}</th></tr>
    49                                         <tr>
    50                                                 <td>
    51                                                         <div class="infobox-spacer"></div>
    52                                                         <table class="series">
    53                                                         {section name=i loop=$quest.series}
    54                                                                 <tr>
    55                                                                         <th>{$smarty.section.i.index+1}.</th>
    56                                                                         <td>
    57                                                                                 {if ($quest.series[i].entry==$quest.entry)}
    58                                                                                         <b>{$quest.series[i].Title}</b>
    59                                                                                 {else}
    60                                                                                         <div><a href="?quest={$quest.series[i].entry}">{$quest.series[i].Title}</a></div>
    61                                                                                 {/if}
    62                                                                         </td>
    63                                                                 </tr>
    64                                                         {/section}
    65                                                         </table>
    66                                                 </td>
    67                                         </tr>
    68                                         {/if}
    69 {/strip}
    70 {strip}         {* Требует выполнения всех этих квестов *}
    71                                         {if isset($quest.req)}
    72                                         <tr><th>
    73                                                 <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Prev_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
    74                                                         {#Prev_Quests#}
    75                                                 </span>
    76                                         </th></tr>
    77                                         <tr><td>
    78                                                         <div class="infobox-spacer"></div>
    79                                                         <ul>
    80                                                         {section name=i loop=$quest.req}
    81                                                                 <li>
    82                                                                         <div><a href="?quest={$quest.req[i].entry}">{$quest.req[i].Title}</a></div>
    83                                                                 </li>
    84                                                         {/section}
    85                                                         </ul>
    86                                         </td></tr>
    87                                         {/if}
    88 {/strip}
    89 {strip}         {* Требует выполнения одного из этих квестов *}
    90                                         {if isset($quest.reqone)}
    91                                         <tr><th>
    92                                                 <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#ReqOne_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
    93                                                         {#ReqOne_Quests#}
    94                                                 </span>
    95                                         </th></tr>
    96                                         <tr><td>
    97                                                         <div class="infobox-spacer"></div>
    98                                                         <ul>
    99                                                         {section name=i loop=$quest.reqone}
    100                                                                 <li>
    101                                                                         <div><a href="?quest={$quest.reqone[i].entry}">{$quest.reqone[i].Title}</a></div>
    102                                                                 </li>
    103                                                         {/section}
    104                                                         </ul>
    105                                         </td></tr>
    106                                         {/if}
    107 {/strip}
    108 {strip}         {* Требует активного квеста *}
    109                                         {if isset($quest.enabledby)}
    110                                         <tr><th>
    111                                                 <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Enabledby_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
    112                                                         {#Enabledby_Quests#}
    113                                                 </span>
    114                                         </th></tr>
    115                                         <tr><td>
    116                                                         <div class="infobox-spacer"></div>
    117                                                         <ul>
    118                                                         {section name=i loop=$quest.enabledby}
    119                                                                 <li>
    120                                                                         <div><a href="?quest={$quest.enabledby[i].entry}">{$quest.enabledby[i].Title}</a></div>
    121                                                                 </li>
    122                                                         {/section}
    123                                                         </ul>
    124                                         </td></tr>
    125                                         {/if}
    126 {/strip}
    127 {strip}         {* Закрывает квесты *}
    128                                         {if isset($quest.closes)}
    129                                         <tr><th>
    130                                                 <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Closes_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
    131                                                         {#Closes_Quests#}
    132                                                 </span>
    133                                         </th></tr>
    134                                         <tr><td>
    135                                                         <div class="infobox-spacer"></div>
    136                                                         <ul>
    137                                                         {section name=i loop=$quest.closes}
    138                                                                 <li>
    139                                                                         <div><a href="?quest={$quest.closes[i].entry}">{$quest.closes[i].Title}</a></div>
    140                                                                 </li>
    141                                                         {/section}
    142                                                         </ul>
    143                                         </td></tr>
    144                                         {/if}
    145 {/strip}
    146 {strip}         {* Во время выполнения квеста доступны эти квесты *}
    147                                         {if isset($quest.enables)}
    148                                         <tr><th>
    149                                                 <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Enables_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
    150                                                         {#Enables_Quests#}
    151                                                 </span>
    152                                         </th></tr>
    153                                         <tr><td>
    154                                                         <div class="infobox-spacer"></div>
    155                                                         <ul>
    156                                                         {section name=i loop=$quest.enables}
    157                                                                 <li>
    158                                                                         <div><a href="?quest={$quest.enables[i].entry}">{$quest.enables[i].Title}</a></div>
    159                                                                 </li>
    160                                                         {/section}
    161                                                         </ul>
    162                                         </td></tr>
    163                                         {/if}
    164 {/strip}
    165 {strip}         {* Открывает квесты *}
    166                                         {if isset($quest.open)}
    167                                         <tr><th>
    168                                                 <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Open_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
    169                                                         {#Open_Quests#}
    170                                                 </span>
    171                                         </th></tr>
    172                                         <tr><td>
    173                                                         <div class="infobox-spacer"></div>
    174                                                         <ul>
    175                                                         {section name=i loop=$quest.open}
    176                                                                 <li>
    177                                                                                 {if ($quest.open[i].entry==$quest.entry)}
    178                                                                                         <b>{$quest.open[i].Title}</b>
    179                                                                                 {else}
    180                                                                                         <div><a href="?quest={$quest.open[i].entry}">{$quest.open[i].Title}</a></div>
    181                                                                                 {/if}
    182                                                                 </li>
    183                                                         {/section}
    184                                                         </ul>
    185                                         </td></tr>
    186                                         {/if}
    187 {/strip}
    188                                 </table>
    189                                 <script type="text/javascript">ss_appendSticky()</script>
    190 
    191                                 <div class="text">
    192 
    193                                         <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=1&amp;action=searchentry&amp;ID={$quest.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
    194                                         <a href="http://www.wowhead.com/?{$query}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
    195                                         <h1>{$quest.Title}</h1>
    196 
    197                                         {if isset($quest.RequiredMinRep) or isset($quest.RequiredMaxRep)}
    198                                                 {#Additional_requirements_to_obtain_this_quest#}:<br>
    199                                                 {strip}
    200                                                         <ul>
    201                                                         {if isset($quest.RequiredMinRep)}<li><div>{#Your_reputation_with#} <a href=?faction={$quest.RequiredMinRep.entry}>{$quest.RequiredMinRep.name}</a> {#must_be#} {#higher_than#} {$quest.RequiredMinRep.value}</div></li><br>{/if}
    202                                                         {if isset($quest.RequiredMaxRep)}<li><div>{#Your_reputation_with#} <a href=?faction={$quest.RequiredMaxRep.entry}>{$quest.RequiredMaxRep.name}</a> {#must_be#} {#lower_than#} {$quest.RequiredMaxRep.value}</div></li><br>{/if}
    203                                                         </ul>
    204                                                         <div class="line"></div>
    205                                                 {/strip}
    206                                         {/if}
    207 
    208                                         {if $quest.Objectives}
    209                                                 {$quest.Objectives}
    210                                         {else}
    211                                                 <h3>{#Progress#}</h3>
    212                                                 {$quest.RequestItemsText}
    213                                         {/if}
    214 
    215                                         {if isset($quest.SrcSpell)}
    216                                                 {#The_following_spell_will_be_cast_on_you#}:
    217                                                 <table class="icontab">
    218                                                 <tr>
    219                                                 <th id="icontab-icon10"></th><td><a href="?spell={$quest.SrcSpell.entry}">{$quest.SrcSpell.name}</a></td>
    220                                                 <th></th><td></td>
    221                                                 </tr>
    222                                                 </table>
    223 
    224                                                 <script type="text/javascript">
    225                                                         ge('icontab-icon10').appendChild(g_spells.createIcon({$quest.SrcSpell.entry}, 1, 0));
    226                                                 </script>
    227                                         {/if}
     5    <div id="main">
     6
     7      <div id="main-precontents"></div>
     8
     9      <div id="main-contents" class="main-contents">
     10        <script type="text/javascript">
     11          {include file='bricks/allcomments.tpl'}
     12          var g_pageInfo = {ldelim}type: 5, typeId: {$quest.entry}, name: '{$quest.Title|escape:"quotes"}'{rdelim};
     13          g_initPath([0,3,{$quest.maincat},{$quest.category}]);
     14        </script>
     15
     16        <script type="text/javascript">
     17          {if isset($allitems)}{include file='bricks/allitems_table.tpl' data=$allitems}{/if}
     18          {if isset($allspells)}{include file='bricks/allspells_table.tpl' data=$allspells}{/if}
     19        </script>
     20
     21        <table class="infobox">
     22          <tr><th>{#Quick_Facts#}</th></tr>
     23          <tr><td>
     24            <div class="infobox-spacer"></div>
     25            <ul>
     26              {if $quest.QuestLevel>0}<li><div>{#Level#}: {$quest.QuestLevel}</div></li>{/if}
     27              {if $quest.MinLevel>0}<li><div>{#Requires_level#}: {$quest.MinLevel}</div></li>{/if}
     28              {if $quest.typename}<li><div>{#Type#}: {$quest.typename}</div></li>{/if}
     29              {if isset($quest.side)}<li><div>{#Side#}: <span class="{if ($quest.side.side==1)}alliance{elseif ($quest.side.side==2)}horde{else}both{/if}-icon">{$quest.side.name}</span></div></li>{/if}
     30              {if isset($quest.start)}<li><div>{#Start#}: {section loop=$quest.start name=i}{if $quest.start[i].side}<span class="{$quest.start[i].side}-icon">{/if}<a href="?{$quest.start[i].type}={$quest.start[i].entry}"{if $quest.start[i].type == 'item'} class="icontiny q{$quest.start[i].quality}" style="background-image: url(images/icons/tiny/{$quest.start[i].iconname}.gif);"{/if}>{$quest.start[i].name}</a>{if $quest.start[i].side}</span>{/if}{if $smarty.section.i.last}{else}, <br><span style="visibility: hidden;">{#Start#}: </span>{/if}{/section}</div></li>{/if}
     31              {if isset($quest.end)}<li><div>{#End#}: {section loop=$quest.end name=i}{if $quest.end[i].side}<span class="{$quest.start[i].side}-icon">{/if}<a href="?{$quest.end[i].type}={$quest.end[i].entry}">{$quest.end[i].name}</a>{if $quest.end[i].side}</span>{/if}{if $smarty.section.i.last}{else}, <br><span style="visibility: hidden;">{#End#}: </span>{/if}{/section}</div></li>{/if}
     32              {if isset($quest.reqskill)}<li><div>{#Skill#}: {$quest.reqskill.name} ({$quest.reqskill.value})</div></li>{/if}
     33              {if isset($quest.reqclass)}<li><div>{#Class#}: {$quest.reqclass}</div></li>{/if}
     34              {strip}{if isset($quest.LimitTime)}
     35                <li><div>
     36                  {#Timer#}:
     37                  {if isset($quest.LimitTime.h)} {$quest.LimitTime.h} {#hr#}{/if}
     38                  {if isset($quest.LimitTime.m)} {$quest.LimitTime.m} {#min#}{/if}
     39                  {if isset($quest.LimitTime.s)} {$quest.LimitTime.s} {#sec#}{/if}
     40                </div></li>
     41              {/if}{/strip}
     42              {if isset($quest.Sharable)}<li><div>{#Sharable#}</div></li>{/if}
     43              {if isset($quest.Daily)}<li><div>{#Daily#}</div></li>{elseif isset($quest.Repeatable)}<li><div>{#Repeatable#}</div></li>{/if}
     44            </ul>
     45          </td></tr>
     46{strip}   {* Серия квестов *}
     47          {if isset($quest.series)}
     48          <tr><th>{#Series#}</th></tr>
     49          <tr>
     50            <td>
     51              <div class="infobox-spacer"></div>
     52              <table class="series">
     53              {section name=i loop=$quest.series}
     54                <tr>
     55                  <th>{$smarty.section.i.index+1}.</th>
     56                  <td>
     57                    {if ($quest.series[i].entry==$quest.entry)}
     58                      <b>{$quest.series[i].Title}</b>
     59                    {else}
     60                      <div><a href="?quest={$quest.series[i].entry}">{$quest.series[i].Title}</a></div>
     61                    {/if}
     62                  </td>
     63                </tr>
     64              {/section}
     65              </table>
     66            </td>
     67          </tr>
     68          {/if}
     69{/strip}
     70{strip}   {* Требует выполнения всех этих квестов *}
     71          {if isset($quest.req)}
     72          <tr><th>
     73            <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Prev_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
     74              {#Prev_Quests#}
     75            </span>
     76          </th></tr>
     77          <tr><td>
     78              <div class="infobox-spacer"></div>
     79              <ul>
     80              {section name=i loop=$quest.req}
     81                <li>
     82                  <div><a href="?quest={$quest.req[i].entry}">{$quest.req[i].Title}</a></div>
     83                </li>
     84              {/section}
     85              </ul>
     86          </td></tr>
     87          {/if}
     88{/strip}
     89{strip}   {* Требует выполнения одного из этих квестов *}
     90          {if isset($quest.reqone)}
     91          <tr><th>
     92            <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#ReqOne_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
     93              {#ReqOne_Quests#}
     94            </span>
     95          </th></tr>
     96          <tr><td>
     97              <div class="infobox-spacer"></div>
     98              <ul>
     99              {section name=i loop=$quest.reqone}
     100                <li>
     101                  <div><a href="?quest={$quest.reqone[i].entry}">{$quest.reqone[i].Title}</a></div>
     102                </li>
     103              {/section}
     104              </ul>
     105          </td></tr>
     106          {/if}
     107{/strip}
     108{strip}   {* Требует активного квеста *}
     109          {if isset($quest.enabledby)}
     110          <tr><th>
     111            <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Enabledby_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
     112              {#Enabledby_Quests#}
     113            </span>
     114          </th></tr>
     115          <tr><td>
     116              <div class="infobox-spacer"></div>
     117              <ul>
     118              {section name=i loop=$quest.enabledby}
     119                <li>
     120                  <div><a href="?quest={$quest.enabledby[i].entry}">{$quest.enabledby[i].Title}</a></div>
     121                </li>
     122              {/section}
     123              </ul>
     124          </td></tr>
     125          {/if}
     126{/strip}
     127{strip}   {* Закрывает квесты *}
     128          {if isset($quest.closes)}
     129          <tr><th>
     130            <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Closes_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
     131              {#Closes_Quests#}
     132            </span>
     133          </th></tr>
     134          <tr><td>
     135              <div class="infobox-spacer"></div>
     136              <ul>
     137              {section name=i loop=$quest.closes}
     138                <li>
     139                  <div><a href="?quest={$quest.closes[i].entry}">{$quest.closes[i].Title}</a></div>
     140                </li>
     141              {/section}
     142              </ul>
     143          </td></tr>
     144          {/if}
     145{/strip}
     146{strip}   {* Во время выполнения квеста доступны эти квесты *}
     147          {if isset($quest.enables)}
     148          <tr><th>
     149            <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Enables_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
     150              {#Enables_Quests#}
     151            </span>
     152          </th></tr>
     153          <tr><td>
     154              <div class="infobox-spacer"></div>
     155              <ul>
     156              {section name=i loop=$quest.enables}
     157                <li>
     158                  <div><a href="?quest={$quest.enables[i].entry}">{$quest.enables[i].Title}</a></div>
     159                </li>
     160              {/section}
     161              </ul>
     162          </td></tr>
     163          {/if}
     164{/strip}
     165{strip}   {* Открывает квесты *}
     166          {if isset($quest.open)}
     167          <tr><th>
     168            <span class="tip" onmouseover="Tooltip.showAtCursor(event, '{#Open_Quests_Desc#}', 0, 0, 'q')" onmousemove="Tooltip.cursorUpdate(event)" onmouseout="Tooltip.hide()">
     169              {#Open_Quests#}
     170            </span>
     171          </th></tr>
     172          <tr><td>
     173              <div class="infobox-spacer"></div>
     174              <ul>
     175              {section name=i loop=$quest.open}
     176                <li>
     177                    {if ($quest.open[i].entry==$quest.entry)}
     178                      <b>{$quest.open[i].Title}</b>
     179                    {else}
     180                      <div><a href="?quest={$quest.open[i].entry}">{$quest.open[i].Title}</a></div>
     181                    {/if}
     182                </li>
     183              {/section}
     184              </ul>
     185          </td></tr>
     186          {/if}
     187{/strip}
     188        </table>
     189        <script type="text/javascript">ss_appendSticky()</script>
     190
     191        <div class="text">
     192
     193          <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=1&amp;state=0&amp;text=&amp;entry={$quest.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
     194          <a href="http://www.wowhead.com/?{$query}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
     195          <h1>{$quest.Title}</h1>
     196
     197          {if isset($quest.RequiredMinRep) or isset($quest.RequiredMaxRep)}
     198            {#Additional_requirements_to_obtain_this_quest#}:<br>
     199            {strip}
     200              <ul>
     201              {if isset($quest.RequiredMinRep)}<li><div>{#Your_reputation_with#} <a href=?faction={$quest.RequiredMinRep.entry}>{$quest.RequiredMinRep.name}</a> {#must_be#} {#higher_than#} {$quest.RequiredMinRep.value}</div></li><br>{/if}
     202              {if isset($quest.RequiredMaxRep)}<li><div>{#Your_reputation_with#} <a href=?faction={$quest.RequiredMaxRep.entry}>{$quest.RequiredMaxRep.name}</a> {#must_be#} {#lower_than#} {$quest.RequiredMaxRep.value}</div></li><br>{/if}
     203              </ul>
     204              <div class="line"></div>
     205            {/strip}
     206          {/if}
     207
     208          {if $quest.Objectives}
     209            {$quest.Objectives}
     210          {else}
     211            <h3>{#Progress#}</h3>
     212            {$quest.RequestItemsText}
     213          {/if}
     214
     215          {if isset($quest.SrcSpell)}
     216            {#The_following_spell_will_be_cast_on_you#}:
     217            <table class="icontab">
     218            <tr>
     219            <th id="icontab-icon10"></th><td><a href="?spell={$quest.SrcSpell.entry}">{$quest.SrcSpell.name}</a></td>
     220            <th></th><td></td>
     221            </tr>
     222            </table>
     223
     224            <script type="text/javascript">
     225              ge('icontab-icon10').appendChild(g_spells.createIcon({$quest.SrcSpell.entry}, 1, 0));
     226            </script>
     227          {/if}
    228228
    229229{if isset($quest.itemreqs) or isset($quest.coreqs) or isset($quest.factionreq) or isset($quest.splayers) or isset($quest.moneyreq)}
    230230<table class="iconlist">
    231231{strip}
    232         {* Перечень созданий, требуемых для квеста *}
    233         {if isset($quest.coreqs)}
    234                 {foreach from=$quest.coreqs key=i item=req}
    235                         <tr>
    236                                 <th><ul><li><var>&nbsp;</var></li></ul></th>
    237                                 <td>
    238                                         <a href="?{$req.req_type}={$req.entry}">
    239                                         {if !empty($quest.EndText)}
    240                                                 {$quest.EndText}
    241                                         {else}
    242                                                 {if !empty($quest.ObjectiveText[$i])}
    243                                                         {$quest.ObjectiveText[$i]}
    244                                                 {else}
    245                                                         {$req.name}
    246                                                 {/if}
    247                                         </a>
    248                                                 {if empty($quest.ObjectiveText[$i]) && $req.req_type == 'npc'} {#slain#}{/if}
    249                                                 {if $req.count>1} ({$req.count}){/if}
    250                                                 {if $req.spell}<span class='q0'> [<a href='?spell={$req.spell.entry}'>{$req.spell.name}</a>]</div>{/if}
    251                                         {/if}
    252                                 </td>
    253                         </tr>
    254                 {/foreach}
    255         {/if}
     232  {* Перечень созданий, требуемых для квеста *}
     233  {if isset($quest.coreqs)}
     234    {foreach from=$quest.coreqs key=i item=req}
     235      <tr>
     236        <th><ul><li><var>&nbsp;</var></li></ul></th>
     237        <td>
     238          <a href="?{$req.req_type}={$req.entry}">
     239          {if !empty($quest.EndText)}
     240            {$quest.EndText}
     241          {else}
     242            {if !empty($quest.ObjectiveText[$i])}
     243              {$quest.ObjectiveText[$i]}
     244            {else}
     245              {$req.name}
     246            {/if}
     247          </a>
     248            {if empty($quest.ObjectiveText[$i]) && $req.req_type == 'npc'} {#slain#}{/if}
     249            {if $req.count>1} ({$req.count}){/if}
     250            {if $req.spell}<span class='q0'> [<a href='?spell={$req.spell.entry}'>{$req.spell.name}</a>]</div>{/if}
     251          {/if}
     252        </td>
     253      </tr>
     254    {/foreach}
     255  {/if}
    256256{/strip}
    257257
    258258{strip}
    259         {if isset($quest.itemreqs)}
    260                 {foreach from=$quest.itemreqs key=i item=item}
    261                         <tr>
    262                                 <th align="right" id="iconlist-icon{$i}"></th>
    263                                 <td>
    264                                         <span class="q{$item.quality}"><a href="?item={$item.entry}">{$item.name}</a></span>{if $item.count>1} ({$item.count}){/if}
    265                                 </td>
    266                         </tr>
    267                 {/foreach}
    268         {/if}
     259  {if isset($quest.itemreqs)}
     260    {foreach from=$quest.itemreqs key=i item=item}
     261      <tr>
     262        <th align="right" id="iconlist-icon{$i}"></th>
     263        <td>
     264          <span class="q{$item.quality}"><a href="?item={$item.entry}">{$item.name}</a></span>{if $item.count>1} ({$item.count}){/if}
     265        </td>
     266      </tr>
     267    {/foreach}
     268  {/if}
    269269{/strip}
    270270
    271271{strip}
    272         {if isset($quest.objectreqs)}
    273                 {foreach from=$quest.objectreqs key=i item=object}
    274                         <tr>
    275                                 <th><ul><li><var>&nbsp;</var></li></ul></th>
    276                                 <td>
    277                                         <a href="?object={$object.entry}">
    278                                                 {if isset($quest.ObjectiveText[$i])}{$quest.ObjectiveText[$i]}{else}{$object.name}{/if}
    279                                         </a>
    280                                         {if $object.count>1}({$object.count}){/if}
    281                                 </td>
    282                         </tr>
    283                 {/foreach}
    284         {/if}
     272  {if isset($quest.objectreqs)}
     273    {foreach from=$quest.objectreqs key=i item=object}
     274      <tr>
     275        <th><ul><li><var>&nbsp;</var></li></ul></th>
     276        <td>
     277          <a href="?object={$object.entry}">
     278            {if isset($quest.ObjectiveText[$i])}{$quest.ObjectiveText[$i]}{else}{$object.name}{/if}
     279          </a>
     280          {if $object.count>1}({$object.count}){/if}
     281        </td>
     282      </tr>
     283    {/foreach}
     284  {/if}
    285285{/strip}
    286286
    287287{strip}
    288         {if isset($quest.factionreq)}
    289                         <tr>
    290                                 <th><ul><li><var>&nbsp;</var></li></ul></th>
    291                                 <td>
    292                                         <a href="?faction={$quest.factionreq.entry}">{$quest.factionreq.name}</a> ({$quest.factionreq.value})
    293                                 </td>
    294                         </tr>
    295         {/if}
     288  {if isset($quest.factionreq)}
     289      <tr>
     290        <th><ul><li><var>&nbsp;</var></li></ul></th>
     291        <td>
     292          <a href="?faction={$quest.factionreq.entry}">{$quest.factionreq.name}</a> ({$quest.factionreq.value})
     293        </td>
     294      </tr>
     295  {/if}
    296296{/strip}
    297297
    298298{if isset($quest.splayers)}<tr><th><ul><li><var>&nbsp;</var></li></ul></th><td>{#Suggested_Players#} [{$quest.splayers}]</td></tr>{/if}
    299299{if isset($quest.moneyreq)}
    300         <tr>
    301                 <th><ul><li><var>&nbsp;</var></li></ul></th>
    302                 <td>
    303                         {#Required_Money#}:
    304                         {if isset($quest.moneyreq.moneygold)}<span class="moneygold">{$quest.moneyreq.moneygold}</span>{/if}
    305                         {if isset($quest.moneyreq.moneysilver)}<span class="moneysilver">{$quest.moneyreq.moneysilver}</span>{/if}
    306                         {if isset($quest.moneyreq.moneycopper)}<span class="moneycopper">{$quest.moneyreq.moneycopper}</span>{/if}
    307                 </td>
    308         </tr>
     300  <tr>
     301    <th><ul><li><var>&nbsp;</var></li></ul></th>
     302    <td>
     303      {#Required_Money#}:
     304      {if isset($quest.moneyreq.moneygold)}<span class="moneygold">{$quest.moneyreq.moneygold}</span>{/if}
     305      {if isset($quest.moneyreq.moneysilver)}<span class="moneysilver">{$quest.moneyreq.moneysilver}</span>{/if}
     306      {if isset($quest.moneyreq.moneycopper)}<span class="moneycopper">{$quest.moneyreq.moneycopper}</span>{/if}
     307    </td>
     308  </tr>
    309309{/if}
    310310</table>
    311311{if isset($quest.itemreqs)}
    312         <script type="text/javascript">
    313         {foreach from=$quest.itemreqs key=i item=item}
    314                 ge('iconlist-icon{$i}').appendChild(g_items.createIcon({$item.entry}, 0, {$item.count}));
    315         {/foreach}
    316         </script>
     312  <script type="text/javascript">
     313  {foreach from=$quest.itemreqs key=i item=item}
     314    ge('iconlist-icon{$i}').appendChild(g_items.createIcon({$item.entry}, 0, {$item.count}));
     315  {/foreach}
     316  </script>
    317317{/if}
    318318{/if}
    319319
    320320{if $quest.Details}
    321                                                 <h3>{#Description#}</h3>
    322                                                 {$quest.Details}
     321            <h3>{#Description#}</h3>
     322            {$quest.Details}
    323323{/if}
    324324
    325325{if (isset($quest.itemchoices) or isset($quest.itemrewards) or isset($quest.moneycopper) or isset($quest.moneysilver) or isset($quest.moneygold) or isset($quest.spellreward))}
    326                                         <h3>{#Rewards#}</h3>
     326          <h3>{#Rewards#}</h3>
    327327
    328328{if isset($quest.itemchoices)}
    329                                                 {#You_will_be_able_to_choose_one_of_these_rewards#}:
    330                                                 <div class="pad"></div>
    331                                                 <table class="icontab">
    332                                                 <tr>
     329            {#You_will_be_able_to_choose_one_of_these_rewards#}:
     330            <div class="pad"></div>
     331            <table class="icontab">
     332            <tr>
    333333{section name=j loop=$quest.itemchoices}
    334                                                                 <th id="icontab-icon{$smarty.section.j.index+1}"></th>
    335                                                                 <td>
    336                                                                         <span class="q{$quest.itemchoices[j].quality}">
    337                                                                                 <a href="?item={$quest.itemchoices[j].entry}">
    338                                                                                         {$quest.itemchoices[j].name}
    339                                                                                 </a>
    340                                                                         </span>
    341                                                                 </td>
     334                <th id="icontab-icon{$smarty.section.j.index+1}"></th>
     335                <td>
     336                  <span class="q{$quest.itemchoices[j].quality}">
     337                    <a href="?item={$quest.itemchoices[j].entry}">
     338                      {$quest.itemchoices[j].name}
     339                    </a>
     340                  </span>
     341                </td>
    342342{/section}
    343                                                 </tr>
    344                                                 </table>
    345                                                 <script type="text/javascript">
    346                                                 {section name=j loop=$quest.itemchoices}
    347                                                         ge('icontab-icon{$smarty.section.j.index+1}').appendChild(g_items.createIcon({$quest.itemchoices[j].entry}, 1, {$quest.itemchoices[j].count}));
    348                                                 {/section}
    349                                                 </script>
     343            </tr>
     344            </table>
     345            <script type="text/javascript">
     346            {section name=j loop=$quest.itemchoices}
     347              ge('icontab-icon{$smarty.section.j.index+1}').appendChild(g_items.createIcon({$quest.itemchoices[j].entry}, 1, {$quest.itemchoices[j].count}));
     348            {/section}
     349            </script>
    350350{/if}
    351351
    352352{if isset($quest.itemrewards)}
    353                                                 {#You_will_receive#}:
    354                                                 <div class="pad"></div>
    355                                                 <table class="icontab">
    356                                                 <tr>{strip}
     353            {#You_will_receive#}:
     354            <div class="pad"></div>
     355            <table class="icontab">
     356            <tr>{strip}
    357357{section name=j loop=$quest.itemrewards}
    358                                                                 <th id="icontab-icon{$smarty.section.j.index+1}"></th>
    359                                                                 <td>
    360                                                                         <span class="q{$quest.itemrewards[j].quality}">
    361                                                                                 <a href="?item={$quest.itemrewards[j].entry}">
    362                                                                                         {$quest.itemrewards[j].name}
    363                                                                                 </a>
    364                                                                         </span>
    365                                                                 </td>
     358                <th id="icontab-icon{$smarty.section.j.index+1}"></th>
     359                <td>
     360                  <span class="q{$quest.itemrewards[j].quality}">
     361                    <a href="?item={$quest.itemrewards[j].entry}">
     362                      {$quest.itemrewards[j].name}
     363                    </a>
     364                  </span>
     365                </td>
    366366{/section}
    367                                                 </tr>{/strip}
    368                                                 </table>
    369                                                 <script type="text/javascript">
    370                                                 {section name=j loop=$quest.itemrewards}
    371                                                         ge('icontab-icon{$smarty.section.j.index+1}').appendChild(g_items.createIcon({$quest.itemrewards[j].entry}, 1, {$quest.itemrewards[j].count}));
    372                                                 {/section}
    373                                                 </script>
     367            </tr>{/strip}
     368            </table>
     369            <script type="text/javascript">
     370            {section name=j loop=$quest.itemrewards}
     371              ge('icontab-icon{$smarty.section.j.index+1}').appendChild(g_items.createIcon({$quest.itemrewards[j].entry}, 1, {$quest.itemrewards[j].count}));
     372            {/section}
     373            </script>
    374374{/if}
    375375
    376376{if isset($quest.spellreward)}
    377                                                 {#The_following_spell_will_be_cast_on_you#}:
    378                                                 <table class="icontab">{strip}
    379                                                 <tr>
    380                                                 <th id="icontab-icon20"></th><td><a href="?spell={$quest.spellreward.entry}">{$quest.spellreward.name}</a></td>
    381                                                 <th></th><td></td>
    382                                                 </tr>
    383                                                 </table>{/strip}
    384 
    385                                                 <script type="text/javascript">
    386                                                         ge('icontab-icon20').appendChild(g_spells.createIcon({$quest.spellreward.entry}, 1, 0));
    387                                                 </script>
     377            {#The_following_spell_will_be_cast_on_you#}:
     378            <table class="icontab">{strip}
     379            <tr>
     380            <th id="icontab-icon20"></th><td><a href="?spell={$quest.spellreward.entry}">{$quest.spellreward.name}</a></td>
     381            <th></th><td></td>
     382            </tr>
     383            </table>{/strip}
     384
     385            <script type="text/javascript">
     386              ge('icontab-icon20').appendChild(g_spells.createIcon({$quest.spellreward.entry}, 1, 0));
     387            </script>
    388388{/if}
    389389
    390390{if isset($quest.moneycopper) or isset($quest.moneysilver) or isset($quest.moneygold)}
    391                                                 {strip}
    392                                                 {#You_will_also_receive#}:
    393                                                 {if isset($quest.moneygold)}<span class="moneygold">{$quest.moneygold}</span>{/if}
    394                                                 {if isset($quest.moneysilver)}<span class="moneysilver">{$quest.moneysilver}</span>{/if}
    395                                                 {if isset($quest.moneycopper)}<span class="moneycopper">{$quest.moneycopper}</span>{/if}
    396                                                 {/strip}
     391            {strip}
     392            {#You_will_also_receive#}:
     393            {if isset($quest.moneygold)}<span class="moneygold">{$quest.moneygold}</span>{/if}
     394            {if isset($quest.moneysilver)}<span class="moneysilver">{$quest.moneysilver}</span>{/if}
     395            {if isset($quest.moneycopper)}<span class="moneycopper">{$quest.moneycopper}</span>{/if}
     396            {/strip}
    397397{/if}
    398398{/if}
    399399
    400400{if ($quest.RequestItemsText and $quest.Objectives)}
    401                                                 <h3>{#Progress#}</h3>
    402                                                 {$quest.RequestItemsText}
     401            <h3>{#Progress#}</h3>
     402            {$quest.RequestItemsText}
    403403{/if}
    404404
    405405{if $quest.OfferRewardText}
    406                                                 <h3>{#Completion#}</h3>
    407                                                 {$quest.OfferRewardText}
     406            <h3>{#Completion#}</h3>
     407            {$quest.OfferRewardText}
    408408{/if}
    409409
    410410{if isset($quest.xp) or isset($quest.reprewards) or isset($quest.titlereward)}
    411                                         <h3>{#Gains#}</h3>
    412                                         {#Upon_completion_of_this_quest_you_will_gain#}:
    413                                         <ul>{strip}
     411          <h3>{#Gains#}</h3>
     412          {#Upon_completion_of_this_quest_you_will_gain#}:
     413          <ul>{strip}
    414414{if isset($quest.xp)}
    415                                                 <li><div>{$quest.xp} {#experience#} </div></li>
     415            <li><div>{$quest.xp} {#experience#} </div></li>
    416416{/if}
    417417{if isset($quest.reprewards)}
    418418{section name=j loop=$quest.reprewards}
    419                                                 <li><div>{$quest.reprewards[j].value} {#reputationwith#} <a href="?faction={$quest.reprewards[j].entry}">{$quest.reprewards[j].name}</a></div></li>
     419            <li><div>{$quest.reprewards[j].value} {#reputationwith#} <a href="?faction={$quest.reprewards[j].entry}">{$quest.reprewards[j].name}</a></div></li>
    420420{/section}
    421 {/if}                                           
     421{/if}           
    422422{if isset($quest.titlereward)}
    423                                                 <li><div>{#the_title#} "{$quest.titlereward|replace:"%s":"&lt;name&gt;"}"</div></li>
    424 {/if}
    425                                         </ul>{/strip}
    426 {/if}
    427 
    428                                 <h2>{#Related#}</h2>
    429 
    430                         </div>
    431 
    432                         <div id="tabs-generic"></div>
    433                         <div id="listview-generic" class="listview"></div>
    434                         <script type="text/javascript">
    435                                 var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
    436                                 new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
    437                                 tabsRelated.flush();
    438                         </script>
    439 
    440                         {include file='bricks/contribute.tpl'}
    441 
    442                         </div>
    443                 </div>
    444         </div>
     423            <li><div>{#the_title#} "{$quest.titlereward|replace:"%s":"&lt;name&gt;"}"</div></li>
     424{/if}
     425          </ul>{/strip}
     426{/if}
     427
     428        <h2>{#Related#}</h2>
     429
     430      </div>
     431
     432      <div id="tabs-generic"></div>
     433      <div id="listview-generic" class="listview"></div>
     434      <script type="text/javascript">
     435        var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
     436        new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
     437        tabsRelated.flush();
     438      </script>
     439
     440      {include file='bricks/contribute.tpl'}
     441
     442      </div>
     443    </div>
     444  </div>
    445445{include file='footer.tpl'}
  • aowow/templates/wowhead/spell.tpl

    r355 r439  
    33{assign var="iconlist2" value="1"}
    44<div id="main">
    5         <div id="main-precontents"></div>
    6         <div id="main-contents" class="main-contents">
    7 
    8                 <script type="text/javascript">
    9                         {include file='bricks/allcomments.tpl'}
    10                         var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeid}, name: '{$spell.name|escape:"javascript"}'{rdelim};
    11                         g_initPath({$page.path});
    12                 </script>
    13 
    14                 <table class="infobox">
    15                         <tr><th>{#Quick_Facts#}</th></tr>
    16                         <tr><td>
    17                                 <div class="infobox-spacer"></div>
    18                                         <ul>
    19                                                 <li>
    20                                                         <div>{#Level#}: {$spell.level}</div>
    21                                                 </li>
    22                                         </ul>
    23                                 </td></tr>
    24                         <tr><td><div class="infobox-spacer"></div><div id="infobox-sticky"></div></td></tr>
    25 
    26                 </table>
    27                 <script type="text/javascript">ss_appendSticky()</script>
    28 
    29                 <div class="text">
    30 
    31                         <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=13&amp;action=searchentry&amp;ID={$spell.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
    32                         <a href="http://www.wowhead.com/?{$query}" target="_blank" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
    33                         <h1>{$spell.name}</h1>
    34 
    35                         <div id="icon{$spell.entry}-generic" style="float: left"></div>
    36                         <div id="tooltip{$spell.entry}-generic" class="tooltip" style="float: left; padding-top: 1px">
    37                                 <table><tr><td>{$spell.info}</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>
    38                         </div>
    39                         <div style="clear: left"></div>
    40 
    41                         <script type="text/javascript">
    42                                 ge('icon{$spell.entry}-generic').appendChild(Icon.create('{$spell.icon}', 2, 0, 0, 0));
    43                                 Tooltip.fix(ge('tooltip{$spell.entry}-generic'), 1, 1);
    44                         </script>
    45 
    46                         {if isset($spell.btt)}
    47                         <h3>Buff</h3>
    48                         <div id="btt{$spell.entry}" class="tooltip">
    49                                 <table><tr><td>{$spell.btt}</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>
    50                         </div>
    51                         <script type="text/javascript">
    52                                 Tooltip.fixSafe(ge('btt{$spell.entry}'), 1, 1)
    53                         </script>
    54                         {/if}
    55 
    56                         {* Информация о спеллах для тултипов *}
    57                         <script type="text/javascript">
     5  <div id="main-precontents"></div>
     6  <div id="main-contents" class="main-contents">
     7
     8    <script type="text/javascript">
     9      {include file='bricks/allcomments.tpl'}
     10      var g_pageInfo = {ldelim}type: {$page.type}, typeId: {$page.typeid}, name: '{$spell.name|escape:"javascript"}'{rdelim};
     11      g_initPath({$page.path});
     12    </script>
     13
     14    <table class="infobox">
     15      <tr><th>{#Quick_Facts#}</th></tr>
     16      <tr><td>
     17        <div class="infobox-spacer"></div>
     18          <ul>
     19            <li>
     20              <div>{#Level#}: {$spell.level}</div>
     21            </li>
     22          </ul>
     23        </td></tr>
     24      <tr><td><div class="infobox-spacer"></div><div id="infobox-sticky"></div></td></tr>
     25
     26    </table>
     27    <script type="text/javascript">ss_appendSticky()</script>
     28
     29    <div class="text">
     30      <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=13&amp;state=0&amp;text=&amp;entry={$spell.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a>
     31
     32      <a href="http://www.wowhead.com/?{$query}" target="_blank" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Wowhead</span></div></a>
     33      <h1>{$spell.name}</h1>
     34
     35      <div id="icon{$spell.entry}-generic" style="float: left"></div>
     36      <div id="tooltip{$spell.entry}-generic" class="tooltip" style="float: left; padding-top: 1px">
     37        <table><tr><td>{$spell.info}</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>
     38      </div>
     39      <div style="clear: left"></div>
     40
     41      <script type="text/javascript">
     42        ge('icon{$spell.entry}-generic').appendChild(Icon.create('{$spell.icon}', 2, 0, 0, 0));
     43        Tooltip.fix(ge('tooltip{$spell.entry}-generic'), 1, 1);
     44      </script>
     45
     46      {if isset($spell.btt)}
     47      <h3>Buff</h3>
     48      <div id="btt{$spell.entry}" class="tooltip">
     49        <table><tr><td>{$spell.btt}</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>
     50      </div>
     51      <script type="text/javascript">
     52        Tooltip.fixSafe(ge('btt{$spell.entry}'), 1, 1)
     53      </script>
     54      {/if}
     55
     56      {* Информация о спеллах для тултипов *}
     57      <script type="text/javascript">
    5858{if $allspells}
    59                                         {include file='bricks/allspells_table.tpl' data=$allspells}
     59          {include file='bricks/allspells_table.tpl' data=$allspells}
    6060{/if}
    6161{if $allitems}
    62                                         {include file='bricks/allitems_table.tpl' data=$allitems}
    63 {/if}
    64                         </script>
    65 
    66                                         {if $spell.reagents}
    67                                         {if $spell.tools}<div style="float: left; margin-right: 75px">{/if}
    68                                         <h3>{#Reagents#}</h3>
    69                                         <table class="iconlist">
    70                                                 {section name=i loop=$spell.reagents}
    71                                                 <tr><th align="right" id="iconlist-icon{$iconlist1++}"></th><td><span class="q{$spell.reagents[i].quality}"><a href="?item={$spell.reagents[i].entry}">{$spell.reagents[i].name}</a></span></td></tr>
    72                                                 {/section}
    73                                         </table>
    74                                         <script type="text/javascript">
    75                                                 {section name=i loop=$spell.reagents}
    76                                                 ge('iconlist-icon{$iconlist2++}').appendChild(g_items.createIcon({$spell.reagents[i].entry}, 0, {$spell.reagents[i].count}));
    77                                                 {/section}
    78                                         </script>
    79                                         {if $spell.tools}</div>{/if}
    80                                         {/if}
    81                                         {if $spell.tools}
    82                                         {if $spell.reagents}<div style="float: left">{/if}
    83                                         <h3>{#Tools#}</h3>
    84                                         <table class="iconlist">
    85                                                 {section name=i loop=$spell.tools}
    86                                                 <tr><th align="right" id="iconlist-icon{$iconlist1++}"></th><td><span class="q1"><a href="?item={$spell.tools[i].entry}">{$spell.tools[i].name}</a></span></td></tr>
    87                                                 {/section}
    88                                         </table>
    89                                         <script type="text/javascript">
    90                                                 {section name=i loop=$spell.tools}
    91                                                 ge('iconlist-icon{$iconlist2++}').appendChild(g_items.createIcon({$spell.tools[i].entry}, 0, 1));
    92                                                 {/section}
    93                                         </script>
    94                                         {if $spell.reagents}</div>{/if}
    95                                         {/if}
    96 
    97                         <div class="clear"></div>
    98                         <h3>{#Spell_Details#}</h3>
    99 
    100                         <table class="grid" id="spelldetails">
    101                                 <colgroup>
    102                                         <col width="8%" />
    103                                         <col width="42%" />
    104                                         <col width="50%" />
    105                                 </colgroup>
    106                                 <tr>
    107                                         <td colspan="2" style="padding: 0; border: 0; height: 1px"></td>
    108                                         <td rowspan="5" style="padding: 0; border-left: 3px solid #404040">
    109                                                 <table class="grid" style="border: 0">
    110                                                 <tr>
    111                                                         <td style="height: 0; padding: 0; border: 0" colspan="2"></td>
    112                                                 </tr>
    113                                                 <tr>
    114                                                         <th style="border-left: 0; border-top: 0">{#Duration#}</th>
    115                                                         <td width="100%" style="border-top: 0">{$spell.duration}</td>
    116                                                 </tr>
    117                                                 <tr>
    118                                                         <th style="border-left: 0">{#school#}</th>
    119                                                         <td>{$spell.school}</td>
    120                                                 </tr>
    121                                                 <tr>
    122                                                         <th style="border-left: 0">{#Mechanic#}</th>
    123                                                         <td>{if isset($spell.mechanic)}{$spell.mechanic}{else}<span class="q0">n/a</span>{/if}</td>
    124                                                 </tr>
    125                                                 <tr>
    126                                                         <th style="border-bottom: 0; border-left: 0">{#Dispel_type#}</th>
    127                                                         <td>{if isset($spell.dispel)}{$spell.dispel}{else}<span class="q0">n/a</span>{/if}</td>
    128                                                 </tr>
    129                                                 </table>
    130                                         </td>
    131                                 </tr>
    132                                 <tr>
    133                                         <th style="border-top: 0">{#cost#}</th>
    134                                         <td style="border-top: 0">{if isset($spell.manacost)}{$spell.manacost} {#manas#}{else}{#None#}{/if}</td>
    135                                 </tr>
    136                                 <tr>
    137                                         <th>{#range#}</th>
    138                                         <td>{$spell.range} {#yards#} <small>({$spell.rangename})</small></td>
    139                                 </tr>
    140                                 <tr>
    141                                         <th>{#Cast_time#}</th>
    142                                         <td>{$spell.casttime}</td>
    143                                 </tr>
    144                                 <tr>
    145                                         <th>{#Cooldown#}</th>
    146                                         <td>{if isset($spell.cooldown)}{$spell.cooldown} {#seconds#}{else}<span class="q0">n/a</span>{/if}</td>
    147                                 </tr>
     62          {include file='bricks/allitems_table.tpl' data=$allitems}
     63{/if}
     64      </script>
     65
     66          {if $spell.reagents}
     67          {if $spell.tools}<div style="float: left; margin-right: 75px">{/if}
     68          <h3>{#Reagents#}</h3>
     69          <table class="iconlist">
     70            {section name=i loop=$spell.reagents}
     71            <tr><th align="right" id="iconlist-icon{$iconlist1++}"></th><td><span class="q{$spell.reagents[i].quality}"><a href="?item={$spell.reagents[i].entry}">{$spell.reagents[i].name}</a></span></td></tr>
     72            {/section}
     73          </table>
     74          <script type="text/javascript">
     75            {section name=i loop=$spell.reagents}
     76            ge('iconlist-icon{$iconlist2++}').appendChild(g_items.createIcon({$spell.reagents[i].entry}, 0, {$spell.reagents[i].count}));
     77            {/section}
     78          </script>
     79          {if $spell.tools}</div>{/if}
     80          {/if}
     81          {if $spell.tools}
     82          {if $spell.reagents}<div style="float: left">{/if}
     83          <h3>{#Tools#}</h3>
     84          <table class="iconlist">
     85            {section name=i loop=$spell.tools}
     86            <tr><th align="right" id="iconlist-icon{$iconlist1++}"></th><td><span class="q1"><a href="?item={$spell.tools[i].entry}">{$spell.tools[i].name}</a></span></td></tr>
     87            {/section}
     88          </table>
     89          <script type="text/javascript">
     90            {section name=i loop=$spell.tools}
     91            ge('iconlist-icon{$iconlist2++}').appendChild(g_items.createIcon({$spell.tools[i].entry}, 0, 1));
     92            {/section}
     93          </script>
     94          {if $spell.reagents}</div>{/if}
     95          {/if}
     96
     97      <div class="clear"></div>
     98      <h3>{#Spell_Details#}</h3>
     99
     100      <table class="grid" id="spelldetails">
     101        <colgroup>
     102          <col width="8%" />
     103          <col width="42%" />
     104          <col width="50%" />
     105        </colgroup>
     106        <tr>
     107          <td colspan="2" style="padding: 0; border: 0; height: 1px"></td>
     108          <td rowspan="5" style="padding: 0; border-left: 3px solid #404040">
     109            <table class="grid" style="border: 0">
     110            <tr>
     111              <td style="height: 0; padding: 0; border: 0" colspan="2"></td>
     112            </tr>
     113            <tr>
     114              <th style="border-left: 0; border-top: 0">{#Duration#}</th>
     115              <td width="100%" style="border-top: 0">{$spell.duration}</td>
     116            </tr>
     117            <tr>
     118              <th style="border-left: 0">{#school#}</th>
     119              <td>{$spell.school}</td>
     120            </tr>
     121            <tr>
     122              <th style="border-left: 0">{#Mechanic#}</th>
     123              <td>{if isset($spell.mechanic)}{$spell.mechanic}{else}<span class="q0">n/a</span>{/if}</td>
     124            </tr>
     125            <tr>
     126              <th style="border-bottom: 0; border-left: 0">{#Dispel_type#}</th>
     127              <td>{if isset($spell.dispel)}{$spell.dispel}{else}<span class="q0">n/a</span>{/if}</td>
     128            </tr>
     129            </table>
     130          </td>
     131        </tr>
     132        <tr>
     133          <th style="border-top: 0">{#cost#}</th>
     134          <td style="border-top: 0">{if isset($spell.manacost)}{$spell.manacost} {#manas#}{else}{#None#}{/if}</td>
     135        </tr>
     136        <tr>
     137          <th>{#range#}</th>
     138          <td>{$spell.range} {#yards#} <small>({$spell.rangename})</small></td>
     139        </tr>
     140        <tr>
     141          <th>{#Cast_time#}</th>
     142          <td>{$spell.casttime}</td>
     143        </tr>
     144        <tr>
     145          <th>{#Cooldown#}</th>
     146          <td>{if isset($spell.cooldown)}{$spell.cooldown} {#seconds#}{else}<span class="q0">n/a</span>{/if}</td>
     147        </tr>
    148148{section name=i loop=$spell.effect}
    149                                 <tr>
    150                                         <th>{#Effect#} #{$smarty.section.i.index+1}</th>
    151                                         <td colspan="3" style="line-height: 17px">
    152                                                 {$spell.effect[i].name}
    153 
    154                                                 <small>
    155                                                 {if isset($spell.effect[i].object)}<br>{#Object#}: <a href=?object={$spell.effect[i].object.entry}>{$spell.effect[i].object.name}</a>{/if}
    156                                                 {if isset($spell.effect[i].value)}<br>{#Value#}: {$spell.effect[i].value}{/if}
    157                                                 {if isset($spell.effect[i].radius)}<br>{#Radius#}: {$spell.effect[i].radius} {#yards#}{/if}
    158                                                 {if isset($spell.effect[i].interval)}<br>{#Interval#}: {$spell.effect[i].interval} {#seconds#}{/if}
    159                                                 </small>
     149        <tr>
     150          <th>{#Effect#} #{$smarty.section.i.index+1}</th>
     151          <td colspan="3" style="line-height: 17px">
     152            {$spell.effect[i].name}
     153
     154            <small>
     155            {if isset($spell.effect[i].object)}<br>{#Object#}: <a href=?object={$spell.effect[i].object.entry}>{$spell.effect[i].object.name}</a>{/if}
     156            {if isset($spell.effect[i].value)}<br>{#Value#}: {$spell.effect[i].value}{/if}
     157            {if isset($spell.effect[i].radius)}<br>{#Radius#}: {$spell.effect[i].radius} {#yards#}{/if}
     158            {if isset($spell.effect[i].interval)}<br>{#Interval#}: {$spell.effect[i].interval} {#seconds#}{/if}
     159            </small>
    160160{if isset($spell.effect[i].spell)}
    161                                                 <table class="icontab">
    162                                                         <tr>
    163                                                                 <th id="icontab-icon1"></th>
    164                                                                 <td><a href="?spell={$spell.effect[i].spell.entry}">{$spell.effect[i].spell.name}</a></td>
    165                                                                 <th></th><td></td>
    166                                                         </tr>
    167                                                 </table>
    168                                                 <script type="text/javascript">
    169                                                         ge('icontab-icon1').appendChild(g_spells.createIcon({$spell.effect[i].spell.entry}, 1, 0));
    170                                                 </script>
     161            <table class="icontab">
     162              <tr>
     163                <th id="icontab-icon1"></th>
     164                <td><a href="?spell={$spell.effect[i].spell.entry}">{$spell.effect[i].spell.name}</a></td>
     165                <th></th><td></td>
     166              </tr>
     167            </table>
     168            <script type="text/javascript">
     169              ge('icontab-icon1').appendChild(g_spells.createIcon({$spell.effect[i].spell.entry}, 1, 0));
     170            </script>
    171171{/if}
    172172{if isset($spell.effect[i].item)}
    173                                                 <table class="icontab">
    174                                                         <tr>
    175                                                                 <th id="icontab-icon1"></th><td><span class="q{$spell.effect[i].item.quality}"><a href="?item={$spell.effect[i].item.entry}">{$spell.effect[i].item.name}</a></span></td>
    176                                                                 <th></th><td></td>
    177                                                         </tr>
    178                                                 </table>
    179                                                 <script type="text/javascript">
    180                                                         ge('icontab-icon1').appendChild(g_items.createIcon({$spell.effect[i].item.entry}, 1, {$spell.effect[i].item.count}));
    181                                                 </script>
    182 {/if}
    183                                         </td>
    184                                 </tr>
     173            <table class="icontab">
     174              <tr>
     175                <th id="icontab-icon1"></th><td><span class="q{$spell.effect[i].item.quality}"><a href="?item={$spell.effect[i].item.entry}">{$spell.effect[i].item.name}</a></span></td>
     176                <th></th><td></td>
     177              </tr>
     178            </table>
     179            <script type="text/javascript">
     180              ge('icontab-icon1').appendChild(g_items.createIcon({$spell.effect[i].item.entry}, 1, {$spell.effect[i].item.count}));
     181            </script>
     182{/if}
     183          </td>
     184        </tr>
    185185{/section}
    186                         </table>
    187 
    188                         {* Для ослика *}
    189                         <script type="text/javascript">
    190                         if(Browser.ie6)
    191                                 array_walk(gE(ge('spelldetails'), 'tr'), function(x) {ldelim} if(x.parentNode.parentNode.className != 'icontab') {ldelim} x.onmouseover = Listview.itemOver; x.onmouseout = Listview.itemOut {rdelim}{rdelim});
    192                         </script>
    193 
    194                         <h2>{#Related#}</h2>
    195 
    196                 </div>
    197 
    198                 <div id="tabs-generic"></div>
    199                 <div id="listview-generic" class="listview"></div>
     186      </table>
     187
     188      {* Для ослика *}
     189      <script type="text/javascript">
     190      if(Browser.ie6)
     191        array_walk(gE(ge('spelldetails'), 'tr'), function(x) {ldelim} if(x.parentNode.parentNode.className != 'icontab') {ldelim} x.onmouseover = Listview.itemOver; x.onmouseout = Listview.itemOut {rdelim}{rdelim});
     192      </script>
     193
     194      <h2>{#Related#}</h2>
     195
     196    </div>
     197
     198    <div id="tabs-generic"></div>
     199    <div id="listview-generic" class="listview"></div>
    200200<script type="text/javascript">
    201201{if $allitems}{include file='bricks/allitems_table.tpl' data=$allitems}{/if}
    202202{if $allspells}{include file='bricks/allspells_table.tpl' data=$allspells}{/if}
    203203var tabsRelated = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
    204 {if isset($spell.taughtbynpc)}{include                  file='bricks/creature_table.tpl'                id='taught-by-npc'              tabsid='tabsRelated' data=$spell.taughtbynpc            name='taughtby'         }{/if}
    205 {if isset($spell.taughtbyitem)}{include                 file='bricks/item_table.tpl'                    id='taught-by-item'             tabsid='tabsRelated' data=$spell.taughtbyitem           name='taughtby'         }{/if}
    206 {if isset($spell.taughtbyquest)}{include                file='bricks/quest_table.tpl'                   id='taught-by-quest'    tabsid='tabsRelated' data=$spell.taughtbyquest          name='taughtby'         }{/if}
    207 {if isset($spell.questreward)}{include                  file='bricks/quest_table.tpl'                   id='reward-for-quest'   tabsid='tabsRelated' data=$spell.questreward            name='rewardfrom'       }{/if}
    208 {if isset($spell.usedbynpc)}{include                    file='bricks/creature_table.tpl'                id='used-by-npc'                tabsid='tabsRelated' data=$spell.usedbynpc                      name='usedby'           }{/if}
    209 {if isset($spell.usedbyitem)}{include                   file='bricks/item_table.tpl'                    id='used-by-item'               tabsid='tabsRelated' data=$spell.usedbyitem                     name='usedby'           }{/if}
    210 {if isset($spell.usedbyitemset)}{include                file='bricks/itemset_table.tpl'                 id='itemsets'                   tabsid='tabsRelated' data=$spell.usedbyitemset          name='usedby'           }{/if}
    211 {if isset($spell.seealso)}{include                              file='bricks/spell_table.tpl'                   id='see-also-ability'   tabsid='tabsRelated' data=$spell.seealso                        name='seealso'          }{/if}
     204{if isset($spell.taughtbynpc)}{include      file='bricks/creature_table.tpl'    id='taught-by-npc'    tabsid='tabsRelated' data=$spell.taughtbynpc    name='taughtby'   }{/if}
     205{if isset($spell.taughtbyitem)}{include     file='bricks/item_table.tpl'      id='taught-by-item'   tabsid='tabsRelated' data=$spell.taughtbyitem   name='taughtby'   }{/if}
     206{if isset($spell.taughtbyquest)}{include    file='bricks/quest_table.tpl'     id='taught-by-quest'  tabsid='tabsRelated' data=$spell.taughtbyquest    name='taughtby'   }{/if}
     207{if isset($spell.questreward)}{include      file='bricks/quest_table.tpl'     id='reward-for-quest' tabsid='tabsRelated' data=$spell.questreward    name='rewardfrom' }{/if}
     208{if isset($spell.usedbynpc)}{include      file='bricks/creature_table.tpl'    id='used-by-npc'    tabsid='tabsRelated' data=$spell.usedbynpc      name='usedby'   }{/if}
     209{if isset($spell.usedbyitem)}{include     file='bricks/item_table.tpl'      id='used-by-item'   tabsid='tabsRelated' data=$spell.usedbyitem     name='usedby'   }{/if}
     210{if isset($spell.usedbyitemset)}{include    file='bricks/itemset_table.tpl'     id='itemsets'     tabsid='tabsRelated' data=$spell.usedbyitemset    name='usedby'   }{/if}
     211{if isset($spell.seealso)}{include        file='bricks/spell_table.tpl'     id='see-also-ability' tabsid='tabsRelated' data=$spell.seealso      name='seealso'    }{/if}
    212212new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim});
    213213tabsRelated.flush();
    214214</script>
    215                 {include file='bricks/contribute.tpl'}
    216                 <div class="clear"></div>
    217         </div>
     215    {include file='bricks/contribute.tpl'}
     216    <div class="clear"></div>
     217  </div>
    218218</div>
    219219
Note: See TracChangeset for help on using the changeset viewer.