From a43a50190fe20cb3b41498eef4a4b7c34b197c8f Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 26 Jun 2017 00:09:37 -0400 Subject: Add basic form control templates --- app/view/formctrl.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/view/formctrl.php diff --git a/app/view/formctrl.php b/app/view/formctrl.php new file mode 100644 index 0000000..deac491 --- /dev/null +++ b/app/view/formctrl.php @@ -0,0 +1,32 @@ + + + +
+ + /> +
+ + + +
+ + /> +
+ -- cgit v1.2.3 From b5b8c3b6d23871a289b4184d77a8bfc1608b80aa Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 26 Jun 2017 02:08:08 -0400 Subject: Add page markup for database setup --- app/view/dbconfig.php | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 app/view/dbconfig.php diff --git a/app/view/dbconfig.php b/app/view/dbconfig.php new file mode 100644 index 0000000..2cfd0f1 --- /dev/null +++ b/app/view/dbconfig.php @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + +
+
+

+     +     +     +     +     +     +

+ +

Welcome to Scrott!

+
+ +

You're seeing this page because the file "dbconfig.php" is missing.

+

Please fill out the form below to configure Scrott to use your database.

+
+ +

This form will save your database parameters to the configuration file.
+ Scrott needs this information before it can begin working!

+ +
+ It is presumed that you are the administrator for this Scrott install.
+ There is a security risk involved with exposing this page to the public! +
+ +
+
+ +
+
+
+
+ + + + + + + +
+
+
+
+ +
+
+
+
+ + + + -- cgit v1.2.3 From c8d6725f2dfb378c744c569df1b9981623808c87 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 27 Jun 2017 01:26:33 -0400 Subject: Reformat view helper modules To limit whitespace being piped to the client, remove empty lines of free HTML between PHP functions defined in view files. To maintain readability, this spacing is added back at the top and bottom of each PHP function. --- app/view/formctrl.php | 5 ++++- app/view/stdpage.php | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/view/formctrl.php b/app/view/formctrl.php index deac491..ee0243f 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -18,15 +18,18 @@ namespace formctrl; +
/>
- + +
/>
+ diff --git a/app/view/stdpage.php b/app/view/stdpage.php index 157dc1b..4bdc0c5 100644 --- a/app/view/stdpage.php +++ b/app/view/stdpage.php @@ -17,7 +17,6 @@ namespace stdpage; require_once "class/globals.php"; ?> -