|
|
|
@ -23,26 +23,26 @@ hold_menu() {
|
|
|
|
|
|
|
|
|
|
show_menu() {
|
|
|
|
|
#[ "$1" = "init" ] || pre_menu
|
|
|
|
|
printf 'Select a function by number:
|
|
|
|
|
printf '%s\n' "$(tput bold) --== Bank of Skyfall: Main Menu ==--$(tput sgr0)"\
|
|
|
|
|
'Select a function by number:'\
|
|
|
|
|
''\
|
|
|
|
|
'1. Create Account'\
|
|
|
|
|
''\
|
|
|
|
|
'2. Deposit'\
|
|
|
|
|
'3. Withdrawal'\
|
|
|
|
|
'4. Direct Transfer'\
|
|
|
|
|
''\
|
|
|
|
|
'5. Show All Balances'\
|
|
|
|
|
'6. Show Transaction History'\
|
|
|
|
|
'7. Show Transactions for Account'\
|
|
|
|
|
'8. Show Direct Transfer History'\
|
|
|
|
|
''\
|
|
|
|
|
'9. Disable Account (!)'\
|
|
|
|
|
'0. Enable Account'\
|
|
|
|
|
''\
|
|
|
|
|
'Q. Quit'\
|
|
|
|
|
'' ''
|
|
|
|
|
|
|
|
|
|
1. Create Account
|
|
|
|
|
|
|
|
|
|
2. Deposit
|
|
|
|
|
3. Withdrawal
|
|
|
|
|
4. Direct Transfer
|
|
|
|
|
|
|
|
|
|
5. Show All Balances
|
|
|
|
|
6. Show Transaction History
|
|
|
|
|
7. Show Transactions for Account
|
|
|
|
|
8. Show Direct Transfer History
|
|
|
|
|
|
|
|
|
|
9. Disable Account (!)
|
|
|
|
|
0. Enable Account
|
|
|
|
|
|
|
|
|
|
Q. Quit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'
|
|
|
|
|
read -p "Selection: " -n1 action
|
|
|
|
|
case $action in
|
|
|
|
|
1)
|
|
|
|
|