<?php /* Smarty version 2.6.10, created on 2010-02-07 15:18:11
         compiled from track.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'track.tpl', 4, false),array('function', 'pager', 'track.tpl', 51, false),array('modifier', 'regex_replace', 'track.tpl', 32, false),array('modifier', 'default', 'track.tpl', 34, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <form method="post" action="track.php">
  <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['sortlist'],'name' => 'sortlist','selected' => $this->_tpl_vars['sb']), $this);?>

  <input type="submit" name="action" value="Sort Towers" />
  <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['pagernumlist'],'name' => 'pagernumsel','selected' => $this->_tpl_vars['pager']['limit']), $this);?>

  <input type="submit" name="action" value="Display" />
  </form>
  <table class="mcenter tracktable" style="width:100%;" cellspacing="0">
  <tbody>
    <tr class="trackheader">
            <td>Status</td>
      <td>Pos type</td>
      <td>Tower Name</td>
      <td>Location</td>
      <td>Region</td>
      <td>Owner</td>
      <td>Last Update</td>
      <td>Status</td>
      <td>Action</td>
    </tr>

  <?php $_from = $this->_tpl_vars['poses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['pos']):
?>
    <?php $this->assign('pos_size', $this->_tpl_vars['pos']['pos_size']); ?>
    <?php $this->assign('pos_race', $this->_tpl_vars['pos']['pos_race']); ?>
    <tr style="background-color:<?php echo $this->_tpl_vars['pos']['bgcolor']; ?>
;">
             <td><?php if ($this->_tpl_vars['pos']['pos_status_img']): ?><img src="themes/<?php echo $this->_tpl_vars['config']['theme']; ?>
/images/<?php echo $this->_tpl_vars['pos']['pos_status_img']; ?>
" alt="<?php echo $this->_tpl_vars['pos']['pos_status_img']; ?>
" /><?php else: ?>&nbsp;<?php endif; ?></td>
      <td><?php echo $this->_tpl_vars['arrposize'][$this->_tpl_vars['pos_size']]; ?>
 <?php echo $this->_tpl_vars['arrporace'][$this->_tpl_vars['pos_race']]; ?>
</td>
      <td><?php echo $this->_tpl_vars['pos']['towerName']; ?>
</td>
      <td><a href="http://evemaps.dotlan.net/system/<?php echo ((is_array($_tmp=$this->_tpl_vars['pos']['MoonName'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/ [XIV]+ - Moon.*/", "") : smarty_modifier_regex_replace($_tmp, "/ [XIV]+ - Moon.*/", "")); ?>
/moons" target="_blank"><?php echo $this->_tpl_vars['pos']['MoonName']; ?>
</td>
      <td><a href="http://evemaps.dotlan.net/region/<?php echo ((is_array($_tmp=$this->_tpl_vars['pos']['region'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/[^'a-z0-9-\.:,]/i", '_') : smarty_modifier_regex_replace($_tmp, "/[^'a-z0-9-\.:,]/i", '_')); ?>
/moons" target="_blank"><?php echo $this->_tpl_vars['pos']['region']; ?>
</a></td>
      <td><a href="http://evemaps.dotlan.net/corp/<?php echo ((is_array($_tmp=$this->_tpl_vars['pos']['corp'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/[^'a-z0-9-\.:,]/i", '_') : smarty_modifier_regex_replace($_tmp, "/[^'a-z0-9-\.:,]/i", '_')); ?>
" target="_blank"><?php echo $this->_tpl_vars['pos']['corp']; ?>
</a><br><?php echo ((is_array($_tmp=@$this->_tpl_vars['pos']['name'])) ? $this->_run_mod_handler('default', true, $_tmp, "-") : smarty_modifier_default($_tmp, "-")); ?>
 / <?php echo ((is_array($_tmp=@$this->_tpl_vars['pos']['backup'])) ? $this->_run_mod_handler('default', true, $_tmp, "-") : smarty_modifier_default($_tmp, "-")); ?>
</td>
      <td><?php echo $this->_tpl_vars['pos']['last_update']; ?>
</td>
      <td style="color:<?php echo $this->_tpl_vars['pos']['textcolor']; ?>
;"><?php echo $this->_tpl_vars['pos']['online']; ?>
</td>
      <td>
      <a href="viewpos.php?i=<?php echo $this->_tpl_vars['pos']['pos_id']; ?>
"><img src="images/icons/zoom.png" border="0" alt="View" title="View" /></a>
      <a href="fuel_calculator.php?pos_to_refuel=<?php echo $this->_tpl_vars['pos']['pos_id']; ?>
&days=30"><img src="images/icons/cart_go.png" border="0" alt="fuel Bill Calculator" title="Fuel Bill Calculator" /></a>
      <?php if ($this->_tpl_vars['access'] >= 2): ?>
      <a href="editpos.php?i=<?php echo $this->_tpl_vars['pos']['pos_id']; ?>
"><img src="images/icons/pencil.png" border="0" alt="Edit" title="Edit" /></a>
      <a href="deletepos.php?i=<?php echo $this->_tpl_vars['pos']['pos_id']; ?>
"><img src="images/icons/delete.png" border="0" alt="Delete POS" title="Delete" /></a>
      <?php endif; ?>
      </td>
    </tr>

  <?php endforeach; endif; unset($_from); ?>

  </tbody>
  </table>
  <?php echo smarty_function_pager(array('numitems' => $this->_tpl_vars['pager']['numitems'],'limit' => $this->_tpl_vars['pager']['limit']), $this);?>

  <?php if ($this->_tpl_vars['access'] > 1): ?><div class="mcenter"><a href="addpos.php" title="Add a new Tower">Add a New Tower</a></div><?php endif;  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>