<?php /* Smarty version 2.6.14, created on 2006-11-24 17:47:29
         compiled from demolist.tpl */ ?>
<?php if ($this->_tpl_vars['playlist']): ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'playlist.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td style="text-align: right;"><form method="post" action="" style="display: inline;"><button title="Export" type="submit" name="exportdemos" class="link"><img src="images/export.gif" alt="export"></button><button title="Refresh" type="submit" name="reloaddemos" class="link"><img src="images/refresh.gif" alt="Refresh"></button></form></td>
  </tr>
</table>
<br />
<table class="content" width="100%" cellspacing="1" cellpadding="1">
  <tr class="cella" style="font-weight: bold;">
    <td width="6%">ID</td>
    <td width="22%">Date / Time</td>
    <td width="61%">Match</td>
    <td width="6%">Maps</td>
    <td width="5%">&nbsp;</td>
  </tr>
  <?php $_from = $this->_tpl_vars['demos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['demo']):
?>
  <tr class="cellb" onmouseover="this.className='cellc'" onmouseout="this.className='cellb'">
    <td><a name="<?php echo $this->_tpl_vars['demo']['id']; ?>
" href="#<?php echo $this->_tpl_vars['demo']['id']; ?>
"><?php echo $this->_tpl_vars['demo']['id']; ?>
</a></td>
    <td><?php echo $this->_tpl_vars['demo']['time']; ?>
 <span class="grey">(<?php echo $this->_tpl_vars['demo']['rec']; ?>
)</span></td>
    <td><?php echo $this->_tpl_vars['demo']['name']; ?>
</td>
    <td><?php echo $this->_tpl_vars['demo']['maps']; ?>
</td>
    <td style="text-align: center;" nowrap="nowrap">
      <?php if ($this->_tpl_vars['player']): ?>
        <a href="play.php?demo=<?php echo $this->_tpl_vars['demo']['id']; ?>
&amp;player=<?php echo $this->_tpl_vars['player']; ?>
"><img src="images/play.gif" alt="play" title="Play this demo on replayer <?php echo $this->_tpl_vars['player']; ?>
" /></a>
      <?php else: ?>
        <a href="play.php?demo=<?php echo $this->_tpl_vars['demo']['id']; ?>
"><img src="images/play.gif" alt="play" title="Play this demo" /></a>
      <?php endif; ?>
      <?php if ($this->_tpl_vars['playlistrep']): ?>
        <form method="post" action="" style="display: inline;">
          <input type="hidden" name="replayer" value="<?php echo $_GET['playlist']; ?>
" />
          <input type="hidden" name="demo" value="<?php echo $this->_tpl_vars['demo']['id']; ?>
" />
          <button type="submit" name="addqueue" title="Add to playlist" class="link"><img src="images/playlist_plus.gif" alt="playlist" /></button>
        </form>
      <?php endif; ?>
    </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
</table>