Changeset 439 for aowow/templates/wowhead/spell.tpl
- Timestamp:
- Apr 9, 2010, 12:04:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
aowow/templates/wowhead/spell.tpl
r355 r439 3 3 {assign var="iconlist2" value="1"} 4 4 <div id="main"> 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 <a href="http://wowpreklad.zdechov.net/TranslationList.php?group=13&action=searchentry&ID={$spell.entry}" class="button-red"><div><blockquote><i>Wowhead</i></blockquote><span>Překládat</span></div></a> 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 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&state=0&text=&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"> 58 58 {if $allspells} 59 59 {include file='bricks/allspells_table.tpl' data=$allspells} 60 60 {/if} 61 61 {if $allitems} 62 63 {/if} 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 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> 148 148 {section name=i loop=$spell.effect} 149 150 151 152 153 154 155 156 157 158 159 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> 160 160 {if isset($spell.effect[i].spell)} 161 162 163 164 165 166 167 168 169 170 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> 171 171 {/if} 172 172 {if isset($spell.effect[i].item)} 173 174 175 176 177 178 179 180 181 182 {/if} 183 184 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> 185 185 {/section} 186 187 188 189 190 191 192 193 194 195 196 197 198 199 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> 200 200 <script type="text/javascript"> 201 201 {if $allitems}{include file='bricks/allitems_table.tpl' data=$allitems}{/if} 202 202 {if $allspells}{include file='bricks/allspells_table.tpl' data=$allspells}{/if} 203 203 var 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} 212 212 new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'listview-generic', data: lv_comments{rdelim}); 213 213 tabsRelated.flush(); 214 214 </script> 215 216 217 215 {include file='bricks/contribute.tpl'} 216 <div class="clear"></div> 217 </div> 218 218 </div> 219 219
Note:
See TracChangeset
for help on using the changeset viewer.