├── img ├── bank.png ├── user.jpg ├── user3.jpg ├── history.jpg └── transfer.jpg ├── config.php ├── css ├── navbar.css ├── table.css ├── style.css └── createuser.css ├── README.md ├── navbar.php ├── sql └── Indian_bank.sql ├── transactionhistory.php ├── index.php ├── createuser.php ├── transfermoney.php └── selecteduserdetail.php /img/bank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ayush-1211/Banking-System/HEAD/img/bank.png -------------------------------------------------------------------------------- /img/user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ayush-1211/Banking-System/HEAD/img/user.jpg -------------------------------------------------------------------------------- /img/user3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ayush-1211/Banking-System/HEAD/img/user3.jpg -------------------------------------------------------------------------------- /img/history.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ayush-1211/Banking-System/HEAD/img/history.jpg -------------------------------------------------------------------------------- /img/transfer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ayush-1211/Banking-System/HEAD/img/transfer.jpg -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | ".mysqli_connect_error()); 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /css/navbar.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600&display=swap'); 2 | .nav-link{ 3 | margin-right: 15px; 4 | color:#2F363F; 5 | letter-spacing: 0.5px; 6 | transition: 0.5s; 7 | } 8 | .navbar-brand{ 9 | color: #4C4B4B; 10 | letter-spacing: 0.5px; 11 | } 12 | h2{ 13 | color: #4C4B4B; 14 | letter-spacing: 0.5px; 15 | font-family: raleway; 16 | } -------------------------------------------------------------------------------- /css/table.css: -------------------------------------------------------------------------------- 1 | *{ 2 | padding: 0; 3 | margin: 0; 4 | box-sizing: border-box; 5 | font-family: sans-serif; 6 | } 7 | h2{ 8 | font-size: 40px; 9 | } 10 | table{ 11 | letter-spacing: 1.2px; 12 | } 13 | td{ 14 | text-align: center; 15 | } 16 | button{ 17 | border:none; 18 | background: #d9d9d9; 19 | transition: 1s; 20 | } 21 | @media only screen and (orientation: portrait){ 22 | *{ 23 | letter-spacing: 1px; 24 | } 25 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ayush Prajapati Banking System 2 | Sparks Foundation Internship Project : Basic Banking System 3 | A Web Application used to transfer money between multiple users. 4 | 5 | Stack used - 6 | Front-end : HTML, CSS, Bootstrap & Javascript 7 | Back-end : PHP 8 | Database : MySQL 9 | 10 | Database contains two Tables- Users Table & Transaction Table 11 | 1. User table have basic fields such as name, email & current balance. 12 | 2. Transaction table records all transfers happened along with their time. 13 | 14 | Flow of the Website: Home Page > View all Users > Select and View one User > Transfer Money > Select reciever > View all Users > View Transfer History. 15 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | padding: 0; 3 | margin: 0; 4 | box-sizing: border-box; 5 | font-family: sans-serif; 6 | } 7 | .intro{ 8 | background: #EAF0F1; 9 | } 10 | h1{ 11 | color: #4C4B4B; 12 | font-weight: bold; 13 | transition: 0.5s; 14 | } 15 | h3{ 16 | color:#2F363F; 17 | } 18 | button{ 19 | border:none; 20 | border-radius: 8px; 21 | padding: 10px; 22 | background:#7B8788; 23 | color:white; 24 | letter-spacing: 1.5px; 25 | font-size: 15px; 26 | transition: 0.5s; 27 | } 28 | button:hover,h1:hover{ 29 | transform: scale(1.1); 30 | } 31 | button:hover{ 32 | background-color:#4C4B4B; 33 | } 34 | footer{ 35 | color:#586776; 36 | background-color:#EAF0F1; 37 | letter-spacing: 0.5px; 38 | } 39 | footer p{ 40 | margin: 0; 41 | font-size: 15px; 42 | } 43 | @media only screen and (orientation:portrait){ 44 | .intro{ 45 | display:flex; 46 | flex-direction: column-reverse; 47 | } 48 | h1{ 49 | font-size: 30px; 50 | } 51 | .act{ 52 | padding-bottom: 100px; 53 | } 54 | } -------------------------------------------------------------------------------- /navbar.php: -------------------------------------------------------------------------------- 1 | 2 | 23 | -------------------------------------------------------------------------------- /sql/Indian_bank.sql: -------------------------------------------------------------------------------- 1 | 2 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 3 | START TRANSACTION; 4 | SET time_zone = "+00:00"; 5 | 6 | 7 | 8 | -- -------------------------------------------------------- 9 | 10 | -- 11 | -- Table structure for table `transaction` 12 | -- 13 | 14 | CREATE TABLE `transaction` ( 15 | `sno` int(3) NOT NULL, 16 | `sender` text NOT NULL, 17 | `receiver` text NOT NULL, 18 | `balance` int(8) NOT NULL, 19 | `datetime` datetime NOT NULL DEFAULT current_timestamp() 20 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 21 | 22 | -- -------------------------------------------------------- 23 | 24 | -- 25 | -- Table structure for table `users` 26 | -- 27 | 28 | CREATE TABLE `users` ( 29 | `id` int(3) NOT NULL, 30 | `name` text NOT NULL, 31 | `email` varchar(30) NOT NULL, 32 | `balance` int(8) NOT NULL 33 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 34 | 35 | -- 36 | -- Dumping data for table `users` 37 | -- 38 | 39 | INSERT INTO `users` (`id`, `name`, `email`, `balance`) VALUES 40 | (1, 'Salman', 'khan@gmail.com', 50000), 41 | (2, 'Kiara', 'advani@gmail.com', 30000), 42 | (3, 'Shahrukh', 'shah@gmail.com', 40000), 43 | (4, 'Priyanka', 'chopra@gmail.com', 50000), 44 | (5, 'Shahid', 'kapoor@gmail.com', 40000), 45 | (6, 'Ranbir', 'singh@gmail.com', 30000), 46 | (7, 'Deepika', 'padukone@gmail.com', 50000), 47 | (8, 'Juhi', 'chawla@gmail.com', 40000), 48 | (9, 'Nick', 'jonas@gmail.com', 30000), 49 | (10, 'Taapsee', 'pannu@gmail.com', 50000); 50 | 51 | -- 52 | -- Indexes for dumped tables 53 | -- 54 | 55 | -- 56 | -- Indexes for table `transaction` 57 | -- 58 | ALTER TABLE `transaction` 59 | ADD PRIMARY KEY (`sno`); 60 | 61 | -- 62 | -- Indexes for table `users` 63 | -- 64 | ALTER TABLE `users` 65 | ADD PRIMARY KEY (`id`); 66 | 67 | -- 68 | -- AUTO_INCREMENT for dumped tables 69 | -- 70 | 71 | -- 72 | -- AUTO_INCREMENT for table `transaction` 73 | -- 74 | ALTER TABLE `transaction` 75 | MODIFY `sno` int(3) NOT NULL AUTO_INCREMENT; 76 | 77 | -- 78 | -- AUTO_INCREMENT for table `users` 79 | -- 80 | ALTER TABLE `users` 81 | MODIFY `id` int(3) NOT NULL AUTO_INCREMENT; 82 | COMMIT; 83 | 84 | 85 | -------------------------------------------------------------------------------- /css/createuser.css: -------------------------------------------------------------------------------- 1 | button,input { 2 | font-family: 'Montserrat', sans-serif; 3 | font-weight: 700; 4 | letter-spacing: 1.4px; 5 | } 6 | .background { 7 | width: 100%; 8 | display: flex; 9 | } 10 | 11 | .container { 12 | flex: 0 1 700px; 13 | width: 100%; 14 | margin: auto; 15 | padding: 10px; 16 | } 17 | 18 | .screen { 19 | position: relative; 20 | background: #d9d9d9; 21 | border-radius: 15px; 22 | box-shadow: 5px 10px 10px rgba(0, 0, 0, .25); 23 | } 24 | 25 | .screen-header { 26 | display: flex; 27 | align-items: center; 28 | padding: 10px 20px; 29 | background: #7B8788; 30 | border-top-left-radius: 15px; 31 | border-top-right-radius: 15px; 32 | } 33 | 34 | .screen-header-right { 35 | display: flex; 36 | } 37 | 38 | .screen-header-ellipsis { 39 | width: 5px; 40 | height: 5px; 41 | margin-left: 3px; 42 | border-radius: 8px; 43 | background: #d9d9d9; 44 | } 45 | 46 | .screen-body { 47 | display: flex; 48 | } 49 | 50 | .screen-body-item { 51 | flex: 1; 52 | padding: 50px; 53 | } 54 | .app-form-group { 55 | margin-bottom: 15px; 56 | } 57 | 58 | .app-form-group.button { 59 | margin-bottom: 0; 60 | text-align: right; 61 | position: absolute; 62 | bottom: 30px; 63 | right:40px; 64 | } 65 | 66 | .app-form-control{ 67 | width: 100%; 68 | padding: 10px 0; 69 | background: none; 70 | border: none; 71 | border-bottom: 1px solid #4C4B4B; 72 | color: #4C4B4B; 73 | font-size: 14px; 74 | outline: none; 75 | transition: border-color .2s; 76 | } 77 | 78 | .app-form-control::placeholder { 79 | color: #666; 80 | } 81 | 82 | .app-form-control:focus { 83 | border-bottom-color: #4C4B4B; 84 | } 85 | 86 | .app-form-button { 87 | background: none; 88 | border: none; 89 | margin-left: 20px; 90 | color: #666; 91 | font-size: 14px; 92 | cursor: pointer; 93 | outline: none; 94 | } 95 | 96 | .app-form-button:hover { 97 | color: #262626; 98 | } 99 | 100 | @media screen and (max-width: 520px) { 101 | *{ 102 | letter-spacing:1px; 103 | } 104 | .container{ 105 | margin-left: 20px; 106 | margin-right: 20px; 107 | margin-bottom: 40px; 108 | } 109 | .screen-body { 110 | flex-direction: column; 111 | } 112 | 113 | .screen-body-item.left { 114 | margin-bottom: 50px; 115 | } 116 | .app-form-button{ 117 | margin-top:5px; 118 | } 119 | } 120 | 121 | @media screen and (max-width: 600px) { 122 | .screen-body { 123 | padding: 40px; 124 | } 125 | 126 | .screen-body-item { 127 | padding: 0; 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /transactionhistory.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 || S.No. | 27 |Sender | 28 |Receiver | 29 |Amount | 30 |Date & Time | 31 |
|---|---|---|---|---|
| 48 | | 49 | | 50 | | 51 | | 52 | 53 | 57 | |
32 |
51 |