From 0d53041fc67e13fc53cca0c993ec1a7a31a5a16e Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 15 Jan 2017 05:57:19 -0500 Subject: Reorganize examples/ directory --- examples/view/auth/default.view.php | 127 ++++++++ examples/view/common/foot.view.php | 19 ++ examples/view/common/group.setting.modal.view.php | 96 ++++++ examples/view/common/head.view.php | 26 ++ examples/view/common/newgroup.modal.view.php | 49 +++ .../view/common/ownership.setting.modal.view.php | 35 +++ .../view/common/permissions.setting.modal.view.php | 82 +++++ examples/view/common/setting.modal.view.php | 346 +++++++++++++++++++++ examples/view/common/topp.view.php | 83 +++++ examples/view/dashboard/default.view.php | 27 ++ examples/view/deleteacct/default.view.php | 51 +++ examples/view/except/default.view.php | 47 +++ examples/view/master/foot.view.php | 29 ++ examples/view/master/head.view.php | 23 ++ examples/view/master/topp.view.php | 62 ++++ examples/view/obj/group.view.php | 43 +++ examples/view/sysconf/default.view.php | 138 ++++++++ examples/view/sysconf/group.modal.view.php | 49 +++ examples/view/sysconf/issue.modal.view.php | 52 ++++ examples/view/sysconf/message.modal.view.php | 55 ++++ examples/view/sysconf/pad.modal.view.php | 68 ++++ examples/view/sysconf/stage.modal.view.php | 52 ++++ examples/view/sysconf/user.modal.view.php | 48 +++ 23 files changed, 1607 insertions(+) create mode 100644 examples/view/auth/default.view.php create mode 100644 examples/view/common/foot.view.php create mode 100644 examples/view/common/group.setting.modal.view.php create mode 100644 examples/view/common/head.view.php create mode 100644 examples/view/common/newgroup.modal.view.php create mode 100644 examples/view/common/ownership.setting.modal.view.php create mode 100644 examples/view/common/permissions.setting.modal.view.php create mode 100644 examples/view/common/setting.modal.view.php create mode 100644 examples/view/common/topp.view.php create mode 100644 examples/view/dashboard/default.view.php create mode 100644 examples/view/deleteacct/default.view.php create mode 100644 examples/view/except/default.view.php create mode 100644 examples/view/master/foot.view.php create mode 100644 examples/view/master/head.view.php create mode 100644 examples/view/master/topp.view.php create mode 100644 examples/view/obj/group.view.php create mode 100644 examples/view/sysconf/default.view.php create mode 100644 examples/view/sysconf/group.modal.view.php create mode 100644 examples/view/sysconf/issue.modal.view.php create mode 100644 examples/view/sysconf/message.modal.view.php create mode 100644 examples/view/sysconf/pad.modal.view.php create mode 100644 examples/view/sysconf/stage.modal.view.php create mode 100644 examples/view/sysconf/user.modal.view.php (limited to 'examples/view') diff --git a/examples/view/auth/default.view.php b/examples/view/auth/default.view.php new file mode 100644 index 0000000..9d4c9b4 --- /dev/null +++ b/examples/view/auth/default.view.php @@ -0,0 +1,127 @@ + + + + + + + + Scrott - Not logged in + + + + + +
+ noaccounts)) { ?> +
+

Almost there....

+

Scrott's configuration is working, but no user accounts exist.
Use the form below to signup as an admin.

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

Login

+ +
+ + +
+ +
+ + +
+ +
+ tabSwap) { ?> + + Signup + + + + +
+
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+ +

Signup for Scrott

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ tabSwap) { ?> + + Cancel + + + + +
+
+
+
+
+ +
+
+
+
+
+ + + + diff --git a/examples/view/common/foot.view.php b/examples/view/common/foot.view.php new file mode 100644 index 0000000..977ac04 --- /dev/null +++ b/examples/view/common/foot.view.php @@ -0,0 +1,19 @@ + + + diff --git a/examples/view/common/group.setting.modal.view.php b/examples/view/common/group.setting.modal.view.php new file mode 100644 index 0000000..d0e11ca --- /dev/null +++ b/examples/view/common/group.setting.modal.view.php @@ -0,0 +1,96 @@ + + + + +
+

 

+ +
+ + + +
+
+
+ + group->canModify($mod->getCurrentUser()) ? "" : "disabled")?> /> +
+
+ +
+ <?=$mod->group->name?> + + group->canModify($mod->getCurrentUser())) { ?> +
+
+ +
+ + +
+
+ +
+
+ + +
+
+ + group); ?> + + group->canModify($mod->getCurrentUser())) { ?> +

 

+ + +
+ +

 

+

 

+ +
+ group->canModifyMembers($mod->getCurrentUser())) { ?> + + + + group->isOwner($mod->getCurrentUser())) { ?> + + + + +
+ +

 

+
diff --git a/examples/view/common/head.view.php b/examples/view/common/head.view.php new file mode 100644 index 0000000..76880a6 --- /dev/null +++ b/examples/view/common/head.view.php @@ -0,0 +1,26 @@ + + + + + diff --git a/examples/view/common/newgroup.modal.view.php b/examples/view/common/newgroup.modal.view.php new file mode 100644 index 0000000..3dd631c --- /dev/null +++ b/examples/view/common/newgroup.modal.view.php @@ -0,0 +1,49 @@ + + + diff --git a/examples/view/common/ownership.setting.modal.view.php b/examples/view/common/ownership.setting.modal.view.php new file mode 100644 index 0000000..3f7c382 --- /dev/null +++ b/examples/view/common/ownership.setting.modal.view.php @@ -0,0 +1,35 @@ + + + + isOwner($mod->getCurrentUser())) { ?> + +
+ +
+ +
+
+ + +
+
+ + diff --git a/examples/view/common/permissions.setting.modal.view.php b/examples/view/common/permissions.setting.modal.view.php new file mode 100644 index 0000000..55e4157 --- /dev/null +++ b/examples/view/common/permissions.setting.modal.view.php @@ -0,0 +1,82 @@ + + + + canModifyPermissions($mod->getCurrentUser())) { ?> + +
+
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
+ + diff --git a/examples/view/common/setting.modal.view.php b/examples/view/common/setting.modal.view.php new file mode 100644 index 0000000..2217805 --- /dev/null +++ b/examples/view/common/setting.modal.view.php @@ -0,0 +1,346 @@ + + + diff --git a/examples/view/common/topp.view.php b/examples/view/common/topp.view.php new file mode 100644 index 0000000..d9e0df0 --- /dev/null +++ b/examples/view/common/topp.view.php @@ -0,0 +1,83 @@ + + + + +getCurrentUser()) { ?> + + + + + diff --git a/examples/view/dashboard/default.view.php b/examples/view/dashboard/default.view.php new file mode 100644 index 0000000..caf78da --- /dev/null +++ b/examples/view/dashboard/default.view.php @@ -0,0 +1,27 @@ + + + + + + + + Scrott - Dashboard + + + + + + + diff --git a/examples/view/deleteacct/default.view.php b/examples/view/deleteacct/default.view.php new file mode 100644 index 0000000..852a37e --- /dev/null +++ b/examples/view/deleteacct/default.view.php @@ -0,0 +1,51 @@ + + + + + + + + Scrott - Delete user account + + + + + +
+
+
Warning: Deleting your user account!
+ +
+
+ +

Are you sure?!

+

Please confirm you want to delete your Scrott account. Type your current password in the box below and click the confirm button

+ +
+ + +
+ + +
+
+
+
+ + + + diff --git a/examples/view/except/default.view.php b/examples/view/except/default.view.php new file mode 100644 index 0000000..01cf123 --- /dev/null +++ b/examples/view/except/default.view.php @@ -0,0 +1,47 @@ + + + + + + + + Scrott - Application Exception + + + + + + + +
+
+

Scrott derped

+
System internals reported this:
+ +
+

message?>

+
+ + + Go to Scrott Dashboard + +
+
+ + + + diff --git a/examples/view/master/foot.view.php b/examples/view/master/foot.view.php new file mode 100644 index 0000000..6279b05 --- /dev/null +++ b/examples/view/master/foot.view.php @@ -0,0 +1,29 @@ + + + + + + +isError() || $mod->isWarning() || $mod->isNotice()) { ?> + + diff --git a/examples/view/master/head.view.php b/examples/view/master/head.view.php new file mode 100644 index 0000000..3e4e110 --- /dev/null +++ b/examples/view/master/head.view.php @@ -0,0 +1,23 @@ + + + + + + + diff --git a/examples/view/master/topp.view.php b/examples/view/master/topp.view.php new file mode 100644 index 0000000..9a0b0fe --- /dev/null +++ b/examples/view/master/topp.view.php @@ -0,0 +1,62 @@ + + +isError() || $mod->isWarning() || $mod->isNotice()) { ?> + + diff --git a/examples/view/obj/group.view.php b/examples/view/obj/group.view.php new file mode 100644 index 0000000..dde4df1 --- /dev/null +++ b/examples/view/obj/group.view.php @@ -0,0 +1,43 @@ + + + + + + + + Scrott - <?=$mod->group->name?> + + + + + +
+
+

group->name?>

+ <?=$mod->owner->getDisplayName()?> + + members)) { ?> + + + + members as $member) { ?> + <?=$member->getDisplayName()?> + +
+
+ + + + diff --git a/examples/view/sysconf/default.view.php b/examples/view/sysconf/default.view.php new file mode 100644 index 0000000..90e5441 --- /dev/null +++ b/examples/view/sysconf/default.view.php @@ -0,0 +1,138 @@ + + + + + + + + Scrott - System-level configuration missing + + + + + + + + + + + + + + +
+
+

+     +     +     +     +     + +

+ +

Welcome to Scrott!

+
+ +

You're seeing this page because the file "scrott.conf.php" is missing.
Please fill out the form below to create a config automatically!

+

Click the icons above to learn more about core Scrott features and constructs!

+
+ +

This form will initialize Scrott's system-level configuration.
These are things the app needs before it can begin functioning at all!

+
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!
+ +
+
+ +
+
+
+
+ + Database Connection +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + Application Installation +
+ + +
Detected from location of files in web document root
+
+ + Settings +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + +
+
+
+
+ +
+
+
+
+ + + + diff --git a/examples/view/sysconf/group.modal.view.php b/examples/view/sysconf/group.modal.view.php new file mode 100644 index 0000000..c0641d9 --- /dev/null +++ b/examples/view/sysconf/group.modal.view.php @@ -0,0 +1,49 @@ + + + diff --git a/examples/view/sysconf/issue.modal.view.php b/examples/view/sysconf/issue.modal.view.php new file mode 100644 index 0000000..694dd47 --- /dev/null +++ b/examples/view/sysconf/issue.modal.view.php @@ -0,0 +1,52 @@ + + + diff --git a/examples/view/sysconf/message.modal.view.php b/examples/view/sysconf/message.modal.view.php new file mode 100644 index 0000000..14cca2d --- /dev/null +++ b/examples/view/sysconf/message.modal.view.php @@ -0,0 +1,55 @@ + + + diff --git a/examples/view/sysconf/pad.modal.view.php b/examples/view/sysconf/pad.modal.view.php new file mode 100644 index 0000000..2fbf26b --- /dev/null +++ b/examples/view/sysconf/pad.modal.view.php @@ -0,0 +1,68 @@ + + + diff --git a/examples/view/sysconf/stage.modal.view.php b/examples/view/sysconf/stage.modal.view.php new file mode 100644 index 0000000..11e517f --- /dev/null +++ b/examples/view/sysconf/stage.modal.view.php @@ -0,0 +1,52 @@ + + + diff --git a/examples/view/sysconf/user.modal.view.php b/examples/view/sysconf/user.modal.view.php new file mode 100644 index 0000000..034dc04 --- /dev/null +++ b/examples/view/sysconf/user.modal.view.php @@ -0,0 +1,48 @@ + + + -- cgit v1.2.3