Viewing file: wtf2.php (1.98 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $_from = $this->_tpl_vars['do_build']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['item']): ?> <?php $this->assign('buildname', $this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['build']); ?> <?php if ($this->_tpl_vars['id'] == 0): ?> <tr class="lit"> <?php else: ?> <tr> <?php endif; ?> <td><?php echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['buildname']); ?> (<?php echo $this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['stage']; ?>. szint)</td> <?php if ($this->_tpl_vars['id'] == 0): ?> <?php if ($this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['finished'] < $this->_tpl_vars['time']): ?> <td><?php echo ((is_array($_tmp=$this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['dauer'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); ?> </td> <?php else: ?> <td><span class="timer"><?php echo ((is_array($_tmp=$this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['dauer'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); ?> </span></td> <?php endif; ?> <?php else: ?> <td><?php echo ((is_array($_tmp=$this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['dauer'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); ?> </td> <?php endif; ?> <td><?php echo ((is_array($_tmp=$this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['finished'])) ? $this->_run_mod_handler('format_date', true, $_tmp) : format_date($_tmp)); ?> </td> <td><a href="javascript:ask('<?php echo $this->_tpl_vars['lang']->get('cancel_confirm'); ?> ', 'game.php?village=<?php echo $this->_tpl_vars['village']['id']; ?> &screen=main&action=cancel&id=<?php echo $this->_tpl_vars['do_build'][$this->_tpl_vars['id']]['r_id']; ?> &mode=build&h=<?php echo $this->_tpl_vars['hkey']; ?> ')"><?php echo $this->_tpl_vars['lang']->get('doCancel'); ?> </a></td> </tr> <?php endforeach; endif; unset($_from); ?>
|