-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbidprojects.php
129 lines (118 loc) · 3.29 KB
/
bidprojects.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
<!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: #009883;
border: none;
color: #ffffff;
padding: 2px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 2px 2px;
cursor: pointer;
}
.button4
{border-radius: 20px;}
#tabcaption
{
background-color:#fff;
color:#009688 ;
font-size:20px;
}
#heading
{
background-color:#009883;
color:#ffffff;
}
#PDetails
{
background-color:#d9d9d9;
}
#SDetails
{
background-color:#d9d9d9;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="../css/pstyle.css">
<link rel="stylesheet" href="../css/w3.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<title>BizMart</title>
<?php include('../header/conn.php');
include('../header/supplierheader.php');?>
</head>
<body>
<?php
session_start();
$R_ID=$_SESSION['R_ID'];
$q="select Pid,Amount,Duration,Date_time,Status from biddet1 where Userid='$R_ID'";
$sql13=mysqli_query($connect,$q);
?>
<table class="table table-condensed table-hover">
<tr><td id="tabcaption" colspan="6" align="center">PROJECTS BID BY ME</td></tr>
<tr>
<th id="heading">Pid</td>
<th id="heading">Amount</td>
<th id="heading">Duration</td>
<th id="heading">Date_time</td>
<th id="heading">Edit_Bid</td>
<th id="heading">BID Status</td>
</tr>
<?php
while($row13=mysqli_fetch_array($sql13))
{
$st=$row13['Status'];
if($st=="Approved")
{
?><tr>
<td class="info" id="PDetails"><a data-toggle="tooltip" data-placement="right" title="View details" href="projdet.php?Pid=<?php echo $row13['Pid']; ?>"><?php echo $row13['Pid']; ?></a><br></td>
<td ><?php echo $row13['Amount']; ?></td>
<td ><?php echo $row13['Duration']; ?></td>
<td ><?php echo $row13['Date_time']; ?></td>
<td > - - -</td>
<td id="SDetails"><?php echo $row13['Status']; ?></td>
</tr>
<?php
}
else if($st=="Cancelled")
{?><tr>
<td class="info" id="PDetails"> <a data-toggle="tooltip" data-placement="right" title="View details" href="projdet.php?Pid=<?php echo $row13['Pid']; ?>"><?php echo $row13['Pid']; ?></a><br></td>
<td ><?php echo $row13['Amount']; ?></td>
<td ><?php echo $row13['Duration']; ?></td>
<td ><?php echo $row13['Date_time']; ?></td>
<td >- - -</td>
<td id="SDetails"><?php echo $row13['Status']; ?></td>
</tr>
<?php
}
else
{
?>
<tr>
<td class="info" id="PDetails"><a data-toggle="tooltip" data-placement="right" title="View details" href="projdet.php?Pid=<?php echo $row13['Pid']; ?>"><?php echo $row13['Pid']; ?></a><br></td>
<td ><?php echo $row13['Amount']; ?></td>
<td ><?php echo $row13['Duration']; ?></td>
<td ><?php echo $row13['Date_time']; ?></td>
<td ><a class="button button4" data-toggle="tooltip" data-placement="right" title="Click to Edit" href="editbiddetails.php?Pid=<?php echo $row13['Pid'];?>">EDIT BID DETAILS</a></td>
<td id="SDetails" ><?php echo $row13['Status']; ?></td>
</tr>
<?php
}
?>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script><?php
}
?>
</table>
<?php
//mysql_close($con);
?>