From 6cf9b6569de94dce904b73da915ea5c694874386 Mon Sep 17 00:00:00 2001 From: machine <28401480+machine62@users.noreply.github.com> Date: Fri, 26 Oct 2018 07:01:42 +0200 Subject: [PATCH] poursuite mise en palce Structure pages de vue add en cours --- model/oversight.php | 2 +- oversight.php | 35 ++++++++++++++++--- view/add.php | 83 +++++++++++++++++++++++++++++++++++++++++++++ view/header.php | 5 +-- view/list.php | 3 ++ view/menu.php | 23 +++++++++++++ 6 files changed, 143 insertions(+), 8 deletions(-) create mode 100644 view/add.php create mode 100644 view/list.php create mode 100644 view/menu.php diff --git a/model/oversight.php b/model/oversight.php index ee72e13..1e48c8c 100644 --- a/model/oversight.php +++ b/model/oversight.php @@ -11,7 +11,7 @@ function getPlayer() while ($tPlayer = $db->sql_fetch_row($result)) { - $Tretour[$tPlayer["id_player"]] = array($tPlayer["id_player"],$tPlayer["name_player"],$tPlayer["status"]); + $Tretour[$tPlayer["id_player"]] = array("id_player" => $tPlayer["id_player"],"name_player"=>$tPlayer["name_player"],"status"=>$tPlayer["status"]); } return $Tretour; diff --git a/oversight.php b/oversight.php index 6edaee1..840259e 100644 --- a/oversight.php +++ b/oversight.php @@ -1,13 +1,38 @@ "Liste", "url" => "list" ); +$data["menu"][]=array("nom" => "Mise en surveillance", "url" => "add"); +$data["players"] = getPlayer(); -include_once(FOLDER_VIEW."header.php"); -var_dump(getPlayer()); +// vue par defaut +switch ($pub_page) { + case "list": + $data["menuactif"]="list"; + include_once(FOLDER_VIEW . "header.php"); + include_once(FOLDER_VIEW . "menu.php"); + include_once(FOLDER_VIEW . "list.php"); + include_once(FOLDER_VIEW . "footer.php"); + break; + case "add": + $data["menuactif"]="add"; + include_once(FOLDER_VIEW . "header.php"); + include_once(FOLDER_VIEW . "menu.php"); + include_once(FOLDER_VIEW . "add.php"); + include_once(FOLDER_VIEW . "footer.php"); + break; + default: + $data["menuactif"]="list"; + include_once(FOLDER_VIEW . "header.php"); + include_once(FOLDER_VIEW . "menu.php"); + include_once(FOLDER_VIEW . "list.php"); + include_once(FOLDER_VIEW . "footer.php"); + break; +} - - -include_once(FOLDER_VIEW."footer.php"); \ No newline at end of file diff --git a/view/add.php b/view/add.php new file mode 100644 index 0000000..aaa4f4f --- /dev/null +++ b/view/add.php @@ -0,0 +1,83 @@ + + +
+ Filtre : + | ++ None + | ++ a + | ++ I + + | + v + + | + vI + + | + vIb + + | + b + + |
---|
+ Nom + | ++ status + | ++ + | +
---|---|---|
+ + | ++ + | ++ Mise en Surveillance + | +
Attention, le mod superapix est requis
+Attention, le mod superapix est requis
+ + | + ++ "> + + + | + + +
---|