-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_auctions.php
More file actions
171 lines (147 loc) · 6.24 KB
/
edit_auctions.php
File metadata and controls
171 lines (147 loc) · 6.24 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
include 'conn.php';
//include 'session.php';
$msgs =array();
if (mysqli_num_rows($result) == 1){
$query = "select * from auction";
$resultset = mysqli_query($conn,$query);
}
$resultset = mysqli_fetch_row($resultset);
$_SESSION['as'] = $resultset;
if (isset($_SESSION['msg'])) {
array_push($msgs, $_SESSION['msg']);
unset($_SESSION['msg']);
}
?>
<html lang="en">
<head>
<title>Auctions</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/manu.css">
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).stop( true, true ).fadeIn("fast");
$(this).toggleClass('open');
$('b', this).toggleClass("caret caret-up");
},
function() {
$('.dropdown-menu', this).stop( true, true ).fadeOut("fast");
$(this).toggleClass('open');
$('b', this).toggleClass("caret caret-up");
});
});
</script>
<nav class="navbar navbar-expand-sm bg-info navbar-dark">
<a id="logo" class="navbar-brand" href="home.php">Auction</a>
<form id="f1" class="form-inline" action="/action_page.php" method="POST">
<input id="inp1" class="form-control mr-sm-2" type="text" placeholder="Search product,brand or more" size="70">
<button id="btn1" class="btn btn-success" type="submit"><i class="fa fa-search"></i></button>
</form>
<ul class="navbar-nav">
<li style="margin-left: 88px;" class="nav-item dropdown">
<a id="more" class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
<?php echo $_SESSION['us']; ?>
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="profile.php">Profile</a>
<a class="dropdown-item" href="auctions.php">Auctions</a>
<a class="dropdown-item" href="orders.php">Orders</a>
<a class="dropdown-item" href="wishlist.php">Wishlist</a>
<a class="dropdown-item" href="logout.php">logout</a>
</div>
</li>
<li class="nav-item dropdown">
<a id="more" class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
More
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="help.php">24*7 help</a>
<a class="dropdown-item" href="about.php">About</a>
<a class="dropdown-item" href="advertice.php">Advertice</a>
</div>
</li>
</ul>
</nav>
<div>
<div class="header">
<h3 style="color: white;">Your Auction</h3>
</div>
<form id="pform" class="content" action="delete.php" method="post" enctype="multipart/form-data">
<?php include 'msgs.php'; ?>
<div>
<img id="img" class="center" alt="Your Profile" src = <?php echo "uploads/$resultset[12]"; ?> >
</div>
<div>
<img id="img" class="center" alt="Your Profile" src = <?php echo "uploads/$resultset[13]"; ?> >
</div>
<div>
<img id="img" class="center" alt="Your Profile" src = <?php echo "uploads/$resultset[14]"; ?> >
</div>
<div>
<img id="img" class="center" alt="Your Profile" src = <?php echo "uploads/$resultset[15]"; ?> >
</div>
<div>
<img id="img" class="center" alt="Your Profile" src = <?php echo "uploads/$resultset[16]"; ?> >
</div>
<div class="input-group">
<div class="input-group">
<label>Item Name :</label>
<input type="text" name="aname" value="<?php echo $resultset[1] ?>" disabled>
</div>
<div class="input-group">
<label>Item Description :</label>
<input type="text" name="description" value="<?php echo $resultset[2] ?>" disabled>
</div>
<div class="input-group">
<label>Item Specification :</label>
<input type="text" name="fname" value="<?php echo $resultset[3] ?>" disabled>
</div>
<div class="input-group">
<label>Item StartDate :</label>
<input type="text" name="fname" value="<?php echo $resultset[4] ?>" disabled>
</div>
<div class="input-group">
<label>Item EndDate :</label>
<input type="text" name="fname" value="<?php echo $resultset[5] ?>" disabled>
</div>
<div class="input-group">
<label>Item StartTime :</label>
<input type="text" name="fname" value="<?php echo $resultset[6] ?>" disabled>
</div>
<div class="input-group">
<label>Item EndTime :</label>
<input type="text" name="fname" value="<?php echo $resultset[7] ?>" disabled>
</div>
<div class="input-group">
<label>Item Base Price :</label>
<input type="text" name="fname" value="<?php echo $resultset[8] ?>" disabled>
</div>
<div class="input-group">
<label>Item LotNumber :</label>
<input type="text" name="fname" value="<?php echo $resultset[9] ?>" disabled>
</div>
<div class="input-group">
<label>Item Commision :</label>
<input type="text" name="fname" value="<?php echo $resultset[10] ?>" disabled>
</div>
<input class="pbtn" type="button" name="editprofile" value="Edit Profile" onclick="window.location.href='editProfile.php'">
<input class="pbtn" type ="submit" name="del" value="Delete account">
<form action="" method="post">
<input class="pbtn" type ="submit" name="logout" value="Logout">
</form>
</form>
</div>
<a class="pbtn" href="add_auction.php">create auction</a>
</body>
</html>