Skip to content

Commit 0ed7980

Browse files
authored
Add files via upload
1 parent 9c37a68 commit 0ed7980

15 files changed

+690
-0
lines changed

contact_us.php

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
$page_title = "CONTACT_US";
3+
include "includes/header.php"; ?>
4+
<?php include "includes/navbar_contact_us.php"; ?>
5+
<?php include "db.php"; ?>
6+
7+
<div class="container">
8+
<div class="row justify-content-center">
9+
<div class="col-md-10">
10+
<div class="card mt-5">
11+
<div class="card-header">
12+
<h4>CONTACT US</h4>
13+
</div>
14+
<div class="card-body">
15+
<form action="" method="POST">
16+
<div class="form-group mb-3">
17+
<label for=""> FULL Name :-</label>
18+
<input type="text" name="name" class="form-control" placeholder="Enter Your Name">
19+
</div>
20+
<div class="form-group mb-3">
21+
<label for="">Email :-</label>
22+
<input type="Email" name="email" class="form-control" placeholder="Enter Your Email Adderess">
23+
</div>
24+
<div class="form-group mb-3">
25+
<label for="">Phone Number :-</label>
26+
<input type="text" name="phone" class="form-control" placeholder="Enter Your phone Number">
27+
</div>
28+
29+
<div class="form-group mb-3">
30+
<button type="submit" name="send" class="btn btn-success"> SEND </button>
31+
<a href="index.php" class = "btn btn-danger" name = "back" >Back</a>
32+
</div>
33+
</form>
34+
</div>
35+
</div>
36+
</div>
37+
</div>
38+
39+
</div>
40+
41+
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
42+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
43+
44+
45+
<?php
46+
47+
48+
if(isset($_POST['send']))
49+
{
50+
$name = $_POST['name'];
51+
$email = $_POST['email'];
52+
$phone = $_POST['phone'];
53+
54+
55+
$query = "INSERT INTO contact_us (c_name,c_email,s_phone) VALUES ('$name','$email','$phone')";
56+
$query_run = mysqli_query($connection,$query);
57+
58+
if($query_run)
59+
{
60+
echo '<script type="text/javascript"> alert("DETAIL SEND") </script>';
61+
62+
}
63+
else
64+
{
65+
echo '<script type="text/javascript"> alert("Detail not send sucessfully") </script>';
66+
}
67+
68+
}
69+
70+
71+
72+
73+
?>
74+
75+
76+
77+
<?php include "includes/footer.php"; ?>

create_user.php

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
$page_title = "Create User ";
3+
include "includes/header.php"; ?>
4+
<?php include "includes/navbar.php"; ?>
5+
<?php include "db.php"; ?>
6+
7+
<div class="container">
8+
<div class="row justify-content-center">
9+
<div class="col-md-10">
10+
<div class="card mt-5">
11+
<div class="card-header">
12+
<h4> Create User</h4>
13+
</div>
14+
<div class="card-body">
15+
<form action="" method="POST">
16+
<div class="form-group mb-3">
17+
<label for=""> Name :-</label>
18+
<input type="text" name="name" class="form-control" placeholder="Enter Your Name" required>
19+
</div>
20+
<div class="form-group mb-3">
21+
<label for="">Email :-</label>
22+
<input type="Email" name="email" class="form-control" placeholder="Enter Your Email Adderess" required>
23+
</div>
24+
<div class="form-group mb-3">
25+
<label for="">Balance :-</label>
26+
<input type="text" name="balance" class="form-control" placeholder="Enter Balance" required>
27+
</div>
28+
<div class="form-group mb-3">
29+
<button type="submit" name="Create" class="btn btn-success"> Create </button>
30+
<a href="index.php" class = "btn btn-danger" name = "back" >Back</a>
31+
</div>
32+
</form>
33+
</div>
34+
</div>
35+
</div>
36+
</div>
37+
38+
</div>
39+
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
40+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
41+
42+
<?php
43+
44+
if(isset($_POST['Create']))
45+
{
46+
$name = $_POST['name'];
47+
$email = $_POST['email'];
48+
$balance = $_POST['balance'];
49+
50+
51+
$query = "INSERT INTO customer_detail (customer_name,customer_email,balance) VALUES ('$name','$email','$balance')";
52+
$query_run = mysqli_query($connection,$query);
53+
54+
if($query_run)
55+
{
56+
echo '<script type="text/javascript"> alert("User Created") </script>';
57+
58+
}
59+
else
60+
{
61+
echo '<script type="text/javascript"> alert("Something Went Wrong") </script>';
62+
}
63+
64+
}
65+
66+
67+
68+
69+
?>
70+
71+
72+
73+
74+
75+
76+
77+
<?php include "includes/footer.php"; ?>

