Advertisement
JamesTan

Untitled

Feb 21st, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. #!/bin/bash
  2. function menu( )
  3. {
  4. cat << EOF
  5. echo "-----------------------------------------"
  6. echo "Please choose your options:"
  7. echo "-----------------------------------------"
  8. 1)Register User
  9. 2)Users Details
  10. 3)Edit User
  11. 4)Save User
  12. 5)Change Password
  13. 6)Print Report
  14. 7)Quit
  15. EOF
  16. read -p "input: "choice
  17. case $choice in
  18. 1)
  19. echo -e "${BLUE}Logging please wait"
  20.   menu
  21.   ;;
  22. 2)
  23. echo -e "${GREY}Please check your information"
  24.   menu    
  25. ;;
  26. 3)
  27. echo -e "${YELLOW}Please editing your information here"
  28. menu
  29.   ;;
  30. 4)
  31. echo -e "${RED}Information saving"
  32. menu
  33. ;;
  34. 5)
  35. echo -e "${BLACK}Please enter your new password"
  36. menu
  37. ;;
  38. 6)
  39. echo -e "${GREEN}Report Printing"
  40. menu
  41. ;;
  42. 7)
  43. Exit 0
  44. esac
  45. }
  46. menu
  47.  
  48. GREY='\033[1;30m'
  49. RED='\033[0;31m'    
  50. GREEN='\033[0;32m'    
  51. YELLOW='\033[1;33m'
  52. BLUE='\033[0;34m'    
  53. BLACK='\033[0;35m'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement