forked from william1099/BasicEcommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAccount.php
89 lines (82 loc) · 2.54 KB
/
Account.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
82
83
84
85
86
87
88
89
<?php
include("session.php");
if(!isset($usr)) header("Location: login.php");
?>
<html>
<head>
<title>eRation</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width , initial-scale= 1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link type="text/css" rel="stylesheet" href="amajoncss.css" />
<style>
div.kiri {
float:left;
height:600px;
width:100%;
background-color:#f1f1f1;
margin-right:10px;
position:relative;
}
div.kanan {
background-image:url("img/sampul.jpg");
border-radius:20px;
width:1000px;
height:300px;
text-align:center;
position:absolute;
left:400px;
bottom:300px;
font-size:40px;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="jumbotron">
<h1> eRation</h1>
<p>Rates as per government</p>
<form action="tampil.php" role="form" method="post" class="form-inline" >
<div class="input-group">
<input name="nama" type="name" class="form-control" placeholder="Search" size="50">
<div class="input-group-btn">
<button class="btn btn-danger" type="submit" name="submit" value="submit">Search</button>
</div>
</div>
</form>
<?php
if (!isset($_SESSION["username"])) {
echo "<p style='text-align:center; display:inline-block' onclick='kelogin()'>Login |</p>; }
else {
echo "<p style='text-align:center; display:inline-block'>Welcome ";
echo $usr;
echo "! |</p><p style='text-align:center; display:inline-block' onclick='kelogout()'> Logout</p>";
}
?>
</div>
</div>
<div class="navbar">
<ul>
<li><a class="active" href="home.php">Home</a></li>
<li><a href="promo.php">Promo</a></li>
<li><a href="#">Best Seller</a></li>
<li><a href="add.php">My Things</a></li>
<li><a href="Account.php">Account</a></li>
<li><a href="chat.php">Chat</a></li>
<li><a class="active b" href="#"><span class="glyphicon glyphicon-shopping-cart"></span></a></li>
<ul>
</div>
<div class="content2">
<div class="kiri">
<img src="img/owner.jpeg" style="width:300px; height:300px">
<?php echo "<h2> About "; echo $usr; echo "</h2>"; ?>
</div>
<div class="clearfix"></div>
</div>
<div class="footer">
<p>© 2018 | eRation </p>
</div>
</body>
</html>