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