diff options
author | Malf Furious <m@lfurio.us> | 2018-07-19 02:45:43 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-07-19 02:45:43 -0400 |
commit | 36a565c0713a68c758768190d3d336873611775b (patch) | |
tree | 980e599d7fc3a932ac93e2d8b18843fddf6ee201 /app | |
parent | ddf56f3ccf8130d6c368fb50c9b58c19032eaeb7 (diff) | |
download | scrott-36a565c0713a68c758768190d3d336873611775b.tar.gz scrott-36a565c0713a68c758768190d3d336873611775b.zip |
Add basic dashboard page
Diffstat (limited to 'app')
-rw-r--r-- | app/index.php | 7 | ||||
-rw-r--r-- | app/view/dashboard.php | 40 |
2 files changed, 47 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php index 8547671..177cb1b 100644 --- a/app/index.php +++ b/app/index.php @@ -42,6 +42,13 @@ function main(array $argv) : void return; } + /* no arguments? display dashboard */ + if (count($argv) == 0) + { + require "view/dashboard.php"; + return; + } + /* TODO */ echo "logged in"; } diff --git a/app/view/dashboard.php b/app/view/dashboard.php new file mode 100644 index 0000000..686eae9 --- /dev/null +++ b/app/view/dashboard.php @@ -0,0 +1,40 @@ +<?php + +/* + * SCROTT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * For more information, please refer to UNLICENSE + */ + +require_once "view/stdpage.php"; + +?> + +<!DOCTYPE html> + +<html lang="en"> + <head> + <?=stdpage\head( "Dashboard" )?> + </head> + + <body> + <?=stdpage\top()?> + <?=stdpage\nav()?> + + <div class="container"> + <div class="jumbotron"> + <img src="static/img/null.jpg" alt="null" class="img-circle" height="100" /><br /> + Welcome to the dashboard. There is no content yet.<br /> + <a href="<?=ar()?>/logout">Logout</a><br /> + </div> + </div> + + <?=stdpage\foot()?> + </body> +</html> |