-
Notifications
You must be signed in to change notification settings - Fork 0
/
withdraw_name.php
77 lines (67 loc) · 3.08 KB
/
withdraw_name.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="CSS/bootstrap.css">
<link rel="stylesheet" href="CSS/stylesheet.css">
</head>
<body>
</body>
</html>
<?php
session_start();
if (isset($_SESSION["username"])){
echo '
<div class="container">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="pull-left" href="home.php"><img class="nav-img" src="bank2.png"></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="nav_links"><a href="home.php">Home</a></li>
<li class="nav_links"><a href="deposit_id.php">deposit_id</a></li>
<li class="nav_links"><a href="deposit_name.php">deposit_name</a></li>
<li class="nav_links"><a href="withdraw_visa.php">withdraw_visa</a></li>
<li class="nav_links"><a href="customers.php">customers</a></li>
<li class="nav_links"><a href="logout.php">Logout</a></li>
</ul>
</div>
</div>
</nav>
</div>';
echo "
<div class='container' id='login_form'>
<form action='handle_withdraw.php' method='post'>
<div class='input-group input-group-lg col-xs-5 center-block'>
<label for='cust' class='input-group-addon'>Choose customer name:</label>
<select class='form-control' name='cust' id='cust'>
<option value='Mohamed'>Mohamed</option>
<option value='Ahmed'>Ahmed</option>
<option value='Mahmoud'>Mahmoud</option>
</select><br>
</div>
<div class='input-group input-group-lg col-xs-5 center-block'>
<label for='amount' class='input-group-addon'>Enter amount to withdraw:</label>
<input type='number' class='form-control' name='amount' id='amount' min=1>
</div>
<div class='input-group col-xs-5 center-block'>
<input type='submit' class = 'btn btn-success btn-lg col-xs-12' value='Withdraw'>
</div>
</form>
</div>";
} else{
header('Location: home.php');
}
?>