<?php /* Smarty version 2.6.25, created on 2009-08-04 21:09:41
         compiled from killlisttable.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date', 'killlisttable.tpl', 4, false),array('modifier', 'truncate', 'killlisttable.tpl', 32, false),array('modifier', 'max', 'killlisttable.tpl', 56, false),array('modifier', 'string_format', 'killlisttable.tpl', 56, false),array('modifier', 'date_format', 'killlisttable.tpl', 61, false),array('function', 'cycle', 'killlisttable.tpl', 20, false),)), $this); ?>
 <!-- killlistable.tpl -->
<?php unset($this->_sections['day']);
$this->_sections['day']['name'] = 'day';
$this->_sections['day']['loop'] = is_array($_loop=$this->_tpl_vars['killlist']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['day']['show'] = true;
$this->_sections['day']['max'] = $this->_sections['day']['loop'];
$this->_sections['day']['step'] = 1;
$this->_sections['day']['start'] = $this->_sections['day']['step'] > 0 ? 0 : $this->_sections['day']['loop']-1;
if ($this->_sections['day']['show']) {
    $this->_sections['day']['total'] = $this->_sections['day']['loop'];
    if ($this->_sections['day']['total'] == 0)
        $this->_sections['day']['show'] = false;
} else
    $this->_sections['day']['total'] = 0;
if ($this->_sections['day']['show']):

            for ($this->_sections['day']['index'] = $this->_sections['day']['start'], $this->_sections['day']['iteration'] = 1;
                 $this->_sections['day']['iteration'] <= $this->_sections['day']['total'];
                 $this->_sections['day']['index'] += $this->_sections['day']['step'], $this->_sections['day']['iteration']++):
$this->_sections['day']['rownum'] = $this->_sections['day']['iteration'];
$this->_sections['day']['index_prev'] = $this->_sections['day']['index'] - $this->_sections['day']['step'];
$this->_sections['day']['index_next'] = $this->_sections['day']['index'] + $this->_sections['day']['step'];
$this->_sections['day']['first']      = ($this->_sections['day']['iteration'] == 1);
$this->_sections['day']['last']       = ($this->_sections['day']['iteration'] == $this->_sections['day']['total']);
?>
    <?php if ($this->_tpl_vars['daybreak']): ?>
<div class="kb-date-header"><?php echo ((is_array($_tmp="l, F jS")) ? $this->_run_mod_handler('date', true, $_tmp, $this->_tpl_vars['killlist'][$this->_sections['day']['index']]['date']) : date($_tmp, $this->_tpl_vars['killlist'][$this->_sections['day']['index']]['date'])); ?>
</div><br>
    <?php endif; ?>
<div style="text-align: center;"><table class="kb-table" style="width: 100%; margin-left: auto; margin-right: auto; text-align: left;" cellspacing="1">
    <tr class="kb-table-header">
        <td class="kb-table-header" colspan="2" align="center">Ship type</td>
        <td class="kb-table-header"<?php if ($this->_tpl_vars['config']->get('killlist_alogo')): ?> colspan="2"<?php endif; ?>>Victim</td>
        <td class="kb-table-header">Final blow</td>
        <td class="kb-table-header" align="center">System</td>
        <?php if ($this->_tpl_vars['config']->get('killlist_involved')): ?>
			<td class="kb-table-header" align="center">Inv.</td>
		<?php endif; ?>
        <td class="kb-table-header" align="center">Time</td>
    <?php if ($this->_tpl_vars['comments_count']): ?>
        <td class="kb-table-header" align="center"><img src="<?php echo $this->_tpl_vars['img_url']; ?>
/comment<?php echo $this->_tpl_vars['comment_white']; ?>
.gif" alt="comments"></td>
    <?php endif; ?>
    </tr>
    <?php echo smarty_function_cycle(array('reset' => true,'print' => false,'name' => 'ccl','values' => "kb-table-row-even,kb-table-row-odd"), $this);?>

    <?php unset($this->_sections['kill']);
$this->_sections['kill']['name'] = 'kill';
$this->_sections['kill']['loop'] = is_array($_loop=$this->_tpl_vars['killlist'][$this->_sections['day']['index']]['kills']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['kill']['show'] = true;
$this->_sections['kill']['max'] = $this->_sections['kill']['loop'];
$this->_sections['kill']['step'] = 1;
$this->_sections['kill']['start'] = $this->_sections['kill']['step'] > 0 ? 0 : $this->_sections['kill']['loop']-1;
if ($this->_sections['kill']['show']) {
    $this->_sections['kill']['total'] = $this->_sections['kill']['loop'];
    if ($this->_sections['kill']['total'] == 0)
        $this->_sections['kill']['show'] = false;
} else
    $this->_sections['kill']['total'] = 0;
if ($this->_sections['kill']['show']):

            for ($this->_sections['kill']['index'] = $this->_sections['kill']['start'], $this->_sections['kill']['iteration'] = 1;
                 $this->_sections['kill']['iteration'] <= $this->_sections['kill']['total'];
                 $this->_sections['kill']['index'] += $this->_sections['kill']['step'], $this->_sections['kill']['iteration']++):
$this->_sections['kill']['rownum'] = $this->_sections['kill']['iteration'];
$this->_sections['kill']['index_prev'] = $this->_sections['kill']['index'] - $this->_sections['kill']['step'];
$this->_sections['kill']['index_next'] = $this->_sections['kill']['index'] + $this->_sections['kill']['step'];
$this->_sections['kill']['first']      = ($this->_sections['kill']['iteration'] == 1);
$this->_sections['kill']['last']       = ($this->_sections['kill']['iteration'] == $this->_sections['kill']['total']);
?>
        <?php $this->assign('k', $this->_tpl_vars['killlist'][$this->_sections['day']['index']]['kills'][$this->_sections['kill']['index']]); ?>
<?php if ($this->_tpl_vars['k']['loss']): ?>
<tr class="<?php echo smarty_function_cycle(array('name' => 'ccl'), $this);?>
-loss" onClick="window.location.href='?a=kill_detail&amp;kll_id=<?php echo $this->_tpl_vars['k']['id']; ?>
';">
<?php elseif ($this->_tpl_vars['k']['kill']): ?>
<tr class="<?php echo smarty_function_cycle(array('name' => 'ccl'), $this);?>
-kill" onClick="window.location.href='?a=kill_detail&amp;kll_id=<?php echo $this->_tpl_vars['k']['id']; ?>
';">
<?php else: ?>
<tr class="<?php echo smarty_function_cycle(array('advance' => false,'name' => 'ccl'), $this);?>
" onmouseout="this.className='<?php echo smarty_function_cycle(array('name' => 'ccl'), $this);?>
';" style="height: 34px; cursor: pointer;"
onmouseover="this.className='kb-table-row-hover';" onClick="window.location.href='?a=kill_detail&amp;kll_id=<?php echo $this->_tpl_vars['k']['id']; ?>
';">
<?php endif; ?>
        <td style="width: 32px" align="center"><img src="<?php echo $this->_tpl_vars['k']['victimshipimage']; ?>
" style="border-width: 0; width: 32px; height: 32;" alt=""></td>
        <td style="height: 34px; width: 180px; vertical-align: middle;"><div class="kb-shiptype"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimshipname'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 21, "...", true) : smarty_modifier_truncate($_tmp, 21, "...", true)); ?>
</b><br><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimshipclass'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 24, "...", true) : smarty_modifier_truncate($_tmp, 24, "...", true)); ?>
</div><div class="kb-shipicon"><img src="<?php echo $this->_tpl_vars['k']['victimshipindicator']; ?>
" style="border-width: 0px;" alt=""></div></td>
        <?php if ($this->_tpl_vars['config']->get('killlist_alogo')): ?>
            <?php if ($this->_tpl_vars['k']['allianceexists']): ?>
            <td style="width: 32px" align="center"><img src="<?php echo $this->_tpl_vars['img_url']; ?>
/alliances/<?php echo $this->_tpl_vars['k']['victimallianceicon']; ?>
.png" style="border-width: 0px; width: 32px; height: 32px;" title="<?php echo $this->_tpl_vars['k']['victimalliancename']; ?>
" alt="<?php echo $this->_tpl_vars['k']['victimalliancename']; ?>
"></td>
            <?php elseif ($this->_tpl_vars['k']['victimalliancename'] != 'None'): ?>
            <td style="width: 32px" align="center"><img src="<?php echo $this->_tpl_vars['img_url']; ?>
/alliances/default.gif" style="border-width: 0px; width: 32px; height:32px;" title="<?php echo $this->_tpl_vars['k']['victimalliancename']; ?>
" alt="<?php echo $this->_tpl_vars['k']['victimalliancename']; ?>
"></td>
            <?php else: ?>
            <td style="width: 32px" align="center">&nbsp;</td>
            <?php endif; ?>
        <?php endif; ?>
<?php if ($this->_tpl_vars['k']['loss']): ?>
	<td style="width: 235px" class="kb-table-cell"><b><?php echo $this->_tpl_vars['k']['victim']; ?>
</b><br><?php if ($this->_tpl_vars['config']->get('corpalliance-name')): ?><b>Corp:</b> <?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimcorp'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 27) : smarty_modifier_truncate($_tmp, 27)); ?>
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimcorp'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 31) : smarty_modifier_truncate($_tmp, 31)); ?>
<?php endif; ?></td>
<?php else: ?>
        <?php if ($this->_tpl_vars['config']->get('corpalliance-name')): ?>
			<?php if ($this->_tpl_vars['k']['victimalliancename'] != 'None'): ?>
			<td style="width: 235px" class="kb-table-cell"><b><?php echo $this->_tpl_vars['k']['victim']; ?>
</b><br><b>Alliance:</b> <?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimalliancename'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 27) : smarty_modifier_truncate($_tmp, 27)); ?>
</td>
			<?php else: ?>
			<td style="width: 235px" class="kb-table-cell"><b><?php echo $this->_tpl_vars['k']['victim']; ?>
</b><br><b>Corp:</b> <?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimcorp'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30) : smarty_modifier_truncate($_tmp, 30)); ?>
</td>
			<?php endif; ?>
		<?php else: ?>
			<td style="width: 235px" class="kb-table-cell"><b><?php echo $this->_tpl_vars['k']['victim']; ?>
</b><br><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['victimcorp'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)); ?>
</td>
		<?php endif; ?>
<?php endif; ?>
        <td style="width: 190px" class="kb-table-cell"><b><?php echo $this->_tpl_vars['k']['fb']; ?>
</b><br><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['fbcorp'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 27) : smarty_modifier_truncate($_tmp, 27)); ?>
</td>
        <td style="width: 100px" class="kb-table-cell" align="center"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['system'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10) : smarty_modifier_truncate($_tmp, 10)); ?>
</b><br>(<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['k']['systemsecurity'])) ? $this->_run_mod_handler('max', true, $_tmp, 0) : max($_tmp, 0)))) ? $this->_run_mod_handler('string_format', true, $_tmp, "%01.1f") : smarty_modifier_string_format($_tmp, "%01.1f")); ?>
)</td>
        <?php if ($this->_tpl_vars['config']->get('killlist_involved')): ?>
			<td style="width: 30px" align="center" class="kb-table-cell"><b><?php echo $this->_tpl_vars['k']['inv']; ?>
</b></td>
		<?php endif; ?>
        <?php if ($this->_tpl_vars['daybreak']): ?>
        <td class="kb-table-cell" align="center"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%H:%M") : smarty_modifier_date_format($_tmp, "%H:%M")); ?>
</b></td>
        <?php else: ?>
        <td class="kb-table-cell" align="center" width=80><b><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
<br><?php echo ((is_array($_tmp=$this->_tpl_vars['k']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%H:%M") : smarty_modifier_date_format($_tmp, "%H:%M")); ?>
</b></td>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['comments_count']): ?>
        <td style="width: 10px" class="kb-table-cell" align="center"><b><?php echo $this->_tpl_vars['k']['commentcount']; ?>
</b></td>
        <?php endif; ?>
    </tr>
    <?php endfor; endif; ?>
</table></div>
<?php endfor; else: ?>
<p>No data.
<?php endif; ?> <!-- /killlistable.tpl -->