forked from halo-battle/game
Version 1.5a
This commit is contained in:
parent
a66ed9797b
commit
58928889ed
79 changed files with 4932 additions and 332 deletions
|
|
@ -22,6 +22,7 @@ class Combat {
|
|||
var $vaisContenuM = 0;
|
||||
var $vaisContenuC = 0;
|
||||
var $vaisContenuH = 0;
|
||||
var $pillage = array(0, 0, 0);
|
||||
|
||||
var $debriM = 0;
|
||||
var $debriC = 0;
|
||||
|
|
@ -397,19 +398,25 @@ class Combat {
|
|||
$this->vaisContenuH = floor($this->vaisContenuH/$retirer);
|
||||
}
|
||||
if ($pillage) {
|
||||
$req = mysql_query("SELECT * FROM flottes WHERE `id` = '".$this->refflotte."'");
|
||||
$req = mysql_query("SELECT * FROM `flottes` WHERE `id` = '".$this->refflotte."';");
|
||||
$resultat = mysql_fetch_array($req);
|
||||
$reqDef = mysql_query("SELECT * FROM `planete` WHERE `galaxie` = '".$resultat['end_galaxie']."' AND `ss` = '".$resultat['end_ss']."' AND `position` = '".$resultat['end_position']."'") or die ("erreur sql ".mysql_error());
|
||||
$reqDef = mysql_query("SELECT * FROM `planete` WHERE `galaxie` = '".$resultat['end_galaxie']."' AND `ss` = '".$resultat['end_ss']."' AND `position` = '".$resultat['end_position']."';");
|
||||
$resultatDef = mysql_fetch_array($reqDef);
|
||||
$ressplus = pillage($resultatDef['metal'], $resultatDef['cristal'], $resultatDef['hydrogene'], $this->vaisContenu - $this->vaisContenuM - $this->vaisContenuC - $this->vaisContenuH);
|
||||
|
||||
$this->vaisContenuM += $ressplus[0];
|
||||
$this->vaisContenuC += $ressplus[1];
|
||||
$this->vaisContenuH += $ressplus[2];
|
||||
$this->pillage = array($ressplus[0], $ressplus[1], $ressplus[2]);
|
||||
}
|
||||
return '`nb_vais` = \''.$nbvais.'\', `contenu_max` = \''.$this->vaisContenu.'\', `contenu_metal` = \''.$this->vaisContenuM.'\', `contenu_cristal` = \''.$this->vaisContenuC.'\', `contenu_hydrogene` = \''.$this->vaisContenuH.'\', `vaisseau_1` = \''.$vaisseau_1.'\', `vaisseau_2` = \''.$vaisseau_2.'\', `vaisseau_3` = \''.$vaisseau_3.'\', `vaisseau_4` = \''.$vaisseau_4.'\', `vaisseau_5` = \''.$vaisseau_5.'\', `vaisseau_6` = \''.$vaisseau_6.'\', `vaisseau_7` = \''.$vaisseau_7.'\', `vaisseau_8` = \''.$vaisseau_8.'\', `vaisseau_9` = \''.$vaisseau_9.'\', `vaisseau_10` = \''.$vaisseau_10.'\', `vaisseau_11` = \''.$vaisseau_11.'\', `vaisseau_12` = \''.$vaisseau_12.'\'';
|
||||
}
|
||||
|
||||
function pillageSimul($metal, $cristal, $hydrogene){
|
||||
$ressplus = pillage($metal, $cristal, $hydrogene, 999999);
|
||||
$this->pillage = array($ressplus[0], $ressplus[1], $ressplus[2]);
|
||||
}
|
||||
|
||||
function exportEN(){
|
||||
$nb = count($this->ENvais);
|
||||
$vaisseau_1 = 0; $vaisseau_2 = 0; $vaisseau_3 = 0; $vaisseau_4 = 0; $vaisseau_5 = 0; $vaisseau_6 = 0; $vaisseau_7 = 0; $vaisseau_8 = 0; $vaisseau_9 = 0; $vaisseau_10 = 0; $vaisseau_11 = 0; $vaisseau_12 = 0;
|
||||
|
|
@ -423,107 +430,5 @@ class Combat {
|
|||
}
|
||||
return '`vaisseau_1` = \''.$vaisseau_1.'\', `vaisseau_2` = \''.$vaisseau_2.'\', `vaisseau_3` = \''.$vaisseau_3.'\', `vaisseau_4` = \''.$vaisseau_4.'\', `vaisseau_5` = \''.$vaisseau_5.'\', `vaisseau_6` = \''.$vaisseau_6.'\', `vaisseau_7` = \''.$vaisseau_7.'\', `vaisseau_8` = \''.$vaisseau_8.'\', `vaisseau_9` = \''.$vaisseau_9.'\', `vaisseau_10` = \''.$vaisseau_10.'\', `vaisseau_11` = \''.$vaisseau_11.'\', `vaisseau_12` = \''.$vaisseau_12.'\', `def_1` = \''.$def_1.'\', `def_2` = \''.$def_2.'\', `def_3` = \''.$def_3.'\', `def_4` = \''.$def_4.'\', `def_5` = \''.$def_5.'\'';
|
||||
}
|
||||
|
||||
function genRapport($fin, $ATgagnant = false){
|
||||
$req = mysql_query("SELECT * FROM `flottes` WHERE `id` = '".$this->refflotte."'");
|
||||
$resultat = mysql_fetch_array($req);
|
||||
$reqDef = mysql_query("SELECT `id_user` FROM `planete` WHERE `galaxie` = '".$resultat['end_galaxie']."' AND `ss` = '".$resultat['end_ss']."' AND `position` = '".$resultat['end_position']."'") or die ("erreur sql ".mysql_error());
|
||||
$resultatDef = mysql_fetch_array($reqDef);
|
||||
|
||||
if ($this->Ntour == 0) {
|
||||
$rapportAT = '[b]Le combat contre '.trouvNom($resultatDef['id_user']).' est engagé ![/b]
|
||||
|
||||
';
|
||||
$rapportEN = '[b]Un combat est engagé contre '.trouvNom($resultatDef['id_user']).' ![/b]
|
||||
|
||||
';
|
||||
}
|
||||
elseif ($fin) {
|
||||
$rapportAT = '[b]Le combat contre '.trouvNom($resultatDef['id_user']).' est terminé ![/b]
|
||||
|
||||
';
|
||||
$rapportEN = '[b]Le combat contre '.trouvNom($resultatDef['id_user']).' est terminé ![/b]
|
||||
|
||||
';
|
||||
}
|
||||
else {
|
||||
$rapportAT = '[b]Suite du combat contre '.trouvNom($resultatDef['id_user']).' ![/b]
|
||||
|
||||
';
|
||||
$rapportEN = '[b]Suite du combat contre '.trouvNom($resultatDef['id_user']).' ![/b]
|
||||
|
||||
';
|
||||
}
|
||||
$rapportAT .= 'Tactique lors de ce tour : '.txtTactique($this->ATtactique).'.
|
||||
|
||||
Lieux : ['.$resultat['end_galaxie'].':'.$resultat['end_ss'].':'.$resultat['end_position'].'] METTRE UN LIEN
|
||||
|
||||
Vaisseaux au début de notre côté :
|
||||
Array
|
||||
|
||||
Vaisseaux adverse au début :
|
||||
Array
|
||||
|
||||
Défenses adverse au début :
|
||||
Array
|
||||
|
||||
Etat de notre flotte à la fin de ce tour :
|
||||
Grand Array ^^
|
||||
|
||||
Etat de la flotte adverse à la fin de ce tour :
|
||||
Grand Array ^^
|
||||
|
||||
';
|
||||
|
||||
$rapportEN .= 'Tactique lors de ce tour : '.txtTactique($this->ENtactique).'.
|
||||
|
||||
Lieux : ['.$resultat['end_galaxie'].':'.$resultat['end_ss'].':'.$resultat['end_position'].'] METTRE UN LIEN
|
||||
|
||||
Vaisseaux au début de notre côté :
|
||||
Array
|
||||
|
||||
Défenses au début de notre côté :
|
||||
Array
|
||||
|
||||
Vaisseaux adverse au début :
|
||||
Array
|
||||
|
||||
Etat de notre flotte à la fin de ce tour :
|
||||
Grand Array ^^
|
||||
|
||||
Etat de la flotte adverse à la fin de ce tour :
|
||||
Grand Array ^^
|
||||
|
||||
';
|
||||
|
||||
if (floor($this->Ntour/2) == $this->Ntour/2 && !$fin) {
|
||||
$rapportAT .= 'Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !
|
||||
|
||||
La prochaine attaque est prévue à '.date('/dm/ H:i:s', $this->timestamp+600);
|
||||
$rapportEN .= 'Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !
|
||||
|
||||
La prochaine attaque est prévue à '.date('/dm/ H:i:s', $this->timestamp+300);
|
||||
}
|
||||
elseif (!$fin) {
|
||||
$rapportAT .= 'Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !
|
||||
|
||||
La prochaine attaque est prévue à '.date('/dm/ H:i:s', $this->timestamp+300);
|
||||
$rapportEN .= 'Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !
|
||||
|
||||
La prochaine attaque est prévue à '.date('/dm/ H:i:s', $this->timestamp+600);
|
||||
}
|
||||
elseif ($fin && $ATgagnant) {
|
||||
$rapportAT .= 'Nous avons gagné le combat !
|
||||
|
||||
Nous repartons avec plein de choses.';
|
||||
$rapportEN .= 'Nous n\'avons pas pu repousser l\'envahisseur qui repart avec plein de chose.';
|
||||
}
|
||||
elseif ($fin && !$ATgagnant) {
|
||||
$rapportAT .= 'Nous avons perdu le combat !';
|
||||
$rapportEN .= 'Nous avons pu repousser l\'envahisseur qui repart sans rien.';
|
||||
}
|
||||
|
||||
return array(mysql_real_escape_string($rapportAT), mysql_real_escape_string($rapportEN), $resultat['id_user'], $resultatDef['id_user']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -100,6 +100,52 @@ class Rapport{
|
|||
mysql_query("INSERT INTO mail VALUES('', '1', '".trouvNom($this->utilB)."', '', '$titreB', '$rapportB', '$temps')");
|
||||
}
|
||||
|
||||
function sendTransport(){
|
||||
include_once('includes/function.php');
|
||||
$titre = 'Transport vers '.$this->var[0]['nom_planete'].' ['.$this->var[0]['galaxie'].':'.$this->var[0]['ss'].':'.$this->var[0]['position'].']';
|
||||
|
||||
$race = trouvInfo($this->utilA, 'race');
|
||||
include('includes/noms.php');
|
||||
$rapportA = 'Vos vaisseaux ont déposé '.$this->var[1][0].' de '.$ressourc[0].', '.$this->var[1][1].' de '.$ressourc[1].' et '.$this->var[1][2].' d\''.$ressourc[2].' sur '.$this->var[0]['nom_planete'].'['.$this->var[0]['galaxie'].':'.$this->var[0]['ss'].':'.$this->var[0]['position'].']</b><br /><br />';
|
||||
|
||||
$race = trouvInfo($this->utilB, 'race');
|
||||
include('includes/noms.php');
|
||||
$rapportB = 'Les vaisseaux de '.trouvNom($this->utilA).' ont déposé '.$this->var[1][0].' de '.$ressourc[0].', '.$this->var[1][1].' de '.$ressourc[1].' et '.$this->var[1][2].' d\''.$ressourc[2].' sur '.$this->var[0]['nom_planete'].'['.$this->var[0]['galaxie'].':'.$this->var[0]['ss'].':'.$this->var[0]['position'].']</b><br /><br />';
|
||||
|
||||
$titre = mysql_real_escape_string($titre);
|
||||
$rapportA = mysql_real_escape_string($rapportA);
|
||||
$rapportB = mysql_real_escape_string($rapportB);
|
||||
$temps = $this->timestamp;
|
||||
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '".trouvNom($this->utilA)."', '', '$titre', '$rapportA', '$temps')");
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '".trouvNom($this->utilB)."', '', '$titre', '$rapportB', '$temps')");
|
||||
}
|
||||
|
||||
function sendColonisation(){
|
||||
include_once('includes/function.php');
|
||||
$titre = 'Colonisation de ['.$this->var[0][0].':'.$this->var[0][1].':'.$this->var[0][2].']';
|
||||
if ($this->var[1]) $rapport = 'Votre vaisseau a atteint la planète ['.$this->var[0][0].':'.$this->var[0][1].':'.$this->var[0][2].'] et commence la colonisation.';
|
||||
else $rapport = 'Nous n\'avons pas pu coloniser la planète ['.$this->var[0][0].':'.$this->var[0][1].':'.$this->var[0][2].'] car lorsque nous sommes arrivé sur place, elle était déjà colonisée.';
|
||||
|
||||
$titre = mysql_real_escape_string($titre);
|
||||
$rapport = mysql_real_escape_string($rapport);
|
||||
$temps = $this->timestamp;
|
||||
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '".trouvNom($this->utilA)."', '', '$titre', '$rapport', '$temps')");
|
||||
}
|
||||
|
||||
function sendRecyclage(){
|
||||
include_once('includes/function.php');
|
||||
$titre = 'Recyclage de '.$this->var[0]['nom_planete'].' ['.$this->var[0]['galaxie'].':'.$this->var[0]['ss'].':'.$this->var[0]['position'].']';
|
||||
$rapport = 'Vos vaisseaux récoltent '.$this->var[1][0].' de '.$ressourc[0].' et '.$this->var[1][1].' de '.$ressourc[1].' sur '.$this->var[0]['nom_planete'].'['.$this->var[0]['galaxie'].':'.$this->var[0]['ss'].':'.$this->var[0]['position'].']</b><br /><br />';
|
||||
|
||||
$titre = mysql_real_escape_string($titre);
|
||||
$rapport = mysql_real_escape_string($rapport);
|
||||
$temps = $this->timestamp;
|
||||
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '".trouvNom($this->utilA)."', '', '$titre', '$rapport', '$temps')");
|
||||
}
|
||||
|
||||
function sendCombat(){
|
||||
include('includes/vars.php');
|
||||
include_once('includes/function.php');
|
||||
|
|
@ -137,6 +183,8 @@ class Rapport{
|
|||
|
||||
$rapportA->assign('vaisBC', $nomvais_bc);
|
||||
$rapportA->assign('vaisPV', $nomvais_pv);
|
||||
$rapportA->assign('defBC', $defense_bc);
|
||||
$rapportA->assign('defPV', $defense_pv);
|
||||
$rapportA->assign('nextTour', $this->var[10]);
|
||||
|
||||
$race = trouvInfo($this->utilA, 'race');
|
||||
|
|
@ -169,6 +217,8 @@ class Rapport{
|
|||
|
||||
$rapportB->assign('vaisBC', $nomvais_bc);
|
||||
$rapportB->assign('vaisPV', $nomvais_pv);
|
||||
$rapportB->assign('defBC', $defense_bc);
|
||||
$rapportB->assign('defPV', $defense_pv);
|
||||
$rapportB->assign('nextTour', $this->var[10]);
|
||||
|
||||
$race = trouvInfo($this->utilA, 'race');
|
||||
|
|
@ -195,6 +245,60 @@ class Rapport{
|
|||
mysql_query("INSERT INTO mail VALUES('', '1', '".trouvNom($this->utilB)."', '', '$titreB', '$rapportB', '$temps')");
|
||||
}
|
||||
|
||||
function show(){
|
||||
include('includes/vars.php');
|
||||
include_once('includes/function.php');
|
||||
require_once(SMARTY_DIR."Smarty.class.php");
|
||||
|
||||
$rapportA = new Smarty();
|
||||
|
||||
$rapportA->template_dir = _FCORE.'templates/templates/';
|
||||
$rapportA->compile_dir = _FCORE.'templates/templates_c/';
|
||||
$rapportA->config_dir = _FCORE.'templates/configs/';
|
||||
$rapportA->cache_dir = _FCORE.'templates/cache/';
|
||||
|
||||
$rapportA->assign('tour', $this->var[3]);
|
||||
$rapportA->assign('EN', $this->var[4]);
|
||||
$rapportA->assign('flotte', $this->var[5]);
|
||||
$rapportA->assign('vaisseaux1', $this->var[0]);
|
||||
$rapportA->assign('vaisseaux2', $this->var[1]);
|
||||
$rapportA->assign('defenses1', $this->var[2]);
|
||||
$rapportA->assign('vaisseaux3', $this->var[7]);
|
||||
$rapportA->assign('vaisseaux4', $this->var[8]);
|
||||
$rapportA->assign('defenses2', $this->var[9]);
|
||||
|
||||
$rapportA->assign('termine', $this->var[6][0]);
|
||||
$rapportA->assign('attaquantG', $this->var[6][1]);
|
||||
$rapportA->assign('pillage', $this->var[11]);
|
||||
$rapportA->assign('debris', $this->var[12]);
|
||||
|
||||
$rapportA->assign('page', 'simulation');
|
||||
$rapportA->assign('enligne', $this->var[13][0]);
|
||||
$rapportA->assign('infos', $this->var[13][1]);
|
||||
$rapportA->assign('nbinfos', $this->var[13][2]);
|
||||
$rapportA->assign('count', $this->var[13][3]);
|
||||
$rapportA->assign('version', $this->var[13][4]);
|
||||
$rapportA->assign('tpsdejeu', $this->var[13][5]);
|
||||
|
||||
$rapportA->assign('vaisBC', $nomvais_bc);
|
||||
$rapportA->assign('vaisPV', $nomvais_pv);
|
||||
$rapportA->assign('defBC', $defense_bc);
|
||||
$rapportA->assign('defPV', $defense_pv);
|
||||
$rapportA->assign('nextTour', $this->var[10]);
|
||||
|
||||
$race = trouvInfo($this->utilA, 'race');
|
||||
include('includes/noms.php');
|
||||
$rapportA->assign('ressources', $ressourc);
|
||||
$rapportA->assign('nomvaisAT', $nomvaisa);
|
||||
$rapportA->assign('nomvaisEN', $nomvaisa);
|
||||
array_splice($nomterra, 0, 8);
|
||||
$rapportA->assign('nomdefEN', $nomterra);
|
||||
$rapportA->assign('race', $race);
|
||||
|
||||
return $rapportA->fetch('game/SIMrapport_combat.tpl');
|
||||
return $rapportA;
|
||||
}
|
||||
|
||||
function sendAlliance(){
|
||||
include_once('includes/function.php');
|
||||
$titreA = 'Déclaration officielle de votre alliance !';
|
||||
|
|
|
|||
122
game/simulateur.php
Normal file
122
game/simulateur.php
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$page = 'simulateur_combat';
|
||||
$titre = 'Simulateur de combat';
|
||||
|
||||
if (isset($_POST['ATvais_1']) && isset($_POST['ATvais_2']) && isset($_POST['ATvais_3']) && isset($_POST['ATvais_4']) && isset($_POST['ATvais_5']) && isset($_POST['ATvais_6']) && isset($_POST['ATvais_7']) && isset($_POST['ATvais_8']) && isset($_POST['ATvais_9']) && isset($_POST['ATvais_10']) && isset($_POST['ATvais_12']) && isset($_POST['ENvais_1']) && isset($_POST['ENvais_2']) && isset($_POST['ENvais_3']) && isset($_POST['ENvais_4']) && isset($_POST['ENvais_5']) && isset($_POST['ENvais_6']) && isset($_POST['ENvais_7']) && isset($_POST['ENvais_8']) && isset($_POST['ENvais_9']) && isset($_POST['ENvais_10']) && isset($_POST['ENvais_11']) && isset($_POST['ENvais_12']) && isset($_POST['ENdef_1']) && isset($_POST['ENdef_2']) && isset($_POST['ENdef_3']) && isset($_POST['ENdef_4']) && isset($_POST['ENdef_5']) && isset($_POST['ENmetal']) && isset($_POST['ENcristal']) && isset($_POST['ENhydrogene']) && isset($_POST['ATtactique']) && isset($_POST['ENtactique']) && isset($_POST['maxtour'])) {
|
||||
$i = 0;
|
||||
$queryFlottes[$i] = array(
|
||||
"id" => 0,
|
||||
"contenu_max" => 999999,
|
||||
"contenu_metal" => 0,
|
||||
"contenu_cristal" => 0,
|
||||
"contenu_hydrogene" => 0,
|
||||
"start_time" => 0,
|
||||
"end_time" => 0,
|
||||
"mission" => 1,
|
||||
"id_user" => $id_user,
|
||||
"effectue" => 0,
|
||||
"vaisseau_1" => $_POST['ATvais_1'],
|
||||
"vaisseau_2" => $_POST['ATvais_2'],
|
||||
"vaisseau_3" => $_POST['ATvais_3'],
|
||||
"vaisseau_4" => $_POST['ATvais_4'],
|
||||
"vaisseau_5" => $_POST['ATvais_5'],
|
||||
"vaisseau_6" => $_POST['ATvais_6'],
|
||||
"vaisseau_7" => $_POST['ATvais_7'],
|
||||
"vaisseau_8" => $_POST['ATvais_8'],
|
||||
"vaisseau_9" => $_POST['ATvais_9'],
|
||||
"vaisseau_10" => $_POST['ATvais_10'],
|
||||
"vaisseau_11" => 0,
|
||||
"vaisseau_12" => $_POST['ATvais_12']
|
||||
);
|
||||
$queryEN = array(
|
||||
"debris_met" => 0,
|
||||
"debris_cri" => 0,
|
||||
"metal" => $_POST['ENmetal'],
|
||||
"cristal" => $_POST['ENcristal'],
|
||||
"hydrogene" => $_POST['ENhydrogene'],
|
||||
"def_1" => $_POST['ENdef_1'],
|
||||
"def_2" => $_POST['ENdef_2'],
|
||||
"def_3" => $_POST['ENdef_3'],
|
||||
"def_4" => $_POST['ENdef_4'],
|
||||
"def_5" => $_POST['ENdef_5'],
|
||||
"vaisseau_1" => $_POST['ENvais_1'],
|
||||
"vaisseau_2" => $_POST['ENvais_2'],
|
||||
"vaisseau_3" => $_POST['ENvais_3'],
|
||||
"vaisseau_4" => $_POST['ENvais_4'],
|
||||
"vaisseau_5" => $_POST['ENvais_5'],
|
||||
"vaisseau_6" => $_POST['ENvais_6'],
|
||||
"vaisseau_7" => $_POST['ENvais_7'],
|
||||
"vaisseau_8" => $_POST['ENvais_8'],
|
||||
"vaisseau_9" => $_POST['ENvais_9'],
|
||||
"vaisseau_10" => $_POST['ENvais_10'],
|
||||
"vaisseau_11" => $_POST['ENvais_11'],
|
||||
"vaisseau_12" => $_POST['ENvais_12']
|
||||
);
|
||||
require_once('Class/class.combat.php');
|
||||
require_once('Class/class.rapport.php');
|
||||
|
||||
//On génére un nouveau combat
|
||||
$combat = new Combat($queryFlottes[$i], $queryEN, $queryEN);
|
||||
$combat->changerTactiqueAT($_POST['ATtactique']);
|
||||
$combat->changerTactiqueEN($_POST['ENtactique']);
|
||||
$rapport = new Rapport(1, $queryFlottes[$i]['id_user'], 0, time());
|
||||
$rapport->addInfo($combat->ATvais, 0);
|
||||
$rapport->addInfo($combat->ENvais, 1);
|
||||
$rapport->addInfo($combat->ENdef, 2);
|
||||
$rapport->addInfo($queryEN, 4);
|
||||
$rapport->addInfo($queryFlottes[$i], 5);
|
||||
$rapport->addInfo(array(false, false), 6);
|
||||
|
||||
while(!$rapport->var[6][0]) {
|
||||
if ($combat->Ntour >= $_POST['maxtour']) break;
|
||||
$combat->Ntour++;
|
||||
|
||||
//Détermine à qui est le tour : attaquant ou défenseur
|
||||
if ($combat->Ntour%2) { //Tour impaire : tour attaquant
|
||||
//Récupération des paramètres de la tactique
|
||||
$arraytactique = tactique($combat->ATtactique);
|
||||
|
||||
//Lancement du combat, si condition validée, attaquant vainceur
|
||||
if (@!$combat->attaquerVais($combat->calcAttaque($arraytactique[2] + $combat->regenereBC($arraytactique[1], true, !$arraytactique[3]), true), true)) {
|
||||
$combat->pillageSimul($queryEN['metal'], $queryEN['cristal'], $queryEN['hydrogene']);
|
||||
$rapport->addInfo(array(true, true), 6);
|
||||
}
|
||||
else $rapport->addInfo(array(false, false), 6);
|
||||
}
|
||||
else { //Tour impaire : tour défenseur
|
||||
//Récupération des paramètres de la tactique
|
||||
$arraytactique = tactique($combat->ENtactique);
|
||||
|
||||
//Lancement du combat, si condition validée, défenseur vainceur
|
||||
if (@!$combat->attaquerVais($combat->calcAttaque($arraytactique[2] + $combat->regenereBC($arraytactique[1], false, !$arraytactique[3]), false), false)) $rapport->addInfo(array(true, false), 6);
|
||||
else $rapport->addInfo(array(false, false), 6);
|
||||
}
|
||||
|
||||
$rapport->addInfo($combat->ATvais, 7);
|
||||
$rapport->addInfo($combat->ENvais, 8);
|
||||
$rapport->addInfo($combat->ENdef, 9);
|
||||
|
||||
//Prévision du prochain tour
|
||||
$combat->timestamp += 300;
|
||||
$rapport->addInfo($combat->timestamp, 10);
|
||||
$rapport->addInfo($combat->pillage, 11);
|
||||
}
|
||||
$rapport->addInfo($combat->Ntour, 3);
|
||||
$debriM = $combat->debriM;
|
||||
$debriC = $combat->debriC;
|
||||
|
||||
$rapport->addInfo(array($debriM, $debriC), 12);
|
||||
$rapport->addInfo(array($enligne, $infos, count($infos)-1, array('humains' => $nbhumain, 'covenants' => $nbcovie, 'serveurs' => 'cette'), VERSION, $min.' min'), 13);
|
||||
|
||||
$template = $rapport->show();
|
||||
print $template;
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$template->assign('nomvais', $nomvaisn);
|
||||
array_splice($nomterra, 0, 8);
|
||||
$template->assign('nomdef', $nomterra);
|
||||
$template->assign('nomressourc', $ressourc);
|
||||
}
|
||||
?>
|
||||
|
|
@ -20,149 +20,87 @@ $Hgalaxie = $queryPlanete["galaxie"];
|
|||
$Hss = $queryPlanete["ss"];
|
||||
$Hposition = $queryPlanete["position"];
|
||||
|
||||
$queryFlottes = $chapeau->query("SELECT * FROM `$table_flottes` WHERE `id_user` = '$id_user' OR (`end_galaxie` = '$Hgalaxie' AND `end_ss` = '$Hss' AND `end_position` = '$Hposition')");
|
||||
$queryFlottes = $chapeau->query("SELECT * FROM `$table_flottes` WHERE `id_user` = '$id_user' OR (`end_galaxie` = '$Hgalaxie' AND `end_ss` = '$Hss' AND `end_position` = '$Hposition');");
|
||||
$nbFlottes = $chapeau->num_rows;
|
||||
for ($i = 0; $i < $nbFlottes; $i++) {
|
||||
//Récupération des principales variables de la flotte
|
||||
$id_user = $queryFlottes[$i]['id_user'];
|
||||
$id_flotte = $queryFlottes[$i]['id'];
|
||||
$mission = $queryFlottes[$i]['mission'];
|
||||
$end_galaxie = $queryFlottes[$i]['end_galaxie'];
|
||||
$end_ss = $queryFlottes[$i]['end_ss'];
|
||||
$end_position = $queryFlottes[$i]['end_position'];
|
||||
$temps = $queryFlottes[$i]['start_time'] + $queryFlottes[$i]['end_time'];
|
||||
$end_time = $queryFlottes[$i]['start_time'] + $queryFlottes[$i]['end_time'];
|
||||
//On vérifie que la planète cible existe
|
||||
if ($mission != 3 && !$queryEN = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position';")) {
|
||||
//TODO La planète cible n'existe plus/pas, envoyer un mail au joueur et retourner la flotte
|
||||
continue;
|
||||
}
|
||||
$ENidPlan = $queryEN['id'];
|
||||
|
||||
//La flotte est prête a effectuer une action
|
||||
if ($queryFlottes[$i]['effectue'] != 1 && time() >= $queryFlottes[$i]['start_time'] + $queryFlottes[$i]['end_time'] && !empty($queryFlottes[$i]['end_time'])) {
|
||||
|
||||
//Mission attaquer
|
||||
//Mission Attaquer
|
||||
if ($mission == 1) {
|
||||
require_once('Class/class.combat.php');
|
||||
//Chargement des données du joueur attaqué : EN...
|
||||
$planeteEN = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
$ENidPlan = $planeteEN['id'];
|
||||
|
||||
//Le combat existe déjà, la flotte était placée en attente
|
||||
//On regarde si le combat a déjà commencé
|
||||
if ($queryFlottes[$i]['effectue'] == 2) {
|
||||
//Recherche de la flotte
|
||||
$resultatC = $chapeau->unique_query("SELECT * FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte';");
|
||||
|
||||
//La flotte n'a pas été trouvée dans la BDD : impossible
|
||||
if (!$resultatC) die('Erreur dans le script de combat, <a href="mailto:admin@halo-battle.s-fr.com">contactez d\'urgence un administrateur</a> !');
|
||||
|
||||
//Il est temps de passer au tour suivant !
|
||||
if (time() >= $resultatC['timestamp']) {
|
||||
//On récupère le combat
|
||||
$combat = unserialize($resultatC['serialize']);
|
||||
|
||||
//On prépare les rapports de combats
|
||||
$rapport = new Rapport($mission, $queryFlottes[$i]['id_user'], $planeteEN['id_user'], $combat->timestamp);
|
||||
|
||||
//Mise à jour des tactiques
|
||||
if (!empty($resultatC['tactiqueAT'])) $combat->changerTactiqueAT($resultatC['tactiqueAT']);
|
||||
if (!empty($resultatC['tactiqueEN'])) $combat->changerTactiqueEN($resultatC['tactiqueEN']);
|
||||
|
||||
while($combat->timestamp <= time()) {
|
||||
//On passe le tour
|
||||
$combat->Ntour++;
|
||||
$rapport->addInfo($combat->ATvais, 0);
|
||||
$rapport->addInfo($combat->ENvais, 1);
|
||||
$rapport->addInfo($combat->ENdef, 2);
|
||||
$rapport->addInfo($combat->Ntour, 3);
|
||||
$rapport->addInfo($planeteEN, 4);
|
||||
$rapport->addInfo($queryFlottes[$i], 5);
|
||||
|
||||
//Détermine qui est le tour : attaquant ou défenseur
|
||||
if (floor($combat->Ntour/2) == $combat->Ntour/2) { //Le tour est paire : tour attaquant
|
||||
$arraytactique = tactique($combat->ATtactique);
|
||||
if (@$combat->attaquerVais($combat->calcAttaque($arraytactique[2] + $combat->regenereBC($arraytactique[1], true, !$arraytactique[3]), true), true) == 0) { //Attaquant vainceur
|
||||
$chapeau->query("DELETE FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_flottes` SET ".$combat->exportAT(true).", `effectue` = '1', `ret_time` = ".$combat->timestamp." WHERE `id` = '$id_flotte';");
|
||||
$chapeau->query("UPDATE `$table_planete` SET ".$combat->exportEN().", `metal` = `metal` - '".$combat->vaisContenuM."', `cristal` = `cristal` - '".$combat->vaisContenuC."', `hydrogene` = `hydrogene` - '".$combat->vaisContenuH."' WHERE `id` = '$ENidPlan';");
|
||||
$rapport->addInfo(array(true, true), 6);
|
||||
}
|
||||
else $rapport->addInfo(array(false, false), 6);
|
||||
|
||||
$rapport->addInfo($combat->ATvais, 7);
|
||||
$rapport->addInfo($combat->ENvais, 8);
|
||||
$rapport->addInfo($combat->ENdef, 9);
|
||||
}
|
||||
else { //Le tour est impaire : tour défenseur
|
||||
$arraytactique = tactique($combat->ENtactique);
|
||||
if (@$combat->attaquerVais($combat->calcAttaque($arraytactique[2] + $combat->regenereBC($arraytactique[1], false, !$arraytactique[3]), false), false) == 0) { //Défenseur vainceur
|
||||
$chapeau->query("DELETE FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte';");
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_planete` SET ".$combat->exportEN()." WHERE `id` = '$ENidPlan';");
|
||||
$rapport->addInfo(array(true, false), 6);
|
||||
}
|
||||
else $rapport->addInfo(array(false, false), 6);
|
||||
|
||||
$rapport->addInfo($combat->ATvais, 7);
|
||||
$rapport->addInfo($combat->ENvais, 8);
|
||||
$rapport->addInfo($combat->ENdef, 9);
|
||||
}
|
||||
|
||||
//Prévision du prochain tour
|
||||
$combat->timestamp += 300;
|
||||
$rapport->addInfo($combat->timestamp, 10);
|
||||
$rapport->addInfo(array($combat->vaisContenuM, $combat->vaisContenuC, $combat->vaisContenuH), 11);
|
||||
|
||||
//On envoie les rapports aux joueurs concernés
|
||||
$rapport->send();
|
||||
if ($queryCombat = $chapeau->unique_query("SELECT * FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte';")) {
|
||||
//On vérifie si on lance le tour suivant ou non
|
||||
if (time() >= $queryCombat['timestamp']) {
|
||||
//Récupération du combat
|
||||
$combat = unserialize($queryCombat['serialize']);
|
||||
//Mise à jour des tactiques
|
||||
if (!empty($queryCombat['tactiqueAT'])) $combat->changerTactiqueAT($queryCombat['tactiqueAT']);
|
||||
if (!empty($queryCombat['tactiqueEN'])) $combat->changerTactiqueEN($queryCombat['tactiqueEN']);
|
||||
}
|
||||
$timestamp_suite = $combat->timestamp;
|
||||
|
||||
$debriM = $combat->debriM + $planeteEN['debris_met'];
|
||||
$debriC = $combat->debriC + $planeteEN['debris_cri'];
|
||||
|
||||
$combat->debriM = 0;
|
||||
$combat->debriC = 0;
|
||||
|
||||
//On sérialise la classe pour l'exporter
|
||||
$serialise = serialize($combat);
|
||||
|
||||
//On enregistre le combat dans la base de données
|
||||
$chapeau->query("UPDATE `$table_flottes_combats` SET `serialize` = '$serialise', `tactiqueAT` = '0', `tactiqueEN` = '0', `timestamp` = '$timestamp_suite' WHERE `refflotte` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_planete` SET `debris_met` = '$debriM', `debris_cri` = '$debriC' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
else continue;
|
||||
}
|
||||
else die('Erreur dans le script de combat, <a href="mailto:admin@halo-battle.s-fr.com">contactez d\'urgence un administrateur</a> !');
|
||||
}
|
||||
else {
|
||||
//On trouve les variables nécessaire pour le combat : vaisseaux, défenses, ...
|
||||
$resultatDef = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
//On génére un nouveau combat
|
||||
$combat = new Combat($queryFlottes[$i], $queryEN, $queryEN);
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '2' WHERE `id` = '$id_flotte';");
|
||||
}
|
||||
|
||||
//On déclare le combat
|
||||
$combat = new Combat($queryFlottes[$i], $resultatDef, $resultatDef);
|
||||
|
||||
//On prépare les rapports de combats
|
||||
$rapport = new Rapport($mission, $queryFlottes[$i]['id_user'], $planeteEN['id_user'], $combat->timestamp);
|
||||
|
||||
//Définition des tactiques par défaut pour les deux combatants
|
||||
$resultatU = $chapeau->unique_query("SELECT `combatAT_tactique` FROM `$table_user` WHERE `id` = '".$queryFlottes[$i]['id_user']."'");
|
||||
if (empty($queryFlottes[$i]['tactiqueAT'])) $combat->changerTactiqueAT($resultatU['combatAT_tactique']);
|
||||
else $combat->changerTactiqueAT($queryFlottes[$i]['tactiqueAT']);
|
||||
|
||||
$resultatU = $chapeau->query("SELECT combatDE_tactique FROM `$table_user` WHERE `id` = '".$resultatDef['id_user']."'");
|
||||
if (empty($queryFlottes[$i]['tactiqueEN'])) $combat->changerTactiqueEN($resultatU['combatDE_tactique']);
|
||||
else $combat->changerTactiqueEN($queryFlottes[$i]['tactiqueEN']);
|
||||
while($combat->timestamp <= time()) {
|
||||
//Préparation du rapport
|
||||
$rapport = new Rapport($mission, $queryFlottes[$i]['id_user'], $queryEN['id_user'], $combat->timestamp);
|
||||
|
||||
$combat->Ntour++;
|
||||
$rapport->addInfo($combat->ATvais, 0);
|
||||
$rapport->addInfo($combat->ENvais, 1);
|
||||
$rapport->addInfo($combat->ENdef, 2);
|
||||
$rapport->addInfo($combat->Ntour, 3);
|
||||
$rapport->addInfo($resultatDef, 4);
|
||||
$rapport->addInfo($queryEN, 4);
|
||||
$rapport->addInfo($queryFlottes[$i], 5);
|
||||
|
||||
//Lancement de l'attaque
|
||||
if (@$combat->attaquerVais($combat->calcAttaque(100,true),true) == 0) { //Attaquant vainceur
|
||||
$chapeau->query("DELETE FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_flottes` SET ".$combat->exportAT(true).", `effectue` = '1', `ret_time` = ".$combat->timestamp." WHERE `id` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_planete` SET ".$combat->exportEN().", `metal` = `metal` - '".$combat->vaisContenuM."', `cristal` = `cristal` - '".$combat->vaisContenuC."', `hydrogene` = `hydrogene` - '".$combat->vaisContenuH."' WHERE `id` = '$ENidPlan';");
|
||||
$rapport->addInfo(array(true, true), 6);
|
||||
$effect = false;
|
||||
//Détermine à qui est le tour : attaquant ou défenseur
|
||||
if ($combat->Ntour%2) { //Tour impaire : tour attaquant
|
||||
//Récupération des paramètres de la tactique
|
||||
$arraytactique = tactique($combat->ATtactique);
|
||||
|
||||
//Lancement du combat, si condition validée, attaquant vainceur
|
||||
if (@!$combat->attaquerVais($combat->calcAttaque($arraytactique[2] + $combat->regenereBC($arraytactique[1], true, !$arraytactique[3]), true), true)) {
|
||||
$chapeau->query("DELETE FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte';");
|
||||
$chapeau->query("UPDATE `$table_flottes` SET ".$combat->exportAT(true).", `effectue` = '1', `ret_time` = '".$combat->timestamp."' + `end_time` WHERE `id` = '$id_flotte';");
|
||||
$chapeau->query("UPDATE `$table_planete` SET ".$combat->exportEN().", `metal` = `metal` - '".$combat->pillage[0]."', `cristal` = `cristal` - '".$combat->pillage[1]."', `hydrogene` = `hydrogene` - '".$combat->pillage[2]."' WHERE `id` = '$ENidPlan';");
|
||||
$rapport->addInfo(array(true, true), 6);
|
||||
}
|
||||
else $rapport->addInfo(array(false, false), 6);
|
||||
}
|
||||
else {
|
||||
$rapport->addInfo(array(false, false), 6);
|
||||
$effect = true;
|
||||
else { //Tour impaire : tour défenseur
|
||||
//Récupération des paramètres de la tactique
|
||||
$arraytactique = tactique($combat->ENtactique);
|
||||
|
||||
//Lancement du combat, si condition validée, défenseur vainceur
|
||||
if (@!$combat->attaquerVais($combat->calcAttaque($arraytactique[2] + $combat->regenereBC($arraytactique[1], false, !$arraytactique[3]), false), false)) {
|
||||
$chapeau->query("DELETE FROM `$table_flottes_combats` WHERE `refflotte` = '$id_flotte';");
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id` = '$id_flotte';");
|
||||
$chapeau->query("UPDATE `$table_planete` SET ".$combat->exportEN()." WHERE `id` = '$ENidPlan';");
|
||||
$rapport->addInfo(array(true, false), 6);
|
||||
}
|
||||
else $rapport->addInfo(array(false, false), 6);
|
||||
}
|
||||
|
||||
$rapport->addInfo($combat->ATvais, 7);
|
||||
|
|
@ -171,44 +109,46 @@ for ($i = 0; $i < $nbFlottes; $i++) {
|
|||
|
||||
//Prévision du prochain tour
|
||||
$combat->timestamp += 300;
|
||||
$timestamp_suite = $combat->timestamp;
|
||||
$rapport->addInfo($combat->timestamp, 10);
|
||||
$rapport->addInfo(array($combat->vaisContenuM, $combat->vaisContenuC, $combat->vaisContenuH), 11);
|
||||
|
||||
$debriM = $combat->debriM + $planeteEN['debris_met'];
|
||||
$debriC = $combat->debriC + $planeteEN['debris_cri'];
|
||||
|
||||
$combat->debriM = 0;
|
||||
$combat->debriC = 0;
|
||||
|
||||
//On sérialise la classe pour l'exporter
|
||||
$serialise = serialize($combat);
|
||||
$rapport->addInfo($combat->pillage, 11);
|
||||
|
||||
//On envoie les rapports aux joueurs concernés
|
||||
$rapport->send();
|
||||
}
|
||||
$debriM = $combat->debriM + $queryEN['debris_met'];
|
||||
$debriC = $combat->debriC + $queryEN['debris_cri'];
|
||||
|
||||
$combat->debriM = 0;
|
||||
$combat->debriC = 0;
|
||||
$chapeau->query("UPDATE `$table_planete` SET `debris_met` = '$debriM', `debris_cri` = '$debriC' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position';");
|
||||
|
||||
if (!$rapport->var[6][0]) { //Si le combat n'est pas terminé
|
||||
//On sérialise la classe pour l'exporter
|
||||
$serialise = serialize($combat);
|
||||
|
||||
//On enregistre le combat dans la base de données
|
||||
$chapeau->query("INSERT INTO `$table_flottes_combats` VALUES(NULL, '".$queryFlottes[$i]['id']."', '$timestamp_suite', '$serialise', '0', '0');");
|
||||
if ($effect) $chapeau->query("UPDATE `$table_flottes` SET `effectue` = '2' WHERE `id` = '$id_flotte';");
|
||||
$chapeau->query("UPDATE `$table_planete` SET `debris_met` = '$debriM', `debris_cri` = '$debriC' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position';");
|
||||
if ($queryFlottes[$i]['effectue']) $chapeau->query("UPDATE `$table_flottes_combats` SET `serialize` = '$serialise', `tactiqueAT` = '0', `tactiqueEN` = '0', `timestamp` = '".$combat->timestamp."' WHERE `refflotte` = '$id_flotte';");
|
||||
else $chapeau->query("INSERT INTO `$table_flottes_combats` VALUES(NULL, '".$queryFlottes[$i]['id']."', '".$combat->timestamp."', '$serialise', '0', '0');");
|
||||
}
|
||||
}
|
||||
//Mission Transporter
|
||||
elseif ($mission == 2) {
|
||||
$planeteEN = $chapeau->unique_query("SELECT `metal`, `cristal`, `hydrogene` FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
$Cmetal = $queryFlottes[$i]['contenu_metal'] + $resultatT['metal'];
|
||||
$Ccristal = $queryFlottes[$i]['contenu_cristal'] + $planeteEN['cristal'];
|
||||
$Chydrogene = $queryFlottes[$i]['contenu_hydrogene'] + $planeteEN['hydrogene'];
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = '$Cmetal', `cristal` = '$Ccristal', `hydrogene` = '$Chydrogene' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1', `contenu_metal` = '0', `contenu_cristal` = '0', `contenu_hydrogene` = '0' WHERE `id` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = `metal` + '".$queryFlottes[$i]['contenu_metal']."', `cristal` = `cristal` + '".$queryFlottes[$i]['contenu_cristal']."', `hydrogene` = `hydrogene` + '".$queryFlottes[$i]['contenu_hydrogene']."' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position';");
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1', `contenu_metal` = '0', `contenu_cristal` = '0', `contenu_hydrogene` = '0' WHERE `id` = '$id_flotte';");
|
||||
|
||||
$message = mysql_real_escape_string('Vos vaisseaux ont déposés '.$queryFlottes[$i]['contenu_metal'].' de métal, '.$queryFlottes[$i]['contenu_cristal'].' de cristal et '.$queryFlottes[$i]['contenu_hydrogene'].' d\'hydrogène aux coordonnées '.$end_galaxie.':'.$end_ss.':'.$end_position);
|
||||
$chapeau->query("INSERT INTO `$table_mail` VALUES('', '1', '".trouvNom($queryFlottes[$i]['id_user'])."', '', 'Transport', '$message', '$temps')");
|
||||
$rapport = new Rapport($mission, $queryFlottes[$i]['id_user'], $queryEN['id_user'], $end_time);
|
||||
$rapport->addInfo($queryEN, 0);
|
||||
$rapport->addInfo(array($queryFlottes[$i]['contenu_metal'], $queryFlottes[$i]['contenu_cristal'], $queryFlottes[$i]['contenu_hydrogene']), 1);
|
||||
$rapport->send();
|
||||
}
|
||||
//Mission Coloniser
|
||||
elseif ($mission == 3) {
|
||||
$chapeau->query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
if (!$chapeau->num_rows > 0) {
|
||||
$rapport = new Rapport($mission, $queryFlottes[$i]['id_user'], 0, $end_time);
|
||||
$rapport->addInfo(array($end_galaxie, $end_ss, $end_position), 0);
|
||||
|
||||
if ($queryEN) $rapport->addInfo(false, 1);
|
||||
else {
|
||||
$rapport->addInfo(true, 1);
|
||||
$time = time();
|
||||
$cases = mt_rand(125,222);
|
||||
$image = mt_rand(1,15);
|
||||
|
|
@ -231,72 +171,68 @@ for ($i = 0; $i < $nbFlottes; $i++) {
|
|||
$debut = mktime(rand(0, 24-$tps), 0, 0, date('n'), date('j'), date('Y'));
|
||||
$fin = $debut + $tps * 3600;
|
||||
|
||||
$chapeau->query("INSERT INTO `$table_planete` (`id_user`, `isolement`, `nom_planete`, `galaxie`, `ss`, `position`, `image`, `cases`, `timestamp`, `metal`, `cristal`, `hydrogene`) VALUES ('$queryFlottes[$i]['id_user']', '$debut $fin', 'Planète colonisée', '$end_galaxie', '$end_ss', '$end_position', '$image', '$cases', '$time', '$Cmetal', '$Ccristal', '$Chydrogene')");
|
||||
$chapeau->query("INSERT INTO `$table_planete` (`id_user`, `isolement`, `nom_planete`, `galaxie`, `ss`, `position`, `image`, `cases`, `timestamp`, `metal`, `cristal`, `hydrogene`) VALUES ('".$queryFlottes[$i]['id_user']."', '$debut $fin', 'Planète colonisée', '$end_galaxie', '$end_ss', '$end_position', '$image', '$cases', '$time', '$Cmetal', '$Ccristal', '$Chydrogene');");
|
||||
|
||||
if ($queryFlottes[$i]['nb_vais'] == 1) {
|
||||
$queryFlottes[$i]['nb_vais'] = -1;
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id` = '$id_flotte'");
|
||||
}
|
||||
else $chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1', `vaisseau_3` = `vaisseau_3` - 1, `nb_vais` = `nb_vais` - 1, `contenu_metal` = '0', `contenu_cristal` = '0', `contenu_hydrogene` = '0' WHERE `id` = '$id_flotte'");
|
||||
|
||||
$message = 'Votre vaisseau a atteint la planète ['.$end_galaxie.':'.$end_ss.':'.$end_position.'] et commence la colonisation';
|
||||
$chapeau->query("INSERT INTO `$table_mail` VALUES('', '1', '".trouvNom($queryFlottes[$i]['id_user'])."', '', 'Colonisation', '$message', '$temps')");
|
||||
else $chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1', `vaisseau_3` = `vaisseau_3` - 1, `nb_vais` = `nb_vais` - 1, `contenu_metal` = '0', `contenu_cristal` = '0', `contenu_hydrogene` = '0' WHERE `id` = '$id_flotte';");
|
||||
}
|
||||
else $chapeau->query("INSERT INTO `$table_mail` VALUES('', '1', '".trouvNom($queryFlottes[$i]['id_user'])."', '', 'Colonisation', 'Nous n''avons pas pu coloniser la planète [$end_galaxie:$end_ss:$end_position] car lorsque nous sommes arrivé sur place, elle était déjà colonisée.', '$temps')");
|
||||
$rapport->send();
|
||||
}
|
||||
//Mission Recycler
|
||||
elseif ($mission == 4) {
|
||||
$resultatT = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
if ($resultatT) {
|
||||
$queryFlottes[$i]['contenu_max'] -= (vais_conso($queryFlottes[$i]['end_time'], count($queryFlottes[$i]['nb_vais']))*$queryFlottes[$i]['vitesse']*5) + $queryFlottes[$i]['contenu_metal'] + $queryFlottes[$i]['contenu_cristal'] + $queryFlottes[$i]['contenu_hydrogene'];
|
||||
$capacite = $queryFlottes[$i]['contenu_max'] - (vais_conso($queryFlottes[$i]['end_time'], count($queryFlottes[$i]['nb_vais']))*$queryFlottes[$i]['vitesse']*5) + $queryFlottes[$i]['contenu_metal'] + $queryFlottes[$i]['contenu_cristal'] + $queryFlottes[$i]['contenu_hydrogene'];
|
||||
|
||||
$debris_met = $resultatT['debris_met'];
|
||||
$debris_cri = $resultatT['debris_cri'];
|
||||
$capacite = $queryFlottes[$i]['contenu_max'];
|
||||
if ($debris_met+$debris_cri > $capacite) {
|
||||
$a = floor($capacite/2);
|
||||
$b = floor($capacite/2);
|
||||
if ($a > $debris_met && $b > $debris_cri) {
|
||||
$a = $debris_met;
|
||||
$b = $debris_cri;
|
||||
}
|
||||
else if ($a > $debris_met) {
|
||||
$a = $debris_met;
|
||||
$b = ($capacite - $a);
|
||||
if ($b > $debris_cri) $b = $debris_cri;
|
||||
}
|
||||
else if ($b > $debris_cri) {
|
||||
$b = $debris_cri;
|
||||
$a = ($capacite - $b);
|
||||
if ($a > $debris_met) $a = $debris_met;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$debris_met = $queryEN['debris_met'];
|
||||
$debris_cri = $queryEN['debris_cri'];
|
||||
|
||||
if ($debris_met+$debris_cri > $capacite) {
|
||||
$a = floor($capacite/2);
|
||||
$b = floor($capacite/2);
|
||||
if ($a > $debris_met && $b > $debris_cri) {
|
||||
$a = $debris_met;
|
||||
$b = $debris_cri;
|
||||
}
|
||||
$Cmetal = $a + $queryFlottes[$i]['contenu_metal'];
|
||||
$Ccristal = $b + $queryFlottes[$i]['contenu_cristal'];
|
||||
$debris_met -= $a;
|
||||
$debris_cri -= $b;
|
||||
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1', `contenu_metal` = '$Cmetal', `contenu_cristal` = '$Ccristal' WHERE `id` = '$id_flotte'");
|
||||
$chapeau->query("UPDATE `$table_planete` SET `debris_met` = '$debris_met', `debris_cri` = '$debris_cri' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
|
||||
$message = 'Vos vaisseaux récoltent '.$a.' de métal et '.$b.' de cristal aux coordonnées '.$end_galaxie.':'.$end_ss.':'.$end_position;
|
||||
$chapeau->query("INSERT INTO `$table_mail` VALUES('', '1', '".trouvNom($queryFlottes[$i]['id_user'])."', '', 'Recyclage', '$message', '$temps')");
|
||||
else if ($a > $debris_met) {
|
||||
$a = $debris_met;
|
||||
$b = ($capacite - $a);
|
||||
if ($b > $debris_cri) $b = $debris_cri;
|
||||
}
|
||||
else if ($b > $debris_cri) {
|
||||
$b = $debris_cri;
|
||||
$a = ($capacite - $b);
|
||||
if ($a > $debris_met) $a = $debris_met;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$a = $debris_met;
|
||||
$b = $debris_cri;
|
||||
}
|
||||
$Cmetal = $a + $queryFlottes[$i]['contenu_metal'];
|
||||
$Ccristal = $b + $queryFlottes[$i]['contenu_cristal'];
|
||||
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1', `contenu_metal` = '$Cmetal', `contenu_cristal` = '$Ccristal' WHERE `id` = '$id_flotte';");
|
||||
$chapeau->query("UPDATE `$table_planete` SET `debris_met` = `debris_met` - '$a', `debris_cri` = `debris_cri` - '$b' WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position';");
|
||||
|
||||
$rapport = new Rapport($mission, $queryFlottes[$i]['id_user'], $queryEN['id_user'], $end_time);
|
||||
$rapport->addInfo($queryEN, 0);
|
||||
$rapport->addInfo(array($a, $b), 1);
|
||||
$rapport->send();
|
||||
}
|
||||
//Mission Espionnage
|
||||
elseif ($mission == 5) {
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1' WHERE `id` = '$id_flotte';");
|
||||
$nbsondes = $queryFlottes[$i]['vaisseau_3'];
|
||||
$resultatT = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'");
|
||||
$id_userT = $resultatT['id_user'];
|
||||
$id_userT = $queryEN['id_user'];
|
||||
$id_att = $queryFlottes[$i]['id_user'];
|
||||
$resultatUD = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `id` = '$id_userT';");
|
||||
$resultatUA = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `id` = '$id_att';");
|
||||
|
||||
$diffNiveau = $resultatUA['detection'] - $resultatUD['detection'] + floor($nbsondes/2);
|
||||
$rapport = new Rapport($mission, $id_att, $id_userT, $queryFlottes[$i]['start_time'] + $queryFlottes[$i]['end_time']);
|
||||
$rapport = new Rapport($mission, $id_att, $id_userT, $end_time);
|
||||
|
||||
if ($diffNiveau < 0) {
|
||||
$rapport->addInfo($resultatT, 0);
|
||||
$rapport->addInfo(false, 1);
|
||||
|
|
@ -308,31 +244,41 @@ for ($i = 0; $i < $nbFlottes; $i++) {
|
|||
if ($diffNiveau >= 4) $rapport->addInfo($resultatUD, 4);
|
||||
if ($diffNiveau >= 5) $rapport->addInfo(true, 5);
|
||||
|
||||
$chapeau->query("UPDATE `$table_flottes` SET `effectue` = '1' WHERE `id` = '$id_flotte'");
|
||||
$rapport->send();
|
||||
}
|
||||
}
|
||||
if ($queryFlottes[$i]['nb_vais'] >= 0 && time() >= $queryFlottes[$i]['start_time'] + $queryFlottes[$i]['end_time'] * 2 && !empty($queryFlottes[$i]['end_time']) && $queryFlottes[$i]['mission'] != 0 && ($queryFlottes[$i]['mission'] != 1 || (!empty($queryFlottes[$i]['ret_time']) && time() >= $queryFlottes[$i]['ret_time'] + $queryFlottes[$i]['end_time']))) {
|
||||
|
||||
//Si la flotte a terminé son retour
|
||||
if ($queryFlottes[$i]['nb_vais'] >= 0 && $queryFlottes[$i]['effectue']) {
|
||||
$start_galaxie = $queryFlottes[$i]['start_galaxie'];
|
||||
$start_ss = $queryFlottes[$i]['start_ss'];
|
||||
$start_position = $queryFlottes[$i]['start_position'];
|
||||
$ret_galaxie = $queryFlottes[$i]['ret_galaxie'];
|
||||
$ret_ss = $queryFlottes[$i]['ret_ss'];
|
||||
$ret_position = $queryFlottes[$i]['ret_position'];
|
||||
$id_flotte = $queryFlottes[$i]['id'];
|
||||
if (!empty($queryFlottes[$i]['ret_position'])) $resultatP = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$ret_galaxie' AND `ss` = '$ret_ss' AND `position` = '$ret_position';");
|
||||
else $resultatP = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position';");
|
||||
$metal = $queryFlottes[$i]['contenu_metal'] + $resultatP['metal'];
|
||||
$cristal = $queryFlottes[$i]['contenu_cristal'] + $resultatP['cristal'];
|
||||
$hydrogene = $queryFlottes[$i]['contenu_hydrogene'] + $resultatP['hydrogene'];
|
||||
for($j = 1; $j <= 12; $j++) {
|
||||
${'Pvaisseaux_'.$j} = $resultatP['vaisseau_'.$j] + $queryFlottes[$i]['vaisseau_'.$j];
|
||||
$chapeau->query("UPDATE `$table_planete` SET `vaisseau_$j` = '${'Pvaisseaux_'.$j}' WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position'");
|
||||
$retour = false;
|
||||
if (!empty($queryFlottes[$i]['ret_position']) && time() >= $queryFlottes[$i]['ret_time']) {
|
||||
if ($chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$ret_galaxie' AND `ss` = '$ret_ss' AND `position` = '$ret_position';")) {
|
||||
$export = '';
|
||||
for($j = 1; $j <= 12; $j++) {
|
||||
$export .= ', `vaisseau_'.$j.'` = `vaisseau_'.$j.'` + '.$queryFlottes[$i]['vaisseau_'.$j];
|
||||
}
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = `metal` + '".$queryFlottes[$i]['contenu_metal']."', `cristal` = `cristal` + '".$queryFlottes[$i]['contenu_cristal']."', `hydrogene` = `hydrogene` + '".$queryFlottes[$i]['contenu_hydrogene']."'$export WHERE `galaxie` = '$ret_galaxie' AND `ss` = '$ret_ss' AND `position` = '$ret_position';");
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id_user` = '".$queryFlottes[$i]['id_user']."' AND `id` = '$id_flotte';");
|
||||
}
|
||||
}
|
||||
elseif (time() >= $queryFlottes[$i]['ret_time']) $retour = true;
|
||||
elseif (time() >= $queryFlottes[$i]['start_time'] + $queryFlottes[$i]['end_time'] * 2 && $queryFlottes[$i]['mission'] != 0 && ($queryFlottes[$i]['mission'] != 1 || (!empty($queryFlottes[$i]['ret_time']) && time() >= $queryFlottes[$i]['ret_time'] + $queryFlottes[$i]['end_time']))) $retour = true;
|
||||
if ($retour) {
|
||||
if ($chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position';")) {
|
||||
$export = '';
|
||||
for($j = 1; $j <= 12; $j++) {
|
||||
$export .= ', `vaisseau_'.$j.'` = `vaisseau_'.$j.'` + '.$queryFlottes[$i]['vaisseau_'.$j];
|
||||
}
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = `metal` + '".$queryFlottes[$i]['contenu_metal']."', `cristal` = `cristal` + '".$queryFlottes[$i]['contenu_cristal']."', `hydrogene` = `hydrogene` + '".$queryFlottes[$i]['contenu_hydrogene']."'$export WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position';");
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id_user` = '".$queryFlottes[$i]['id_user']."' AND `id` = '$id_flotte';");
|
||||
}
|
||||
}
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position'");
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id_user` = '$id_user' AND `id` = '$id_flotte'");
|
||||
}
|
||||
}
|
||||
|
||||
$id_user = $sess->values['id'];
|
||||
?>
|
||||
|
|
@ -54,12 +54,12 @@ if (!isset($auth_level)) @$auth_level = $sess->values['auth_level'];
|
|||
'Le plus puissant et probablement le plus craint de tous les vaisseaux Covenants. Le Séraphin est le principal vaisseau offensif dans l’espace et peut être employé comme bombardier aérien. Le Séraphin est d\'environ trois fois la taille d\'un Banshee, il possède plusieurs canons de plasma qu\'il utilise lors des engagements aériens pour éliminer des opposants de type LongsWord et Pélican.',
|
||||
'La frégate covenante est un vaisseau de tonnage moyen composant majoritairement les flottes habituelles. Équipée de lasers à impulsion et de lanceurs de torpilles au plasma latéraux, elle possède ainsi une puissance de feu raisonnable. Sa coque est aussi protégée par un bouclier énergétique la rendant beaucoup plus difficile à détruire.',
|
||||
'Ce vaisseau redoutable et titanesque sème sans le moindre doute la terreur chez l\'ennemi. Armé d\'un bout à l\'autre de lasers à impulsion, de torpilles au plasma et de bien d\'autres armes, ce croiseur est une arme extraordinaire à ne jamais sous estimer.',
|
||||
'Un des plus grands vaisseaux de combat covenant, mesurant 3000 mètres. Équipé de deux canons à projection énergétique et de sept lanceurs de torpilles, il est d\'une puissance extraordinaire. Le seul problème résidant dans le fait que son équipement demande une capacité d\'énergie phénoménale.',
|
||||
'Un des plus grands vaisseaux de combat covenant, mesurant 3000 mètres. Équipé de deux canons à projection énergétique et de sept lanceurs de torpilles, il est d\'une puissance extraordinaire. Le seul problème réside dans le fait que son équipement demande une capacité d\'énergie phénoménale.',
|
||||
'Comme son nom l\'indique, son principal rôle est de transporter des chasseurs Seraphins, des Spirits ou d\'autres vaisseaux de taille similaire. Armé de quelques lasers à impulsion, le porte vaisseau reste un vaisseau de support plutôt qu\'un vaisseau de confrontation directe. Hypothétiquement parlant, sa capacité de tir est légèrement supérieure à celui d\'une corvette.',
|
||||
'La station spatiale covenante, construite a même un astéroide, possède un canon plasma d\'une centaine de mettre de long projetant une sphère de plasma atteignant une chaleur proche de celle du coeur d\'un soleil. Également équipé de tourelle automatique pour les chasseurs d\'efficacité moyenne, se poste orbital covenant est une arme défensive terrifiante pour toute adversaire de haut niveau ou non.',
|
||||
'Le vaisseau ultime de la flotte covenante, long de plus de 5400 mètres. Ce vaisseau est capable de transporter des quantités de chasseurs hors du commun. Armé de projecteurs énergétique et de laser à impulsion, ce vaisseau est le plus puissant après la station spatiale.');
|
||||
$nomterra = array('banshee(s)','spirit(s)','phantom','boarding craft','ghost(s)','shadow','spectre(s)','appartition(s)','shade','strong shade','tourelle(s) à barreau de combustible','canon(s) à plasma','lanceur(s) de torpilles plasma');
|
||||
$nomterrn = array('Banshees', 'Spirit', 'Phantom', 'Boarding craft', 'Ghost', 'Shadow', 'Spectre', 'Appartition', 'Shade', 'Strong shade', 'Tourelle à barreau de combustible', 'Canon à plasma', 'Lanceur de torpilles plasma');
|
||||
$nomterra = array('banshee(s)','spirit(s)','phantom','boarding craft','ghost(s)','shadow','spectre(s)','apparition(s)','shade','strong shade','tourelle(s) à barreau de combustible','canon(s) à plasma','lanceur(s) de torpilles plasma');
|
||||
$nomterrn = array('Banshees', 'Spirit', 'Phantom', 'Boarding craft', 'Ghost', 'Shadow', 'Spectre', 'Apparition', 'Shade', 'Strong shade', 'Tourelle à barreau de combustible', 'Canon à plasma', 'Lanceur de torpilles plasma');
|
||||
$nomterri = array('bansheeqp0.jpg', 'spirit1.jpg', 'phantomfu2.jpg', 'boardingcraft.jpg', 'ghostic1.jpg', 'shadow.jpg', 'spectre.jpg', 'wraith.jpg', 'shade.jpg', 'strongshade.jpg', 'tourellebarreau.jpg', 'tourelle.jpg', 'lanceur_torpilles.jpg');
|
||||
$nomterde = array( 'Rapide et maniable, le Banshee est un formidable véhicule d\'assaut aérien, efficacement blindé contre les armes à feu légères mais ne résistant cependant pas aux armes plus lourdes. Le canon à combustible dont il est équipé en fait un bombardier dangereux tout autant qu\'un chasseur rapide. Le Banshee a la possibilité de faire des tonneaux et des vrilles, ce qui serait impossible pour des véhicules à l\'aérodynamique conventionnelle.',
|
||||
'Le spirit est une navette de transport de troupes terrestre. De capacité moyenne, il peut transporter un petit contingent armé dans les zones les plus repoussées des planètes. Le spirit est équipé d\'une tourelle de type shade de puissance moyenne, qui permet de maintenir les troupes ennemis à distance jusqu\'à ce que le largage des troupes soit effectué.<br />Malheureusement, un manque d\'espace empêche l\'installation de générateur énergétique plus puissant qui pourrait supporter des boucliers standards ou même de faible intensité.',
|
||||
|
|
@ -71,7 +71,7 @@ if (!isset($auth_level)) @$auth_level = $sess->values['auth_level'];
|
|||
'Lent, massif et constituant une cible de taille, ce véhicule n\'en demeure pas moins le blindé covenant le plus destructeur. Ce géant de métal est bien protégé. Le tir de couverture qu\'il peut effectuer grâce à ses mortiers à plasma redoutables en fait un ennemi incroyablement dangereux. Le fait qu\'il soit piloté par une seule personne qui contrôle le véhicule et le système d\'armement limite quelque peu son champ de manoeuvre.',
|
||||
'Les tourelles shades sont des canons stationnaires énergétiques covenant composés de deux parties, la première étant une base stable à trois pieds pour la stabilité de l’appareil, la deuxième, un siège où le canon est fixé retenu par un champ gravitationnel artificiel. Ce canon lorsqu’il tire, envoie 3 « éclairs » relativement lents et d’efficacité moyenne.',
|
||||
'Cette tourelle est une version améliorée de la shade standard. Dans les modifications de la tourelle, le système d’accélération magnétique a été révisé pour le rendre plus performant, aboutissant à des rayons plus rapides. Également, un bouclier a été ajouté à l’avant, protégeant ainsi l’utilisateur des attaques aux armes à projectiles de petit et moyen calibre pendant une période de quelques secondes lors de feux nourris.',
|
||||
'La tourelle à barreau de combustible est une version fixe de ceux des hunters avec un système de visé amélioré et de condensateur ionique permettent de tirer trois rafales à la suite sans surcharger les relais du générateur. De puissance moyenne, elle est capable de détruire facilement des warthogs et autres véhicules légers avec une facilité hors norme.',
|
||||
'La tourelle à barreau de combustible est une version fixe de ceux des hunters avec un système de visée amélioré et de condensateur ionique permettent de tirer trois rafales à la suite sans surcharger les relais du générateur. De puissance moyenne, elle est capable de détruire facilement des warthogs et autres véhicules légers avec une facilité hors norme.',
|
||||
'Le canon à plasma n’a pas besoin de canonnier pour tirer puisque équipé d’un système de visée automatisé, il utilise une technologie d’intelligence artificielle rudimentaire pour ensuite envoyer un projectile de plasma surchauffé à haute vitesse carbonisant tout sur son passage.',
|
||||
'Utilisant un principe similaire de la tourelle à plasma, le lanceur de torpilles plasma utilise un condensateur de matière pour condenser le flux de plasma surchauffé en une masse de destruction pure. Ce système est le système de défense terrestre le plus évolué jamais construit. Son défaut majeur reste sa cadence de tire lente, limitant sa défense face à de multiples adversaires.');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ fuseau_horaire: "2"
|
|||
locales: "fr_FR"
|
||||
lang: "FRA"
|
||||
db_host: "localhost"
|
||||
db_name: "hb"
|
||||
db_name: "halo_battle"
|
||||
db_prefix: ""
|
||||
serv_adresse: "http://hb.s-fr.com/"
|
||||
smiley_dir: "images/smiles/"
|
||||
|
|
|
|||
4
includes/onyx/logs/31-05-2008.xlog
Normal file
4
includes/onyx/logs/31-05-2008.xlog
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[01:34:31] MESSAGE : Envoie d'une flotte , [127.0.0.1] [POST] [/?p=flotte] [Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008051206 Firefox/3.0] [http://halobattle.local/?p=flotte]
|
||||
[01:53:49] MESSAGE : Envoie d'une flotte , [127.0.0.1] [POST] [/?p=flotte] [Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008051206 Firefox/3.0] [http://halobattle.local/?p=flotte]
|
||||
[02:00:40] MESSAGE : Envoie d'une flotte , [127.0.0.1] [POST] [/?p=flotte] [Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008051206 Firefox/3.0] [http://halobattle.local/?p=flotte]
|
||||
[04:00:06] MESSAGE : Envoie d'une flotte , [127.0.0.1] [POST] [/?p=flotte] [Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008051206 Firefox/3.0] [http://halobattle.local/?p=flotte]
|
||||
|
|
@ -24,8 +24,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -55,8 +55,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -83,10 +83,11 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $groupe.1 > 99}<span style="#00FF00">Complet</span>{elseif $groupe.1 > 80}<span style="#00FF00">Bon</span>{elseif $groupe.1 > 60}<span style="#CCCC00">Correct</span>{elseif $groupe.1 > 40}<span style="#EECC00">Moyen</span>{elseif $groupe.1 > 20}<span style="#FF9900">Bas</span>{elseif $groupe.1 > 20}<span style="#FF9900">Critique</span>{/if}</td>
|
||||
<td>{$groupe.2}</td>
|
||||
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -116,8 +117,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -147,8 +148,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -175,10 +176,11 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{$groupe.1}</td>
|
||||
<td>{$groupe.2}</td>
|
||||
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -52,10 +52,11 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $groupe.1 > 99}<span style="#00FF00">Complet</span>{elseif $groupe.1 > 80}<span style="#00FF00">Bon</span>{elseif $groupe.1 > 60}<span style="#CCCC00">Correct</span>{elseif $groupe.1 > 40}<span style="#EECC00">Moyen</span>{elseif $groupe.1 > 20}<span style="#FF9900">Bas</span>{elseif $groupe.1 > 20}<span style="#FF9900">Critique</span>{/if}</td>
|
||||
<td>{$groupe.2}</td>
|
||||
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -85,8 +86,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -116,8 +117,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -144,10 +145,11 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{$groupe.1}</td>
|
||||
<td>{$groupe.2}</td>
|
||||
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
@ -177,8 +179,8 @@ Lieux du combat : <a href="?p=carte&galaxie={$flotte.end_galaxie}&ss={$f
|
|||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv}%)</span></td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
|
|
|||
196
includes/onyx/templates/templates/game/SIMrapport_combat.tpl
Normal file
196
includes/onyx/templates/templates/game/SIMrapport_combat.tpl
Normal file
|
|
@ -0,0 +1,196 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<b>Le combat est terminé !</b><br /><br />
|
||||
Nombre de tour : {$tour}<br /><br />
|
||||
<b>Vaisseaux à la fin du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$vaisseaux3 item=vaisseau}
|
||||
{assign var="nom" value="`$vaisseau[0]-1`"}
|
||||
<tr>
|
||||
<td>{$vaisseau.1} {$nomvaisAT[$nom]}</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$vaisseaux4 item=vaisseau}
|
||||
{assign var="nom" value="`$vaisseau[0]-1`"}
|
||||
<tr>
|
||||
<td>{$vaisseau.1} {$nomvaisEN[$nom]}</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$defenses2 item=vaisseau}
|
||||
{assign var="nom" value="`$vaisseau[0]-1`"}
|
||||
<tr>
|
||||
<td>{$vaisseau.1} {$nomdefEN[$nom]}</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br /><b>Vaisseaux au début du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$vaisseaux1 item=vaisseau}
|
||||
{assign var="nom" value="`$vaisseau[0]-1`"}
|
||||
<tr>
|
||||
<td>{$vaisseau.1} {$nomvaisAT[$nom]}</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$vaisseaux2 item=vaisseau}
|
||||
{assign var="nom" value="`$vaisseau[0]-1`"}
|
||||
<tr>
|
||||
<td>{$vaisseau.1} {$nomvaisEN[$nom]}</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$defenses1 item=vaisseau}
|
||||
{assign var="nom" value="`$vaisseau[0]-1`"}
|
||||
<tr>
|
||||
<td>{$vaisseau.1} {$nomdefEN[$nom]}</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
{foreach from=$vaisseau.3 item=groupe}
|
||||
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
|
||||
<tr>
|
||||
<td>{$groupe.0}</td>
|
||||
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
|
||||
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
{if !$termine}Le combat n'est pas terminé !</b>
|
||||
{elseif $attaquantG}<strong>Nous avons gagné le combat !<br />Nous repartons avec {$pillage.0} {$ressources.0}, {$pillage.1} {$ressources.1} et {$pillage.2} {$ressources.2}.</strong>
|
||||
{else}<strong>Nous avons perdu le combat !</strong>{/if}
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
{if $page == "ressources"}<span>Ressources</span>{else}<a href="{$menu.ressources}">Ressources</a>{/if} {if $page == "gestion" || $page == "rename"}<span>Gestion</span>{else}<a href="{$menu.gestion}">Gestion</a>{/if} {if $page == "flotte1" || $page == "flotte2"}<span>Flottes</span>{else}<a href="{$menu.flotte}">Flottes</a>{/if} {if $page == "armee"}<span>Armée</span>{else}<a href="{$menu.armee}">Armée</a>{/if} {if $page == "carte"}<span>Carte spatiale</span>{else}<a href="{$menu.carte}">Carte spatiale</a>{/if} {if $page == "options"}<span>Options</span>{else}<a href="{$menu.options}">Options</a>{/if}<div class="space"></div>
|
||||
{if $page == "messagerie" || $page == "envoyer"}<span>Messages et rapports</span>{else}<a href="{$menu.messages}">{if $alertMail}<b>Messages et rapports ({$alertMail})</b>{else}Messages et rapports{/if}</a>{/if} {if $page == "alliance"}<span>Alliance</span>{else}<a href="{$menu.alliance}">Alliance</a>{/if} {if $page == "classement"}<span>Classement</span>{else}<a href="{$menu.classement}">Classement</a>{/if} {if $page == "chat"}<span>Chat</span>{else}<a href="{$menu.chat}" onclick="window.open(this.href);return false;">Chat</a>{/if} {if $page == "forums"}<span>Forums</span>{else}<a href="{$menu.forums}">Forums</a>{/if} {if $page == "bugs"}<span>Rapports de bug</span>{else}<a href="{$menu.bugs}">Rapports de bug</a>{/if} {if $page == "faq"}<span>F.A.Q.</span>{else}<a href="{$menu.faq}">F.A.Q.</a>{/if} <a href="{$menu.deconnexion}">Déconnexion</a><div class="space"></div>
|
||||
{/if} <div class="menu_bt"></div></div>
|
||||
{if $page != "admin" && $page != "messagerie" && $page != "envoyer" && $page != "bugs" && $page != "carte" && $page != "classement" && $page != "options" && $page != "vp"}
|
||||
{if $page != "admin" && $page != "messagerie" && $page != "envoyer" && $page != "bugs" && $page != "carte" && $page != "classement" && $page != "options" && $page != "simulation" && $page != "vp"}
|
||||
<div id="corps_top">
|
||||
<div class="border_top"></div>
|
||||
<img src="images/planetes/{$planete.image}.jpg" width="70" height="70" alt="planète" />
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<dt><input class="button2" type="button" onclick="hide(this); return false;" /><input class="checkbox" type="checkbox" name="m{$message.4}" value="{$message.5}" /><a href="?p=envoyer&d={$message.2}&o={$message.0}">{$message.0}</a> de {$message.2} à {$message.1}</dt><dd>{$message.3|nl2br}</dd>
|
||||
</dl>
|
||||
{/foreach}
|
||||
<fieldset><input class="button" type="button" value="Tout sélectionner" onclick="checkboxes(true)" /> <input class="button" type="button" value="Tout déselectionner" onclick="checkboxes(false)" /><br /><br /><strong>Supprimer le sélection : </strong><input class="submit" type="submit" value="OK" /><br /><br /><input type="hidden" value="{$IM}" name="IM" /></fieldset>
|
||||
<fieldset><input class="button" type="button" value="Tout sélectionner" onclick="checkboxes(true)" /> <input class="button" type="button" value="Tout déselectionner" onclick="checkboxes(false)" /><br /><br /><strong>Supprimer la sélection : </strong><input class="submit" type="submit" value="OK" /><br /><br /><input type="hidden" value="{$IM}" name="IM" /></fieldset>
|
||||
</form>
|
||||
<h2>Rapports</h2>
|
||||
<form action="{$menu.messagerie}" method="post">
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
<dt><input class="button2" type="button" onclick="hide(this); return false;" /><input class="checkbox" type="checkbox" name="r{$rapport.4}" value="{$rapport.5}" />{$rapport.0} à {$rapport.1}</dt><dd>{$rapport.3}</dd>
|
||||
</dl>
|
||||
{/foreach}
|
||||
<fieldset><input class="button" type="button" value="Tout sélectionner" onclick="checkboxesr(true)" /> <input class="button" type="button" value="Tout déselectionner" onclick="checkboxesr(false)" /><br /><br /><strong>Supprimer le sélection : </strong><input class="submit" type="submit" value="OK" /><br /><br /><input type="hidden" value="{$IR}" name="IR" /></fieldset>
|
||||
<fieldset><input class="button" type="button" value="Tout sélectionner" onclick="checkboxesr(true)" /> <input class="button" type="button" value="Tout déselectionner" onclick="checkboxesr(false)" /><br /><br /><strong>Supprimer la sélection : </strong><input class="submit" type="submit" value="OK" /><br /><br /><input type="hidden" value="{$IR}" name="IR" /></fieldset>
|
||||
</form>
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
||||
53
includes/onyx/templates/templates/game/simulateur_combat.tpl
Normal file
53
includes/onyx/templates/templates/game/simulateur_combat.tpl
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<form action="{$menu.simulateur}" method="post">
|
||||
<h2>Vaisseaux de l'attaquant</h2>
|
||||
<fieldset class="options">
|
||||
<label for="ATvais_1">{$nomvais.0} :</label><input class="text" maxlength="4" type="text" id="ATvais_1" name="ATvais_1" />
|
||||
<label for="ATvais_2">{$nomvais.1} :</label><input class="text" maxlength="4" type="text" id="ATvais_2" name="ATvais_2" />
|
||||
<label for="ATvais_3">{$nomvais.2} :</label><input class="text" maxlength="4" type="text" id="ATvais_3" name="ATvais_3" />
|
||||
<label for="ATvais_4">{$nomvais.3} :</label><input class="text" maxlength="4" type="text" id="ATvais_4" name="ATvais_4" />
|
||||
<label for="ATvais_5">{$nomvais.4} :</label><input class="text" maxlength="4" type="text" id="ATvais_5" name="ATvais_5" />
|
||||
<label for="ATvais_6">{$nomvais.5} :</label><input class="text" maxlength="4" type="text" id="ATvais_6" name="ATvais_6" />
|
||||
<label for="ATvais_7">{$nomvais.6} :</label><input class="text" maxlength="4" type="text" id="ATvais_7" name="ATvais_7" />
|
||||
<label for="ATvais_8">{$nomvais.7} :</label><input class="text" maxlength="4" type="text" id="ATvais_8" name="ATvais_8" />
|
||||
<label for="ATvais_9">{$nomvais.8} :</label><input class="text" maxlength="4" type="text" id="ATvais_9" name="ATvais_9" />
|
||||
<label for="ATvais_10">{$nomvais.9} :</label><input class="text" maxlength="4" type="text" id="ATvais_10" name="ATvais_10" />
|
||||
<label for="ATvais_12">{$nomvais.11} :</label><input class="text" maxlength="4" type="text" id="ATvais_12" name="ATvais_12" />
|
||||
</fieldset>
|
||||
<h2>Vaisseaux et défenses du défenseur</h2>
|
||||
<fieldset class="options">
|
||||
<label for="ENvais_1">{$nomvais.0} :</label><input class="text" maxlength="4" type="text" id="ENvais_1" name="ENvais_1" />
|
||||
<label for="ENvais_2">{$nomvais.1} :</label><input class="text" maxlength="4" type="text" id="ENvais_2" name="ENvais_2" />
|
||||
<label for="ENvais_3">{$nomvais.2} :</label><input class="text" maxlength="4" type="text" id="ENvais_3" name="ENvais_3" />
|
||||
<label for="ENvais_4">{$nomvais.3} :</label><input class="text" maxlength="4" type="text" id="ENvais_4" name="ENvais_4" />
|
||||
<label for="ENvais_5">{$nomvais.4} :</label><input class="text" maxlength="4" type="text" id="ENvais_5" name="ENvais_5" />
|
||||
<label for="ENvais_6">{$nomvais.5} :</label><input class="text" maxlength="4" type="text" id="ENvais_6" name="ENvais_6" />
|
||||
<label for="ENvais_7">{$nomvais.6} :</label><input class="text" maxlength="4" type="text" id="ENvais_7" name="ENvais_7" />
|
||||
<label for="ENvais_8">{$nomvais.7} :</label><input class="text" maxlength="4" type="text" id="ENvais_8" name="ENvais_8" />
|
||||
<label for="ENvais_9">{$nomvais.8} :</label><input class="text" maxlength="4" type="text" id="ENvais_9" name="ENvais_9" />
|
||||
<label for="ENvais_10">{$nomvais.9} :</label><input class="text" maxlength="4" type="text" id="ENvais_10" name="ENvais_10" />
|
||||
<label for="ENvais_11">{$nomvais.10} :</label><input class="text" maxlength="4" type="text" id="ENvais_11" name="ENvais_11" />
|
||||
<label for="ENvais_12">{$nomvais.11} :</label><input class="text" maxlength="4" type="text" id="ENvais_12" name="ENvais_12" />
|
||||
<br /><br /><br />
|
||||
<label for="ENdef_1">{$nomdef.0} :</label><input class="text" maxlength="4" type="text" id="ENdef_1" name="ENdef_1" />
|
||||
<label for="ENdef_2">{$nomdef.1} :</label><input class="text" maxlength="4" type="text" id="ENdef_2" name="ENdef_2" />
|
||||
<label for="ENdef_3">{$nomdef.2} :</label><input class="text" maxlength="4" type="text" id="ENdef_3" name="ENdef_3" />
|
||||
<label for="ENdef_4">{$nomdef.3} :</label><input class="text" maxlength="4" type="text" id="ENdef_4" name="ENdef_4" />
|
||||
<label for="ENdef_5">{$nomdef.4} :</label><input class="text" maxlength="4" type="text" id="ENdef_5" name="ENdef_5" />
|
||||
</fieldset>
|
||||
<h2>Autres paramètres</h2>
|
||||
<fieldset class="systeme">
|
||||
<label for="maxtour">S'arrêter au tour :</label><input class="text" maxlength="2" type="text" id="maxtour" name="maxtour" />
|
||||
<label for="ATtactique">Tactique attaquant :</label><input class="text" maxlength="2" type="text" id="ATtactique" name="ATtactique" />
|
||||
<label for="ENtactique">Tactique défenseur :</label><input class="text" maxlength="2" type="text" id="ENtactique" name="ENtactique" />
|
||||
</fieldset>
|
||||
<fieldset class="options">
|
||||
<label for="ENmetal">{$nomressourc.0} sur la planète attaquée :</label><input class="text" maxlength="4" type="text" id="ENmetal" name="ENmetal" />
|
||||
<label for="ENcristal">{$nomressourc.1} sur la planète attaquée :</label><input class="text" maxlength="4" type="text" id="ENcristal" name="ENcristal" />
|
||||
<label for="ENhydrogene">{$nomressourc.2} sur la planète attaquée :</label><input class="text" maxlength="4" type="text" id="ENhydrogene" name="ENhydrogene" />
|
||||
</fieldset>
|
||||
<input class="submit" type="submit" value="GO" />
|
||||
</form>
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-21 15:50:22
|
||||
compiled from game/chantierterrestre.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/chantierterrestre.tpl', 29, false),)), $this); ?>
|
||||
<?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>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fterr']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['key'] == 0): ?><span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
||||
<script type="text/javascript">reste(<?php echo $this->_tpl_vars['fterr']['2']; ?>
|
||||
,'resten', true);</script></span><?php endif; ?>
|
||||
<span><?php echo $this->_tpl_vars['fterr']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['fterr']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fterr']['4']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script>
|
||||
- <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fterr']['0']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fterr']['0']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['fterr']['1']; ?>
|
||||
">Annuler tous</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucune unité dans la file d'attente</span><?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
||||
<h2>Chantier terrestre </h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['unite']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['unite']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<img width="130" height="132" src="images/terrestre/<?php echo $this->_tpl_vars['unite']['image']; ?>
|
||||
" alt="Unité terrestre" />
|
||||
<span><?php echo $this->_tpl_vars['unite']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['unite']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
||||
unite<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>x<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de construction : <?php echo $this->_tpl_vars['unite']['temps']; ?>
|
||||
<br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['unite']['num']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 00:43:42
|
||||
compiled from game/description.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>Détails <?php echo $this->_tpl_vars['type']; ?>
|
||||
: <?php echo $this->_tpl_vars['nom']; ?>
|
||||
</h2>
|
||||
<table style="width: 400px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 120px;"><img src="images/<?php echo $this->_tpl_vars['type']; ?>
|
||||
/<?php echo $this->_tpl_vars['image']; ?>
|
||||
" alt="" /></td>
|
||||
<td><b><?php echo $this->_tpl_vars['nom']; ?>
|
||||
</b><br />Actuellement : <?php if ($this->_tpl_vars['type'] != 'vaisseaux' && $this->_tpl_vars['type'] != 'terrestre'): ?>niveau<?php endif; ?> <?php echo $this->_tpl_vars['niveau']; ?>
|
||||
<?php if ($this->_tpl_vars['type'] == 'vaisseaux' || $this->_tpl_vars['type'] == 'terrestre'): ?> unités<?php endif; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><?php echo $this->_tpl_vars['description']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Coûts <?php if ($this->_tpl_vars['type'] == 'vaisseaux' || $this->_tpl_vars['type'] == 'terrestre'): ?>unité<?php else: ?>prochain niveau<?php endif; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['0']): ?>
|
||||
<tr>
|
||||
<th><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
|
||||
</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['0']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['1']): ?>
|
||||
<tr>
|
||||
<th><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
|
||||
</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['1']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['2']): ?>
|
||||
<tr>
|
||||
<th><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
|
||||
</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['2']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<th>Temps</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['3']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->_tpl_vars['caract']): ?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Caractéristiques</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Attaque</th>
|
||||
<td><?php echo $this->_tpl_vars['caract']['0']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Bouclier</th>
|
||||
<td><?php echo $this->_tpl_vars['caract']['1']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Points de vie</th>
|
||||
<td><?php echo $this->_tpl_vars['caract']['2']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->_tpl_vars['caract']['3']): ?>
|
||||
<tr>
|
||||
<th>Capacité de transport</th>
|
||||
<td><?php echo $this->_tpl_vars['caract']['3']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requiert</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['etat']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 01:49:35
|
||||
compiled from admin/vflotte.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/vflotte.tpl', 19, false),)), $this); ?>
|
||||
<?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>Vérification des flottes</h2>
|
||||
<table style="text-align: center; margin: auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Utilisateurs</th>
|
||||
<th>Départ<br />Arrivé<br />Retour</th>
|
||||
<th>Durées</th>
|
||||
<th>Vaisseaux<br />Vitesse</th>
|
||||
<th>Contenu</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['flottes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['flotte']):
|
||||
?>
|
||||
<tr<?php if ($this->_tpl_vars['flotte']['6']): ?> style="background-color: #<?php echo $this->_tpl_vars['ip']['6']; ?>
|
||||
;"<?php endif; ?>>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['0']; ?>
|
||||
<br /><?php echo $this->_tpl_vars['flotte']['2']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['3']; ?>
|
||||
<?php echo $this->_tpl_vars['flotte']['4']; ?>
|
||||
<br /><?php echo $this->_tpl_vars['flotte']['5']; ?>
|
||||
<?php echo $this->_tpl_vars['flotte']['6']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['7'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['8']; ?>
|
||||
<br /><?php echo $this->_tpl_vars['flotte']['9']; ?>
|
||||
</td>
|
||||
<td>Métal : <?php echo $this->_tpl_vars['flotte']['10']; ?>
|
||||
<br />Cristal : <?php echo $this->_tpl_vars['flotte']['11']; ?>
|
||||
<br />Hydrogène : <?php echo $this->_tpl_vars['flotte']['12']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 23:27:27
|
||||
compiled from game/prochainement.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>
|
||||
<div class="error">Prochainement sur Halo-Battle.</div>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 18:50:33
|
||||
compiled from game/alliance_nm_view.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_nm_view.tpl', 3, false),array('modifier', 'capitalize', 'game/alliance_nm_view.tpl', 3, false),array('modifier', 'nl2br', 'game/alliance_nm_view.tpl', 29, false),)), $this); ?>
|
||||
<?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>[<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
] <?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)); ?>
|
||||
</h2>
|
||||
<table cellpadding="2" cellspacing="0" style="text-align: center; width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2"><img src="<?php echo $this->_tpl_vars['alliance']['image']; ?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: middle;"><strong>Nom : </strong></td>
|
||||
<td style="width: 70%;"><?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
||||
(<?php echo $this->_tpl_vars['alliance']['tag']; ?>
|
||||
)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Membres : </strong></td>
|
||||
<td><?php echo $this->_tpl_vars['nbmembre']; ?>
|
||||
(<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=liste&i=<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
">Liste des membres</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Votre grade :</strong></td>
|
||||
<td>Invité</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Status des inscriptions :</strong></td>
|
||||
<td><?php if ($this->_tpl_vars['alliance']['etat_inscription']): ?>Ouvertes - <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=postuler&i=<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
">Postuler</a><?php else: ?>Fermée<?php endif; ?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Présentation</h2>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['presentation'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Forum :</strong></td>
|
||||
<td style="width: 70%;"><a href="<?php echo $this->_tpl_vars['alliance']['url']; ?>
|
||||
"><?php echo $this->_tpl_vars['alliance']['url']; ?>
|
||||
</a></td>
|
||||
</tr>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 15:27:11
|
||||
compiled from game/alliance_adm_grades_add.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>Administration de l'alliance</h2>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance_adm_header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<br />
|
||||
<h2>Ajouter un grade</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_grades&a=add">
|
||||
<table style="text-align: center; width: 83%;">
|
||||
<tr>
|
||||
<td style="width: 20%;"><strong><label for="nom">Nom du grade</label></strong></td>
|
||||
<td><input name="nom" type="text" id="nom" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong><label for="description">Description</label></strong></td>
|
||||
<td><textarea name="description" id="description"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gestion <strong>chat</strong></td>
|
||||
<td><input name="gest_chat" type="checkbox" id="chat" value="1" /><label for="chat"> Oui</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gestion <strong>rang</strong></td>
|
||||
<td><input name="gest_rang" type="checkbox" id="rang" value="1" /><label for="rang"> Oui</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gestion <strong>membre</strong></td>
|
||||
<td><input name="gest_membre" type="checkbox" id="membre" value="1" /><label for="membre"> Oui</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gestion <strong>écriture</strong></td>
|
||||
<td><input name="gest_ecriture" type="checkbox" id="ecriture" value="1" /><label for="ecriture"> Oui</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gestion <strong>alliance</strong></td>
|
||||
<td><input name="gest_alliance" type="checkbox" id="alliance" value="1" /><label for="alliance"> Oui</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" class="submit" value="Ok" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:24:53
|
||||
compiled from game/arbre.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>Arbre Technologique</h2>
|
||||
<div class="techno">
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'batiments'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=batiments">Bâtiments</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Batiments (niveau)</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
<?php $_from = $this->_tpl_vars['batiments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['batiment']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['batiment']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'technologies'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=technologies">Technologies</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Technologies (niveau)</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
<?php $_from = $this->_tpl_vars['technologies']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['technologie']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&t=<?php echo $this->_tpl_vars['technologie']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['technologie']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['technologie']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['technologie']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'chantierterrestre'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre">Chantier terrestre</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Véhicules/Défenses</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
<?php $_from = $this->_tpl_vars['unites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['unite']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&d=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['unite']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['unite']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['unite']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'vaisseaux'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=vaisseaux">Chantier spatial</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Vaisseaux</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><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><a href="?p=description&v=<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['vaisseau']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['vaisseau']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['vaisseau']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
</div>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:28:15
|
||||
compiled from game/laboratoire.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/laboratoire.tpl', 30, false),)), $this); ?>
|
||||
<?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>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['flab']):
|
||||
?>
|
||||
<span><?php echo $this->_tpl_vars['flab']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['flab']['2']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['flab']['0']; ?>
|
||||
">Annuler</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucune recherche dans la file d'attente</span>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=technologies">Arbre des technologies</a></h3><br />
|
||||
<h2>Laboratoire</h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['recherches']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['recherche']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&t=<?php echo $this->_tpl_vars['recherche']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/technologies/<?php echo $this->_tpl_vars['recherche']['image']; ?>
|
||||
" alt="<?php echo $this->_tpl_vars['recherche']['nom']; ?>
|
||||
" />
|
||||
<span><?php echo $this->_tpl_vars['recherche']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['recherche']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['recherche']['niveau']; ?>
|
||||
)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de recherche : <?php echo $this->_tpl_vars['recherche']['temps']; ?>
|
||||
<br /><br />
|
||||
<?php if ($this->_tpl_vars['recherche']['enfile']): ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['recherche']['num']; ?>
|
||||
">Arrêter</a>
|
||||
<?php elseif ($this->_tpl_vars['recherche']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['recherche']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['recherche']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['recherche']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['recherche']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['recherche']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&t=<?php echo $this->_tpl_vars['recherche']['num']; ?>
|
||||
">Construire</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 02:08:50
|
||||
compiled from game/aide/demarrage.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>Aide de Halo-Battle :: Avertissements</h2>
|
||||
<h3>Avertissement aux utilisateurs de téléviseurs à rétroprojection</h3><br />
|
||||
Les images fixes peuvent endommager de manière irréversible le tube cathodique ou marquer à jamais les luminophores qui constituent l'écran de ces téléviseurs.<br />C'est pourquoi il est conseillé d'éviter d'utiliser des jeux vidéo trop souvent ou de façon prolongée avec les téléviseurs à rétroprojection.<br /><br />
|
||||
<h3>Prévention des risques d'épilepsie</h3><br />
|
||||
<h4>A lire avant toute utilisation d'un jeu vidéo par vous-même ou par votre enfant.</h4><br />
|
||||
Chez certaines personnes, la stimulation visuelle par certains effets stroboscopiques ou motifs lumineux peut déclencher une crise d'épilepsie ou une perte de connaissance et ce, y compris dans la vie de tous les jours.<br />
|
||||
Chez ces personnes, le simple fait de regarder la télévision ou de jouer à un jeu vidéo peut suffire à déclencher une crise. Les symptômes peuvent même se déclarer chez un individu sans antécédents médicaux ou n'ayant jamais souffert de crise d'épilepsie.<br />
|
||||
Si vous-même ou un membre de votre famille avez déjà présenté des symptômes liés à l'épilepsie (crise d'épilepsie ou de perte de connaissance) à la suite d'une exposition à des effets lumineux stroboscopiques, veuillez consulter votre médecin avant de commencer à jouer.<br />
|
||||
Nous conseillons vivement aux parents de prêter une attention soutenue à leurs enfants lorsqu'ils utilisent un jeu vidéo. Si vous ou votre enfant ressentez l'un des symptômes suivants en cours de jeu : vertiges, troubles de la vue, contractions oculaires ou musculaires incontrôlées, perte de connaissance, désorientation, mouvements involontaires ou convulsions, veuillez cesser IMMEDIATEMENT la partie et consulter votre médecin.<br /><br />
|
||||
<h3>Règles à respecter pour jouer dans les meilleures conditions possibles</h3>
|
||||
<ul>
|
||||
<li>S'installer confortablement en position assise, le plus loin possible de l'écran.
|
||||
<li>Jouer de préférence sur un écran de petite taille.</li>
|
||||
<li>Eviter de jouer en cas de fatigue ou de manque de sommeil.</li>
|
||||
<li>Veiller à ce que la pièce soit bien éclairée.</li>
|
||||
<li>Observer des pauses de 10 à 15 minutes par heure de jeu.</li>
|
||||
</ul><br />
|
||||
<h3>Prévention des risques liés aux troubles du sommeil</h3><br />
|
||||
Pour votre santé, veillez à observer un compte d'heures minimales allouées à votre repos. Jouer plusieurs heures d'affilées comporte un risque de déréglement de votre horloge interne et/ou de troubles du sommeil. Si vous ou votre enfant ressentez l'un des symptômes suivants en cours de jeu : fatigue, vertiges, troubles de la vue, contractions oculaires ou musculaires incontrôlées, perte de connaissance, insomnie, stress, veuillez cesser IMMEDIATEMENT de jouer et prenez du repos.<br />
|
||||
Pour bien dormir, observez ces quelques règles :
|
||||
<ul>
|
||||
<li>Couchez-vous et levez-vous à heures régulières.</li>
|
||||
<li>Pas de grasse matinée : levez-vous dès le réveil.</li>
|
||||
<li>Dînez léger et pas trop tard, en mangeant un laitage.</li>
|
||||
<li>Observer les premiers signes annonciateurs du sommeil, ne luttez pas contre le sommeil.</li>
|
||||
<li>Maintenir une température basse (entre 15 et 18 °C) ainsi qu'un bon degré d'hygrométrie.<br />Opter pour l'obscurité, elle favorise le sommeil. Choisir un lit confortable (ni trop ferme ni trop mou) et des couvertures légères.</li>
|
||||
<li>Evitez la prise de produits stimulants : coca-cola, thé, café, vitamine C…</li>
|
||||
<li>La régularité du sommeil reste le meilleur gage de qualité.</li>
|
||||
</ul>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-20 22:08:13
|
||||
compiled from game/footer.tpl */ ?>
|
||||
</div>
|
||||
<div id="footer">
|
||||
Réalisé par Halo Battle Staff<br />
|
||||
Design by <a href="http://nothing-arts.com" onclick="window.open(this.href); return false;"><ins>nothingarts</ins></a><br />
|
||||
<!-- Site visité 514200 fois depuis sa création<br /> -->
|
||||
Actuellement en ligne : <?php echo $this->_tpl_vars['enligne']; ?>
|
||||
joueurs<br />
|
||||
<a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
">Accueil</a> | <a href="<?php echo $this->_tpl_vars['link']['jeu']; ?>
|
||||
">Le jeu</a> | <a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
">S'inscrire</a> | <a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
">Forum</a> | <a href="<?php echo $this->_tpl_vars['link']['staff']; ?>
|
||||
">Staff</a> | <a href="<?php echo $this->_tpl_vars['link']['faq']; ?>
|
||||
">F.A.Q.</a>
|
||||
<?php echo $this->_tpl_vars['analyst']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="cornerbt"></div>
|
||||
<?php echo $this->_tpl_vars['script']; ?>
|
||||
|
||||
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 02:17:48
|
||||
compiled from game/aide/commentjouer.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>Aide de Halo-Battle :: Comment jouer</h2>
|
||||
<h3>Astuces à l'intention des nouveaux administrateurs coloniaux</h3>
|
||||
Vous voilà inscrit et connecté sur votre compte ; si vous pensez que le plus difficile est maintenant derrière-vous, vous vous trompez lourdement. De lourdes tâches vous attendent désormais, et il va vous falloir tout votre sang-froid et votre maîtrise pour triompher des épreuves qui jalonneront votre route.<br /><br />
|
||||
Si vous êtes aguerri dans l'art de gérer et d'administrer à la perfection des colonies, ce chapitre ne vous concerne donc pas à priori. Dans le cas contraire, sans nul doute qu'il vous sera utile pour apprendre, du moins, les théories de votre métier.<br />
|
||||
<br /><h3>Que devez-vous savoir dès le départ ?</h3>
|
||||
La chose la plus importante à savoir dès le départ est que... cela sera très difficile, quelles que soient les circonstances. Cela ne vous rassure pas ? Tant pis. L'univers de Halo-Battle est une vaste jungle sauvage, où vous devrez trouver vous-mêmes vos repères et survivre. A vous de vous forger votre propre tactique, sinon quoi n'espèrez pas vivre longtemps. Surtout, rappelez-vous bien ceci : il existe plusieurs moyens d'atteindre votre but, quel qu'il soit.<br /><br />
|
||||
Si vous êtes novice dans ce type de jeux, vous devez certainement vous sentir quelque peu perdu : que faire, et comment le faire ?<br /><br />
|
||||
Le plus important pour le moment est de développer vos différentes mines, afin de faire fructifier vos ressources : celles-ci sont en effet le moteur de vos colonies, et n'espérez pas accomplir grand chose sans elles. N'oubliez pas non plus de construire des centrales d'énergie afin d'approvisionner vos bâtiments, qui eux aussi ont besoin de ressources énergétiques pour fonctionner.<br /><br />
|
||||
D'autre part, c'est au tout début que vous devrez définir une tactique de jeu, s'étalant sur le long terme, comprenez donc toute la période où vous jouerez sur votre compte. On fait généralement la distinction entre deux grands courants : les Mineurs et les Raideurs. Tandis que les premiers cherchent à développer leurs mines et leurs défenses coloniales, les seconds visent la création d'une flotte imposante pour percer les défenses ennemies et piller les ressources des autres joueurs. Notez que des intermédiaires ou des courants mineurs existent entre ces deux catégories.<br /><br />
|
||||
Dans le cas d'une stratégie axée sur le minage, sachez que vos débuts seront plus lents et laborieux qu'un joueur raideur. Vous devrez principalement augmenter le niveau de vos mines d'extraction et construire des vaisseaux de transport pour évacuer vos ressources dans le cas où une attaque imminente aurait lieue sur l'une de vos colonies. N'oubliez pas non plus de vous confectionner un « rideau de fer », une ligne de défense pour dissuader les raideurs que vous attaquer n'est absolument pas rentable pour eux.<br /><br />
|
||||
Si les ravages vous semblent plus intéressants et que vous vous définissez une stratégie axée sur le raid, abandonnez l'idée d'économies de ressources pour augmenter le niveau de vos mines et troquez vos défenses planétaires contre plusieurs flottes de vaisseaux. Ici, il s'agira d'attaquer plusieurs fois par jours différents joueurs dans l'objectif d'amasser des ressources. Ne laissez jamais votre flotte stationnée sur une colonie : un autre raideur pourrait très bien vous attaquer et la détruire. Faites voyager vos flottes entre colonies. Cette tactique offre l'avantage d'être propulsé rapidement dans un bon classement, le seul inconvénient (et de taille !) est que si jamais vous venez à perdre votre flotte, la dégringolade va être rude. Reste encore à vous demander si un bon classement signifie quelque chose pour vous...<br /><br />
|
||||
La recherche technologique, disponible via votre laboratoire, est une composante essentielle du développement de vos institutions. Là encore, vous devrez investir nombre de ressources pour avoir accès à de nouveaux types de bâtiments, d'armements ou de technologies susceptibles de vous apporter un avantage certain. Ne négligez jamais cet aspect sous peine d'être irrémédiablement distancé par vos adversaires.<br />
|
||||
Bien d'autres éléments utiles gagnent à être connus pour que vous puissiez jouer dans des conditions optimales. Reportez-vous aux différents chapitres du manuel pour en prendre connaissance.<br />
|
||||
<br /><h3>Exemple : la colonie Reach</h3>
|
||||
Voici un petit tutorial pour commencer à jouer dans le jeu. Ici, nous aborderons les différents aspects élémentaires pour développer notre planète principale : Reach. Ce tutorial utilise la race Humaine ; toutefois, les données demeurent les mêmes pour la race Covenante. Notez enfin que parfois, les ressources indiquées dans les illustrations diffèrent avec les coûts réels.<br /><br />
|
||||
[...]
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 02:17:38
|
||||
compiled from game/aide/sommaire.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>Aide de Halo-Battle :: Sommaire</h2>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
&q=1">Avertissements</a></h3>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
&q=2">Configuration nécessaire & démarrage du jeu</a></h3>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
&q=3">Introduction</a></h3>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
&q=4">Comment jouer ?</a></h3>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 17:24:31
|
||||
compiled from game/alliance_adm_ecritures.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'game/alliance_adm_ecritures.tpl', 10, false),)), $this); ?>
|
||||
<?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>Administration de l'alliance</h2>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance_adm_header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<br /><br />
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_ecrits&t=presentation">Modifier la présentation</a> - <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_ecrits&t=interne">Modifier la page interne</a><br />
|
||||
<h2>Modification <?php if ($this->_tpl_vars['mod'] == 'presentation'): ?>de la présentation de l'alliance<?php else: ?>du texte interne<?php endif; ?></h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_ecrits">
|
||||
<p>
|
||||
<textarea name="textarea" cols="90" rows="15" id="textarea"><?php if ($this->_tpl_vars['mod'] == 'presentation'): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['presentation'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['texte_interne'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<?php endif; ?></textarea>
|
||||
<input name="type" type="hidden" value="<?php if ($this->_tpl_vars['mod'] == 'presentation'): ?>presentation<?php else: ?>texte_interne<?php endif; ?>" /><br />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</p>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 02:13:22
|
||||
compiled from game/aide/intro.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>Aide de Halo-Battle :: Introduction</h2>
|
||||
<i>Même la plus puissante des nations finit par succomber un jour...</i><br /><br />
|
||||
Neuvième Age de la Réclamation. La majestueuse Grande Bonté n'est plus. La voici désormais en proie au Parasite, gangrénée et empoisonnée de l'intérieur. Le glas de la fin du collectif Covenant se fait entendre par-delà les étoiles, alors que les trompettes de la victoire résonnent sur Terre...<br /><br />
|
||||
<i>... le chaos est total...</i><br /><br />
|
||||
La galaxie n'est plus que ruine ; les épaves des vaisseaux des batailles passées flottent lamentablement dans l'espace à présent. Alors que le Covenant doit faire face à sa plus grave crise de son histoire, les Humains rassemblent leurs dernières forces dans une tentative désespérée de survivre.<br /><br />
|
||||
<i>... mais le passé ne meurt jamais.</i><br /><br />
|
||||
Tandis que certains Covenants pactisent avec les Humains et d'autres veulent se venger de la trahison odieuse qu'ils ont subis de la part de leurs prophètes, beaucoup d'entre eux vouent encore une haine viscérale contre les Humains, et la guerre devient inévitable. Dans chaque camp, tout le monde s'apprête à livrer les batailles de la dernière chance.<br /><br />
|
||||
<i>Préparez-vous à vous battre pour votre cause.</i><br /><br />
|
||||
Quel que soit votre camp, que vous soyez Humain ou Covenant, vous aussi devez vous préparer à l'inévitable conflit qui se prépare. Si vous espérez un tant soit peu survivre, il vous faudra développer votre économie, rechercher de nouvelles technologies innovatrices et surtout préparer votre armée. Sachez que vos frères d'armes comptent sur vous.<br /><br />
|
||||
<i>Qu'importe les moyens, seule la victoire compte.</i><br />
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 02:11:16
|
||||
compiled from game/aide/config.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>Aide de Halo-Battle :: Configuration requise</h2>
|
||||
<br /><h3>Configuration nécessaire</h3><br />
|
||||
Pour jouer à Halo-Battle, un simple navigateur internet est suffisant. Assurez-vous donc de disposer du matériel informatique adéquat ainsi que d'une connexion internet.<br />
|
||||
<br /><h3>Configuration recommandée</h3><br />
|
||||
Pour jouer dans des conditions optimales :<br />
|
||||
<ul>
|
||||
<li>Connexion 512 k</li>
|
||||
<li>Navigateur internet Mozilla Firefox ou Opéra</li>
|
||||
<li>JavaScript</li>
|
||||
</ul>
|
||||
<br /><h2>Démarrage du jeu</h2>
|
||||
Pour pouvoir jouer à Halo-Battle, rendez-vous sur la page d'accueil du site puis cliquez sur l'onglet « Jeu » pour accéder au menu principal. Renseignez dans les champs appropriés votre login de joueur puis votre mot de passe pour accéder à votre compte.<br />
|
||||
Il faut être impérativement inscrit pour pouvoir jouer. Si vous ne l'êtes pas, cliquez sur l'onglet « S'inscrire » via la page d'accueil du site, puis laissez-vous guider. Si vous ne comprenez pas ce que l'on vous demande, il vous suffit de cliquer dans la case appropriée et un texte d'aide apparaîtra sur votre gauche.
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-20 00:21:13
|
||||
compiled from game/envoyer.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>Envoyer un message privé</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['envoie']; ?>
|
||||
" method="post"><fieldset class="options">
|
||||
<label for="nom">Nom du destinataire :</label><input class="text" type="text" name="nom" value="<?php echo $this->_tpl_vars['destinataire']; ?>
|
||||
" id="nom" />
|
||||
<label for="objet">Objet :</label><input class="text" type="text" name="objet" value="<?php echo $this->_tpl_vars['objet']; ?>
|
||||
" id="objet" />
|
||||
<label for="message">Texte :</label>
|
||||
<textarea id="message" name="message" cols="40" rows="10"></textarea><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 23:43:29
|
||||
compiled from cms/vide.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<?php echo $this->_tpl_vars['contenu']; ?>
|
||||
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-26 18:21:11
|
||||
compiled from cms/header.tpl */ ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Language" content="fr" />
|
||||
<title> ::Halo-Battle:: - <?php echo $this->_tpl_vars['titre']; ?>
|
||||
</title>
|
||||
<link rel="stylesheet" href="templates/cms/default.css" type="text/css" media="all" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<script src="js/cms.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="cornertop"></div>
|
||||
<div id="all">
|
||||
<div id="header">
|
||||
<div id="header_link"><span id="date"><?php echo $this->_tpl_vars['date']; ?>
|
||||
</span> | <a href="<?php echo $this->_tpl_vars['link']['lastNews']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastNews']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastTopic']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastTopic']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastUser']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastUser']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastDownload']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastDownload']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastLink']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastLink']; ?>
|
||||
</a></div><a href="<?php echo $this->_tpl_vars['link']['RSS']; ?>
|
||||
" id="rss">RSS :: s'abonner</a>
|
||||
<a href="<?php echo $this->_tpl_vars['link']['self']; ?>
|
||||
" id="img"><span></span>Halo Battle</a>
|
||||
<div id="buttons"><div><a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
">ACCUEIL</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['jeu']; ?>
|
||||
">LE JEU</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
">S'INSCRIRE</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
">FORUM</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['staff']; ?>
|
||||
">STAFF</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['faq']; ?>
|
||||
">F.A.Q.</a></div></div>
|
||||
<form action="#" method="post"><fieldset id="recherche"><input class="text" type="text" name="recherche" value="rechercher..." maxlength="128" tabindex="10" onfocus="this.value = this.value!='rechercher...'?this.value:''" onblur="this.value=this.value==''?'rechercher...':this.value" /><input value="OK" class="submit" type="submit" tabindex="11" /><br /><a href="#" tabindex="12">Recherche Avancée</a></fieldset></form>
|
||||
</div>
|
||||
<div id="banner"><span id="bannerleft">DEFENDREZ-VOUS L'HUMANITE OU LA DETRUIREZ-VOUS ?</span> <span id="bannerright"><?php echo $this->_tpl_vars['count']['humains']; ?>
|
||||
Marines et <?php echo $this->_tpl_vars['count']['covenants']; ?>
|
||||
Covenants se battent dans <ins><?php echo $this->_tpl_vars['count']['serveurs']; ?>
|
||||
galaxie<?php if ($this->_tpl_vars['count']['serveurs'] > 1): ?>s<?php endif; ?></ins></span></div>
|
||||
<div id="corps">
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:05:35
|
||||
compiled from game/alliance_adm_chat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_adm_chat.tpl', 20, false),array('modifier', 'escape', 'game/alliance_adm_chat.tpl', 21, false),)), $this); ?>
|
||||
<?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>Administration de l'alliance</h2>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance_adm_header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<br />
|
||||
<h2 id="chat">Administration du chat</h2>
|
||||
<table style="text-align: center; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Date</th>
|
||||
<th>Message</th>
|
||||
<th>Supprimer</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['chat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['message']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['message']['emetteur']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['message'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_chat&i=<?php echo $this->_tpl_vars['message']['id']; ?>
|
||||
"><i>Supprimer</i></a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 18:53:11
|
||||
compiled from game/alliance_adm_membres.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_adm_membres.tpl', 23, false),array('modifier', 'nl2br', 'game/alliance_adm_membres.tpl', 45, false),array('function', 'html_options', 'game/alliance_adm_membres.tpl', 24, false),)), $this); ?>
|
||||
<?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>Administration de l'alliance</h2>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance_adm_header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<br />
|
||||
<h2>Administration des membres</h2>
|
||||
<table style="text-align: center; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Race</th>
|
||||
<th>Dernière connexion </th>
|
||||
<th>Grade</th>
|
||||
<th>Mp</th>
|
||||
<th>Renvoyer de l'alliance </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['membres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['membre']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['race']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['membre']['last_visite'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><form action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres" method="post"><p><input type="hidden" name="user" value="<?php echo $this->_tpl_vars['membre']['id']; ?>
|
||||
" /><select name="grade" onchange="this.form.submit();"><option label="Aucun" value="0">Aucun</option><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['gradei'],'selected' => $this->_tpl_vars['membre']['id_grade_alliance'],'output' => $this->_tpl_vars['grades']), $this);?>
|
||||
</select></p></form></td>
|
||||
<td><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
" class="msg"><span>Message</span></a></td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres&u=<?php echo $this->_tpl_vars['membre']['id']; ?>
|
||||
"><i>Renvoyer</i></a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<table style="text-align: center; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Message de motivation</th>
|
||||
<th>Date</th>
|
||||
<th>Action</th>
|
||||
<th>Mp</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['candidats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['candidat']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['candidat']['pseudo_membre']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['candidat']['message'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['candidat']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres&accept=<?php echo $this->_tpl_vars['candidat']['id_membre']; ?>
|
||||
"><i>Accpeter</i></a> - <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres&refus=<?php echo $this->_tpl_vars['candidat']['id_membre']; ?>
|
||||
"><i>Refuser</i></a></td>
|
||||
<td><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['candidat']['pseudo_membre']; ?>
|
||||
" class="msg"><span>Message</span></a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:34:12
|
||||
compiled from game/chantierspatial.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/chantierspatial.tpl', 27, false),)), $this); ?>
|
||||
<?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>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fvais']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['key'] == 0): ?><span><strong>Prochain vaisseau</strong> : <em id="resten"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fvais']['2']; ?>
|
||||
,'resten', true);</script></span><?php endif; ?>
|
||||
<span><?php echo $this->_tpl_vars['fvais']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['fvais']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fvais']['4']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fvais']['0']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fvais']['0']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['fvais']['1']; ?>
|
||||
">Annuler tous</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucun vaisseau dans la file d'attente</span><?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=vaisseaux">Arbre des technologies</a></h3><br />
|
||||
<h2>Chantier spatial</h2>
|
||||
<table class="construction">
|
||||
<?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>
|
||||
<a class="bulle" href="?p=description&v=<?php echo $this->_tpl_vars['vaisseau']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/vaisseaux/<?php echo $this->_tpl_vars['vaisseau']['image']; ?>
|
||||
" alt="Vaisseaux" />
|
||||
<span><?php echo $this->_tpl_vars['vaisseau']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['vaisseau']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['vaisseau']['nombre']; ?>
|
||||
vaisseau<?php if ($this->_tpl_vars['vaisseau']['nombre'] > 1): ?>x<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['vaisseau']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['vaisseau']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['vaisseau']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['vaisseau']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['vaisseau']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['vaisseau']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de construction : <?php echo $this->_tpl_vars['vaisseau']['temps']; ?>
|
||||
<br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['vaisseau']['num']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 21:32:41
|
||||
compiled from game/batiments.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/batiments.tpl', 30, false),)), $this); ?>
|
||||
<?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>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fbat']):
|
||||
?>
|
||||
<span><?php echo $this->_tpl_vars['fbat']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fbat']['2']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fbat']['0']; ?>
|
||||
">Annuler</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucun batiment dans la file d'attente</span>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=batiments">Arbre des technologies</a></h3><br />
|
||||
<h2>Batiments</h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['batiments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['batiment']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/batiments/<?php echo $this->_tpl_vars['batiment']['image']; ?>
|
||||
" alt="<?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
||||
" />
|
||||
<span><?php echo $this->_tpl_vars['batiment']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['batiment']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['batiment']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['batiment']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['batiment']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['batiment']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['batiment']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de construction : <?php echo $this->_tpl_vars['batiment']['temps']; ?>
|
||||
<br /><br />
|
||||
<?php if ($this->_tpl_vars['batiment']['enfile']): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
||||
">Arrêter</a>
|
||||
<?php elseif ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
||||
">Construire</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 14:29:35
|
||||
compiled from game/alliance_chat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_chat.tpl', 19, false),)), $this); ?>
|
||||
<?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" id="chat"></div>
|
||||
<h2>Chat</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=chat">
|
||||
Réponse : <input name="msg" type="text" size="50" maxlength="250"> <input value="GO" class="submit" type="submit">
|
||||
</form>
|
||||
<br />
|
||||
<div style="height: 550px; overflow: auto; width: 99%;">
|
||||
<table style="width: 100%; margin: 0px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 172px;">[pseudo] heure</td>
|
||||
<th style="width: 536px;">Message</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['chat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['message']):
|
||||
?>
|
||||
<tr>
|
||||
<td>[<?php echo $this->_tpl_vars['message']['emetteur']; ?>
|
||||
] <i><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</i></td>
|
||||
<td><?php echo $this->_tpl_vars['message']['message']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:13:38
|
||||
compiled from game/options.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>Changer de mot de passe</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&chg=mdp" method="post"><fieldset class="options">
|
||||
<label for="ancien">Ancien mot de passe :</label><input class="text" type="password" id="ancien" name="mdp_anc" />
|
||||
<label for="nouveau">Nouveau mot de passe :</label><input class="text" type="password" id="nouveau" name="mdp_nouv" />
|
||||
<label for="confirm">Confirmez le mot de passe :</label><input class="text" type="password" id="confirm" name="mdp_conf" /><br /><br />
|
||||
<b>Le nouveau mot de passe sera modifié après validation par mail.<br />Veuillez vous assurez que votre adresse actuelle est toujours valide.</b><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
<h2>Changer d'adresse électronique</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&chg=mail" method="post"><fieldset class="options">
|
||||
<label>Adresse actuelle :</label><p style="text-align: center;"><?php echo $this->_tpl_vars['mail']; ?>
|
||||
</p>
|
||||
<label for="mail">Nouveau mail :</label><input class="text" type="text" id="mail" name="mail" />
|
||||
<label for="mdp_mail">Mot de passe actuel :</label><input class="text" type="password" id="mdp_mail" name="mdp_mail" /><br /><br />
|
||||
<b>L'adresse électronique sera modifiée une fois validée depuis votre nouvelle adresse.</b><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
<h2>Mode vacances</h2>
|
||||
Si vous devez vous absenter de votre compte pour une durée supérieure à 3 jours, vous pouvez mettre votre compte en mode vacances.<br />Vous ne pouvez pas vous faire attaquer (les attaques déjà lancées ne seront pas annulées !) durant cette période, mais vous ne produirez pas de resources sur vos planètes.<br /><br /><b>Veuillez vider <u>toutes</u> vos files d'attentes avant d'activer le mode vacances !</b><br />
|
||||
<br /><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&a=mv&n=<?php echo $this->_tpl_vars['idvac']; ?>
|
||||
">Activer le mode vacances maintenant</a>
|
||||
<h2>Supprimer son compte</h2>
|
||||
Contactez le chef interne de votre galaxie pour supprimer votre compte.
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:32:49
|
||||
compiled from cms/erreur.tpl */ ?>
|
||||
|
|
@ -0,0 +1,231 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:36:24
|
||||
compiled from game/flotten.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/flotten.tpl', 147, false),)), $this); ?>
|
||||
<?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>Détails de la flotte : <?php echo $this->_tpl_vars['flotte']['nom']; ?>
|
||||
</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['n']; ?>
|
||||
" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="nom">Nom de la flotte :</label><input class="text" type="text" id="nom" name="nomflotte" value="<?php echo $this->_tpl_vars['flotte']['nom']; ?>
|
||||
" /><br />
|
||||
<input class="submit" type="submit" value="GO" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<h2>Composition de la flotte</h2>
|
||||
<br /><table style="margin: auto;">
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_1']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['0']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_1']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_2']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['1']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_2']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_3']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['2']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_3']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_4']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['3']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_4']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_5']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['4']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_5']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_6']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['5']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_6']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_7']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['6']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_7']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_8']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['7']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_8']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_9']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['8']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_9']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_10']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['9']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_10']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_11']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['10']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_11']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['flotte']['vaisseau_12']): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomvais']['11']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['vaisseau_12']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table><br />
|
||||
<h2>Contenu de la flotte</h2>
|
||||
<br /><table style="margin: auto;">
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['contenu_metalF']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['contenu_cristalF']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['contenu_hydrogeneF']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Maximum</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['contenu_maxF']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table><br />
|
||||
<h2>Détails de la mission</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Mission</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['missionF']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->_tpl_vars['flotte']['mission'] == 1): ?>
|
||||
<tr>
|
||||
<td>Tactique par défaut</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['tactiqueAtDef']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->_tpl_vars['flotte']['tactiqueAT']): ?>
|
||||
<tr>
|
||||
<td>Tactique pour le tour suivant</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['tactiqueF']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td>Tactique pour le tour suivant</td>
|
||||
<td><?php echo $this->_tpl_vars['flotte']['tactiqueAtDef']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td>Etat de la mission</td>
|
||||
<?php if ($this->_tpl_vars['flotte']['effectue'] == 2): ?>
|
||||
<td>En cours</td>
|
||||
<?php elseif ($this->_tpl_vars['flotte']['effectue'] == 1): ?>
|
||||
<td>Effectuée</td>
|
||||
<?php else: ?>
|
||||
<td>Déplacement</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border: none;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Planète source</td>
|
||||
<td>[<?php echo $this->_tpl_vars['flotte']['start_galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['start_ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['start_position']; ?>
|
||||
]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date de départ</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%a %d %b %y/ %H%M %S") : smarty_modifier_date_format($_tmp, "/%a %d %b %y/ %H%M %S")); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border: none;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Planète de destination</td>
|
||||
<td>[<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_position']; ?>
|
||||
]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Temps de déplacement</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%k:%M:%S") : smarty_modifier_date_format($_tmp, "%k:%M:%S")); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date <?php if ($this->_tpl_vars['flotte']['mission'] != 6): ?>d'arrivée<?php else: ?>de retour<?php endif; ?></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['end_timeT'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%a %d %b %y/ %H%M %S") : smarty_modifier_date_format($_tmp, "/%a %d %b %y/ %H%M %S")); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if ($this->_tpl_vars['flotte']['mission'] != 6): ?><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['n']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['ret_fleet']; ?>
|
||||
">Annuler la mission et rappeler la flotte</a><?php endif; ?>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-27 00:05:42
|
||||
compiled from admin/vp.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>
|
||||
<div class="error">... veuillez patienter ...</div>
|
||||
<div class="border_bt"></div>
|
||||
<?php echo $this->_tpl_vars['contenu']; ?>
|
||||
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-18 22:44:53
|
||||
compiled from game/rename.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>
|
||||
<img src="images/planetes/<?php echo $this->_tpl_vars['planete']['image']; ?>
|
||||
.jpg" width="200" height="200" alt="planète" />
|
||||
<h2>Renommer la planète</h2>
|
||||
<form action="?p=rename" method="post">
|
||||
<fieldset class="options"><label for="planete">Renommer la planète: (<?php echo $this->_tpl_vars['planete']['galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['planete']['ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['planete']['position']; ?>
|
||||
) :</label><input class="text" type="text" name="planete" value="<?php echo $this->_tpl_vars['planete']['nom_planete']; ?>
|
||||
" id="planete" /><br /><br /><input class="submit" type="submit" value="OK" /></fieldset>
|
||||
</form>
|
||||
<h2>Abandonner la planète</h2>
|
||||
<?php if ($this->_tpl_vars['abandonH']): ?><b>Attention, cette action est irréversible ; vous perdrez tous les batiments, vaisseaux et unités présents sur cette planète, les flottes ayant une mision qui a pour origine votre planète se perdront dans l'espace.</b><br /><br />Si vous êtes sur de vouloir abandonner cette planète : <a href="?p=rename&a=<?php echo $this->_tpl_vars['abandonH']; ?>
|
||||
" onclick="return confirm('Êtes-vous sûr de vouloir abandonner cette planète ?');">cliquez sur ce lien</a>.<br /><br />
|
||||
<?php else: ?>Vous ne pouvez pas abandonner cette planète car vous n'en avez pas d'autre.<br /><br /><?php endif; ?>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 23:26:30
|
||||
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']):
|
||||
?>
|
||||
<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 echo $this->_tpl_vars['place']['3']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['place']['4']; ?>
|
||||
</td></tr>
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 03:08:51
|
||||
compiled from game/simulateur_combat.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>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['simulateur']; ?>
|
||||
" method="post">
|
||||
<h2>Vaisseaux de l'attaquant</h2>
|
||||
<fieldset class="options">
|
||||
<label for="ATvais_1"><?php echo $this->_tpl_vars['nomvais']['0']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_1" name="ATvais_1" />
|
||||
<label for="ATvais_2"><?php echo $this->_tpl_vars['nomvais']['1']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_2" name="ATvais_2" />
|
||||
<label for="ATvais_3"><?php echo $this->_tpl_vars['nomvais']['2']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_3" name="ATvais_3" />
|
||||
<label for="ATvais_4"><?php echo $this->_tpl_vars['nomvais']['3']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_4" name="ATvais_4" />
|
||||
<label for="ATvais_5"><?php echo $this->_tpl_vars['nomvais']['4']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_5" name="ATvais_5" />
|
||||
<label for="ATvais_6"><?php echo $this->_tpl_vars['nomvais']['5']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_6" name="ATvais_6" />
|
||||
<label for="ATvais_7"><?php echo $this->_tpl_vars['nomvais']['6']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_7" name="ATvais_7" />
|
||||
<label for="ATvais_8"><?php echo $this->_tpl_vars['nomvais']['7']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_8" name="ATvais_8" />
|
||||
<label for="ATvais_9"><?php echo $this->_tpl_vars['nomvais']['8']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_9" name="ATvais_9" />
|
||||
<label for="ATvais_10"><?php echo $this->_tpl_vars['nomvais']['9']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_10" name="ATvais_10" />
|
||||
<label for="ATvais_12"><?php echo $this->_tpl_vars['nomvais']['11']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ATvais_12" name="ATvais_12" />
|
||||
</fieldset>
|
||||
<h2>Vaisseaux et défenses du défenseur</h2>
|
||||
<fieldset class="options">
|
||||
<label for="ENvais_1"><?php echo $this->_tpl_vars['nomvais']['0']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_1" name="ENvais_1" />
|
||||
<label for="ENvais_2"><?php echo $this->_tpl_vars['nomvais']['1']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_2" name="ENvais_2" />
|
||||
<label for="ENvais_3"><?php echo $this->_tpl_vars['nomvais']['2']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_3" name="ENvais_3" />
|
||||
<label for="ENvais_4"><?php echo $this->_tpl_vars['nomvais']['3']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_4" name="ENvais_4" />
|
||||
<label for="ENvais_5"><?php echo $this->_tpl_vars['nomvais']['4']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_5" name="ENvais_5" />
|
||||
<label for="ENvais_6"><?php echo $this->_tpl_vars['nomvais']['5']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_6" name="ENvais_6" />
|
||||
<label for="ENvais_7"><?php echo $this->_tpl_vars['nomvais']['6']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_7" name="ENvais_7" />
|
||||
<label for="ENvais_8"><?php echo $this->_tpl_vars['nomvais']['7']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_8" name="ENvais_8" />
|
||||
<label for="ENvais_9"><?php echo $this->_tpl_vars['nomvais']['8']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_9" name="ENvais_9" />
|
||||
<label for="ENvais_10"><?php echo $this->_tpl_vars['nomvais']['9']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_10" name="ENvais_10" />
|
||||
<label for="ENvais_11"><?php echo $this->_tpl_vars['nomvais']['10']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_11" name="ENvais_11" />
|
||||
<label for="ENvais_12"><?php echo $this->_tpl_vars['nomvais']['11']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENvais_12" name="ENvais_12" />
|
||||
<br /><br /><br />
|
||||
<label for="ENdef_1"><?php echo $this->_tpl_vars['nomdef']['0']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENdef_1" name="ENdef_1" />
|
||||
<label for="ENdef_2"><?php echo $this->_tpl_vars['nomdef']['1']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENdef_2" name="ENdef_2" />
|
||||
<label for="ENdef_3"><?php echo $this->_tpl_vars['nomdef']['2']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENdef_3" name="ENdef_3" />
|
||||
<label for="ENdef_4"><?php echo $this->_tpl_vars['nomdef']['3']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENdef_4" name="ENdef_4" />
|
||||
<label for="ENdef_5"><?php echo $this->_tpl_vars['nomdef']['4']; ?>
|
||||
:</label><input class="text" maxlength="4" type="text" id="ENdef_5" name="ENdef_5" />
|
||||
</fieldset>
|
||||
<h2>Autres paramètres</h2>
|
||||
<fieldset class="systeme">
|
||||
<label for="maxtour">S'arrêter au tour :</label><input class="text" maxlength="2" type="text" id="maxtour" name="maxtour" />
|
||||
<label for="ATtactique">Tactique attaquant :</label><input class="text" maxlength="2" type="text" id="ATtactique" name="ATtactique" />
|
||||
<label for="ENtactique">Tactique défenseur :</label><input class="text" maxlength="2" type="text" id="ENtactique" name="ENtactique" />
|
||||
</fieldset>
|
||||
<fieldset class="options">
|
||||
<label for="ENmetal"><?php echo $this->_tpl_vars['nomressourc']['0']; ?>
|
||||
sur la planète attaquée :</label><input class="text" maxlength="4" type="text" id="ENmetal" name="ENmetal" />
|
||||
<label for="ENcristal"><?php echo $this->_tpl_vars['nomressourc']['1']; ?>
|
||||
sur la planète attaquée :</label><input class="text" maxlength="4" type="text" id="ENcristal" name="ENcristal" />
|
||||
<label for="ENhydrogene"><?php echo $this->_tpl_vars['nomressourc']['2']; ?>
|
||||
sur la planète attaquée :</label><input class="text" maxlength="4" type="text" id="ENhydrogene" name="ENhydrogene" />
|
||||
</fieldset>
|
||||
<input class="submit" type="submit" value="GO" />
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:27:35
|
||||
compiled from game/defenses.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/defenses.tpl', 27, false),)), $this); ?>
|
||||
<?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>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fvais']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['key'] == 0): ?><span><strong>Prochain véhicule</strong> : <em id="resten"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fvais']['2']; ?>
|
||||
,'resten', true);</script></span><?php endif; ?>
|
||||
<span><?php echo $this->_tpl_vars['fvais']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['fvais']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fvais']['4']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fvais']['0']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fvais']['0']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['fvais']['1']; ?>
|
||||
">Annuler tous</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucun véhicule dans la file d'attente</span><?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
||||
<h2>Défenses</h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['defenses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['defense']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&d=<?php echo $this->_tpl_vars['defense']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/terrestre/<?php echo $this->_tpl_vars['defense']['image']; ?>
|
||||
" alt="Image" />
|
||||
<span><?php echo $this->_tpl_vars['defense']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['defense']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['defense']['nombre']; ?>
|
||||
defense<?php if ($this->_tpl_vars['defense']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['defense']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de construction : <?php echo $this->_tpl_vars['defense']['temps']; ?>
|
||||
<br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['defense']['num']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 20:31:44
|
||||
compiled from game/accueil.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/accueil.tpl', 18, false),)), $this); ?>
|
||||
<?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>Evénements</h2>
|
||||
<em>Heure du serveur: <?php echo $this->_tpl_vars['datehb']; ?>
|
||||
</em>
|
||||
<?php $_from = $this->_tpl_vars['attaques']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['attaque']):
|
||||
?>
|
||||
<h4 class="attaque">attaque: Une flotte ennemie en provenance de <?php echo $this->_tpl_vars['attaque']['0']; ?>
|
||||
[<?php echo $this->_tpl_vars['attaque']['2']; ?>
|
||||
:<?php echo $this->_tpl_vars['attaque']['3']; ?>
|
||||
:<?php echo $this->_tpl_vars['attaque']['4']; ?>
|
||||
] atteint la planète <?php echo $this->_tpl_vars['attaque']['5']; ?>
|
||||
[<?php echo $this->_tpl_vars['attaque']['6']; ?>
|
||||
:<?php echo $this->_tpl_vars['attaque']['7']; ?>
|
||||
:<?php echo $this->_tpl_vars['attaque']['8']; ?>
|
||||
] dans <span id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"><?php echo $this->_tpl_vars['attaque']['1']; ?>
|
||||
</span><script type="text/javascript">reste(<?php echo $this->_tpl_vars['attaque']['9']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', true);</script></h4>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['mail']['nbre'] >= 2): ?><h4>messagerie: <a href="?p=messagerie"><?php echo $this->_tpl_vars['mail']['nbre']; ?>
|
||||
messages non lu</a></h4>
|
||||
<?php elseif ($this->_tpl_vars['mail']['nbre'] >= 1): ?><h4>messagerie: <a href="?p=messagerie"><?php echo $this->_tpl_vars['mail']['nbre']; ?>
|
||||
message non lu</a></h4>
|
||||
<?php endif; ?>
|
||||
<h3><a href="?p=rename"><?php if (! $this->_tpl_vars['planete']['nom_planete']): ?>Sans nom<?php endif; ?><?php echo $this->_tpl_vars['planete']['nom_planete']; ?>
|
||||
</a> (<span><?php echo $this->_tpl_vars['user']['pseudo']; ?>
|
||||
</span>)</h3>
|
||||
<img src="images/planetes/<?php echo $this->_tpl_vars['planete']['image']; ?>
|
||||
.jpg" width="200" height="200" alt="planete" />
|
||||
<h2>Infos</h2>
|
||||
<h4>Diamètre: <?php echo $this->_tpl_vars['diametre']; ?>
|
||||
km <ins>(<?php echo $this->_tpl_vars['caseRest']; ?>
|
||||
/<?php echo $this->_tpl_vars['planete']['cases']; ?>
|
||||
cases)</ins></h4>
|
||||
<h4>Race : <?php echo $this->_tpl_vars['user']['race']; ?>
|
||||
</h4>
|
||||
<h4>position: <a href="?p=carte&galaxie=<?php echo $this->_tpl_vars['planete']['galaxie']; ?>
|
||||
&ss=<?php echo $this->_tpl_vars['planete']['ss']; ?>
|
||||
"><?php echo $this->_tpl_vars['planete']['galaxie']; ?>
|
||||
.<?php echo $this->_tpl_vars['planete']['ss']; ?>
|
||||
.<?php echo $this->_tpl_vars['planete']['position']; ?>
|
||||
</a></h4>
|
||||
<h4>Classement: <a href="?p=classement&j=<?php echo $this->_tpl_vars['user']['id']; ?>
|
||||
"><?php echo $this->_tpl_vars['points']; ?>
|
||||
points (<?php if ($this->_tpl_vars['user']['place_points'] == '0'): ?>non classé<?php else: ?><?php echo $this->_tpl_vars['user']['place_points']; ?>
|
||||
<?php if ($this->_tpl_vars['user']['place_points'] == '1'): ?>er<?php else: ?>ème<?php endif; ?><?php endif; ?>)</a></h4>
|
||||
<?php if ($this->_tpl_vars['alliance']): ?><h4>Alliance: <a href="?p=alliances">[<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
] <?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
||||
</a></h4><?php endif; ?>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:21:07
|
||||
compiled from game/ressources.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game/ressources.tpl', 8, false),array('modifier', 'cat', 'game/ressources.tpl', 8, false),)), $this); ?>
|
||||
<?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>Ressources</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
|
||||
">
|
||||
<table>
|
||||
<thead><tr><th> </th><th>Coefficient</th><th><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
|
||||
</th><th><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
|
||||
</th><th><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
|
||||
</th><th><?php echo $this->_tpl_vars['nomsressources']['3']; ?>
|
||||
</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']['mine_m']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['0']; ?>
|
||||
</td><td><select name="coeff_metal" class="coeff"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['ressources_tab'],'selected' => $this->_tpl_vars['ressources_coef']['0'],'output' => ((is_array($_tmp=$this->_tpl_vars['ressources_tab'])) ? $this->_run_mod_handler('cat', true, $_tmp, '%') : smarty_modifier_cat($_tmp, '%'))), $this);?>
|
||||
</select></td><td><?php echo $this->_tpl_vars['ressources_prod']['0']; ?>
|
||||
</td><td>0</td><td>0</td><td class="lack">-<?php echo $this->_tpl_vars['ressources_conso']['0']; ?>
|
||||
</td></tr>
|
||||
<?php if ($this->_tpl_vars['planete']['mine_c']): ?><tr><td><?php echo $this->_tpl_vars['planete']['mine_c']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['1']; ?>
|
||||
</td><td><select name="coeff_cristal" class="coeff"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['ressources_tab'],'selected' => $this->_tpl_vars['ressources_coef']['1'],'output' => ((is_array($_tmp=$this->_tpl_vars['ressources_tab'])) ? $this->_run_mod_handler('cat', true, $_tmp, '%') : smarty_modifier_cat($_tmp, '%'))), $this);?>
|
||||
</select></td><td>0</td><td><?php echo $this->_tpl_vars['ressources_prod']['1']; ?>
|
||||
</td><td>0</td><td class="lack">-<?php echo $this->_tpl_vars['ressources_conso']['1']; ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']['mine_h']): ?><tr><td><?php echo $this->_tpl_vars['planete']['mine_h']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['2']; ?>
|
||||
</td><td><select name="coeff_hydrogene" class="coeff"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['ressources_tab'],'selected' => $this->_tpl_vars['ressources_coef']['2'],'output' => ((is_array($_tmp=$this->_tpl_vars['ressources_tab'])) ? $this->_run_mod_handler('cat', true, $_tmp, '%') : smarty_modifier_cat($_tmp, '%'))), $this);?>
|
||||
</select></td><td>0</td><td>0</td><td><?php echo $this->_tpl_vars['ressources_prod']['2']; ?>
|
||||
</td><td class="lack">-<?php echo $this->_tpl_vars['ressources_conso']['2']; ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']['centrale_s']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['3']; ?>
|
||||
</td><td><select name="coeff_cs" class="coeff"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['ressources_tab'],'selected' => $this->_tpl_vars['ressources_coef']['3'],'output' => ((is_array($_tmp=$this->_tpl_vars['ressources_tab'])) ? $this->_run_mod_handler('cat', true, $_tmp, '%') : smarty_modifier_cat($_tmp, '%'))), $this);?>
|
||||
</select></td><td>0</td><td>0</td><td>0</td><td><?php echo $this->_tpl_vars['ressources_prod']['3']; ?>
|
||||
</td></tr>
|
||||
<?php if ($this->_tpl_vars['planete']['centrale_f']): ?><tr><td><?php echo $this->_tpl_vars['planete']['centrale_f']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['4']; ?>
|
||||
</td><td><select name="coeff_ce" class="coeff"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['ressources_tab'],'selected' => $this->_tpl_vars['ressources_coef']['4'],'output' => ((is_array($_tmp=$this->_tpl_vars['ressources_tab'])) ? $this->_run_mod_handler('cat', true, $_tmp, '%') : smarty_modifier_cat($_tmp, '%'))), $this);?>
|
||||
</select></td><td>0</td><td>0</td><td class="lack">-<?php echo $this->_tpl_vars['ressources_conso']['3']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_prod']['4']; ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']['silo']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['10']; ?>
|
||||
</td><td>-</td><td><?php echo $this->_tpl_vars['ressources_silo']['1']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_silo']['1']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_silo']['1']; ?>
|
||||
</td><td>0</td></tr>
|
||||
<tr><td><strong>Total</strong></td><td>-</td><td><?php echo $this->_tpl_vars['ressources_prod']['0']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_prod']['1']; ?>
|
||||
</td><td><?php if ($this->_tpl_vars['planete']['mine_h']): ?><?php echo $this->_tpl_vars['ressources_toto']['0']; ?>
|
||||
<?php else: ?>0<?php endif; ?></td><td<?php if ($this->_tpl_vars['alertes']['5'] <= 0): ?> class="lack"<?php endif; ?>><?php echo $this->_tpl_vars['alertes']['5']; ?>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="submit" class="submit" value="GO" /><br /><br />
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-26 18:21:10
|
||||
compiled from cms/mini.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div id="connexion" class="block">
|
||||
<div class="header">Connexion</div>
|
||||
<div class="corps"><form action="?log" method="post"><fieldset><span><input type="text" class="text" name="HB_login" maxlength="32" tabindex="1" /><input type="password" class="password" name="HB_password" maxlength="32" tabindex="2" /><input type="submit" class="submit" value="GO" tabindex="3" /></span><span><input type="checkbox" name="cookie" id="cookie" /><label for="cookie">Retenir mes informations</label> <a href="<?php echo $this->_tpl_vars['link']['oubliemdp']; ?>
|
||||
" tabindex="4">Mot de passe oublié</a></span></fieldset></form></div>
|
||||
</div>
|
||||
|
||||
<div id="inscription" class="block"><span><a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
">INSCRIVEZ VOUS</a> Rejoignez l'alliance ou engagez-vous</span> <p><strong>DEFENDREZ VOUS L'HUMANITE OU LA DETRUIREZ VOUS?</strong><br /><br />Repoussez l'ennemi et partez a la conquète des mondes-anneaux dans des univers vastes et riches basés sur l'univers du jeu vidéo Halo<br /><br /><em>Une simple inscription gratuite et un navigateur internet sont demandés pour pouvoir participer a des batailles épiques!</em></p> <a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
" class="link"><span>Cliquez ici pour vous inscrire</span></a> <a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
" class="more">En savoir plus</a></div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-20 22:09:01
|
||||
compiled from game/carte.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>Navigation</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
" method="get"><fieldset class="systeme"><label for="galaxie">Amas :</label><input type="hidden" value="carte" name="p" /><input class="text" type="text" value="<?php echo $this->_tpl_vars['position']['0']; ?>
|
||||
" id="galaxie" name="galaxie" /><label for="systeme">Système solaire :</label><input class="text" type="text" value="<?php echo $this->_tpl_vars['position']['1']; ?>
|
||||
" id="systeme" name="ss" /><div><a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
&galaxie=<?php echo $this->_tpl_vars['position']['4']; ?>
|
||||
&ss=<?php echo $this->_tpl_vars['position']['5']; ?>
|
||||
"><<<</a><input class="submit" type="submit" value="GO" /><a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
&galaxie=<?php echo $this->_tpl_vars['position']['2']; ?>
|
||||
&ss=<?php echo $this->_tpl_vars['position']['3']; ?>
|
||||
">>>></a></div></fieldset></form>
|
||||
<h2>Système Solaire</h2>
|
||||
<table class="systeme">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="6">Système: <?php echo $this->_tpl_vars['position']['0']; ?>
|
||||
:<?php echo $this->_tpl_vars['position']['1']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Position</th>
|
||||
<th>Nom</th>
|
||||
<th>Débris métal</th>
|
||||
<th>Débris cristal</th>
|
||||
<th>Joueur</th>
|
||||
<th>Message</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['carte']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['plan']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['plan']['0']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['plan']['1']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['plan']['2']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['plan']['3']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['plan']['5']; ?>
|
||||
<?php echo $this->_tpl_vars['plan']['4']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['plan']['6']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:02:05
|
||||
compiled from game/alliance_liste.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_liste.tpl', 20, false),)), $this); ?>
|
||||
<?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>Composition de l'alliance</h2>
|
||||
<table style="text-align: center; width: 100%;" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Race</th>
|
||||
<th>Dernière connexion</th>
|
||||
<th>Points</th>
|
||||
<th>Grade</th>
|
||||
<th>Mp</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['membres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['membre']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['race']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['membre']['last_visite'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['points']; ?>
|
||||
(<?php echo $this->_tpl_vars['membre']['place_points']; ?>
|
||||
)</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['id_grade_alliance']; ?>
|
||||
</td>
|
||||
<td><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
" class="msg"><span>Message</span></a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 23:48:35
|
||||
compiled from game/vp.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>
|
||||
<div class="error">... veuillez patienter ...</div>
|
||||
<div class="border_bt"></div>
|
||||
<?php echo $this->_tpl_vars['contenu']; ?>
|
||||
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 00:59:16
|
||||
compiled from game/alliance_accueil.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_accueil.tpl', 3, false),array('modifier', 'capitalize', 'game/alliance_accueil.tpl', 3, false),array('modifier', 'escape', 'game/alliance_accueil.tpl', 11, false),array('modifier', 'nl2br', 'game/alliance_accueil.tpl', 34, false),array('modifier', 'date_format', 'game/alliance_accueil.tpl', 57, false),)), $this); ?>
|
||||
<?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>[<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
] <?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)); ?>
|
||||
</h2>
|
||||
<table cellpadding="2" cellspacing="0" style="text-align: center; width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2"><img src="<?php echo $this->_tpl_vars['alliance']['image']; ?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: middle;"><strong>Nom : </strong></td>
|
||||
<td style="width: 70%;"><?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
(<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Membres : </strong></td>
|
||||
<td><?php echo $this->_tpl_vars['nbmembre']; ?>
|
||||
(<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=liste">Liste des membres</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Votre grade :</strong></td>
|
||||
<td><?php if ($this->_tpl_vars['access']['fondateur']): ?>Fondateur<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<?php endif; ?><br /><?php if ($this->_tpl_vars['access']['chat']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_chat">Modérer le chat</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['membre']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres">Gestion des membres</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['ecriture']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_ecrits">Gestion des écritures</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['alliance']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_alliance">Gestion de l'alliance</a> |<?php endif; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Status des inscriptions :</strong></td>
|
||||
<td><?php if ($this->_tpl_vars['alliance']['etat_inscription']): ?>Ouvertes<?php else: ?>Fermée<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php if ($this->_tpl_vars['access']['membre']): ?>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Mail collectif :</strong></td>
|
||||
<td><a href="admin_alliance.php?action=massmail">Envoyer un message collectif</a> (prochainement)</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Présentation</h2>
|
||||
<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['presentation'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Forum :</strong></td>
|
||||
<td style="width: 70%;"><a href="<?php echo $this->_tpl_vars['alliance']['url']; ?>
|
||||
"><?php echo $this->_tpl_vars['alliance']['url']; ?>
|
||||
</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Texte interne</h2>
|
||||
<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['texte_interne'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
|
||||
<h2>Chat</h2>
|
||||
<div style="height: 150px; overflow: auto; width: 99%;" id="chat">
|
||||
<table style="width: 100%; margin: 0px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 172px;">[pseudo] heure</td>
|
||||
<th style="width: 536px;">Message</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['chat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['message']):
|
||||
?>
|
||||
<tr>
|
||||
<td>[<?php echo $this->_tpl_vars['message']['emetteur']; ?>
|
||||
] <i><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['message']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</i></td>
|
||||
<td><?php echo $this->_tpl_vars['message']['message']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=chat">
|
||||
Réponse : <input name="msg" type="text" size="50" maxlength="250"> <input value="GO" class="submit" type="submit">
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 23:39:08
|
||||
compiled from game/aide.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>Aide</h2>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,267 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 01:03:58
|
||||
compiled from game/rapport_combat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/rapport_combat.tpl', 192, false),)), $this); ?>
|
||||
<b><?php if ($this->_tpl_vars['termine']): ?>Le combat contre <?php echo $this->_tpl_vars['EN']['pseudo']; ?>
|
||||
est terminé !
|
||||
<?php elseif ($this->_tpl_vars['tour'] == '1'): ?>Le combat contre <?php echo $this->_tpl_vars['EN']['pseudo']; ?>
|
||||
est engagé !
|
||||
<?php else: ?>Suite du combat contre <?php echo $this->_tpl_vars['EN']['pseudo']; ?>
|
||||
!<?php endif; ?></b><br /><br />
|
||||
Tactique lors de ce tour : <?php echo $this->_tpl_vars['flotte']['tactiqueAT']; ?>
|
||||
<br /><br />
|
||||
Lieux du combat : <a href="?p=carte&galaxie=<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
&ss=<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
">[<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_position']; ?>
|
||||
]</a><br /><br />
|
||||
<b>Vaisseaux à la fin du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['groupe']['1'] > 99): ?><span style="#00FF00">Complet</span><?php elseif ($this->_tpl_vars['groupe']['1'] > 80): ?><span style="#00FF00">Bon</span><?php elseif ($this->_tpl_vars['groupe']['1'] > 60): ?><span style="#CCCC00">Correct</span><?php elseif ($this->_tpl_vars['groupe']['1'] > 40): ?><span style="#EECC00">Moyen</span><?php elseif ($this->_tpl_vars['groupe']['1'] > 20): ?><span style="#FF9900">Bas</span><?php elseif ($this->_tpl_vars['groupe']['1'] > 20): ?><span style="#FF9900">Critique</span><?php endif; ?></td>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['2']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br /><b>Vaisseaux au début du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['1']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['2']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<?php if (! $this->_tpl_vars['termine']): ?>Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !<br /><br />
|
||||
La prochaine attaque est prévue à <?php echo ((is_array($_tmp=$this->_tpl_vars['nextTour'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%d%m %y/ %H%M %S") : smarty_modifier_date_format($_tmp, "/%d%m %y/ %H%M %S")); ?>
|
||||
</b>
|
||||
<?php elseif ($this->_tpl_vars['attaquantG']): ?><strong>Nous avons gagné le combat !<br /><br />Nous repartons avec <?php echo $this->_tpl_vars['pillage']['0']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['0']; ?>
|
||||
, <?php echo $this->_tpl_vars['pillage']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['1']; ?>
|
||||
et <?php echo $this->_tpl_vars['pillage']['2']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['2']; ?>
|
||||
.</strong>
|
||||
<?php else: ?><strong>Nous avons perdu le combat !</strong><?php endif; ?>
|
||||
|
|
@ -0,0 +1,270 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:52:00
|
||||
compiled from game/ENrapport_combat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/ENrapport_combat.tpl', 194, false),)), $this); ?>
|
||||
<b><?php if ($this->_tpl_vars['termine']): ?>Le combat contre <?php echo $this->_tpl_vars['flotte']['pseudo']; ?>
|
||||
est terminé !
|
||||
<?php elseif ($this->_tpl_vars['tour'] == '1'): ?>Un combat contre <?php echo $this->_tpl_vars['flotte']['pseudo']; ?>
|
||||
est engagé !
|
||||
<?php else: ?>Suite du combat contre <?php echo $this->_tpl_vars['flotte']['pseudo']; ?>
|
||||
!<?php endif; ?></b><br /><br />
|
||||
Tactique lors de ce tour : <?php echo $this->_tpl_vars['flotte']['tactiqueEN']; ?>
|
||||
<br /><br />
|
||||
Lieux du combat : <a href="?p=carte&galaxie=<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
&ss=<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
">[<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_position']; ?>
|
||||
]</a><br /><br />
|
||||
<b>Vaisseaux à la fin du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Nos défenses à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['defPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['defBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['defBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br /><b>Vaisseaux au début du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Nos défenses au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['defPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['defBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['defBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<?php if (! $this->_tpl_vars['termine']): ?><!--Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !<br /><br />-->
|
||||
La prochaine attaque est prévue à <?php echo ((is_array($_tmp=$this->_tpl_vars['nextTour'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%d%m %y/ %H%M %S") : smarty_modifier_date_format($_tmp, "/%d%m %y/ %H%M %S")); ?>
|
||||
</b>
|
||||
<?php elseif ($this->_tpl_vars['attaquantG']): ?><strong>Nous n'avons pas réussi à repousser l'attaque !<br />Ils repartent avec <?php echo $this->_tpl_vars['pillage']['0']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['0']; ?>
|
||||
, <?php echo $this->_tpl_vars['pillage']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['1']; ?>
|
||||
et <?php echo $this->_tpl_vars['pillage']['2']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['2']; ?>
|
||||
.</strong>
|
||||
<?php else: ?><strong>Nous avons réussi à repousser l'attaque !</strong><?php endif; ?>
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 17:55:55
|
||||
compiled from game/alliance_adm_admin.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_adm_admin.tpl', 15, false),array('function', 'html_options', 'game/alliance_adm_admin.tpl', 19, false),)), $this); ?>
|
||||
<?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>Administration de l'alliance</h2>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance_adm_header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<br />
|
||||
<h2>Administration de l'alliance</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_alliance">
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td style="width: 17%;"><strong><label for="nom">Nom :</label></strong></td>
|
||||
<td colspan="3"><?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong><label for="tag">Tag :</label></strong></td>
|
||||
<td colspan="3"><?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Defcon : </strong></td>
|
||||
<td><select name="defcon" id="defcon"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['niveauxi'],'selected' => $this->_tpl_vars['alliance']['defcon'],'output' => $this->_tpl_vars['niveaux']), $this);?>
|
||||
</select></td>
|
||||
<td><strong><label for="defcon_txt">Message du Defcon :</label></strong></td>
|
||||
<td><input name="defcon_txt" type="text" id="defcon_txt" value="<?php echo $this->_tpl_vars['alliance']['defcon_txt']; ?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<?php if ($this->_tpl_vars['access']['fondateur']): ?>
|
||||
<tr>
|
||||
<td><strong><label>Fondateur :</label></strong></td>
|
||||
<td><select name="fondateur" id="fondateur"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['membresi'],'selected' => $this->_tpl_vars['alliance']['fondateur'],'output' => $this->_tpl_vars['membres']), $this);?>
|
||||
</select></td>
|
||||
<td><strong>Dissoudre l'alliance</strong></td>
|
||||
<td>Ecrivez votre mot de passe dans le champ ci-dessous :<br /><input name="pswd_admin" type="password" id="pswd_admin" /></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td><strong><label for="etat_inscription">Etat des candidatures :</label></strong></td>
|
||||
<td colspan="3"><select name="etat_inscription" id="etat_inscription"><?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['etatinscripti'],'selected' => $this->_tpl_vars['alliance']['etat_inscription'],'output' => $this->_tpl_vars['etatinscript']), $this);?>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong><label for="image">Url de l'image :</label></strong></td>
|
||||
<td colspan="3"><input name="image" type="text" id="image" value="<?php echo $this->_tpl_vars['alliance']['image']; ?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong><label for="url">Url du forum de l'alliance :</label></strong></td>
|
||||
<td colspan="3"><input name="url" type="text" id="url" value="<?php echo $this->_tpl_vars['alliance']['url']; ?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"><input type="submit" class="submit" value="Ok" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:34:31
|
||||
compiled from game/erreur.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>
|
||||
<div class="error"<?php if ($this->_tpl_vars['couleur']): ?> style="color: <?php echo $this->_tpl_vars['couleur']; ?>
|
||||
;"<?php endif; ?>><?php echo $this->_tpl_vars['message']; ?>
|
||||
</div>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-18 00:20:06
|
||||
compiled from cms/oubliemdp.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div id="dernierminute" class="block">
|
||||
<div class="header">Informations</div>
|
||||
<div class="corps" id="description"><b>Oublie de mot de passe</b><br /><br /><p>Complétez le formualaire ci-contre avec votre nom d'utilisateur et votre adresse électronique. Un nouveau mot de passe sera envoyé à votre adresse, vous permettant ainsi d'avoir de nouveau accès à votre compte.<br /><br />Pensez à changer ce nouveau mot de passe que vous ne retiendrez pas facilement, via la page option du jeu.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="statistiques" class="block">
|
||||
<div class="header">Formulaire de réinitialisation de mot de passe</div>
|
||||
<div class="corpsi">
|
||||
<form action="<?php echo $this->_tpl_vars['link']['oubliemdp']; ?>
|
||||
" method="post">
|
||||
<span><label for="HB_pseudo">Pseudo :</label> <input class="text" name="HB_pseudo" id="pseudo" type="text" />
|
||||
<br /><label for="HB_mail">Adresse électronique :</label> <input class="text" name="HB_mail" id="mail" type="text" />
|
||||
<br /><br /><label for="HB_captcha">Recopiez ce texte :</label> <input class="text" name="HB_captcha" id="captcha" type="text" /> <img src="captcha/image.php" alt="Génération ..." id="gen" />
|
||||
<br /><br /><input class="submit" value="OK" type="submit">
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($this->_tpl_vars['erreurs']): ?>
|
||||
<div id="connexion" class="block">
|
||||
<div class="header"><b>Impossible de changer le mot de passe :</b></div>
|
||||
<div class="corps" id="description">
|
||||
<p>
|
||||
<?php echo $this->_tpl_vars['erreurs']; ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,270 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:51:38
|
||||
compiled from game/ATrapport_combat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/ATrapport_combat.tpl', 194, false),)), $this); ?>
|
||||
<b><?php if ($this->_tpl_vars['termine']): ?>Le combat contre <?php echo $this->_tpl_vars['EN']['pseudo']; ?>
|
||||
est terminé !
|
||||
<?php elseif ($this->_tpl_vars['tour'] == '1'): ?>Le combat contre <?php echo $this->_tpl_vars['EN']['pseudo']; ?>
|
||||
est engagé !
|
||||
<?php else: ?>Suite du combat contre <?php echo $this->_tpl_vars['EN']['pseudo']; ?>
|
||||
!<?php endif; ?></b><br /><br />
|
||||
Tactique lors de ce tour : <?php echo $this->_tpl_vars['flotte']['tactiqueAT']; ?>
|
||||
<br /><br />
|
||||
Lieux du combat : <a href="?p=carte&galaxie=<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
&ss=<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
">[<?php echo $this->_tpl_vars['flotte']['end_galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotte']['end_position']; ?>
|
||||
]</a><br /><br />
|
||||
<b>Vaisseaux à la fin du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['defPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['defBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['defBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br /><b>Vaisseaux au début du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['defPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['defBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['defBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_bc']; ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo $this->_tpl_vars['pourcent_pv']; ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<?php if (! $this->_tpl_vars['termine']): ?><!--Vous pouvez profiter du temps de régénération des boucliers et des armes pour envoyer un nouvel ordre de tactique : Cliquez ici !<br /><br />-->
|
||||
La prochaine attaque est prévue à <?php echo ((is_array($_tmp=$this->_tpl_vars['nextTour'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%d%m %y/ %H%M %S") : smarty_modifier_date_format($_tmp, "/%d%m %y/ %H%M %S")); ?>
|
||||
</b>
|
||||
<?php elseif ($this->_tpl_vars['attaquantG']): ?><strong>Nous avons gagné le combat !<br />Nous repartons avec <?php echo $this->_tpl_vars['pillage']['0']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['0']; ?>
|
||||
, <?php echo $this->_tpl_vars['pillage']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['1']; ?>
|
||||
et <?php echo $this->_tpl_vars['pillage']['2']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['2']; ?>
|
||||
.</strong>
|
||||
<?php else: ?><strong>Nous avons perdu le combat !</strong><?php endif; ?>
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-26 00:09:13
|
||||
compiled from game/flotte2.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/flotte2.tpl', 19, false),)), $this); ?>
|
||||
<?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>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
" method="post">
|
||||
<h2>Paramètres généraux</h2>
|
||||
<fieldset class="options">
|
||||
<label for="nom">Nom de la flotte :</label><input class="text" type="text" id="nom" name="nomflotte" maxlength="24" /><br />
|
||||
<label for="amas">Destination :</label><input class="dest" type="text" id="amas" name="amas" maxlength="2" />:<input class="dest" type="text" id="ss" name="ss" maxlength="2" />:<input class="dest" type="text" id="plan" name="pos" maxlength="2" /><br />
|
||||
<label for="vitesse">Vitesse :</label><select name="vitesse" id="vitesse"><option value="100">100%</option><option value="75">75%</option><option value="50">50%</option><option value="25">25%</option></select><br />
|
||||
<br /><div id="aide1">Pour vous repérer plus facilement entre vos différentes flottes, donnez-lui un nom.</div>
|
||||
</fieldset>
|
||||
<h2>Mission et contenu</h2>
|
||||
<fieldset class="options">
|
||||
<label for="mission">Mission :</label>
|
||||
<select name="mission" id="mission" onchange="tempsFlotte();">
|
||||
<?php echo $this->_tpl_vars['actionsupp']; ?>
|
||||
|
||||
<option value="2">Transporter</option>
|
||||
<option value="0">Stationner</option>
|
||||
</select><span id="tactique"></span><br />
|
||||
<label for="metal">Embarquer <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
:</label><input class="text" type="text" id="metal" name="metal" /><br />
|
||||
<label for="cristal">Embarquer <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
:</label><input class="text" type="text" id="cristal" name="cristal" /><br />
|
||||
<label for="hydrogene">Embarquer <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
:</label><input class="text" type="text" id="hydrogene" name="hydrogene" /><br />
|
||||
<br /><div id="aide2"></div>
|
||||
</fieldset>
|
||||
<h2>Envoyer</h2>
|
||||
<noscript><span style="color: #FF0000; font-weight: bolder;">Le JavaScript est nécessaire pour envoyer une flotte.</span><br /></noscript>
|
||||
Temps de déplacement : <span id="temps">-</span><br />
|
||||
Consomation : <span id="conso">-</span><br />
|
||||
<span id="deblok"><b>Complètez les champs ci-dessus</b></span>
|
||||
<br /><span id="vp"></span>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 02:25:42
|
||||
compiled from game/aide/avertissements.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>Aide de Halo-Battle :: Avertissements</h2>
|
||||
<h3>Avertissement aux utilisateurs de téléviseurs à rétroprojection</h3><br />
|
||||
Les images fixes peuvent endommager de manière irréversible le tube cathodique ou marquer à jamais les luminophores qui constituent l'écran de ces téléviseurs.<br />C'est pourquoi il est conseillé d'éviter d'utiliser des jeux vidéo trop souvent ou de façon prolongée avec les téléviseurs à rétroprojection.<br /><br />
|
||||
<h3>Prévention des risques d'épilepsie</h3><br />
|
||||
<h4>A lire avant toute utilisation d'un jeu vidéo par vous-même ou par votre enfant.</h4><br />
|
||||
Chez certaines personnes, la stimulation visuelle par certains effets stroboscopiques ou motifs lumineux peut déclencher une crise d'épilepsie ou une perte de connaissance et ce, y compris dans la vie de tous les jours.<br />
|
||||
Chez ces personnes, le simple fait de regarder la télévision ou de jouer à un jeu vidéo peut suffire à déclencher une crise. Les symptômes peuvent même se déclarer chez un individu sans antécédents médicaux ou n'ayant jamais souffert de crise d'épilepsie.<br />
|
||||
Si vous-même ou un membre de votre famille avez déjà présenté des symptômes liés à l'épilepsie (crise d'épilepsie ou de perte de connaissance) à la suite d'une exposition à des effets lumineux stroboscopiques, veuillez consulter votre médecin avant de commencer à jouer.<br />
|
||||
Nous conseillons vivement aux parents de prêter une attention soutenue à leurs enfants lorsqu'ils utilisent un jeu vidéo. Si vous ou votre enfant ressentez l'un des symptômes suivants en cours de jeu : vertiges, troubles de la vue, contractions oculaires ou musculaires incontrôlées, perte de connaissance, désorientation, mouvements involontaires ou convulsions, veuillez cesser IMMEDIATEMENT la partie et consulter votre médecin.<br /><br />
|
||||
<h3>Règles à respecter pour jouer dans les meilleures conditions possibles</h3>
|
||||
<ul>
|
||||
<li>S'installer confortablement en position assise, le plus loin possible de l'écran.
|
||||
<li>Jouer de préférence sur un écran de petite taille.</li>
|
||||
<li>Eviter de jouer en cas de fatigue ou de manque de sommeil.</li>
|
||||
<li>Veiller à ce que la pièce soit bien éclairée.</li>
|
||||
<li>Observer des pauses de 10 à 15 minutes par heure de jeu.</li>
|
||||
</ul><br />
|
||||
<h3>Prévention des risques liés aux troubles du sommeil</h3><br />
|
||||
Pour votre santé, veillez à observer un compte d'heures minimales allouées à votre repos. Jouer plusieurs heures d'affilées comporte un risque de déréglement de votre horloge interne et/ou de troubles du sommeil. Si vous ou votre enfant ressentez l'un des symptômes suivants en cours de jeu : fatigue, vertiges, troubles de la vue, contractions oculaires ou musculaires incontrôlées, perte de connaissance, insomnie, stress, veuillez cesser IMMEDIATEMENT de jouer et prenez du repos.<br />
|
||||
Pour bien dormir, observez ces quelques règles :
|
||||
<ul>
|
||||
<li>Couchez-vous et levez-vous à heures régulières.</li>
|
||||
<li>Pas de grasse matinée : levez-vous dès le réveil.</li>
|
||||
<li>Dînez léger et pas trop tard, en mangeant un laitage.</li>
|
||||
<li>Observer les premiers signes annonciateurs du sommeil, ne luttez pas contre le sommeil.</li>
|
||||
<li>Maintenir une température basse (entre 15 et 18 °C) ainsi qu'un bon degré d'hygrométrie.<br />Opter pour l'obscurité, elle favorise le sommeil. Choisir un lit confortable (ni trop ferme ni trop mou) et des couvertures légères.</li>
|
||||
<li>Evitez la prise de produits stimulants : coca-cola, thé, café, vitamine C…</li>
|
||||
<li>La régularité du sommeil reste le meilleur gage de qualité.</li>
|
||||
</ul>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 18:36:57
|
||||
compiled from game/alliance_nm_postuler.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>Postuler pour l'alliance : <?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
||||
</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=postuler&i=2" method="post">
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td>Message de motivation </td>
|
||||
<td><textarea name="message" cols="53" rows="6" id="message"></textarea></td>
|
||||
<td rowspan="3"><div style="text-align: justify;">Une adhésion à une alliance ne se fait pas automatiquement. Vous devez d'abord demandé à être recruté, via le formulaire ci-joint. Les fondateurs de l'alliance décideront ensuite de vous accepter, ou non, au sein de leur groupe. </div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Une lettre de motivation courte est en général appreciée, et peut vous aider dans votre recrutement. Un français correct est de rigueur. </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input name="id" type="hidden" id="id" value="<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
" />
|
||||
<?php if ($this->_tpl_vars['alliance']['etat_inscription']): ?><input type="submit" class="submit" value="GO" /><?php else: ?>Inscriptions fermées.<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 18:45:20
|
||||
compiled from game/alliance_nm_search.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_nm_search.tpl', 13, false),)), $this); ?>
|
||||
<?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>
|
||||
<table cellpadding="0" cellspacing="0" style="width: 60%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>[TAG] Alliance</th>
|
||||
<th>Etat inscriptions </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['recherches']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['recherche']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=view&i=<?php echo $this->_tpl_vars['recherche']['id']; ?>
|
||||
">[<?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
] <?php echo $this->_tpl_vars['recherche']['nom']; ?>
|
||||
</a></td>
|
||||
<td><?php if ($this->_tpl_vars['recherche']['etat_inscription']): ?>Ouvertes<?php else: ?>Fermées<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,269 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 03:20:55
|
||||
compiled from game/SIMrapport_combat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'game/SIMrapport_combat.tpl', 26, false),)), $this); ?>
|
||||
<?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>
|
||||
<b>Le combat est terminé !</b><br /><br />
|
||||
Nombre de tour : <?php echo $this->_tpl_vars['tour']; ?>
|
||||
<br /><br />
|
||||
<b>Vaisseaux à la fin du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_bc'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_pv'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_bc'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_pv'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi à la fin du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['defPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['defBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['defBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_bc'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_pv'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br /><b>Vaisseaux au début du tour de notre côté :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisAT'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_bc'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_pv'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Vaisseaux ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['vaisseaux2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomvaisEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['vaisPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['vaisBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_bc'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_pv'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><b>Défenses ennemi au début du tour :</b>
|
||||
<table style="margin: auto; padding: 0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Défenses</th>
|
||||
<th>Nb</th>
|
||||
<th>Etat bouclier</th>
|
||||
<th>Etat PV</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['defenses1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php $this->assign('nom', ($this->_tpl_vars['vaisseau'][0]-1)); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['vaisseau']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['nomdefEN'][$this->_tpl_vars['nom']]; ?>
|
||||
</td>
|
||||
<td colspan="3" style="padding: 0;">
|
||||
<table style="width: 100%; margin: 0; padding: 0;">
|
||||
<?php $_from = $this->_tpl_vars['vaisseau']['3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['groupe']):
|
||||
?>
|
||||
<?php $this->assign('pourcent_pv', ($this->_tpl_vars['groupe'][2]*100/$this->_tpl_vars['defPV'][$this->_tpl_vars['nom']])); ?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['groupe']['0']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['defBC'][$this->_tpl_vars['nom']] == 0): ?>Inexistant<?php else: ?><?php $this->assign('pourcent_bc', ($this->_tpl_vars['groupe'][1]*100/$this->_tpl_vars['defBC'][$this->_tpl_vars['nom']])); ?><?php if ($this->_tpl_vars['pourcent_bc'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_bc'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_bc'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_bc'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_bc'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_bc'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_bc'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span><?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['pourcent_pv'] > 99): ?><span style="color: #00FF00">Complet<?php elseif ($this->_tpl_vars['pourcent_pv'] > 80): ?><span style="color: #00FF00">Bon<?php elseif ($this->_tpl_vars['pourcent_pv'] > 60): ?><span style="color: #CCCC00">Correct<?php elseif ($this->_tpl_vars['pourcent_pv'] > 40): ?><span style="color: #EECC00">Moyen<?php elseif ($this->_tpl_vars['pourcent_pv'] > 20): ?><span style="color: #FF9900">Bas<?php elseif ($this->_tpl_vars['pourcent_pv'] == 0): ?><span style="color: #FF0000">Détruit<?php else: ?><span style="color: #FF5500">Critique<?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['pourcent_pv'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%d") : smarty_modifier_string_format($_tmp, "%d")); ?>
|
||||
%)</span></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<?php if (! $this->_tpl_vars['termine']): ?>Le combat n'est pas terminé !</b>
|
||||
<?php elseif ($this->_tpl_vars['attaquantG']): ?><strong>Nous avons gagné le combat !<br />Nous repartons avec <?php echo $this->_tpl_vars['pillage']['0']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['0']; ?>
|
||||
, <?php echo $this->_tpl_vars['pillage']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['1']; ?>
|
||||
et <?php echo $this->_tpl_vars['pillage']['2']; ?>
|
||||
<?php echo $this->_tpl_vars['ressources']['2']; ?>
|
||||
.</strong>
|
||||
<?php else: ?><strong>Nous avons perdu le combat !</strong><?php endif; ?>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-30 20:33:49
|
||||
compiled from game/bugs.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/bugs.tpl', 6, false),)), $this); ?>
|
||||
<?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>Rapports de bug</h2>
|
||||
<?php $_from = $this->_tpl_vars['bugs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['bug']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><input class="button2" type="button" onclick="hide(this); return false;" /><?php echo $this->_tpl_vars['bug']['0']; ?>
|
||||
, le <?php echo $this->_tpl_vars['bug']['1']; ?>
|
||||
sur <?php echo ((is_array($_tmp=$this->_tpl_vars['bug']['2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</dt><dd><?php echo $this->_tpl_vars['bug']['3']; ?>
|
||||
<?php if ($this->_tpl_vars['auth_level'] > 2): ?><div style="text-align: right"><a href="<?php echo $this->_tpl_vars['menu']['bugs']; ?>
|
||||
&a=del&i=<?php echo $this->_tpl_vars['bug']['4']; ?>
|
||||
"><i>Supprimer</i></a></div><?php endif; ?></dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<h2>Ajouter un bug</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['bugs']; ?>
|
||||
&post" method="post"><fieldset class="options">
|
||||
<strong>Attention : bien lire les bugs deja proposé,<br />l'utilisation abusive ou des bugs ayant non lieus seront sanctionnés.</strong><br /><br />
|
||||
<label for="page">Page concernée :</label><input class="text" type="text" name="page" id="page" />
|
||||
<label for="desc">Description :</label>
|
||||
<textarea id="desc" name="description" cols="40" rows="10"></textarea><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-26 18:21:11
|
||||
compiled from cms/footer.tpl */ ?>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 23:14:02
|
||||
compiled from game/alliance_nm_fonder.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>Création d'une alliance</h2>
|
||||
<form id="form2" method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=fonder">
|
||||
<table cellpadding="0" cellspacing="0" style="height: 143px; width: 621px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="367" scope="col">
|
||||
<table width="376" height="159" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="113" height="50" align="center" valign="middle" scope="col"><strong>Nom</strong></td>
|
||||
<td width="242" align="center" valign="middle" scope="col">
|
||||
<input name="nom" type="text" maxlength="255" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="51" align="center" valign="middle"><strong>Tag</strong></td>
|
||||
<td align="center" valign="middle">
|
||||
<input name="tag" type="text" size="15" maxlength="15" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="center" valign="middle"><input type="submit" class="submit" value="Créer " /></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</th>
|
||||
<th scope="col" style="text-align: justify; vertical-align: middle; width: 254px;">
|
||||
Rappel : <br />Créer une alliance ne peut pas se faire seul. Une fois que vous aurez lancé la procédure, un lien vous sera donné. Pour finir la création, donnez ce liens à quatre personnes qui sont sans alliance.
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-14 22:48:12
|
||||
compiled from game/alliance_nm_accueil.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>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=search">
|
||||
<table width="355" height="194" border="0" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" align="center" valign="middle" scope="col">
|
||||
<p>Rechercher une alliance<br />
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=fonder">Fonder une alliance</a> † <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=signerform">Ratifier une alliance</a></p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="113" align="center" valign="middle">
|
||||
<select name="by" size="2" id="by">
|
||||
<option value="tag" selected="selected">Tag</option>
|
||||
<option value="nom">Nom</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="242" align="center" valign="middle">
|
||||
<p>Rechercher les alliances dont le nom/tag contiennent :<br /><input name="search" type="text" id="search" /></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" align="center" valign="middle">
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 22:55:42
|
||||
compiled from cms/secours.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div id="connexion" class="block">
|
||||
<div class="header">Connexion</div>
|
||||
<div class="corps">
|
||||
Sélectionnez votre serveur :<br /><br />
|
||||
<a href="http://battle.halo.fr/">Serveur n°1</a><br />
|
||||
<!--<a href="http://battle.halo.fr/">Serveur n°2</a><br />-->
|
||||
<br />
|
||||
<a href="http://beta.halobattle.free.fr/">Serveur de béta-test #1</a><br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="inscription" class="block"><span>Le serveur de base de données est indisponible</span> <p><em>Le serveur de base de données n'étant actuellement pas en mesure d'assurer la génération des pages web, ni le processus de connexion ou d'inscription, utilisez les liens du cadre ci-contre pour accèder à la page de connexion de secours de votre serveur.<br /><br />Veuillez nous excuser pour la gène occasionnée, nous faisons notre possible pour rétablir le site au plus vite.<br /><br /><i>Le Staff</i></em></p></div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-27 00:23:01
|
||||
compiled from admin/vip.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/vip.tpl', 19, false),array('modifier', 'escape', 'admin/vip.tpl', 21, false),array('modifier', 'nl2br', 'admin/vip.tpl', 21, false),)), $this); ?>
|
||||
<?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>Vérification des IP</h2>
|
||||
<table style="text-align: center; margin: auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Adresses IP</th>
|
||||
<th>Nom d'utilisateur</th>
|
||||
<th>Date & heure</th>
|
||||
<th>Traçage IP</th>
|
||||
<th>Commentaires</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['ips']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['ip']):
|
||||
?>
|
||||
<tr<?php if ($this->_tpl_vars['ip']['6']): ?> style="background-color: #<?php echo $this->_tpl_vars['ip']['6']; ?>
|
||||
;"<?php endif; ?>>
|
||||
<td><a href="?p=vip&ip=<?php echo $this->_tpl_vars['ip']['0']; ?>
|
||||
"><?php echo $this->_tpl_vars['ip']['0']; ?>
|
||||
</a></td>
|
||||
<td><a href="?p=vip&util=<?php echo $this->_tpl_vars['ip']['2']; ?>
|
||||
"><?php echo $this->_tpl_vars['ip']['3']; ?>
|
||||
(<?php echo $this->_tpl_vars['ip']['2']; ?>
|
||||
)</a></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ip']['4'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['ip']['1']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['ip']['5'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 17:20:15
|
||||
compiled from game/alliance_adm_header.tpl */ ?>
|
||||
<?php if ($this->_tpl_vars['access']['chat']): ?><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_chat">Administration du chat</a> - <?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['access']['membre']): ?><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres">Administration des membres et des candidatures</a> - <?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['access']['grades']): ?><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_grades">Administration des rangs</a> - <?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['access']['ecriture']): ?><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_ecrits">Administration de la présentation et de la page interne.</a> - <?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['access']['alliance']): ?><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_alliance">Administration globale (defcon, successeur ...)</a> - <?php endif; ?>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
">Retour</a>
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:04:47
|
||||
compiled from game/alliance_adm_grades.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/alliance_adm_grades.tpl', 22, false),array('modifier', 'nl2br', 'game/alliance_adm_grades.tpl', 23, false),)), $this); ?>
|
||||
<?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>Administration de l'alliance</h2>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance_adm_header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<br />
|
||||
<h2>Administration des grades</h2>
|
||||
<table style="text-align: center; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Description</th>
|
||||
<th>Gestion écritures</th>
|
||||
<th>Gestion chat</th>
|
||||
<th>Gestion membre</th>
|
||||
<th>Gestion grades</th>
|
||||
<th>Gestion alliance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['grades']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['grade']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_grades&i=<?php echo $this->_tpl_vars['grade']['id']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</a></td>
|
||||
<td><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['grade']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_ecriture']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_chat']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_membre']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_rang']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_admin']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_grades&a=add">Ajouter un rang</a><br /><br />
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,132 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 03:29:00
|
||||
compiled from game/header.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/header.tpl', 45, false),)), $this); ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Language" content="fr" />
|
||||
<title> ::Halo-Battle:: - <?php echo $this->_tpl_vars['titre']; ?>
|
||||
</title>
|
||||
<?php if ($this->_tpl_vars['race'] == 'covenant'): ?><link rel="stylesheet" href="templates/covenants.css" type="text/css" media="all" title="Covenants" /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['race'] == 'humain'): ?><link rel="stylesheet" href="templates/csnu.css" type="text/css" media="all" title="CSNU" /><?php endif; ?>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<script src="js/fonctions.js" type="text/javascript"></script>
|
||||
<script src="js/img_manques.js" type="text/javascript"></script>
|
||||
<script src="js/infos.js" type="text/javascript"></script>
|
||||
<?php echo $this->_tpl_vars['scripth']; ?>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="first(<?php echo $this->_tpl_vars['nbinfos']; ?>
|
||||
);">
|
||||
<div id="cornertop"></div>
|
||||
<div id="all">
|
||||
<div id="header">
|
||||
<div id="header_link"><span id="date"><?php echo $this->_tpl_vars['date']; ?>
|
||||
</span> | Vous jouez depuis <?php echo $this->_tpl_vars['tpsdejeu']; ?>
|
||||
| <a href="?p=version">Version <?php echo $this->_tpl_vars['version']; ?>
|
||||
</a></div><a href="<?php echo $this->_tpl_vars['link']['RSS']; ?>
|
||||
" id="rss">RSS :: s'abonner</a>
|
||||
<h1><a href="<?php echo $this->_tpl_vars['link']['self']; ?>
|
||||
" id="img"><span></span>Halo Battle</a></h1>
|
||||
<div id="buttons"><div><a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
">ACCUEIL</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['jeu']; ?>
|
||||
">LE JEU</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
">S'INSCRIRE</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
">FORUM</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['staff']; ?>
|
||||
">STAFF</a></div> <div><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
">F.A.Q.</a></div></div>
|
||||
<form action="#" method="post"><fieldset id="recherche"><input class="text" type="text" name="recherche" value="rechercher..." onfocus="this.value = this.value!='rechercher...'?this.value:''" onblur="this.value=this.value==''?'rechercher...':this.value" /><input value="OK" class="submit" type="submit" /><br /><a href="#">Recherche Avancée</a></fieldset></form>
|
||||
</div>
|
||||
<div id="annonce">
|
||||
<?php $_from = $this->_tpl_vars['infos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
|
||||
?>
|
||||
<div id="quadri<?php echo $this->_tpl_vars['key']; ?>
|
||||
" class="annonceleft"<?php if ($this->_tpl_vars['info']['color']): ?> style="color: <?php echo $this->_tpl_vars['info']['color']; ?>
|
||||
;"<?php endif; ?>><?php echo $this->_tpl_vars['info']['texte']; ?>
|
||||
</div>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<span id="annonceright"><?php echo $this->_tpl_vars['count']['humains']; ?>
|
||||
Marines et <?php echo $this->_tpl_vars['count']['covenants']; ?>
|
||||
Covenants se battent dans <ins><?php echo $this->_tpl_vars['count']['serveurs']; ?>
|
||||
galaxie<?php if ($this->_tpl_vars['count']['serveurs'] > 1): ?>s<?php endif; ?></ins></span>
|
||||
</div>
|
||||
<div>
|
||||
<div id="menu"><div class="menu_head"></div>
|
||||
<?php if ($this->_tpl_vars['page'] == 'admin'): ?> <?php if ($this->_tpl_vars['pagea'] == 'accueil'): ?><span>Accueil</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['accueil']; ?>
|
||||
">Accueil</a><?php endif; ?><div class="space"></div>
|
||||
<?php if ($this->_tpl_vars['pagea'] == 'vip'): ?><span>Vérifier IP</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['vip']; ?>
|
||||
">Vérifier IP</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'vflottes'): ?><span>Vérifier flottes</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['vflottes']; ?>
|
||||
">Vérifier flottes</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'vplanetes'): ?><span>Vérifier planètes</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['vplanetes']; ?>
|
||||
">Vérifier planètes</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'vjoueurs'): ?><span>Vérifier joueurs</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['vjoueurs']; ?>
|
||||
">Vérifier joueurs</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'valliances'): ?><span>Vérifier alliances</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['valliances']; ?>
|
||||
">Vérifier alliances</a><?php endif; ?><div class="space"></div>
|
||||
<?php if ($this->_tpl_vars['pagea'] == 'sancj'): ?><span>Sanctions joueur</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['sancj']; ?>
|
||||
">Sanctions joueur</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'sancp'): ?><span>Sanctions planète</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['sancp']; ?>
|
||||
">Sanctions planète</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'controle'): ?><span>Prendre le contrôle</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['controle']; ?>
|
||||
">Prendre le contrôle</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'sjoueurs'): ?><span>Supprimer joueurs</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['sjoueurs']; ?>
|
||||
">Supprimer joueurs</a><?php endif; ?><div class="space"></div>
|
||||
<?php else: ?> <?php if ($this->_tpl_vars['page'] == 'accueil'): ?><span>Accueil</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['accueil']; ?>
|
||||
">Accueil</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'batiments'): ?><span>Batiments</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
">Batiments</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'caserne'): ?><span>Caserne</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
">Caserne</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'chantierspatial'): ?><span>Chantier spatial</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
">Chantier spatial</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'chantierterrestre'): ?><span>Chantier terrestre</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
">Chantier terrestre</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'defenses'): ?><span>Défenses</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
">Défenses</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'laboratoire'): ?><span>Laboratoire</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
">Laboratoire</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'arbre'): ?><span>Arbre technologique</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
">Arbre technologique</a><?php endif; ?><div class="space"></div>
|
||||
<?php if ($this->_tpl_vars['page'] == 'ressources'): ?><span>Ressources</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
|
||||
">Ressources</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'gestion' || $this->_tpl_vars['page'] == 'rename'): ?><span>Gestion</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
">Gestion</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'flotte1' || $this->_tpl_vars['page'] == 'flotte2'): ?><span>Flottes</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
">Flottes</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'armee'): ?><span>Armée</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['armee']; ?>
|
||||
">Armée</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'carte'): ?><span>Carte spatiale</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
">Carte spatiale</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'options'): ?><span>Options</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
">Options</a><?php endif; ?><div class="space"></div>
|
||||
<?php if ($this->_tpl_vars['page'] == 'messagerie' || $this->_tpl_vars['page'] == 'envoyer'): ?><span>Messages et rapports</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
"><?php if ($this->_tpl_vars['alertMail']): ?><b>Messages et rapports (<?php echo $this->_tpl_vars['alertMail']; ?>
|
||||
)</b><?php else: ?>Messages et rapports<?php endif; ?></a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'alliance'): ?><span>Alliance</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
">Alliance</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'classement'): ?><span>Classement</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['classement']; ?>
|
||||
">Classement</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'chat'): ?><span>Chat</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['chat']; ?>
|
||||
" onclick="window.open(this.href);return false;">Chat</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'forums'): ?><span>Forums</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['forums']; ?>
|
||||
">Forums</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'bugs'): ?><span>Rapports de bug</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['bugs']; ?>
|
||||
">Rapports de bug</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'faq'): ?><span>F.A.Q.</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
">F.A.Q.</a><?php endif; ?> <a href="<?php echo $this->_tpl_vars['menu']['deconnexion']; ?>
|
||||
">Déconnexion</a><div class="space"></div>
|
||||
<?php endif; ?> <div class="menu_bt"></div></div>
|
||||
<?php if ($this->_tpl_vars['page'] != 'admin' && $this->_tpl_vars['page'] != 'messagerie' && $this->_tpl_vars['page'] != 'envoyer' && $this->_tpl_vars['page'] != 'bugs' && $this->_tpl_vars['page'] != 'carte' && $this->_tpl_vars['page'] != 'classement' && $this->_tpl_vars['page'] != 'options' && $this->_tpl_vars['page'] != 'simulation' && $this->_tpl_vars['page'] != 'vp'): ?>
|
||||
<div id="corps_top">
|
||||
<div class="border_top"></div>
|
||||
<img src="images/planetes/<?php echo $this->_tpl_vars['planete']['image']; ?>
|
||||
.jpg" width="70" height="70" alt="planète" />
|
||||
<div>Bonjour, <span><?php echo $this->_tpl_vars['user']['pseudo']; ?>
|
||||
.</span><br />Votre position actuelle:<br /><br /><form action="<?php echo $this->_tpl_vars['link']['changeplanete']; ?>
|
||||
" method="post"><fieldset><select onchange="this.form.submit();" name="Cplanete"><?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['plan']):
|
||||
?><option <?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planete']['id']): ?>selected="selected" <?php endif; ?>value="<?php echo $this->_tpl_vars['plan']['id']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
[<?php echo $this->_tpl_vars['plan']['galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['plan']['ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['plan']['position']; ?>
|
||||
]</option><?php endforeach; endif; unset($_from); ?></select><noscript><div><br /><input class="submit" type="submit" value="GO" /></div></noscript></fieldset></form></div>
|
||||
<div class="ressource"><span><?php echo $this->_tpl_vars['nomsressources']['3']; ?>
|
||||
</span><br /><?php if ($this->_tpl_vars['alertes']['4'] == true): ?><span class="lack"><?php endif; ?><?php echo $this->_tpl_vars['alertes']['3']; ?>
|
||||
<?php if ($this->_tpl_vars['alertes']['4']): ?></span><?php endif; ?></div>
|
||||
<div class="ressource"><span><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
|
||||
</span><br /><?php if ($this->_tpl_vars['alertes']['2'] == true): ?><span class="lack"><?php endif; ?><?php echo $this->_tpl_vars['planete']['hydrogeneS']; ?>
|
||||
<?php if ($this->_tpl_vars['alertes']['2']): ?></span><?php endif; ?></div>
|
||||
<div class="ressource"><span><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
|
||||
</span><br /><?php if ($this->_tpl_vars['alertes']['1'] == true): ?><span class="lack"><?php endif; ?><?php echo $this->_tpl_vars['planete']['cristalS']; ?>
|
||||
<?php if ($this->_tpl_vars['alertes']['1']): ?></span><?php endif; ?></div>
|
||||
<div class="ressource"><span><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
|
||||
</span><br /><?php if ($this->_tpl_vars['alertes']['0'] == true): ?><span class="lack"><?php endif; ?><?php echo $this->_tpl_vars['planete']['metalS']; ?>
|
||||
<?php if ($this->_tpl_vars['alertes']['0']): ?></span><?php endif; ?></div>
|
||||
<div class="border_bt"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['page'] != 'admin'): ?><div><?php echo $this->_tpl_vars['pub']; ?>
|
||||
</div><?php endif; ?>
|
||||
<div id="corps">
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 01:34:18
|
||||
compiled from game/flotte1.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/flotte1.tpl', 11, false),)), $this); ?>
|
||||
<?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>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']; ?>
|
||||
&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>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 04:01:20
|
||||
compiled from game/messagerie.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'game/messagerie.tpl', 9, false),)), $this); ?>
|
||||
<?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>Messages</h2>
|
||||
<?php echo $this->_tpl_vars['avertissement']; ?>
|
||||
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['envoie']; ?>
|
||||
">Ecrire un message</a></h3>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['messagerie']; ?>
|
||||
" method="post">
|
||||
<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['message']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><input class="button2" type="button" onclick="hide(this); return false;" /><input class="checkbox" type="checkbox" name="m<?php echo $this->_tpl_vars['message']['4']; ?>
|
||||
" value="<?php echo $this->_tpl_vars['message']['5']; ?>
|
||||
" /><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['message']['2']; ?>
|
||||
&o=<?php echo $this->_tpl_vars['message']['0']; ?>
|
||||
"><?php echo $this->_tpl_vars['message']['0']; ?>
|
||||
</a> de <?php echo $this->_tpl_vars['message']['2']; ?>
|
||||
à <?php echo $this->_tpl_vars['message']['1']; ?>
|
||||
</dt><dd><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['3'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<fieldset><input class="button" type="button" value="Tout sélectionner" onclick="checkboxes(true)" /> <input class="button" type="button" value="Tout déselectionner" onclick="checkboxes(false)" /><br /><br /><strong>Supprimer la sélection : </strong><input class="submit" type="submit" value="OK" /><br /><br /><input type="hidden" value="<?php echo $this->_tpl_vars['IM']; ?>
|
||||
" name="IM" /></fieldset>
|
||||
</form>
|
||||
<h2>Rapports</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['messagerie']; ?>
|
||||
" method="post">
|
||||
<?php $_from = $this->_tpl_vars['rapports']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['rapport']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><input class="button2" type="button" onclick="hide(this); return false;" /><input class="checkbox" type="checkbox" name="r<?php echo $this->_tpl_vars['rapport']['4']; ?>
|
||||
" value="<?php echo $this->_tpl_vars['rapport']['5']; ?>
|
||||
" /><?php echo $this->_tpl_vars['rapport']['0']; ?>
|
||||
à <?php echo $this->_tpl_vars['rapport']['1']; ?>
|
||||
</dt><dd><?php echo $this->_tpl_vars['rapport']['3']; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<fieldset><input class="button" type="button" value="Tout sélectionner" onclick="checkboxesr(true)" /> <input class="button" type="button" value="Tout déselectionner" onclick="checkboxesr(false)" /><br /><br /><strong>Supprimer la sélection : </strong><input class="submit" type="submit" value="OK" /><br /><br /><input type="hidden" value="<?php echo $this->_tpl_vars['IR']; ?>
|
||||
" name="IR" /></fieldset>
|
||||
</form>
|
||||
<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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-31 04:03:43
|
||||
compiled from game/version.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>Mises à jour</h2>
|
||||
<table><thead><tr><th>Versions</th><th>Détails</th></tr></thead><tbody>
|
||||
<?php $_from = $this->_tpl_vars['versions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['version']):
|
||||
?>
|
||||
<tr><td><?php echo $this->_tpl_vars['version']['numero']; ?>
|
||||
<br /><?php echo $this->_tpl_vars['version']['date']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['version']['description']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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);
|
||||
?>
|
||||
|
|
@ -75,6 +75,9 @@ if (isset($sess) && isset($sess->values['connected']) && $sess->values['connecte
|
|||
|
||||
$queryPlanete = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `id` = '$idPlan'");
|
||||
|
||||
$metal = $queryPlanete["metal"];
|
||||
$cristal = $queryPlanete["cristal"];
|
||||
$hydrogene = $queryPlanete["hydrogene"];
|
||||
$queryPlanete["metalS"] = separerNombres($queryPlanete["metal"]);
|
||||
$queryPlanete["cristalS"] = separerNombres($queryPlanete["cristal"]);
|
||||
$queryPlanete["hydrogeneS"] = separerNombres($queryPlanete["hydrogene"]);
|
||||
|
|
@ -201,6 +204,9 @@ if (isset($sess) && isset($sess->values['connected']) && $sess->values['connecte
|
|||
case 'faq':
|
||||
include('game/aide.php');
|
||||
break;
|
||||
case 'simulateur':
|
||||
include('game/simulateur.php');
|
||||
break;
|
||||
case 'deconnexion':
|
||||
include('game/logout.php');
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ window.onload = function(){
|
|||
}
|
||||
|
||||
function tempsFlotte() {
|
||||
document.getElementById('deblok').innerHTML = '...';
|
||||
new Ajax.Request(
|
||||
'ajax_flotte.php',
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ window.onload = function(){
|
|||
document.getElementById('description').innerHTML = '<b>Serveurs</b><br /><br /><p>Choisissez un serveur dans la liste.</p>';
|
||||
}
|
||||
document.getElementById('placement').onfocus = function(){
|
||||
document.getElementById('description').innerHTML = '<b>Placement préférentiel</b><br /><br /><p>Ce champ est facultatif.<br /><br />Si un de vos amis joue à Halo-Battle sur le serveur que vous avez sélectionné ci-dessus, vous pouvez demander d'être placé à côté de l'une de ses planètes.<br /><br />Sous réserve de disponibilité.</p>';
|
||||
document.getElementById('description').innerHTML = '<b>Placement préférentiel</b><br /><br /><p>Ce champ est facultatif.<br /><br />Si un de vos amis joue à Halo-Battle sur le serveur que vous avez sélectionné ci-dessus, vous pouvez demander d'être placé à côté de l'une de ses planètes en indiquant simplement son pseudo.<br /><br />Sous réserve de disponibilité.</p>';
|
||||
}
|
||||
document.getElementById('captcha').onfocus = function(){
|
||||
document.getElementById('description').innerHTML = '<b>Captcha</b><br /><br /><p>Pour s'assurer que vous êtes un humains et non pas un robot, nous vous demandons de bien vouloir recopier le texte situé contre cette case.<br /><br />Vous pouvez générer une autre chaîne en cliquant sur l'image<noscript> (requiert d'avoir JavaScript d'activé)</noscript>.<br /><br />Si vous êtes visuellement déficient et que vous ne pouvez pas voir le texte, <a href="mailto:staff@halo-battle.s-fr.com">contactez un administrateur</a>.</p>';
|
||||
|
|
|
|||
2
test.php
2
test.php
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
print 1252%2;
|
||||
exit;
|
||||
$input = array(0,0,0,0,0,0,0,0,'tour(s) à plasma','tour(s) ion','canon(s) Orbital','drone(s)','station(s) de defense');
|
||||
print_r($input); print '<br />';
|
||||
array_splice($input, 0, 8);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue