From 694f876bc8655bc00f3a4ae3d650e54d947ea42a Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 20 Sep 2018 01:07:35 -0400 Subject: Add start of single-pad view --- app/index.php | 15 +++++++++++++++ app/model/pad.php | 21 +++++++++++++++++++++ app/view/datalsts.php | 37 +++++++++++++++++++++++++++++++++++++ app/view/pad.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ app/view/stdpage.php | 7 +++++++ 5 files changed, 130 insertions(+) create mode 100644 app/model/pad.php create mode 100644 app/view/pad.php (limited to 'app') diff --git a/app/index.php b/app/index.php index d20aaff..182ab1b 100644 --- a/app/index.php +++ b/app/index.php @@ -69,6 +69,21 @@ function main(array $argv) : void setPageName("Pads"); require "view/pads.php"; break; + + default: + /* view object */ + if (table::isGUID($argv[0])) + { + switch (obj::typeOf($argv[0])) + { + case "pad": + $obj = new pad($argv[0]); + setPageObj($obj); + setPageName($obj->name); + require "view/pad.php"; + break; + } + } } } diff --git a/app/model/pad.php b/app/model/pad.php new file mode 100644 index 0000000..d29b1f6 --- /dev/null +++ b/app/model/pad.php @@ -0,0 +1,21 @@ +getStages(); +$stages = array_reverse($stages); + +?> diff --git a/app/view/datalsts.php b/app/view/datalsts.php index 16df7d7..b0564b3 100644 --- a/app/view/datalsts.php +++ b/app/view/datalsts.php @@ -15,6 +15,8 @@ namespace datalsts; require_once "class/obj.class.php"; +require_once "class/stage.class.php"; +require_once "class/issue.class.php"; ?> @@ -111,3 +113,38 @@ require_once "class/obj.class.php"; + + +
+

name?>

+ + + getIssues_ordByDueByNumb() as $i) { ?> + + +
+
+ + + + + + + guid?> (#numb?>) + name?> + TODO HEADS + + +
+ + + +
+ + + + diff --git a/app/view/pad.php b/app/view/pad.php new file mode 100644 index 0000000..82ee84f --- /dev/null +++ b/app/view/pad.php @@ -0,0 +1,50 @@ + + + + + + + + + + + + + +
+
+
+
+

+ + name?> +

+
+
+
+ + + + +
+ + + + diff --git a/app/view/stdpage.php b/app/view/stdpage.php index 064f6e7..38674ea 100644 --- a/app/view/stdpage.php +++ b/app/view/stdpage.php @@ -147,6 +147,13 @@ require_once "view/settings.php"; + + -- cgit v1.2.3