-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbidding.php
196 lines (163 loc) · 5.57 KB
/
bidding.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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
session_start();
$ses=$_SESSION['name'];
include("database.php");
$id=$_GET['id'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> BidIt!</title>
<meta name="keywords" content="photo blog template, free website layout, CSS, download HTML" />
<meta name="description" content="Photo Blog Template, Free xHTML/CSS Layout, Free Website Template from TemplateMo.com" />
<link href="st_style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#st_container #st_left_section #st_left_content #form3 table {
text-align: left;
}
</style>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://kit.fontawesome.com/aee62cfba8.js" crossorigin="anonymous"></script></head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-3 p-3" id="go">
<div class="container-fluid">
<a class="navbar-brand" href="#"
><img src="images/BidIT-removebg-preview.png" height="80px" alt=""
/></a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-md-auto gap-3">
<li class="nav-item">
<a href="user_profile.php" ><i class="fa-solid fa-house"></i>
Home</a>
</li>
<li class="nav-item">
<a href="add_product.php">Add Product</a>
</li>
<li class="nav-item">
<a href="index.html"><i class="fa-solid fa-right-from-bracket"></i> logout</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="st_container">
<div id="st_left_section">
<div id="st_left_content">
<h1>BIDDING FOR YOUR PRODUCT</h1>
<form action="bidding_code.php" method="post" enctype="multipart/form-data" name="form3" id="form3">
<table width="100%" border="0">
<?php
$s=mysqli_query($con,"select * from add_products where p_id=$id ");
while($row=mysqli_fetch_array($s))
{
?>
<tr>
<td>IMAGE</td>
<td>:</td>
<td><img name="file" src="upload/<?php echo $row['image']; ?>" alt="" width="130" height="121" /></td>
</tr>
<tr>
<td>BIDDING DATE</td>
<td>:</td>
<td><label for="textfield"></label>
<input type="date" name="date" id="date" /></td>
</tr>
<tr>
<td width="26%">PRODUCT NAME</td>
<td width="7%">:</td>
<td width="67%"><label for="p_name"></label>
<input name="p_name" type="text" id="p_name" value="<?php echo $row['p_name']; ?>" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td>CATEGORIES</td>
<td>:</td>
<td><input name="catry" type="text" id="catry" value="<?php echo $row['category']; ?>" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td>PRICE</td>
<td>:</td>
<td><input name="price" type="text" id="price" value="<?php echo $row['price']; ?>" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td>BIDDING COST</td>
<td>:</td>
<td><input name="bid_price" type="text" id="bid_price" size="30" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3"><h1>Personal Info</h1></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<!-- <tr>
<td>NAME</td>
<td>:</td>
<td><input name="name" type="text" id="name" size="30" /></td>
</tr> -->
<tr>
<td>E-MAIL</td>
<td>:</td>
<td><input name="mail" type="text" id="mail" size="30" /></td>
</tr>
<!-- <tr>
<td>ADDRESS</td>
<td>:</td>
<td><label for="add"></label>
<textarea name="add" id="add" cols="24" rows="3"></textarea></td>
</tr>
<tr>
<td>PONE NO</td>
<td>:</td>
<td><input name="ph" type="text" id="ph" size="30" /></td>
</tr> -->
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="button" id="button" value="Submit" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
}
?>
</table>
</form>
<p> </p>
</div>
</div>
<div id="st_right_section">
<div id="st_contact"><h2>Contact Us</h2>
<p>📞 9900770099<br />
✉️ help@bitit.com<br />
</p>
</div>
</div>
</div>
</body>
</html>