root/dev/mods/fitting/kill_detail.tpl @ 303

Revision 303, 12.4 KB (checked in by ralle030583, 13 years ago)

FIX: First rig in fitting window wasnt shown, cause of false index usage

Line 
1{cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}
2<table cellpadding=0 cellspacing=1 border=0>
3    <tr>
4        <td width=360 align=left valign=top><table class=kb-table width=360 cellpadding=0 cellspacing=1 border=0>
5                <tr class= {cycle name=ccl}>
6                    <td rowspan=3 width="64"><img src="{$VictimPortrait}" border="0" width="64" heigth="64"></td>
7                    <td class=kb-table-cell width=64><b>Victim:</b></td>
8                    <td class=kb-table-cell><b><a href="{$VictimURL}">{$VictimName}</a></b></td>
9                </tr>
10                <tr class={cycle name=ccl}>
11                    <td class=kb-table-cell width=64><b>Corp:</b></td>
12                    <td class=kb-table-cell><b><a href="{$VictimCorpURL}">{$VictimCorpName}</a></b></td>
13                </tr>
14                <tr class={cycle name=ccl}>
15                    <td class=kb-table-cell width=64><b>Alliance:</b></td>
16                    <td class=kb-table-cell><b><a href="{$VictimAllianceURL}">{$VictimAllianceName}</a></b></td>
17                </tr>
18            </table>
19            <div class=block-header>Involved parties</div>
20            <table class=kb-table width=360 border=0 cellspacing="1">
21{foreach from=$involved key=key item=i}
22                <tr class={cycle name=ccl}>
23                    <td rowspan=5 width="64"><img {if $i.FB == "true"}class=finalblow{/if} height="64" width="64" src="{$i.portrait}" border="0"></td>
24                    <td rowspan=5 width="64"><img {if $i.FB == "true"}class=finalblow{/if} height="64" width="64" src="{$i.shipImage}" border="0"></td>
25                    <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;"><a href="{$i.PilotURL}">{$i.PilotName}</a></td>
26                </tr>
27                <tr class={cycle name=ccl}>
28                    <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;"><a href="{$i.CorpURL}">{$i.CorpName}</a></td>
29                </tr>
30                <tr class={cycle name=ccl}>
31                    <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;"><a href="{$i.AlliURL}">{$i.AlliName}</a></td>
32                </tr>
33                <tr class={cycle name=ccl}>
34                    <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;"><b><a href="?a=invtype&id={$i.ShipID}">{$i.ShipName}</a></b></td>
35                </tr>
36                <tr class={cycle name=ccl}>
37                    <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">{if $i.weaponID}<a href="?a=invtype&id={$i.weaponID}">{$i.weaponName}</a>{else}{$i.weaponName}{/if}</td>
38                </tr>
39                <tr class={cycle name=ccl}>
40                    <td colspan=2 class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">Damage done:</td><td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">{$i.damageDone|number_format} {if $VictimDamageTaken > 0}({$i.damageDone/$VictimDamageTaken*100|number_format}%){/if}</td>
41                </tr>
42{/foreach}
43            </table>
44{if $config->get('comments')}{$comments}{/if}
45        </td>
46        <td width=50>&nbsp;</td>
47        <td align=left valign=top width=360><table class=kb-table width=360 cellspacing="1">
48                <tr class={cycle name=ccl}>
49                    <td width="64" heigth="64" rowspan=3><img src="{$VictimShipImg}" width="64" heigth="64"></td>
50                    <td class=kb-table-cell><b>Ship:</b></td>
51                    <td class=kb-table-cell><b><a href="?a=invtype&id={$ShipID}">{$ShipName}</a></b> ({$ClassName})</td>
52                </tr>
53                <tr class={cycle name=ccl}>
54                    <td class=kb-table-cell><b>Location:</b></td>
55                    <td class=kb-table-cell><b><a href="{$SystemURL}">{$System}</a></b> ({$SystemSecurity})</td>
56                </tr>
57                <tr class={cycle name=ccl}>
58                    <td class=kb-table-cell><b>Date:</b></td>
59                    <td class=kb-table-cell>{$TimeStamp}</td>
60                </tr>
61            </table>
62
63
64          <br />
65          <div id="fitting" style="position:relative; height:380px; width:360px; background-image:url(mods/fitting/fitting.gif)" name="fitting">
66<div id="high1" style="position:absolute; left:40px; top:255px; width:32px; height:32px; z-index:1;">{$fitting_high.0.Icon}</div>
67<div id="high2" style="position:absolute; left:8px; top:162px; width:32px; height:32px; z-index:1;">{$fitting_high.1.Icon}</div>
68<div id="high3" style="position:absolute; left:41px; top:71px; width:32px; height:32px; z-index:1;">{$fitting_high.2.Icon}</div>
69<div id="high4" style="position:absolute; left:117px; top:15px; width:32px; height:32px; z-index:1;">{$fitting_high.3.Icon}</div>
70<div id="high5" style="position:absolute; left:212px; top:13px; width:32px; height:32px; z-index:1;">{$fitting_high.4.Icon}</div>
71<div id="high6" style="position:absolute; left:295px; top:72px; width:32px; height:32px; z-index:1;">{$fitting_high.5.Icon}</div>
72<div id="high7" style="position:absolute; left:323px; top:165px; width:32px; height:32px; z-index:1;">{$fitting_high.6.Icon}</div>
73<div id="high8" style="position:absolute; left:295px; top:253px; width:32px; height:32px; z-index:1;">{$fitting_high.7.Icon}</div>
74
75<div id="mid1" style="position:absolute; left:73px; top:229px; width:32px; height:32px; z-index:1;">{$fitting_med.0.Icon}</div>
76<div id="mid2" style="position:absolute; left:51px; top:165px; width:32px; height:32px; z-index:1;">{$fitting_med.1.Icon}</div>
77<div id="mid3" style="position:absolute; left:72px; top:93px; width:32px; height:32px; z-index:1;">{$fitting_med.2.Icon}</div>
78<div id="mid4" style="position:absolute; left:132px; top:57px; width:32px; height:32px; z-index:1;">{$fitting_med.3.Icon}</div>
79<div id="mid5" style="position:absolute; left:198px; top:52px; width:32px; height:32px; z-index:1;">{$fitting_med.4.Icon}</div>
80<div id="mid6" style="position:absolute; left:256px; top:101px; width:32px; height:32px; z-index:1;">{$fitting_med.5.Icon}</div>
81<div id="mid7" style="position:absolute; left:275px; top:166px; width:32px; height:32px; z-index:1;">{$fitting_med.6.Icon}</div>
82<div id="mid8" style="position:absolute; left:261px; top:228px; width:32px; height:32px; z-index:1;">{$fitting_med.7.Icon}</div>
83
84<div id="low1" style="position:absolute; left:107px; top:205px; width:32px; height:32px; z-index:1;">{$fitting_low.0.Icon}</div>
85<div id="low2" style="position:absolute; left:94px; top:163px; width:32px; height:32px; z-index:1;">{$fitting_low.1.Icon}</div>
86<div id="low3" style="position:absolute; left:111px; top:123px; width:32px; height:32px; z-index:1;">{$fitting_low.2.Icon}</div>
87<div id="low4" style="position:absolute; left:143px; top:93px; width:32px; height:32px; z-index:1;">{$fitting_low.3.Icon}</div>
88<div id="low5" style="position:absolute; left:186px; top:94px; width:32px; height:32px; z-index:1;">{$fitting_low.4.Icon}</div>
89<div id="low6" style="position:absolute; left:228px; top:123px; width:32px; height:32px; z-index:1;">{$fitting_low.5.Icon}</div>
90<div id="low7" style="position:absolute; left:237px; top:164px; width:32px; height:32px; z-index:1;">{$fitting_low.6.Icon}</div>
91<div id="low8" style="position:absolute; left:225px; top:203px; width:32px; height:32px; z-index:1;">{$fitting_low.7.Icon}</div>
92
93<div id="rig1" style="position:absolute; left:54px; top:345px; width:32px; height:32px; z-index:1;">{$fitting_rig.0.Icon}</div>
94<div id="rig2" style="position:absolute; left:86px; top:345px; width:32px; height:32px; z-index:1;">{$fitting_rig.1.Icon}</div>
95<div id="rig3" style="position:absolute; left:118px; top:345px; width:32px; height:32px; z-index:1;">{$fitting_rig.2.Icon}</div>
96
97</div>
98           
99           
100           
101           
102          <div class="block-header">Ship details</div>
103            <table class="kb-table" width="360" border="0" cellspacing="1">
104{foreach from=$destroyed item=slot key=slotindex}
105{* set to true to show empty slots *}
106{if $slot.items or $dropped.$slotindex.items}
107                <tr class="kb-table-row-even">
108                    <td class="item-icon" width="32"><img width="32" height="32" src="{$img_url}/{$slot.img}" alt="{$slot.text}" border="0"></td>
109                    <td colspan="2" class="kb-table-cell"><b>{$slot.text}</b> </td>
110    {if $config->get('item_values')}
111                    <td align="center" class="kb-table-cell"><b>Value</b></td>
112    {/if}
113                </tr>
114    {foreach from=$slot.items item=i}
115                <tr class="kb-table-row-odd">
116                    <td class="item-icon" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td>
117                    <td class="kb-table-cell">{$i.Name}</td>
118                    <td width="30" align="center">{$i.Quantity}</td>
119        {if $config->get('item_values')}
120                    <td align="center">{$i.Value}</td>
121        {/if}
122                </tr>
123        {if $admin and $config->get('item_values')}
124                    <tr class="kb-table-row-even">
125                      <form method="post" action="">
126                        <td height="34" colspan="3" valign="top">
127                            <div align="right">
128                                Current single Item Value:
129                                <input name="IID" value="{$i.itemID}" type="hidden">
130                                <input name="{$i.itemID}" type="text" class="comment-button" value="{$i.single_unit}" size="6">
131                            </div>
132                        <td height="34" valign="top"><input type="submit" name="submit" value="Update" class="comment-button"></td>
133                      </form>
134                    </tr>
135        {/if}
136    {foreachelse}
137                <tr class="kb-table-row-odd">
138                    <td colspan="4" valign="top">No Items lost</td>
139                </tr>
140    {/foreach}
141    {foreach from=$dropped.$slotindex.items item=i}
142                <tr class="kb-table-row-odd" style="background-color: green;">
143                    <td style="border: 1px solid green;" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td>
144                    <td class="kb-table-cell">{$i.Name}</td>
145                    <td width="30" align="center">{$i.Quantity}</td>
146        {if $config->get('item_values')}
147                    <td align="center">{$i.Value}</td>
148        {/if}
149                </tr>
150        {if $admin and $config->get('item_values')}
151                    <tr class="kb-table-row-even">
152                      <form method="post" action="">
153                        <td height="34" colspan="3" valign="top">
154                            <div align="right">
155                                Current single Item Value:
156                                <input name="IID" value="{$i.itemID}" type="hidden">
157                                <input name="{$i.itemID}" type="text" class="comment-button" value="{$i.single_unit}" size="6">
158                            </div>
159                        <td height="34" valign="top"><input type="submit" name="submit" value="Update" class="comment-button"></td>
160                      </form>
161                    </tr>
162        {/if}
163    {/foreach}
164{/if}
165{/foreach}
166{if $item_values}
167                <tr class={cycle name=ccl}>
168                    <td align="right" colspan="3"><b>Damage taken:</b></td>
169                    <td align="right">{$VictimDamageTaken|number_format}</td>
170                </tr>
171                <tr class={cycle name=ccl}>
172                    <td colspan="3"><div align="right"><strong>Total Module Loss:</strong></div></td>
173                    <td align="right">{$ItemValue}</td>
174                </tr>
175                <tr class={cycle name=ccl} style="background-color: green;">
176                    <td style="border: 1px solid green;" colspan="3"><div align="right"><strong>Total Module Drop:</strong></div></td>
177                    <td style="border: 1px solid green;" align="right">{$DropValue}</td>
178                </tr>
179                <tr class={cycle name=ccl}>
180                    <td colspan="3"><div align="right"><strong>Ship Loss:</strong></div></td>
181                    <td align="right">{$ShipValue}</td>
182                </tr>
183                <tr class={cycle name=ccl}>
184                    <td colspan="3"><div align="right"><strong>Total Loss:</strong></div></td>
185                    <td align="right">{$TotalLoss}</td>
186                </tr>
187{/if}
188            </table>
189        </td>
190    </tr>
191</table>
Note: See TracBrowser for help on using the browser.