2009-11-01 11:00:00 +00:00
< ? php /* Smarty version 2.6 . 19 , created on 2009 - 01 - 09 23 : 24 : 40
2008-11-16 11:00:00 +00:00
compiled from game / flotte1 . tpl */ ?>
< ? php require_once ( SMARTY_CORE_DIR . 'core.load_plugins.php' );
2008-09-20 10:00:00 +00:00
smarty_core_load_plugins ( array ( 'plugins' => array ( array ( 'modifier' , 'escape' , 'game/flotte1.tpl' , 10 , false ), array ( 'function' , 'html_options' , 'game/flotte1.tpl' , 46 , false ),)), $this ); ?>
2008-11-16 11:00:00 +00:00
< ? 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 );
?>
< h2 > Flottes en action </ h2 >
< table >
< thead >
< tr >< th > Nom </ th >< th > Mission </ th >< th > Nb . vaisseau ( x ) </ th >< th > Destination </ th >< th > Heure d ' arrivée </ th >< th > Retour </ th >< th > Heure de retour </ th ></ tr >
</ thead >
< tbody >
< ? php $_from = $this -> _tpl_vars [ 'flottesEC' ]; if ( ! is_array ( $_from ) && ! is_object ( $_from )) { settype ( $_from , 'array' ); } if ( count ( $_from )) :
foreach ( $_from as $this -> _tpl_vars [ 'flotteEC' ]) :
?>
< tr >
< td >< a href = " <?php echo $this->_tpl_vars ['menu']['flotte']; ?>
& amp ; n =< ? php echo $this -> _tpl_vars [ 'flotteEC' ][ '0' ]; ?>
" ><?php echo ((is_array( $_tmp = $this->_tpl_vars ['flotteEC']['1'])) ? $this->_run_mod_handler ('escape', true, $_tmp ) : smarty_modifier_escape( $_tmp )); ?>
</ a ></ td >
< td >< ? php echo $this -> _tpl_vars [ 'flotteEC' ][ '2' ]; ?>
</ td >
< td >< ? php echo $this -> _tpl_vars [ 'flotteEC' ][ '3' ]; ?>
</ td >
< td >< ? php echo (( is_array ( $_tmp = $this -> _tpl_vars [ 'flotteEC' ][ '4' ])) ? $this -> _run_mod_handler ( 'escape' , true , $_tmp ) : smarty_modifier_escape ( $_tmp )); ?>
</ td >
< td >< ? php echo $this -> _tpl_vars [ 'flotteEC' ][ '5' ]; ?>
</ td >
< td >< ? php echo (( is_array ( $_tmp = $this -> _tpl_vars [ 'flotteEC' ][ '6' ])) ? $this -> _run_mod_handler ( 'escape' , true , $_tmp ) : smarty_modifier_escape ( $_tmp )); ?>
</ td >
< td >< ? php echo $this -> _tpl_vars [ 'flotteEC' ][ '7' ]; ?>
</ td >
</ tr >
< ? php endforeach ; endif ; unset ( $_from ); ?>
</ tbody >
</ table >
< h2 > Vaisseaux disponibles sur cette planète </ h2 >
< form action = " <?php echo $this->_tpl_vars ['menu']['flotte']; ?>
" method= " post " >
< table >
< thead >
< tr >< th > Vaisseaux </ th >< th > Nombre disponible </ th >< th > Max </ th >< th > A envoyer < br /> Flottes : < ? php echo $this -> _tpl_vars [ 'nbflotte' ]; ?>
/< ? php echo $this -> _tpl_vars [ 'nbflottemax' ]; ?>
</ th ></ tr >
</ thead >
< tfoot >
< tr >< td colspan = " 4 " >< input class = " button " type = " button " value = " Tous les vaisseaux " onclick = " vaisseaux(true) " /> < input class = " button " type = " button " value = " Aucun vaisseau " onclick = " vaisseaux(false) " /></ td ></ tr >
< tr >< td colspan = " 4 " >< ? php echo $this -> _tpl_vars [ 'action' ]; ?>
</ td ></ tr >
</ tfoot >
< tbody >
< ? php $_from = $this -> _tpl_vars [ 'vaisseaux' ]; if ( ! is_array ( $_from ) && ! is_object ( $_from )) { settype ( $_from , 'array' ); } if ( count ( $_from )) :
foreach ( $_from as $this -> _tpl_vars [ 'vaisseau' ]) :
?>
< tr >
< td >< ? php echo $this -> _tpl_vars [ 'vaisseau' ][ '0' ]; ?>
</ td >
< td >< ? php echo $this -> _tpl_vars [ 'vaisseau' ][ '1' ]; ?>
< span id = " v_<?php echo $this->_tpl_vars ['vaisseau']['3']; ?>
" style= " display : none ; " ><?php echo $this->_tpl_vars ['vaisseau']['2']; ?>
</ span ></ td >
< td >< input class = " button " type = " button " value = " Max " onclick = " max('<?php echo $this->_tpl_vars ['vaisseau']['3']; ?>
' ) " /></td>
< td >< input class = " text " type = " text " name = " v<?php echo $this->_tpl_vars ['vaisseau']['3']; ?>
" value= " 0 " /></td>
</ tr >
< ? php endforeach ; endif ; unset ( $_from ); ?>
</ tbody >
</ table >
</ form >
2008-09-20 10:00:00 +00:00
< h2 > Tactiques par défaut </ h2 >
< form action = " <?php echo $this->_tpl_vars ['menu']['flotte']; ?>
" method= " post " >
< fieldset class = " options " >
2008-11-08 11:00:00 +00:00
< label for = " attaque " > Attaque :</ label >< select name = " attaque " id = " attaque " >< ? php echo smarty_function_html_options ( array ( 'options' => $this -> _tpl_vars [ 'tactiques' ], 'selected' => $this -> _tpl_vars [ 'planete' ] -> combatAT_tactique ), $this ); ?>
2008-09-20 10:00:00 +00:00
</ select >< br />
2008-11-08 11:00:00 +00:00
< label for = " defense " > Défense :</ label >< select name = " defense " id = " defense " >< ? php echo smarty_function_html_options ( array ( 'options' => $this -> _tpl_vars [ 'tactiques' ], 'selected' => $this -> _tpl_vars [ 'planete' ] -> combatDE_tactique ), $this ); ?>
2008-09-20 10:00:00 +00:00
</ select >< br />
< input class = " submit " type = " submit " value = " Ok " />
</ fieldset >
</ form >
2008-11-16 11:00:00 +00:00
< ? 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 );
?>