Ignore:
Timestamp:
Apr 9, 2010, 12:04:59 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Odkazy z AoWoW na vyhledání textů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.