70 lines
4.1 KiB
PHP
70 lines
4.1 KiB
PHP
<?php /* Smarty version 2.6.19, created on 2008-06-15 23:44:48
|
|
compiled from game/classement.tpl */ ?>
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|
|
<div class="border_top"></div>
|
|
<h2>Classement</h2>
|
|
<form action="<?php echo $this->_tpl_vars['menu']['classement']; ?>
|
|
" method="get">
|
|
<fieldset>
|
|
<input type="hidden" value="classement" name="p" />
|
|
<select name="t">
|
|
<option value="0"<?php if ($this->_tpl_vars['t'] == '0'): ?>selected="selected"<?php endif; ?>>Pseudo</option>
|
|
<option value="1"<?php if ($this->_tpl_vars['t'] == '1'): ?>selected="selected"<?php endif; ?>>Alliance</option>
|
|
</select> <select name="e">
|
|
<option value="points"<?php if ($this->_tpl_vars['export'] == 'points'): ?> selected="selected"<?php endif; ?>>Points</option>
|
|
<option value="batiment"<?php if ($this->_tpl_vars['export'] == 'batiments'): ?> selected="selected"<?php endif; ?>>Bâtiment</option>
|
|
<option value="flotte"<?php if ($this->_tpl_vars['export'] == 'flottes'): ?> selected="selected"<?php endif; ?>>Flotte</option>
|
|
<option value="recherches"<?php if ($this->_tpl_vars['export'] == 'recherches'): ?> selected="selected"<?php endif; ?>>Recherches</option>
|
|
</select> <?php echo $this->_tpl_vars['q']; ?>
|
|
<input class="submit" type="submit" value="GO" />
|
|
</fieldset>
|
|
</form>
|
|
<table class="systeme"><thead>
|
|
<?php if ($this->_tpl_vars['t'] == '0'): ?>
|
|
<tr><th>Rang</th><th>Evolution</th><th>Pseudo</th><th>Message</th><th>Race</th><th>Alliance</th><th>Points</th></tr></thead><tbody>
|
|
|
|
<?php $_from = $this->_tpl_vars['places']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['place']):
|
|
?>
|
|
<?php if ($this->_tpl_vars['place']['1'] == $this->_tpl_vars['user']['pseudo']): ?><tr style="background: #E5E5E5;" id="moi"><td><b><?php echo $this->_tpl_vars['place']['0']; ?>
|
|
</b></td><td>-</td><td><b><?php echo $this->_tpl_vars['place']['1']; ?>
|
|
</b></td><td></td><td><b><?php echo $this->_tpl_vars['place']['2']; ?>
|
|
</b></td><td><b><?php if ($this->_tpl_vars['place']['3']): ?>[<?php echo $this->_tpl_vars['place']['3']; ?>
|
|
] <?php echo $this->_tpl_vars['place']['4']; ?>
|
|
<?php endif; ?></b></td><td><b><?php echo $this->_tpl_vars['place']['5']; ?>
|
|
</b></td></tr><?php else: ?><tr><td><?php echo $this->_tpl_vars['place']['0']; ?>
|
|
</td><td>-</td><td><?php echo $this->_tpl_vars['place']['1']; ?>
|
|
</td><td><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['place']['1']; ?>
|
|
" class="msg"><span>Message</span></a></td><td><?php echo $this->_tpl_vars['place']['2']; ?>
|
|
</td><td><?php if ($this->_tpl_vars['place']['3']): ?>[<?php echo $this->_tpl_vars['place']['3']; ?>
|
|
] <?php echo $this->_tpl_vars['place']['4']; ?>
|
|
<?php endif; ?></td><td><?php echo $this->_tpl_vars['place']['5']; ?>
|
|
</td></tr><?php endif; ?>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
<?php endif; ?>
|
|
<?php if ($this->_tpl_vars['t'] == '1'): ?>
|
|
<tr><th>Rang</th><th>Alliance</th><th>Membres</th><th>Points</th><th>Points par membres</th></tr></thead><tbody>
|
|
<?php $_from = $this->_tpl_vars['places']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['place']):
|
|
?>
|
|
<tr><td><?php echo $this->_tpl_vars['place']['0']; ?>
|
|
</td><td><?php echo $this->_tpl_vars['place']['1']; ?>
|
|
</td><td><?php echo $this->_tpl_vars['place']['2']; ?>
|
|
</td><td><?php echo $this->_tpl_vars['place']['3']; ?>
|
|
</td><td><?php echo $this->_tpl_vars['place']['4']; ?>
|
|
</td></tr>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
<?php endif; ?>
|
|
|
|
</tbody></table>
|
|
<div class="border_bt"></div>
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/footer.tpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|