-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
81 lines (72 loc) · 3.23 KB
/
home.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
77
78
79
80
81
<!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">
<link rel="stylesheet" href="CSS/bootstrap.css">
<link rel="stylesheet" href="CSS/stylesheet.css">
<title>Document</title>
</head>
<body>
<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">
<?php
session_start();
if (isset($_SESSION["username"])){
echo '<li class="nav_links"><a href="deposit_name.php">deposit_name</a></li>
<li class="nav_links"><a href="deposit_id.php">deposit_id</a></li>
<li class="nav_links"><a href="withdraw_name.php">withdraw_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>';
}else{
echo '<li class="nav_links"><a href="login.php">Login</a></li>
<li class="nav_links"><a href="register.php">Register</a></li>';
}
?>
</ul>
</div>
</div>
</nav>
</div>
<div class="container">
<div class="jumbotron">
<p><span class='glyphicon glyphicon-heart'></span> Welcome to our bank</p>
</div>
</div>
<div class="container">
<div class="row">
<div class="span4"><img class="center-block" id="bank_img" src="bank.jpg" alt=""></div>
</div>
</div>
<footer class="page-footer font-small blue pt-4">
<div class="footer-copyright text-center py-3">© 2020 Copyright: bank
</div>
</footer>
</body>
</html>
<?php
// session_start();
// if (isset($_SESSION["username"])){
// echo "<a href='deposit_name.php'>deposit_name</a><br>";
// echo "<a href='deposit_id.php'>deposit_id</a><br>";
// echo "<a href='withdraw_name.php'>withdraw_name</a><br>";
// echo "<a href='withdraw_visa.php'>withdraw_visa</a><br>";
// echo "<a href='logout.php'>Logout</a>";
// }else{
// echo "<a href='login.php'>Login</a>";
// }