From 6d8bf942db3f2846b9105b111f319491fb551722 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Fri, 26 Feb 2021 17:13:43 +0100 Subject: [PATCH] =?UTF-8?q?Affiche=20les=201000=20premi=C3=A8re=20plan?= =?UTF-8?q?=C3=A8tes=20dans=20la=20page=20d'admin,=20c'est=20donc=20plus?= =?UTF-8?q?=20simple=20de=20les=20trouver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/include/admin/planete.php | 4 ++++ onyx2/tpl/admin/print_choixP.tpl | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/onyx2/include/admin/planete.php b/onyx2/include/admin/planete.php index a31fd20..cbac82d 100644 --- a/onyx2/include/admin/planete.php +++ b/onyx2/include/admin/planete.php @@ -65,5 +65,9 @@ if (!empty($_GET['id']) && !empty($_GET['key']) && $_GET['key'] == 'hash_planete header('Location: '.$VAR["menu"]["vplanetes"].'&id='.$req['id']); exit; } else { + $bdd = new BDD(); + $req = $bdd->query("SELECT planete.id, nom_planete, pseudo, galaxie, ss, position FROM planete LEFT JOIN user ON (id_user=user.id) LIMIT 1000;"); + $bdd->deconnexion(); + $template->assign('planetes', $req); $pagea = 'print_choixP'; } diff --git a/onyx2/tpl/admin/print_choixP.tpl b/onyx2/tpl/admin/print_choixP.tpl index b3c6605..0089143 100644 --- a/onyx2/tpl/admin/print_choixP.tpl +++ b/onyx2/tpl/admin/print_choixP.tpl @@ -37,4 +37,22 @@ -{include file='game/footer.tpl'} \ No newline at end of file +
+

Liste des planètes existantes

+ + + + + + + + {foreach from=$planetes item=planete} + + + + + + + {/foreach} +
PlanèteJoueurPosition
{$planete.nom_planete}{$planete.pseudo}{$planete.galaxie}:{$planete.ss}:{$planete.position}
+{include file='game/footer.tpl'}