Show block_team_cstrike.html syntax highlighted
{*
This block is included from the player, map and clan pages.
This block will output a 'team comparison' table on the top summarizing general values.
under that table, two side-by-side tables will display each team's action totals (bombs planted, etc)
$thing will be either a PLAYER or CLAN hash of data
*}
{assign var='totalwins' value=$thing.ctwon+$thing.terroristwon}
{calcpct var='bombdefusedpct' sum=$thing.bombdefused total=$thing.bombdefuseattempts}
{calcpct var='rescuedhostagespct' sum=$thing.rescuedhostages total=$thing.touchedhostages}
{calcpct var='vipescapedpct' sum=$thing.vipescaped total=$thing.rounds}
{calcpct var='bombrunnerpct' sum=$thing.bombrunner total=$thing.bombspawned}
{calcpct var='bombplantedpct' sum=$thing.bombplanted total=$thing.bombspawned}
{calcpct var='bombexplodedpct' sum=$thing.bombexploded total=$thing.bombplanted}
{calcpct var='ctkillspct' sum=$thing.ctkills total=$thing.kills digits=0}
{calcpct var='terroristkillspct' sum=$thing.terroristkills total=$thing.kills digits=2}
{calcpct var='ctwonpct' sum=$thing.ctwon total=$totalwins}
{calcpct var='terroristwonpct' sum=$thing.terroristwon total=$totalwins}
{assign var='id' value=$id|default:$thing.id}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-frame1">
<tr><td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tbl-shade1">
<tr><td class="text">
<font class="text-hdr"><#Team Comparison#></font>
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-frame1">
<tr><td><table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-shade4">
<tr><td class="text">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center" class="tbl-hdr">
<td class="text-hdr-small"><#Team#></td>
<td class="text-hdr-small"><#Kills#></td>
<td class="text-hdr-small"><#Deaths#></td>
<td class="text-hdr-small"><#Won#></td>
<td class="text-hdr-small"><#Lost#></td>
<td class="text-hdr-small"><#Joined#></td>
</tr>
<tr><td colspan="6" class="tbl-frame1"><img src="{$conf.imagesurl}spacer.gif" width="1" height="2"></td></tr>
<tr align="center" class="tbl-shade2">
<td class="label"><#CT#></td>
<td class="text">{$thing.ctkills|commify}</td>
<td class="text">{$thing.ctdeaths|commify}</td>
<td class="text">{$thing.ctwon|commify}</td>
<td class="text">{$thing.ctlost|commify}</td>
<td class="text">{$thing.joinedct|commify}</td>
</tr>
<tr align="center" class="tbl-shade3">
<td class="label"><#Terrorist#></td>
<td class="text">{$thing.terroristkills|commify}</td>
<td class="text">{$thing.terroristdeaths|commify}</td>
<td class="text">{$thing.terroristwon|commify}</td>
<td class="text">{$thing.terroristlost|commify}</td>
<td class="text">{$thing.joinedterrorist|commify}</td>
</tr>
<tr class="tbl-frame1">
<td colspan="6"><img src="{$conf.imagesurl}spacer.gif" width="1" height="1" /></td>
</tr>
<tr class="tbl-shade1" align="center">
<td class="text-small"><#Comparisons:#></td>
<td class="text-small">
{teamcompare
width = '90%'
leftwidth = $ctkillspct
rightwidth = $terroristkillspct
}
</td>
<td class-"text-small"><img src="{$conf.imagesurl}spacer.gif" width="1" height="1" /></td>
<td class="text-small">
{teamcompare
width = '90%'
leftwidth = $ctwonpct
rightwidth = $terroristwonpct
}
</td>
<td class-"text-small"><img src="{$conf.imagesurl}spacer.gif" width="1" height="1" /></td>
<td class-"text-small"><img src="{$conf.imagesurl}spacer.gif" width="1" height="1" /></td>
</tr>
</table>
</td></tr>
</table></td></tr>
</table>
</td></tr>
</table>
</td></tr></table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="50%">
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-frame1">
<tr><td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tbl-shade1">
<tr><td class="text" align="center">
<font class="text-hdr"><#Counter-Terrorists#></font>
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-frame1">
<tr><td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tbl-shade4">
<tr><td class="text">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td class="label"><#Bomb Defused:#></td>
<td align="right" class="text">{$thing.bombdefused|commify} / {$thing.bombdefuseattempts|commify}</td>
</tr>
<tr>
<td align="left" class="label"> </td>
<td align="right" class="text">{$bombdefusedpct|digits2}%</td>
</tr>
<tr>
<td class="label"><#Hostages Rescued:#></td>
<td align="right" class="text">{$thing.rescuedhostages|commify} / {$thing.touchedhostages|commify}</td>
</tr>
<tr>
<td align="left" class="label"> </td>
<td align="right" class="text">{$rescuedhostagespct|digits2}%</td>
</tr>
<tr>
<td class="label"><#Escaped as VIP:#></td>
<td align="right" class="text">{$thing.vipescaped|commify} / {$thing.rounds|commify}</td>
</tr>
<tr>
<td align="left" class="label"> </td>
<td align="right" class="text">{$vipescapedpct|digits2}%</td>
</tr>
<tr>
<td align="left" class="label"> </td>
<td align="right" class="text"> </td>
</tr>
</table>
</td></tr>
</table></td></tr>
</table>
</td></tr>
</table>
</td></tr></table>
</td>
<td><img src="{$conf.imagesurl}spacer.gif" height="1" width="10"></td>
<td width="50%">
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-frame1">
<tr><td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tbl-shade1">
<tr><td class="text" align="center">
<font class="text-hdr"><#Terrorists#></font>
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="tbl-frame1">
<tr><td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tbl-shade4">
<tr><td class="text">
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr>
<td class="label"><#Bomb Runner:#></td>
<td class="text" align="right">{$thing.bombrunner|commify} / {$thing.bombspawned|commify}</td>
</tr>
<tr>
<td class="label"> </td>
<td class="text" align="right">{$bombrunnerpct|digits2}%</td>
</tr>
<tr>
<td class="label"><#Planted Bomb:#></td>
<td class="text" align="right">{$thing.bombplanted|commify} / {$thing.rounds|commify}</td>
</tr>
<tr>
<td class="label"> </td>
<td class="text" align="right">{$bombplantedpct|digits2}%</td>
</tr>
<tr>
<td class="label"><#Bomb Exploded:#></td>
<td class="text" align="right">{$thing.bombexploded|commify} / {$thing.bombplanted|commify}</td>
</tr>
<tr>
<td class="label"> </td>
<td class="text" align="right">{$bombexplodedpct|digits2}%</td>
</tr>
<tr>
<td class="label"><#Killed VIP:#></td>
<td class="text" align="right">{$thing.vipkilled|commify}</td>
</tr>
</table>
</td></tr>
</table></td></tr>
</table>
</td></tr>
</table>
</td></tr></table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
See more files for this project here