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 @@ + + +

AJOUT

+ +
+ + +
+
+ + + + + + + + +
+ Filtre : + + None + + a + + I + + + v + + + vI + + + vIb + + + b + +
+ +
+ + + + + + + + + + status_"> + + + + + + + + +
+ Nom + + status + + +
+ + + + + Mise en Surveillance +
+ diff --git a/view/header.php b/view/header.php index 9579f66..44c5596 100644 --- a/view/header.php +++ b/view/header.php @@ -1,11 +1,12 @@ -

Oversight

+

-

Attention, le mod superapix est requis

+

Attention, le mod superapix est requis

diff --git a/view/list.php b/view/list.php new file mode 100644 index 0000000..6484f96 --- /dev/null +++ b/view/list.php @@ -0,0 +1,3 @@ + +

defaut : liste

\ No newline at end of file diff --git a/view/menu.php b/view/menu.php new file mode 100644 index 0000000..87febc7 --- /dev/null +++ b/view/menu.php @@ -0,0 +1,23 @@ + + + + + + + + + + + + + +
+ + + "> + + +
\ No newline at end of file