rink.nu / projects / diablo2 / templates/item-details.tpl@62190786d47a
templates/item-details.tpl
author Rink Springer <rink@rink.nu>
Wed Mar 05 20:43:28 2008 +0100 (2008-03-05 ago)
changeset 16 62190786d47a
parent 14 31ea53c48db6
child 18 6afddb48e44e
permissions -rw-r--r--
Fix a stupid braino that would prevent 1.11 items from showing up as such.
     1    <tr>
     2     <td class="iteminfo">
     3      <div class="itemname">
     4       <a href="item.php?id={$item.itemid}">
     5        <img src="{$item.image}" alt="{$item.name}" /><br/>
     6        {$item.name}<br/>
     7       </a>
     8      </div>
     9      <a class="{if $item.itemsetid eq ""}unique{else}set{/if}itemlink" href="type.php?id={$item.itemcatid}">{$item.itemtype}</a><br/>
    10      {if $item.itemsetid != ""}<a class="{if $item.total==$item.owned}setcomplete{elseif $item.owned==0}setnone{else}setpartial{/if}" href="set.php?id={$item.itemsetid}">{$item.itemset}</a>{/if}
    11      {if $item.version != "109"}<b>{if $item.version == 110}1.10+{elseif $item.version == 111}1.11{else}???</b>{/if}
    12      {/if}
    13     </td>
    14     <td class="itemdescr">
    15      {if $item.tc!=""}
    16      Treasure class: <b class="{if $item.tc<50}low{elseif $item.tc>=75}high{else}medium{/if}tc">{$item.tc}</b><br/>
    17      {/if}
    18      {foreach from=$item.base item=prop}
    19       {$prop.name}:
    20       {if $prop.value}<b>{$prop.value}</b>{/if}
    21       {if $prop.min}<b>{$prop.min}-{$prop.max}</b>{/if}
    22       {if $prop.perlevel}<b>(Character level * {$prop.perlevel})</b>{/if}
    23       <br />
    24      {/foreach}
    25      {foreach from=$item.cacheprops item=prop}
    26       {$prop.name}:
    27       {if $prop.value}<b class="itemprops">{$prop.value}</b>{/if}
    28       {if $prop.min}<b class="itemprops">{$prop.min}-{$prop.max}</b>{/if}
    29       <br />
    30      {/foreach}
    31      {if $item.req_level ne ""}Required level: <b>{$item.req_level}</b><br/>{/if}
    32      {if $item.req_str ne ""}Required strength: <b>{$item.req_str}</b><br/>{/if}
    33      {if $item.req_dex ne ""}Required dexterity: <b>{$item.req_dex}</b><br/>{/if}
    34      Amount owned: {if $item.amount==0}<b class="noneowned">{else}{if $item.numether==$item.amount}<b class="etherowned">{else}<b class="itemowned">{/if}{/if}{$item.amount}</b><br/>
    35      <div class="itemprops">
    36       {foreach from=$item.properties item=prop}
    37        {if $prop.value}{if $prop.value>0}+{/if}{$prop.value}{/if}
    38        {if $prop.min}{$prop.min}-{$prop.max}{/if}
    39        {if $prop.perlevel}(Character level * {$prop.perlevel}){/if}
    40        {$prop.name}<br/>
    41       {/foreach}
    42      </div>
    43      <div class="itemprops">
    44      {foreach from=$item.spells item=spell}
    45       {if $spell.type=="C"}
    46        Level {if $spell.lval!=""}{$spell.lval}{else}{$spell.lmin} - {$spell.lmax}{/if} {$spell.name} ({$spell.num_charges} charges)
    47       {elseif $spell.type=="S"}
    48        +{if $spell.lval!=""}{$spell.lval}{else}{$spell.lmin} - {$spell.lmax}{/if} to {$spell.name} ({$spell.class} only)
    49       {else}
    50        {if $spell.pval!=""}{$spell.pval}{else}{$spell.pmin} - {$spell.pmax} {/if} % Chance to Cast Level {if $spell.lval!=""}{$spell.lval}{else}{$spell.lmin} - {$spell.lmax}{/if} {$spell.name} {if $spell.type=="O"}on striking{elseif $spell.type=="W"}when struck{elseif $spell.type=="A"}on Attack{elseif $spell.type=="I"}when you die{elseif $spell.type=="L"}when you level-up{/if}
    51       {/if}
    52       <br/>
    53      {/foreach}
    54      </div>
    55     </td>
    56    </tr>
Powered by FreeBSD, PostgreSQL and Perl
© 2001 - 2014 Rink Springer