From 5c25685b2c34f4cce5f37e7d3a6a4cfe35916390 Mon Sep 17 00:00:00 2001
From: ry1015
Date: Fri, 14 Nov 2014 15:41:00 -0800
Subject: [PATCH] Admin Page and more
---
f8l_exception/Fifteen Functions.txt | 49 +++++++++++++++++++
f8l_exception/admin.php | 45 +++++++++++++++++
f8l_exception/admin_home.php | 44 +++++++++++++++++
f8l_exception/change_password.php | 13 ++---
f8l_exception/deposit.php | 8 ++-
f8l_exception/includes/inc_header.php | 20 +++++++-
.../includes/inc_loggedin_text_menu.php | 4 +-
f8l_exception/index.php | 18 +------
f8l_exception/loan_payment.php | 9 ++--
f8l_exception/login.php | 13 +++--
f8l_exception/logout.php | 3 --
f8l_exception/my_accounts.php | 9 ++--
f8l_exception/new_account.php | 8 ++-
f8l_exception/new_customer.php | 14 +++---
f8l_exception/new_loan.php | 9 ++--
f8l_exception/reset_password.php | 8 ++-
f8l_exception/styles.css | 14 ++++++
f8l_exception/transfer.php | 8 ++-
f8l_exception/view_statement.php | 8 ++-
f8l_exception/withdraw.php | 8 ++-
20 files changed, 223 insertions(+), 89 deletions(-)
create mode 100644 f8l_exception/Fifteen Functions.txt
create mode 100644 f8l_exception/admin.php
create mode 100644 f8l_exception/admin_home.php
create mode 100644 f8l_exception/styles.css
diff --git a/f8l_exception/Fifteen Functions.txt b/f8l_exception/Fifteen Functions.txt
new file mode 100644
index 0000000..b6ec0f5
--- /dev/null
+++ b/f8l_exception/Fifteen Functions.txt
@@ -0,0 +1,49 @@
+F8L Exception -- 15 Functions:
+
+1. Add New User
+ Add New Account (checking/savings)
+ Add New Loan
+ Add New CreditCard
+
+2. Change Password
+ Reset Password
+
+3. View Account Statement (checking/savings)
+
+4. Overdraft Fee (Trigger)
+ charge $25 fee if balance dips below zero
+
+5. ATM Fee (Trigger)
+ charge $3 fee every time function ATMwithdraw is used
+
+6. Late Payment (Trigger)
+ charge $10 fee for every late payment
+
+7. Low Balance (Admin - Stored Procedure)
+ generate a list of users with accounts that have balances <$20
+
+8. Daily Login (Admin - Stored Procedure)
+ generate a list of users who logged in today
+
+9. Loyalty Program (Admin - Stored Procedure)
+ generate a list of users with more than $10,000 combined balance
+ and have been customer for over 1 year
+
+10. Annual Credit Card Fee (Trigger)
+ charge a $20 per year fee to all credit card accounts
+
+11. No cc w/ $> (Admin)
+ examines all accounts.
+ if account is greater than $5,000, offer a credit card.
+
+12. Archive Transaction table (Stored Procedure)
+ manually run a procedure that archives transactions older than 7 days
+
+13. Delete Inactive Checking/Savings Accounts (Admin)
+ delete all Ch/Sa accounts that have $0 balance and have not been accessed in 60 days
+ this delete will cascade through the Transactions table
+
+14. Increase Credit Card Limit (Admin)
+
+15. Daily Transactions Tally (Admin)
+ show the sum of all deposits and withdraws for one day
\ No newline at end of file
diff --git a/f8l_exception/admin.php b/f8l_exception/admin.php
new file mode 100644
index 0000000..d0420c5
--- /dev/null
+++ b/f8l_exception/admin.php
@@ -0,0 +1,45 @@
+
+
+
+
+
+ F8L Exception Online Bank | Admin Login
+
+
+
+
+
+
Admin Login
+
+_END;
+
+global $errorMessage;
+$errorCount = 0;
+$errorMessage = $userName = $password = "";
+
+if (isset($_POST['Submit'])){
+ $userName = validateInput($_POST['userName'],"User Name");
+ $password = validateInput($_POST['password'],"Password");
+
+ //Check if there is an error on userName and/or password. If not, go to admin home page.
+ if ($errorMessage != ""){
+ header("Location: http://mywebsite.localdomain/cs157a/cs157AOnlineBanking/f8l_exception/admin_home.php");
+ exit();
+ }
+}
+
+echo <<<_END
+
+_END;
+?>
\ No newline at end of file
diff --git a/f8l_exception/admin_home.php b/f8l_exception/admin_home.php
new file mode 100644
index 0000000..672390c
--- /dev/null
+++ b/f8l_exception/admin_home.php
@@ -0,0 +1,44 @@
+
+
+
+
+
+ F8L Exception Online Bank | Admin Home
+
+
+
+
+