-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmyrequest.php
More file actions
90 lines (86 loc) · 3.75 KB
/
myrequest.php
File metadata and controls
90 lines (86 loc) · 3.75 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
<?php
include_once './libs/const.php';
$_pageid = 113;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
$_TITLE = "My Request Service";
include_once './tags/common/head.php';
?>
</head>
<body>
<?php include_once './tags/global_header/header.php'; ?>
<div class="heads" style="background: url(resources/img/bag-banner-1.jpg) center center;">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2><span>//</span> My Service Request.</h2>
</div>
</div>
</div>
</div>
<div class="page-content">
<div class="container">
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="<?php echo URL_HOME ?>">Home</a></li>
<li class="active">Accept Request</li>
</ol>
</div>
</div>
<?php
if (!(empty($_POST) || (null == @$_POST['id']))) {
TODO //update db
?>
<div class="alert alert-success" role="alert">Request status updated</div>
<?php
}
//load the old request
//TODO need to add new
include './libs/request.php';
//hard coded till sitn in integration
$__data = getAllList(7);
//TODO: need to fix the query
?>
<div class="row">
<div class="col-md-12">
<div class="alert alert-success" role="alert">Scan the QR code to get the route.</div>
</div>
</div>
<?php
foreach ($__data["request"] as &$data) {
$google_url = "https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=" . urlencode("https://www.google.com/maps/dir/12.9220774,77.6807421/" . $data["latitude"] . "," . $data["longitude"]);
?>
<div class="row sr-br-div">
<div class="col-xs-4">
<img style="width: 100%; height: 100%;max-width: 116px;" class="media-object" src="<?php echo $google_url ?>" alt="Scan to get the route.">
</div>
<div class="col-xs-8">
<h4 class="media-heading"><?php echo $data["first_name"] . " " . $data["last_name"] ?></h4>
<p>
Type of service <b><?php echo $data["Description"] ?></b>
<?php (isset($data["duration"]) ? " for " . $data["duration"] . "Hrs" : "") ?> on
<code><?php echo $data["Requesteddate"] ?></code>
<?php if (isset($data["Location"])) { ?>
at <a target="_blank" href="https://www.google.com/maps/place/<?php echo $data["latitude"] ?>,<?php echo $data["longitude"] ?>"><?php echo $data["Location"] ?></a>
<?php
}
echo $data["Message"];
?>
</p>
</div>
</div>
<?php
}
?>
</div>
</div>
<!-- end:tagline -->
<?php include_once './tags/global_header/footer.php'; ?>
<!-- end:copyright -->
<?php include_once './tags/common/scripts.php'; ?>
</body>
</html>