-
Notifications
You must be signed in to change notification settings - Fork 2
/
taskdetails_taskerview_pending.php
72 lines (72 loc) · 2.35 KB
/
taskdetails_taskerview_pending.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
<?php include("inc/helperheader.php");
$dbconn = pg_connect("host=localhost port=5432 dbname=taskoo user=postgres password=tessa")
or die('Could not connect: ' . pg_last_error());
$query = "SELECT title, location, taskdate, timerange, price, description, category, t.name, postdate FROM taskoo_task, taskoo_user t
WHERE tasker=t.email AND taskid=". $_GET["taskid"].";";
$result = pg_query($query) or die('Query failed: ' . pg_last_error());
$row = pg_fetch_row($result);
?>
<div class="row">
<div class="col m3"></div>
<div class="col m6">
<table>
<thead>
<tr><br>
<th data-field="title">Task Info</th>
<th data-field="value"></th>
</tr>
</thead>
<tbody>
<?php
echo "<tr>";
echo "<td>Task Title :</td>";
echo "<td>".$row[0]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Location :</td>";
echo "<td>".$row[1]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Task Date :</td>";
echo "<td>".$row[2]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Time Range :</td>";
echo "<td>".$row[3]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Price :</td>";
echo "<td>$".$row[4]."/hr</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Description :</td>";
echo "<td>".$row[5]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Category :</td>";
echo "<td>".$row[6]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Tasker Name :</td>";
echo "<td>".$row[7]."</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Post Date :</td>";
echo "<td>".$row[8]."</td>";
echo "</tr>";
?>
</tbody>
</table>
</div>
<div class="col m3"></div>
</div>
<div class="row"><br>
<div class="col m3"></div>
<div class="col m6">
<a href="taskerdashboard.php?page=pending" class="waves-effect waves-teal btn inbtn">Back</a>
<a href='incdata/deletetask.php?<?php echo "taskid=".$_GET["taskid"];?>' class="waves-effect waves-teal btn inbtn">Delete</a>
<a href='edittask.php?<?php echo "taskid=".$_GET["taskid"];?>' class="waves-effect waves-teal btn inbtn">Edit</a><br><br><br>
</div>
<div class="col m3"></div>
</div>
<?php include("inc/footer.php"); ?>