From 082973517b50069a38c97a6f9eb63ec74fd7e5a1 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 26 Mar 2019 12:23:15 -0600 Subject: [PATCH] Basic API, account table view, database --- .gitignore | 3 +- README.md | 75 ---------- api/actions/addaccount.php | 51 +++++++ api/actions/balance.php | 11 ++ api/actions/checkkey.php | 12 ++ api/actions/getkey.php | 50 +++++++ api/apisettings.php | 44 ++++++ api/functions.php | 1 + app.php | 2 +- database.mwb | Bin 0 -> 9742 bytes nbproject/project.xml | 2 +- pages.php | 18 ++- pages/accounts.php | 134 ++++++++++++++++++ static/css/accounts.css | 9 ++ static/css/datatables.min.css | 21 +++ static/css/tables.css | 120 ++++++++++++++++ static/img/logo.png | Bin 10466 -> 0 bytes static/img/logo.svg | 80 +---------- static/js/accounts.js | 34 +++++ static/js/datatables.min.js | 257 ++++++++++++++++++++++++++++++++++ 20 files changed, 766 insertions(+), 158 deletions(-) delete mode 100644 README.md create mode 100644 api/actions/addaccount.php create mode 100644 api/actions/balance.php create mode 100644 api/actions/checkkey.php create mode 100644 api/actions/getkey.php create mode 100644 database.mwb create mode 100644 pages/accounts.php create mode 100644 static/css/accounts.css create mode 100644 static/css/datatables.min.css create mode 100644 static/css/tables.css delete mode 100644 static/img/logo.png create mode 100644 static/js/accounts.js create mode 100644 static/js/datatables.min.js diff --git a/.gitignore b/.gitignore index 07fe371..207052b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ vendor settings.php nbproject/private -*.sync-conflict* \ No newline at end of file +*.sync-conflict* +/database.mwb.bak \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 07c89a7..0000000 --- a/README.md +++ /dev/null @@ -1,75 +0,0 @@ -Business App Template -===================== - -This is an empty (but fully functional) PHP application. It is designed to -integrate with AccountHub, an account management web interface. AccountHub manages -user credentials and account data, and is accessed by this app via [a simple API](http://docs.netsyms.com/docs/AccountHub/API%20Documentation/). - -[Codacy badge](https://www.codacy.com/app/Netsyms/BusinessAppTemplate?utm_source=github.com&utm_medium=referral&utm_content=Netsyms/BusinessAppTemplate&utm_campaign=Badge_Grade) - -Program Structure ------------------ - -### Folders -* api - An API framework. See api/apisettings.php below. -* api/actions - A place to put your API actions. -* langs - Translations and alert messages. - The language files that are loaded depends on the value of `LANGUAGE` in `settings.php`. - All .json files in a language folder are parsed and loaded into the dictionary (use via `$Strings->get('some key')`). -* lib - A good place to put helper functions that you don't want "in the way". All files that end with `.lib.php` are automatically loaded. -* pages - What it looks like. If you go into `pages.php` and define a page with the name `foo`, there should be a `foo.php` in here. - The app checks before loading, so it will give a friendly 404 error if it doesn't find your page. - Woe to you if you delete `home.php` or `404.php`, as those are assumed to exist for fallback behavior. -* static - CSS, JavaScript, fonts, images... -* vendor - If you don't know what this is about, or you don't have it, you need to read up on Composer. Right now. - -### Files -* settings.template.php - App configuration. Copy to `settings.php` and customize. Documented with inline comments. -* app.php - Handles the web part of the app. If you have problems with too many items on the navbar, change `$navbar_breakpoint`. - To change the navbar colors, find and edit `