PageRenderTime 68ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/solar27/templates_c/system/%%68^682^68202A1F%%page_gamesbrowser.tpl.php

https://bitbucket.org/sebs/mosolar
PHP | 434 lines | 426 code | 8 blank | 0 comment | 7 complexity | 69d814eafb06cbc1f79cf1ef643b3ed3 MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-3.0, BSD-3-Clause, LGPL-2.0, MIT, GPL-2.0
  1. <?php /* Smarty version 2.6.19, created on 2009-04-28 13:45:18
  2. compiled from page_gamesbrowser.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('block', 't', 'page_gamesbrowser.tpl', 2, false),array('modifier', 'round', 'page_gamesbrowser.tpl', 33, false),array('modifier', 'number_format', 'page_gamesbrowser.tpl', 157, false),)), $this); ?>
  5. <?php ob_start(); ?>
  6. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Games Browser<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  7. <?php $this->_smarty_vars['capture']['page_title'] = ob_get_contents(); ob_end_clean(); ?>
  8. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  9. $this->_smarty_include(array('smarty_include_tpl_file' => "frame_header.tpl", 'smarty_include_vars' => array('title' => $this->_smarty_vars['capture']['page_title'])));
  10. $this->_tpl_vars = $_smarty_tpl_vars;
  11. unset($_smarty_tpl_vars);
  12. ?>
  13. <!-- begin content -->
  14. <div class="text_big" style="color:darkblue;padding:10px;margin:5px"><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Pick a game (You can play on each ones): <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></div>
  15. <?php unset($this->_sections['game']);
  16. $this->_sections['game']['name'] = 'game';
  17. $this->_sections['game']['loop'] = is_array($_loop=$this->_tpl_vars['games']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  18. $this->_sections['game']['show'] = true;
  19. $this->_sections['game']['max'] = $this->_sections['game']['loop'];
  20. $this->_sections['game']['step'] = 1;
  21. $this->_sections['game']['start'] = $this->_sections['game']['step'] > 0 ? 0 : $this->_sections['game']['loop']-1;
  22. if ($this->_sections['game']['show']) {
  23. $this->_sections['game']['total'] = $this->_sections['game']['loop'];
  24. if ($this->_sections['game']['total'] == 0)
  25. $this->_sections['game']['show'] = false;
  26. } else
  27. $this->_sections['game']['total'] = 0;
  28. if ($this->_sections['game']['show']):
  29. for ($this->_sections['game']['index'] = $this->_sections['game']['start'], $this->_sections['game']['iteration'] = 1;
  30. $this->_sections['game']['iteration'] <= $this->_sections['game']['total'];
  31. $this->_sections['game']['index'] += $this->_sections['game']['step'], $this->_sections['game']['iteration']++):
  32. $this->_sections['game']['rownum'] = $this->_sections['game']['iteration'];
  33. $this->_sections['game']['index_prev'] = $this->_sections['game']['index'] - $this->_sections['game']['step'];
  34. $this->_sections['game']['index_next'] = $this->_sections['game']['index'] + $this->_sections['game']['step'];
  35. $this->_sections['game']['first'] = ($this->_sections['game']['iteration'] == 1);
  36. $this->_sections['game']['last'] = ($this->_sections['game']['iteration'] == $this->_sections['game']['total']);
  37. ?>
  38. <div align="center">
  39. <table class="text_normal" style="border:1px solid darkblue; background-color:white;padding:6px;margin:5px" cellspacing="0" cellpadding="4" width="800" align="center">
  40. <tr>
  41. <td rowspan="3"><img src="images/system/<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['logo_img']; ?>
  42. .png" border="0"></td>
  43. <td nowrap>&nbsp;<b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Game Name:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  44. <td width="100%" colspan="3"><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['name']; ?>
  45. </b></td>
  46. </tr>
  47. <tr>
  48. <td nowrap valign="top" style="color:#333333"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Description:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td colspan="3" style="color:#333333;margin:5px"><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['description']; ?>
  49. </b></td>
  50. </tr>
  51. <tr>
  52. <td nowrap><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Connected players:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td nowrap><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['connected_players']; ?>
  53. / <?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['players_slot']; ?>
  54. </b></td>
  55. <td nowrap>&nbsp;<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Reg'd players:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td width="100%"><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['empires_count']; ?>
  56. / <?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['max_players']; ?>
  57. </b></td>
  58. </tr>
  59. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['need_restart'] == 1): ?>
  60. <tr>
  61. <TD colspan="5" class="text_big"><b style="color:darkblue">*** <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>The current game has ended, the winner is:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <b style="color:blue"><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['winner']; ?>
  62. </b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>, you can still visit the scoreboard and the starmap,
  63. A new game will start in:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <b style="color:blue"><?php echo ((is_array($_tmp=$this->_tpl_vars['games'][$this->_sections['game']['index']]['restart_date']/60)) ? $this->_run_mod_handler('round', true, $_tmp) : round($_tmp)); ?>
  64. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>minutes<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b> ***</b></TD>
  65. </tr>
  66. <?php endif; ?>
  67. <tr>
  68. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['need_login'] == 1): ?>
  69. <td colspan="5" align="right" style="padding:0px;color:black">
  70. <table bgcolor="#acacca" cellspacing="0" cellpadding="0" border="0">
  71. <tr>
  72. <td>
  73. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  74. <tr><td>
  75. <img src="images/system/icon_button_scoreboard.png" style="border:1px solid white;padding:0px">
  76. </td>
  77. <td><b><a style="padding:2px;text-decoration:none;color:white" target="_NEW" href="game/scoreboard.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  78. ">
  79. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Scoreboard<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  80. </a></b>
  81. </td></tr>
  82. </table>
  83. </td>
  84. <td>
  85. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  86. <tr><td>
  87. <img src="images/system/icon_button_starmap.png" style="border:1px solid white;padding:0px">
  88. </td>
  89. <td><b><a style="padding:2px;text-decoration:none;color:white" target="_NEW" href="game/starmap.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  90. ">
  91. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Starmap<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  92. </a></b>
  93. </td></tr>
  94. </table>
  95. </td>
  96. <td>
  97. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['need_restart'] == 0): ?>
  98. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  99. <tr><td>
  100. <img src="images/system/icon_button_continuegame.png" style="border:1px solid white;padding:0px">
  101. </td>
  102. <td><b><a style="padding:2px;text-decoration:none;color:white" href="welcome.php">
  103. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Login to play<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  104. </a></b>
  105. </td></tr>
  106. </table>
  107. <?php endif; ?>
  108. </td>
  109. </tr>
  110. </table>
  111. </td>
  112. </td>
  113. <?php endif; ?>
  114. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['join_game'] == 1): ?>
  115. <td colspan="5" align="right" style="padding:0px;color:black">
  116. <table bgcolor="#acacca" cellspacing="0" cellpadding="0" border="0">
  117. <tr>
  118. <td>
  119. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  120. <tr><td>
  121. <img src="images/system/icon_button_scoreboard.png" style="border:1px solid white;padding:0px">
  122. </td>
  123. <td><b><a style="padding:2px;text-decoration:none;color:white" target="_NEW" href="game/scoreboard.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  124. ">
  125. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Scoreboard<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  126. </a></b>
  127. </td></tr>
  128. </table>
  129. </td>
  130. <td>
  131. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  132. <tr><td>
  133. <img src="images/system/icon_button_starmap.png" style="border:1px solid white;padding:0px">
  134. </td>
  135. <td><b><a style="padding:2px;text-decoration:none;color:white" target="_NEW" href="game/starmap.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  136. ">
  137. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Starmap<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  138. </a></b>
  139. </td></tr>
  140. </table>
  141. </td>
  142. <td>
  143. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['need_restart'] == 0): ?>
  144. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  145. <tr><td>
  146. <img src="images/system/icon_button_continuegame.png" style="border:1px solid white;padding:0px">
  147. </td>
  148. <td><b><a style="padding:2px;text-decoration:none;color:white" href="joingame.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  149. ">
  150. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Join game<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  151. </a></b>
  152. </td></tr>
  153. </table>
  154. <?php endif; ?>
  155. </td>
  156. </tr>
  157. </table>
  158. </td>
  159. <?php endif; ?>
  160. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['continue_game'] == 1): ?>
  161. <td align="right" style="color:#333333" colspan="5">
  162. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><i><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['gender']; ?>
  163. <b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['emperor']; ?>
  164. </b> <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>of empire<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['empire']; ?>
  165. </b>, <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Networth:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <b><?php echo ((is_array($_tmp=$this->_tpl_vars['games'][$this->_sections['game']['index']]['networth'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : smarty_modifier_number_format($_tmp)); ?>
  166. </b>, <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Rank:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['game_rank']; ?>
  167. </b></i><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  168. </td>
  169. </tr><tr>
  170. <td colspan="5" align="right" style="padding:0px;color:black">
  171. <table bgcolor="#acacca" cellspacing="0" cellpadding="0" border="0">
  172. <tr>
  173. <td>
  174. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  175. <tr><td>
  176. <img src="images/system/icon_button_scoreboard.png" style="border:1px solid white;padding:0px">
  177. </td>
  178. <td><b><a style="padding:2px;text-decoration:none;color:white" target="_NEW" href="game/scoreboard.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  179. ">
  180. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Scoreboard<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  181. </a></b>
  182. </td></tr>
  183. </table>
  184. </td>
  185. <td>
  186. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  187. <tr><td>
  188. <img src="images/system/icon_button_starmap.png" style="border:1px solid white;padding:0px">
  189. </td>
  190. <td><b><a style="padding:2px;text-decoration:none;color:white" target="_NEW" href="game/starmap.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  191. ">
  192. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Starmap<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  193. </a></b>
  194. </td></tr>
  195. </table>
  196. </td>
  197. <td>
  198. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['need_restart'] == 0): ?>
  199. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  200. <tr><td>
  201. <img src="images/system/icon_button_continuegame.png" style="border:1px solid white;padding:0px">
  202. </td>
  203. <td><b><a style="padding:2px;text-decoration:none;color:white" href="#" onclick="window.open('continuegame.php?GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  204. ','game','fullscreen=1');return false;">
  205. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Continue game<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  206. </a></b>
  207. </td></tr>
  208. </table>
  209. <?php endif; ?>
  210. </td>
  211. <td>
  212. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['need_restart'] == 0): ?>
  213. <table style="margin:5px;padding:2px" class="input_button" cellspacing="0" cellpadding="0" border="0">
  214. <tr><td>
  215. <img src="images/system/icon_button_destroyempire.png" style="border:1px solid white;padding:0px">
  216. </td>
  217. <td><b><a style="padding:2px;text-decoration:none;color:white" href="gamesbrowser.php?DESTROY_EMPIRE&GAME=<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  218. ">
  219. <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Destroy your empire<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  220. </a></b>
  221. </td></tr>
  222. </table>
  223. <?php endif; ?>
  224. </td>
  225. </tr>
  226. </table>
  227. </td>
  228. <?php endif; ?>
  229. </tr>
  230. <?php if ($this->_tpl_vars['games'][$this->_sections['game']['index']]['history_game'] == 1): ?>
  231. <a name="history_<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  232. "></a>
  233. <tr>
  234. <td colspan="6">
  235. <a style="color:darkblue" href="#history_<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  236. "
  237. onclick="ToggleLastScores('game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  238. _score_label','game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  239. _score_details','+ <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Show Your Last Scores<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>','- <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Hide Your Last Scores<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>');">
  240. <div id="game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  241. _score_label" style="border:1px solid #999999;background-color:#dedeed;padding:3px">
  242. + <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Show Your Last Scores<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></div></a>
  243. <div id="game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  244. _score_details" style="display:none;visibility:hidden;height:0px;" cellspacing="0" cellpadding="5" border="0">
  245. <table class="text_small"
  246. style="margin:5px;border:1px solid darkblue;background-color:#dedeed;padding:5px"
  247. cellspacing="0" cellpadding="5">
  248. <tr>
  249. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Date<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  250. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Rank<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  251. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Empire name<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  252. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Networth<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  253. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Military<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  254. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Planets<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  255. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Population<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  256. <td><b><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Turns<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b></td>
  257. </tr>
  258. <?php unset($this->_sections['hist']);
  259. $this->_sections['hist']['name'] = 'hist';
  260. $this->_sections['hist']['loop'] = is_array($_loop=$this->_tpl_vars['games'][$this->_sections['game']['index']]['history']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  261. $this->_sections['hist']['show'] = true;
  262. $this->_sections['hist']['max'] = $this->_sections['hist']['loop'];
  263. $this->_sections['hist']['step'] = 1;
  264. $this->_sections['hist']['start'] = $this->_sections['hist']['step'] > 0 ? 0 : $this->_sections['hist']['loop']-1;
  265. if ($this->_sections['hist']['show']) {
  266. $this->_sections['hist']['total'] = $this->_sections['hist']['loop'];
  267. if ($this->_sections['hist']['total'] == 0)
  268. $this->_sections['hist']['show'] = false;
  269. } else
  270. $this->_sections['hist']['total'] = 0;
  271. if ($this->_sections['hist']['show']):
  272. for ($this->_sections['hist']['index'] = $this->_sections['hist']['start'], $this->_sections['hist']['iteration'] = 1;
  273. $this->_sections['hist']['iteration'] <= $this->_sections['hist']['total'];
  274. $this->_sections['hist']['index'] += $this->_sections['hist']['step'], $this->_sections['hist']['iteration']++):
  275. $this->_sections['hist']['rownum'] = $this->_sections['hist']['iteration'];
  276. $this->_sections['hist']['index_prev'] = $this->_sections['hist']['index'] - $this->_sections['hist']['step'];
  277. $this->_sections['hist']['index_next'] = $this->_sections['hist']['index'] + $this->_sections['hist']['step'];
  278. $this->_sections['hist']['first'] = ($this->_sections['hist']['iteration'] == 1);
  279. $this->_sections['hist']['last'] = ($this->_sections['hist']['iteration'] == $this->_sections['hist']['total']);
  280. ?>
  281. <tr>
  282. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['date']; ?>
  283. </td>
  284. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['rank']; ?>
  285. </td>
  286. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['empire_name']; ?>
  287. </td>
  288. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['networth']; ?>
  289. </td>
  290. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['military_might']; ?>
  291. </td>
  292. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['planets']; ?>
  293. </td>
  294. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['population']; ?>
  295. </td>
  296. <td><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['history'][$this->_sections['hist']['index']]['turns_played']; ?>
  297. </td>
  298. </tr>
  299. <?php endfor; else: ?>
  300. <tr>
  301. <td colspan="8"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>No games finished yet!<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td>
  302. </tr>
  303. <?php endif; ?>
  304. </table>
  305. </div>
  306. </td>
  307. </tr>
  308. <?php endif; ?>
  309. <tr>
  310. <td colspan="6">
  311. <a name="details_<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  312. "></a>
  313. <a style="color:darkblue" href="#details_<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  314. "
  315. onclick="ToggleDetails('game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  316. _label','game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  317. _details','+ <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Show Game Details<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>','- <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Hide Game Details<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>');">
  318. <div id="game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  319. _label"
  320. style="border:1px solid #999999;background-color:#dedeed;padding:3px">
  321. + <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Show Game Details<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  322. </div>
  323. </a>
  324. <div id="game<?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['id']; ?>
  325. _details" style="display:none;visibility:hidden;height:0px;" cellspacing="0" cellpadding="5" border="0">
  326. <table class="text_small"
  327. style="margin:5px;border:1px solid darkblue;background-color:#dedeed;padding:5px"
  328. cellspacing="0" cellpadding="5">
  329. <tr><td nowrap><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Victory Condition:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['victory_condition']; ?>
  330. </b></td></tr>
  331. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Maximum Game Duration:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['lifetime']; ?>
  332. </b></td></tr>
  333. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Time Elapsed:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['time_elapsed']; ?>
  334. </b></td></tr>
  335. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Premium Membership Required:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['premium_only']; ?>
  336. </b></td></tr>
  337. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Turns Per Day:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['turns_per_day']; ?>
  338. </b></td></tr>
  339. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Protection Turns:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['protection_turns']; ?>
  340. </b></td></tr>
  341. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Connected Players:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['connected_players']; ?>
  342. </b></td></tr>
  343. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Max Players Slots:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['players_slot']; ?>
  344. </b></td></tr>
  345. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Empires registered:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['empires_count']; ?>
  346. </b></td></tr>
  347. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Maximum Empires Limit:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['max_players']; ?>
  348. </b></td></tr>
  349. <tr><td><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Completed games:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td><td><b><?php echo $this->_tpl_vars['games'][$this->_sections['game']['index']]['count']; ?>
  350. </b></td></tr>
  351. </table>
  352. </div>
  353. </td>
  354. </tr>
  355. </table>
  356. </div>
  357. <?php endfor; else: ?>
  358. <b class="text_big" style="color:darkblue">&nbsp;<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>*** No game available for now, the administrator have to create at least one game.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></b><br/><br/>
  359. <?php endif; ?>
  360. <!-- end loop -->
  361. <br/>
  362. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  363. $this->_smarty_include(array('smarty_include_tpl_file' => "frame_footer.tpl", 'smarty_include_vars' => array()));
  364. $this->_tpl_vars = $_smarty_tpl_vars;
  365. unset($_smarty_tpl_vars);
  366. ?>