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
+
+
+
+
+ Admin Home
+
+_END;
+
+echo <<<_END
+
+_END;
+
+if (isset($_POST['view'])){
+ if ($_POST['view'] == 'lowBalance'){
+ echo "low balance!";
+ } elseif ($_POST['view'] == 'increaseLimit'){
+ echo "increase limit!";
+ } elseif ($_POST['view'] == 'offerCredit'){
+ echo "offer a credit card!";
+ }
+}
+
+function viewLowBalance(){
+
+}
+?>
diff --git a/f8l_exception/change_password.php b/f8l_exception/change_password.php
index 5463a47..3d15bde 100644
--- a/f8l_exception/change_password.php
+++ b/f8l_exception/change_password.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | Change Password
-
- Change Password
+
+
-
+
+ Change Password
F8L Exception Online Bank | Deposit
- Deposit
+
-
+
+ Deposit
";
}
}
-include 'includes/inc_text_menu.php';
?>
diff --git a/f8l_exception/includes/inc_header.php b/f8l_exception/includes/inc_header.php
index 97bae72..81d628c 100644
--- a/f8l_exception/includes/inc_header.php
+++ b/f8l_exception/includes/inc_header.php
@@ -1 +1,19 @@
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/f8l_exception/includes/inc_loggedin_text_menu.php b/f8l_exception/includes/inc_loggedin_text_menu.php
index fa8bfca..ae21746 100644
--- a/f8l_exception/includes/inc_loggedin_text_menu.php
+++ b/f8l_exception/includes/inc_loggedin_text_menu.php
@@ -6,10 +6,10 @@
My Accounts |
Deposit |
Withdraw |
-Transfer |
+Transfer |
View Statement
New Loan |
-New Account |
+New Account |
Make Loan Payment
\ No newline at end of file
diff --git a/f8l_exception/index.php b/f8l_exception/index.php
index e67c1cf..8e375bd 100644
--- a/f8l_exception/index.php
+++ b/f8l_exception/index.php
@@ -1,5 +1,5 @@
+//session_start(); ?>
-
-
Welcome to F8L Exception Online Bank!
diff --git a/f8l_exception/loan_payment.php b/f8l_exception/loan_payment.php
index 840b96e..9271253 100644
--- a/f8l_exception/loan_payment.php
+++ b/f8l_exception/loan_payment.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | Make a Loan Payment
- Make a Loan Payment -- Under construction
+
-
+
+ Make a Loan Payment -- Under construction
" . $First . "\nyour account has been created. Welcome to PVault!. \n";
- include 'includes/inc_text_menu.php';
}
?>
diff --git a/f8l_exception/login.php b/f8l_exception/login.php
index e9117fe..17ac8f7 100644
--- a/f8l_exception/login.php
+++ b/f8l_exception/login.php
@@ -1,5 +1,5 @@
+//session_start(); ?>
F8L Exception Online Bank | Login
-
- Login
+
+
-
+
+ Login
session_unset();
session_destroy();
?>
diff --git a/f8l_exception/my_accounts.php b/f8l_exception/my_accounts.php
index 1ef5b55..c69608f 100644
--- a/f8l_exception/my_accounts.php
+++ b/f8l_exception/my_accounts.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | My Accounts
- My Accounts
+
-
+
+ My Accounts
";
showAccounts($userName);
-include 'includes/inc_text_menu.php';
-
?>
diff --git a/f8l_exception/new_account.php b/f8l_exception/new_account.php
index 3d90dac..bc25819 100644
--- a/f8l_exception/new_account.php
+++ b/f8l_exception/new_account.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | Open New Account
- Open a New Account
+
-
+
+ Open a New Account
diff --git a/f8l_exception/new_customer.php b/f8l_exception/new_customer.php
index 0f86e79..a72f73e 100644
--- a/f8l_exception/new_customer.php
+++ b/f8l_exception/new_customer.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | Register a New Customer
-
- Register a New Customer
+
+
-
+
+ Register a New Customer
You have been set up as a new customer. Welcome to F8L Exception Online Bank!. \n";
- include 'includes/inc_text_menu.php';
}
?>
diff --git a/f8l_exception/new_loan.php b/f8l_exception/new_loan.php
index 109430b..cf588c4 100644
--- a/f8l_exception/new_loan.php
+++ b/f8l_exception/new_loan.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | New Loan
- New Loan -- Under construction
+
-
+
+ New Loan -- Under construction
" . $First . "\nyour account has been created. Welcome to PVault!. \n";
- include 'includes/inc_text_menu.php';
}
?>
diff --git a/f8l_exception/reset_password.php b/f8l_exception/reset_password.php
index 2984823..6808073 100644
--- a/f8l_exception/reset_password.php
+++ b/f8l_exception/reset_password.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | Reset Password
- Reset Password
+
-
+
+ Reset Password
F8L Exception Online Bank | Transfer
- Transfer
+
-
+
+ Transfer
";
}
}
-include 'includes/inc_text_menu.php';
?>
diff --git a/f8l_exception/view_statement.php b/f8l_exception/view_statement.php
index 87f2c3a..3187db7 100644
--- a/f8l_exception/view_statement.php
+++ b/f8l_exception/view_statement.php
@@ -1,5 +1,3 @@
-
F8L Exception Online Bank | View Statement
- View Statement -- Under construction
+
-
+
+ View Statement -- Under construction
F8L Exception Online Bank | Withdraw
- Withdraw
+
-
+
+ Withdraw
";
}
}
-include 'includes/inc_text_menu.php';
?>