customer_detail.php

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?php
2+
$page_title = "CUSTOMER_DETAIL";
3+
include "includes/header.php"; ?>
4+
<?php include "includes/navbar_customer_detail.php"; ?>
5+
<?php include "db.php"; ?>
6+
7+
8+
<div class="container">
9+
<div class="jumbotron">
10+
11+
<h1 class="mb-3 h2 text-center" style = "color:white;"><strong><h1><strong>CUSTOMER DETAIL</strong></h1></stong> </h1>
12+
13+
14+
<?php
15+
16+
17+
18+
$query = "SELECT * FROM customer_detail";
19+
$select = mysqli_query($connection,$query);
20+
21+
// OVER DATABASE CONNECTION
22+
?>
23+
<table class="table table-bordered table-dark table-striped" style="background-color:white;">
24+
<thead class="table-dark">
25+
<tr>
26+
<th> ID </th>
27+
<th> NAME</th>
28+
<th> EMAIL </th>
29+
<th> CURRENT BALANCE </th>
30+
<th> TRANSACTION </th>
31+
32+
</tr>
33+
</thead>
34+
35+
<?php
36+
37+
if($select)
38+
{
39+
40+
while($row = mysqli_fetch_array($select))
41+
{
42+
?>
43+
<tbody>
44+
<tr>
45+
<th><?php echo $row['id']; ?></th>
46+
<th><?php echo $row['customer_name']; ?></th>
47+
<th><?php echo $row['customer_email']; ?></th>
48+
<th><?php echo $row['balance']; ?></th>
49+
50+
51+
52+
53+
54+
<form action="transaction_money.php" method="POST">
55+
<input type="hidden" name="id" value=" <?php echo $row['id']; ?> " required>
56+
<th><input type="submit" name="transfer_money" class="btn btn-primary" value="TRANSACTION" required></th>
57+
</form>
58+
</tr>
59+
</tbody>
60+
<?php
61+
}
62+
}
63+
64+
?>
65+
</table>
66+
67+
</div>
68+
</div>
69+
70+
71+
72+
73+
74+
<?php include "includes/footer.php"; ?>

db.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
5+
$connection = mysqli_connect('localhost','root','','vertex_bank');
6+
if(!$connection)
7+
{
8+
die('connection failed'.mysqli_error($connection));
9+
}
10+
11+
?>

footer.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"></script>
2+
3+
<footer class="text-center mt-5 py-10 text-white">
4+
<p>Copyright © 2021 <b>princy patel</b> <br> </p>
5+
</footer>
6+
7+
</body>
8+
</html>

header.php

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet">
8+
<title>
9+
<?php
10+
if(isset($page_title))
11+
{
12+
echo $page_title;
13+
}
14+
?>
15+
</title>
16+
17+
<style>
18+
.logo_image{
19+
width:8%;
20+
height:8%;
21+
padding-right:10px;
22+
}
23+
24+
body {
25+
margin: 0;
26+
background: #353535;
27+
font-family: 'Work Sans', sans-serif;
28+
29+
30+
background-image: url('fintech-icon-abstract-financial-technology-background_34663-91.jpg');
31+
background-size: cover;
32+
background-repeat: no-repeat;
33+
background-attachment: fixed;
34+
35+
}
36+
.text-center{
37+
color:#1b1c1f;
38+
padding-top:100px;
39+
}
40+
41+
42+
</style>
43+
</head>
44+
<body>

index.php

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
$page_title = "VERTEX BANK";
3+
include "includes/header.php"; ?>
4+
<!-- <?php include "include/navbar_create_user.php"; ?> -->
5+
<?php include "includes/navbar.php"; ?>
6+
7+
8+
9+
<div class="py-5">
10+
<div class="container">
11+
<div class="row">
12+
<div class="col-md-12">
13+
<!-- Jumbotron -->
14+
<div class="bg-image p-8 text-center shadow-1-strong rounded mb-5 text-white"
15+
style="background-image: url('');">
16+
<h1 class="mb-3 h2"><strong>WELCOME TO VERTEX BANK</stong> </h1>
17+
18+
<p><h3>"All of Our Customers Trust Their Success To Us"</h3></p>
19+
<p>Consumers aren't required to visit a bank branch in order to complete most of their basic banking transactionsOnline banking with Discover is also secure enough to keep your money safe and your mind at ease.</p>
20+
21+
</div>
22+
<!-- Jumbotron -->
23+
</div>
24+
</div>
25+
26+
</div>
27+
</div>
28+
</div>
29+
30+
<?php include "includes/footer.php"; ?>
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+

navbar.php

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<div class="bg-primary">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-md-12">
5+
<nav class="navbar navbar-expand-lg navbar-dark">
6+
<div class="container-fluid">
7+
<img src="../../logo.png" alt="logo" class="logo_image"/>
8+
<a class="navbar-brand" href="#"><strong><h2><strong>VERTEX BANK</strong></h2></strong></a>
9+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
10+
<span class="navbar-toggler-icon"></span>
11+
</button>
12+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
13+
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
14+
<li class="nav-item">
15+
<a class="nav-link active" href="index.php">Home</a>
16+
</li>
17+
<li class="nav-item">
18+
<a class="nav-link " href="customer_detail.php">Customer Detail</a>
19+
</li>
20+
<li class="nav-item">
21+
<a class="nav-link " href="contact_us.php">Contact Us</a>
22+
</li>
23+
24+
25+
</ul>
26+
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
27+
<li class="nav-item">
28+
<!-- <a class="nav-link " href="contact_us.php">Contact Us</a> -->
29+
<button class="btn btn-dark btn-sm" type = "submit"><a href="create_user.php" class= "nav-link">Create User</a></button>
30+
</li>
31+
</ul>
32+
33+
</div>
34+
</div>
35+
</nav>
36+
</div>
37+
</div>
38+
</div>
39+
</div>

0 commit comments

Comments
 (0)