From 83be80e89dbbf22a18023fa8443fcab975358c3f Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 25 Sep 2018 17:58:58 -0400 Subject: group: Add group page view --- app/index.php | 9 +++++++++ app/model/group.php | 20 +++++++++++++++++++ app/view/group.php | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 app/model/group.php create mode 100644 app/view/group.php diff --git a/app/index.php b/app/index.php index 13b6779..44c2de9 100644 --- a/app/index.php +++ b/app/index.php @@ -15,6 +15,8 @@ require_once "class/database.class.php"; require_once "class/settings.class.php"; require_once "class/user.class.php"; +require_once "class/group.class.php"; +require_once "class/pad.class.php"; /* * This file is the entry-point to the Scrott application. main() will @@ -98,6 +100,13 @@ function main(array $argv) : void /* setup page */ switch (obj::typeOf($argv[0])) { + case "group": + $obj = new group($argv[0]); + setPageObj($obj); + setPageName($obj->name); + require "view/group.php"; + break; + case "pad": $obj = new pad($argv[0]); setPageObj($obj); diff --git a/app/model/group.php b/app/model/group.php new file mode 100644 index 0000000..7f3b2bc --- /dev/null +++ b/app/model/group.php @@ -0,0 +1,20 @@ +getPads_ordByOwnByName(); + +?> diff --git a/app/view/group.php b/app/view/group.php new file mode 100644 index 0000000..eba9e0a --- /dev/null +++ b/app/view/group.php @@ -0,0 +1,57 @@ + + + + + + + + + + + + + +
+
+
+
+

+ + name?> +

+
+
+
+ + +
+

No pads in name?>

+
+ + + + + +
+ + + + -- cgit v1.2.3