<?php /* Smarty version 2.6.10, created on 2010-02-07 15:45:38
         compiled from register.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'register.tpl', 26, 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);
 ?>


  <h2>Welcome to the POS Tracker</h2>
  <div class="mcenter">
  <table class="mcenter tracktable txtleft" style="width:500px;">
    <thead>
      <tr>
        <td class="trackheader txtcenter" colspan=2>API Registration</td>
      <tr>
    </thead>
<?php if ($this->_tpl_vars['action'] == 'getchars'): ?>
    <?php $_from = $this->_tpl_vars['characters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['character']):
?>
    <?php $this->assign('alliance', $this->_tpl_vars['character']['alliance']); ?>
  <form method="post" action="register.php">
    <tr>
	<td class="trackheader">Char Details</td>
	<td>
	  <input type="hidden" name="api_userid" value="<?php echo $this->_tpl_vars['api_userid']; ?>
" />
	  <input type="hidden" name="api_key" value="<?php echo $this->_tpl_vars['api_key']; ?>
" />
	  <input type="hidden" name="charname" value="<?php echo $this->_tpl_vars['character']['name']; ?>
" />Charname: <?php echo $this->_tpl_vars['character']['name']; ?>

	  <input type="hidden" name="characterID" value="<?php echo $this->_tpl_vars['character']['characterID']; ?>
" />(<?php echo $this->_tpl_vars['character']['characterID']; ?>
)<br>
	  <input type="hidden" name="corporationName" value="<?php echo $this->_tpl_vars['character']['corporationName']; ?>
" />Corpname: <?php echo $this->_tpl_vars['character']['corporationName']; ?>

	  <input type="hidden" name="corporationID" value="<?php echo $this->_tpl_vars['character']['corporationID']; ?>
" />(<?php echo $this->_tpl_vars['character']['corporationID']; ?>
)<br>
	  <input type="hidden" name="allianceName" value="<?php echo $this->_tpl_vars['alliance']['allianceName']; ?>
" />Alliancename: <?php echo ((is_array($_tmp=@$this->_tpl_vars['alliance']['allianceName'])) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>

	  <input type="hidden" name="allianceID" value="<?php echo $this->_tpl_vars['alliance']['allianceID']; ?>
" />(<?php echo $this->_tpl_vars['alliance']['allianceID']; ?>
)<br>
	</td>
    </tr>
    <tr>
	<td class="txtcenter" colspan=2><input type="hidden" name="action" value="getuserinfo" /><input type="submit" value="Use <?php echo $this->_tpl_vars['character']['name']; ?>
 Char Details" /></td>
    </tr>
  </form>
      <?php endforeach; endif; unset($_from);  elseif ($this->_tpl_vars['action'] == 'getuserinfo'): ?>
  <form method="post" action="register.php">
	<input type="hidden" name="api_userid" value="<?php echo $this->_tpl_vars['api_userid']; ?>
" />
	<input type="hidden" name="api_key" value="<?php echo $this->_tpl_vars['api_key']; ?>
" />
	<input type="hidden" name="charname" value="<?php echo $this->_tpl_vars['charname']; ?>
" />
	<input type="hidden" name="characterID" value="<?php echo $this->_tpl_vars['characterID']; ?>
" />
	<input type="hidden" name="corporationName" value="<?php echo $this->_tpl_vars['corporationName']; ?>
" />
	<input type="hidden" name="corporationID" value="<?php echo $this->_tpl_vars['corporationID']; ?>
" />
	<input type="hidden" name="allianceName" value="<?php echo $this->_tpl_vars['allianceName']; ?>
" />
	<input type="hidden" name="allianceID" value="<?php echo $this->_tpl_vars['allianceID']; ?>
" />
    <tr>
      <td class="trackheader">Login name</td>
      <td><?php echo $this->_tpl_vars['charname']; ?>
</td>
    </tr>
    <tr>
      <td class="trackheader">eMail</td>
      <td><input type="text" name="email" value="<?php echo $this->_tpl_vars['email']; ?>
" size="40" maxlength="128" /></td>
    </tr>
    <tr>
      <td class="trackheader" rowspan="2">Password</td>
      <td><input type="password" name="pass" size="20" maxlength="40" /></td>
    </tr>
    <tr>
      <td><input type="password" name="pass2" size="20" maxlength="40" /></td>
    </tr>
    <tr>
      <td colspan=2 class="mcenter txtcenter"><input type="hidden" name="action" value="saveaccount" /><input type="submit" value="Create Account" /></td>
    <tr>
  </form>
<?php else: ?>
  <form method="post" action="register.php">
    <tr>
      <td class="trackheader">UserID</td>
      <td><input size=40 type="text" name="api_userid" value="<?php echo $this->_tpl_vars['api_userid']; ?>
" /></td>
    </tr>
    <tr>
      <td class="trackheader">Limited Key</td>
      <td><input size=40 type="text" name="api_key" value="<?php echo $this->_tpl_vars['api_key']; ?>
" /></td>
    </tr>
    <tr>
      <td colspan="2" class="mcenter txtcenter"><input type="hidden" name="action" value="getchars" /><input type="submit" value="Get Characters" /></td>
    </tr>
  </form>
<?php endif; ?>
  </table>
  </div>

<?php $_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);
 ?>