Advertisement
Guest User

Untitled

a guest
Apr 8th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 21.03 KB | None | 0 0
  1. <?php
  2. /* Smarty version 3.1.30, created on 2019-04-08 18:36:29
  3.   from "/styles/templates/game/error.default.tpl" */
  4.  
  5. /* @var Smarty_Internal_Template $_smarty_tpl */
  6. if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  7.   'version' => '3.1.30',
  8.   'unifunc' => 'content_5cab788de38e62_45632161',
  9.   'has_nocache_code' => true,
  10.   'file_dependency' =>
  11.   array (
  12.     'c2d7958399b856be3416b0cdded8061230c7071a' =>
  13.     array (
  14.       0 => '/styles/templates/game/error.default.tpl',
  15.       1 => 1554065577,
  16.       2 => 'extends',
  17.     ),
  18.     '9a56a37e3451e052a99e0360b5a4d910ca873264' =>
  19.     array (
  20.       0 => '/styles/templates/game/error.default.tpl',
  21.       1 => 1554065577,
  22.       2 => 'file',
  23.     ),
  24.     'b480962c3a9052668ad8dabbc5ba0480b950eba2' =>
  25.     array (
  26.       0 => '/styles/templates/game/layout.full.tpl',
  27.       1 => 1552867587,
  28.       2 => 'file',
  29.     ),
  30.     '298b1582fa54811228ae635e6cc70925b0910b12' =>
  31.     array (
  32.       0 => '/styles/templates/game/main.header.tpl',
  33.       1 => 1554727324,
  34.       2 => 'file',
  35.     ),
  36.     '3e73a7c31a7719a746ca567a4f5a063b67fb439d' =>
  37.     array (
  38.       0 => '/styles/templates/game/main.navigation.tpl',
  39.       1 => 1552956272,
  40.       2 => 'file',
  41.     ),
  42.     'eacdbb9e9cd60bd3ce3e82005e21a17d31fe9b1d' =>
  43.     array (
  44.       0 => '/styles/templates/game/main.topnav.tpl',
  45.       1 => 1554051457,
  46.       2 => 'file',
  47.     ),
  48.   ),
  49.   'cache_lifetime' => 604800,
  50. ),true)) {
  51. function content_5cab788de38e62_45632161 (Smarty_Internal_Template $_smarty_tpl) {
  52. $_smarty = $_smarty_tpl->smarty; if (!is_callable('smarty_function_html_options')) require_once '/includes/libs/Smarty/plugins/function.html_options.php';
  53. ?><!DOCTYPE html>
  54.  
  55. <!--[if lt IE 7 ]> <html lang="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  56. " class="no-js ie6"> <![endif]-->
  57. <!--[if IE 7 ]>    <html lang="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  58. " class="no-js ie7"> <![endif]-->
  59. <!--[if IE 8 ]>    <html lang="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  60. " class="no-js ie8"> <![endif]-->
  61. <!--[if IE 9 ]>    <html lang="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  62. " class="no-js ie9"> <![endif]-->
  63. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  64. " class="no-js"> <!--<![endif]-->
  65. <head>
  66.     <title>Informacje - <?php echo $_smarty_tpl->tpl_vars['uni_name']->value;?>
  67.  - <?php echo $_smarty_tpl->tpl_vars['game_name']->value;?>
  68. </title>
  69.     <meta name="generator" content="2Moons <?php echo $_smarty_tpl->tpl_vars['VERSION']->value;?>
  70. ">
  71.     <!--
  72.         This website is powered by 2Moons <?php echo $_smarty_tpl->tpl_vars['VERSION']->value;?>
  73.  
  74.         2Moons is a free Space Browsergame initially created by Jan Kröpke and licensed under GNU/GPL.
  75.         2Moons is copyright 2009-2013 of Jan Kröpke. Extensions are copyright of their respective owners.
  76.         Information and contribution at http://2moons.cc/
  77.     -->
  78.         <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  79.     <link rel="stylesheet" type="text/css" href="./styles/resource/css/base/boilerplate.css?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  80. ">
  81.     <link rel="stylesheet" type="text/css" href="./styles/resource/css/ingame/main.css?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  82. ">
  83.     <link rel="stylesheet" type="text/css" href="./styles/resource/css/base/jquery.css?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  84. ">
  85.     <link rel="stylesheet" type="text/css" href="./styles/resource/css/base/jquery.fancybox.css?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  86. ">
  87.     <link rel="stylesheet" type="text/css" href="./styles/resource/css/base/validationEngine.jquery.css?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  88. ">
  89.     <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['dpath']->value;?>
  90. formate.css?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  91. ">
  92.     <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
  93.     <script type="text/javascript">
  94.     var ServerTimezoneOffset = <?php echo $_smarty_tpl->tpl_vars['Offset']->value;?>
  95. ;
  96.     var serverTime  = new Date(<?php echo $_smarty_tpl->tpl_vars['date']->value[0];?>
  97. , <?php echo $_smarty_tpl->tpl_vars['date']->value[1]-1;?>
  98. , <?php echo $_smarty_tpl->tpl_vars['date']->value[2];?>
  99. , <?php echo $_smarty_tpl->tpl_vars['date']->value[3];?>
  100. , <?php echo $_smarty_tpl->tpl_vars['date']->value[4];?>
  101. , <?php echo $_smarty_tpl->tpl_vars['date']->value[5];?>
  102. );
  103.     var startTime   = serverTime.getTime();
  104.     var localTime   = serverTime;
  105.     var localTS     = startTime;
  106.     var Gamename    = document.title;
  107.     var Ready       = "Gotowe";
  108.     var Skin        = "<?php echo $_smarty_tpl->tpl_vars['dpath']->value;?>
  109. ";
  110.     var Lang        = "<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  111. ";
  112.     var head_info   = "Informacje";
  113.     var auth        = <?php echo (($tmp = @$_smarty_tpl->tpl_vars['authlevel']->value)===null||$tmp==='' ? '0' : $tmp);?>
  114. ;
  115.     var days        = ["Nied","Pon","Wto","\u015aro","Czw","Pi","So"]
  116.     var months      = ["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paz","Lis","Gru"] ;
  117.     var tdformat    = "[M] [D] [d] [H]:[i]:[s]";
  118.     var queryString = "<?php echo strtr($_smarty_tpl->tpl_vars['queryString']->value, array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
  119. ";
  120.     var isPlayerCardActive  = "<?php echo json_encode($_smarty_tpl->tpl_vars['isPlayerCardActive']->value);?>
  121. ";
  122.  
  123.     setInterval(function() {
  124.         serverTime.setSeconds(serverTime.getSeconds()+1);
  125.     }, 1000);
  126.     </script>
  127.     <script type="text/javascript" src="./scripts/base/jquery.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  128. "></script>
  129.     <script type="text/javascript" src="./scripts/base/jquery.ui.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  130. "></script>
  131.     <script type="text/javascript" src="./scripts/base/jquery.cookie.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  132. "></script>
  133.     <script type="text/javascript" src="./scripts/base/jquery.fancybox.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  134. "></script>
  135.     <script type="text/javascript" src="./scripts/base/jquery.validationEngine.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  136. "></script>
  137.     <script type="text/javascript" src="./scripts/l18n/validationEngine/jquery.validationEngine-<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
  138. .js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  139. "></script>
  140.     <script type="text/javascript" src="./scripts/base/tooltip.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  141. "></script>
  142.     <script type="text/javascript" src="./scripts/game/base.js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  143. "></script>
  144.     <?php
  145. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['scripts']->value, 'scriptname');
  146. if ($_from !== null) {
  147. foreach ($_from as $_smarty_tpl->tpl_vars['scriptname']->value) {
  148. ?>
  149.     <script type="text/javascript" src="./scripts/game/<?php echo $_smarty_tpl->tpl_vars['scriptname']->value;?>
  150. .js?v=<?php echo $_smarty_tpl->tpl_vars['REV']->value;?>
  151. "></script>
  152.     <?php
  153. }
  154. }
  155. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  156. ?>
  157.  
  158.    
  159.     <script type="text/javascript">
  160.     $(function() {
  161.         <?php echo $_smarty_tpl->tpl_vars['execscript']->value;?>
  162.  
  163.     });
  164.     </script>
  165. </head>
  166. <body id="overview" class="<?php echo $_smarty_tpl->tpl_vars['bodyclass']->value;?>
  167. ">
  168.     <div id="tooltip" class="tip"></div>
  169. <?php if ($_smarty_tpl->tpl_vars['hasAdminAccess']->value) {?>
  170. <div class="globalWarning">
  171. <?php echo $_smarty_tpl->tpl_vars['LNG']->value['admin_access_1'];?>
  172.  <a id="drop-admin"><?php echo $_smarty_tpl->tpl_vars['LNG']->value['admin_access_link'];?>
  173. </a><?php echo $_smarty_tpl->tpl_vars['LNG']->value['admin_access_2'];?>
  174.  
  175. </div>
  176. <?php }?>
  177. <div id="leftmenu">
  178.     <ul id="menu">
  179.         <li class="menu-head"><a href="game.php?page=overview">Lista zmian</a></li>
  180.         <li class="menucat1-head"></li>
  181.         <li><a href="game.php?page=overview">Podgląd</a></li>
  182.         <li><a href="game.php?page=imperium">Imperium</a></li>      <li><a href="game.php?page=research">Badania</a></li>       <li><a href="game.php?page=buildings">Budynki</a></li>      <li><a href="game.php?page=shipyard&amp;mode=fleet">Stocznia</a></li>       <li><a href="game.php?page=shipyard&amp;mode=defense">Obrona</a></li>       <li><a href="game.php?page=officier">Oficerowie i ulepszenia</a></li>       <li><a href="game.php?page=trader">Handlarz</a></li>        <li><a href="game.php?page=fleetDealer">Złomowanie floty</a></li>      <li><a href="game.php?page=fleetTable">Flota</a></li>       <li><a href="game.php?page=techtree">Technologie</a></li>       <li><a href="game.php?page=resources">Zasoby</a></li>       <li class="menucat2-head"></li>
  183.         <li><a href="game.php?page=galaxy">Galaktyka</a></li>       <li><a href="game.php?page=alliance">Sojusz</a></li>        <?php if (!empty($_smarty_tpl->tpl_vars['hasBoard']->value)) {?><li><a href="game.php?page=board" target="forum"><?php echo $_smarty_tpl->tpl_vars['LNG']->value['lm_forums'];?>
  184. </a></li><?php }?>
  185.         <li><a href="game.php?page=statistics">Statystyki</a></li>              <li><a href="game.php?page=battleHall">Hala sław</a></li>      <li><a href="game.php?page=search">Szukaj</a></li>      <li><a href="game.php?page=chat">Chat</a></li>      <li><a href="game.php?page=ticket">Pomoc techniczna</a></li>        <li><a href="game.php?page=questions">FAQ</a></li>
  186.         <li><a href="game.php?page=banList">Zbanowani</a></li>      <li><a href="index.php?page=rules" target="rules">Regulamin</a></li>
  187.         <li><a href="game.php?page=battleSimulator">Symulator walki</a></li>
  188.         <li class="menucat3-head"></li>
  189.         <li><a href="game.php?page=messages">Wiadomości<?php if ($_smarty_tpl->tpl_vars['new_message']->value > 0) {?><span id="newmes"> (<span id="newmesnum"><?php echo $_smarty_tpl->tpl_vars['new_message']->value;?>
  190. </span>)</span><?php }?></a></li>               <li><a href="game.php?page=buddyList">Lista znajomych</a></li>      <li><a href="game.php?page=settings">Opcje</a></li>
  191.         <li><a href="game.php?page=logout">Wyloguj</a></li>
  192.         <?php if ($_smarty_tpl->tpl_vars['authlevel']->value > 0) {?><li><a href="./admin.php" style="color:lime"><?php echo $_smarty_tpl->tpl_vars['LNG']->value['lm_administration'];?>
  193.  (<?php echo $_smarty_tpl->tpl_vars['VERSION']->value;?>
  194. )</a></li><?php }?>
  195.         <li class="menu-footer"></li>
  196.     </ul>
  197.     <div id="disclamer"><a href="index.php?page=disclamer" target="_blank">Kontakt</a></div>
  198. </div>
  199. <div id="page">
  200.     <div id="header">
  201.         <table id="headerTable">
  202.             <tbody>
  203.                 <tr>
  204.                     <td id="planetImage">
  205.                        <img src="<?php echo $_smarty_tpl->tpl_vars['dpath']->value;?>
  206. planeten/small/s_<?php echo $_smarty_tpl->tpl_vars['image']->value;?>
  207. .jpg" alt="">
  208.                     </td>
  209.                     <td id="planetSelectorWrapper">
  210.                         <label for="planetSelector"></label>
  211.                         <select id="planetSelector">
  212.                             <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['PlanetSelect']->value,'selected'=>$_smarty_tpl->tpl_vars['current_pid']->value),$_smarty_tpl);?>
  213.  
  214.                         </select>
  215.                     </td>
  216.                     <td id="resourceWrapper">
  217.                         <table id="resourceTable">
  218.                             <tbody>
  219.                                 <tr>
  220.                                     <?php
  221. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  222. if ($_from !== null) {
  223. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  224. ?>
  225.                                     <td><img src="<?php echo $_smarty_tpl->tpl_vars['dpath']->value;?>
  226. images/<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['name'];?>
  227. .gif" alt=""></td>
  228.                                     <?php
  229. }
  230. }
  231. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  232. ?>
  233.  
  234.                                 </tr>
  235.                                 <tr>
  236.                                     <?php
  237. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  238. if ($_from !== null) {
  239. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  240. ?>
  241.                                     <td class="res_name"><?php echo $_smarty_tpl->tpl_vars['LNG']->value['tech'][$_smarty_tpl->tpl_vars['resourceID']->value];?>
  242. </td>
  243.                                     <?php
  244. }
  245. }
  246. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  247. ?>
  248.  
  249.                                 </tr>
  250.                                 <?php if ($_smarty_tpl->tpl_vars['shortlyNumber']->value) {?>
  251.                                 <tr>
  252.                                     <?php
  253. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  254. if ($_from !== null) {
  255. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  256. ?>
  257.                                     <?php if (!isset($_smarty_tpl->tpl_vars['resourceData']->value['current'])) {?>
  258.                                     <?php $_tmp_array = isset($_smarty_tpl->tpl_vars['resourceData']) ? $_smarty_tpl->tpl_vars['resourceData']->value : array();
  259. if (!is_array($_tmp_array) || $_tmp_array instanceof ArrayAccess) {
  260. settype($_tmp_array, 'array');
  261. }
  262. $_tmp_array['current'] = $_smarty_tpl->tpl_vars['resourceData']->value['max']+$_smarty_tpl->tpl_vars['resourceData']->value['used'];
  263. $_smarty_tpl->_assignInScope('resourceData', $_tmp_array ,true);
  264. ?>
  265.                                     <td class="res_current tooltip" data-tooltip-content="<?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  266. &nbsp;/&nbsp;<?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  267. "><span<?php if ($_smarty_tpl->tpl_vars['resourceData']->value['current'] < 0) {?> style="color:red"<?php }?>><?php echo shortly_number($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  268. &nbsp;/&nbsp;<?php echo shortly_number($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  269. </span></td>
  270.                                     <?php } else { ?>
  271.                                     <td class="res_current tooltip" id="current_<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['name'];?>
  272. " data-real="<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['current'];?>
  273. " data-tooltip-content="<?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  274. "><?php echo shortly_number($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  275. </td>
  276.                                     <?php }?>
  277.                                     <?php
  278. }
  279. }
  280. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  281. ?>
  282.  
  283.                                 </tr>
  284.                                 <tr>
  285.                                     <?php
  286. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  287. if ($_from !== null) {
  288. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  289. ?>
  290.                                     <?php if (!isset($_smarty_tpl->tpl_vars['resourceData']->value['current']) || !isset($_smarty_tpl->tpl_vars['resourceData']->value['max'])) {?>
  291.                                     <td>&nbsp;</td>
  292.                                     <?php } else { ?>
  293.                                     <td class="res_max tooltip" id="max_<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['name'];?>
  294. " data-real="<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['max'];?>
  295. " data-tooltip-content="<?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  296. "><?php echo shortly_number($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  297. </td>
  298.                                     <?php }?>
  299.                                     <?php
  300. }
  301. }
  302. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  303. ?>
  304.  
  305.                                 </tr>
  306.                                 <?php } else { ?>
  307.                                 <tr>
  308.                                     <?php
  309. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  310. if ($_from !== null) {
  311. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  312. ?>
  313.                                     <?php if (!isset($_smarty_tpl->tpl_vars['resourceData']->value['current'])) {?>
  314.                                     <?php $_tmp_array = isset($_smarty_tpl->tpl_vars['resourceData']) ? $_smarty_tpl->tpl_vars['resourceData']->value : array();
  315. if (!is_array($_tmp_array) || $_tmp_array instanceof ArrayAccess) {
  316. settype($_tmp_array, 'array');
  317. }
  318. $_tmp_array['current'] = $_smarty_tpl->tpl_vars['resourceData']->value['max']+$_smarty_tpl->tpl_vars['resourceData']->value['used'];
  319. $_smarty_tpl->_assignInScope('resourceData', $_tmp_array ,true);
  320. ?>
  321.                                     <td class="res_current"><span<?php if ($_smarty_tpl->tpl_vars['resourceData']->value['current'] < 0) {?> style="color:red"<?php }?>><?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  322. &nbsp;/&nbsp;<?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  323. </span></td>
  324.                                     <?php } else { ?>
  325.                                     <td class="res_current" id="current_<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['name'];?>
  326. " data-real="<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['current'];?>
  327. "><?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  328. </td>
  329.                                     <?php }?>
  330.                                     <?php
  331. }
  332. }
  333. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  334. ?>
  335.  
  336.                                 </tr>
  337.                                 <tr>
  338.                                     <?php
  339. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  340. if ($_from !== null) {
  341. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  342. ?>
  343.                                     <?php if (!isset($_smarty_tpl->tpl_vars['resourceData']->value['current']) || !isset($_smarty_tpl->tpl_vars['resourceData']->value['max'])) {?>
  344.                                     <td>&nbsp;</td>
  345.                                     <?php } else { ?>
  346.                                     <td class="res_max" id="max_<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['name'];?>
  347. " data-real="<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['current'];?>
  348. "><?php echo pretty_number($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  349. </td>
  350.                                     <?php }?>
  351.                                     <?php
  352. }
  353. }
  354. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  355. ?>
  356.  
  357.                                 </tr>
  358.                                 <?php }?>
  359.                             </tbody>
  360.                         </table>
  361.                     </td>
  362.                 </tr>
  363.             </tbody>
  364.         </table>
  365.         <?php if (!$_smarty_tpl->tpl_vars['vmode']->value) {?>
  366.         <script type="text/javascript">
  367.         var viewShortlyNumber   = <?php echo json_encode($_smarty_tpl->tpl_vars['shortlyNumber']->value);?>
  368. ;
  369.         var vacation            = <?php echo $_smarty_tpl->tpl_vars['vmode']->value;?>
  370. ;
  371.         $(function() {
  372.         <?php
  373. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['resourceTable']->value, 'resourceData', false, 'resourceID');
  374. if ($_from !== null) {
  375. foreach ($_from as $_smarty_tpl->tpl_vars['resourceID']->value => $_smarty_tpl->tpl_vars['resourceData']->value) {
  376. ?>
  377.         <?php if (isset($_smarty_tpl->tpl_vars['resourceData']->value['production'])) {?>
  378.             resourceTicker({
  379.                 available: <?php echo json_encode($_smarty_tpl->tpl_vars['resourceData']->value['current']);?>
  380. ,
  381.                 limit: [0, <?php echo json_encode($_smarty_tpl->tpl_vars['resourceData']->value['max']);?>
  382. ],
  383.                 production: <?php echo json_encode($_smarty_tpl->tpl_vars['resourceData']->value['production']);?>
  384. ,
  385.                 valueElem: "current_<?php echo $_smarty_tpl->tpl_vars['resourceData']->value['name'];?>
  386. "
  387.             }, true);
  388.         <?php }?>
  389.         <?php
  390. }
  391. }
  392. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  393. ?>
  394.  
  395.         });
  396.         </script>
  397.         <script src="scripts/game/topnav.js"></script>
  398.         <?php if ($_smarty_tpl->tpl_vars['hasGate']->value) {?><script src="scripts/game/gate.js"></script><?php }?>
  399.         <?php }?>
  400.     </div>
  401.     <?php if ($_smarty_tpl->tpl_vars['closed']->value) {?>
  402.     <div class="infobox"><?php echo $_smarty_tpl->tpl_vars['LNG']->value['ov_closed'];?>
  403. </div>
  404.     <?php } elseif ($_smarty_tpl->tpl_vars['delete']->value) {?>
  405.     <div class="infobox"><?php echo $_smarty_tpl->tpl_vars['delete']->value;?>
  406. </div>
  407.     <?php } elseif ($_smarty_tpl->tpl_vars['vacation']->value) {?>
  408.     <div class="infobox"><?php echo $_smarty_tpl->tpl_vars['LNG']->value['tn_vacation_mode'];?>
  409.  <?php echo $_smarty_tpl->tpl_vars['vacation']->value;?>
  410. </div>
  411.     <?php }?>
  412. <div id="content">
  413. <table class="table519">
  414.     <tr>
  415.         <th>Informacje</th>
  416.     </tr>
  417.     <tr>
  418.         <td><p><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
  419. </p><?php if (!empty($_smarty_tpl->tpl_vars['redirectButtons']->value)) {?><p><?php
  420. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['redirectButtons']->value, 'button');
  421. if ($_from !== null) {
  422. foreach ($_from as $_smarty_tpl->tpl_vars['button']->value) {
  423. ?><a href="<?php echo $_smarty_tpl->tpl_vars['button']->value['url'];?>
  424. "><button><?php echo $_smarty_tpl->tpl_vars['button']->value['label'];?>
  425. </button></a><?php
  426. }
  427. }
  428. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  429. ?>
  430. </p><?php }?></td>
  431.     </tr>
  432. </table>
  433. </div>
  434. <?php
  435. $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['cronjobs']->value, 'cronjob');
  436. if ($_from !== null) {
  437. foreach ($_from as $_smarty_tpl->tpl_vars['cronjob']->value) {
  438. ?><img src="cronjob.php?cronjobID=<?php echo $_smarty_tpl->tpl_vars['cronjob']->value;?>
  439. " alt=""><?php
  440. }
  441. }
  442. $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
  443. ?>
  444.  
  445. <?php $_smarty_tpl->_subTemplateRender("file:main.footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
  446. }
  447. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement