forked from william1099/BasicEcommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail.php
80 lines (79 loc) · 2.73 KB
/
detail.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
<?php
$nama = $_GET["nama"];
$harga = $_GET["harga"];
$link = $_GET["link"];
?>
<?php
include("connect.php");
include("session.php");
?>
<html>
<head>
<script type="text/javascript" src="amajon.js"></script>
<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" />
</head>
<body onload = "iklan()">
<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 ="desc">
<hr>
<table align="center" class = "table table-bordered" style="width:1100px;height:500px; text-align:center;">
<tr>
<td rowspan = "2" ><img style = "width:400px; height:350px;" src="<?php echo $link; ?>" /><br><br><br>
</td>
<td style="width:650px;">
<h3><?php echo $nama; ?></h3><br>
<h3 id="hargaa" style="color:red">Harga : <?php echo $harga; ?></h3>
<form name="form1">
<p>Total barang belanjaan : <input type="text" size=3 maxlength=3 value="1" onkeypress="ubah('<?php echo $harga; ?>')" name="jumlah"></input></p>
</form>
</td>
</tr>
<tr >
<td>Description : <br>
<?php echo $nama; ?> sold <?php echo $harga; ?>using eRation
</td>
</tr>
</table>
<hr>
<img src="img/banner1.jpg" style="width:1000px; height:150px;" name="iklan">
</div>
<div class="footer">
<div class="pagination">
<a href="#">«</a>
<a class="active" href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">»</a>
</div>
<p>© 2018 | eRation</p>
</div>
</body>
</html>