-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdrives_headless.php
61 lines (54 loc) · 1.82 KB
/
drives_headless.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
<?php
include './inc/init.php';
include './inc/flourishDB.php';
$tmpl->set('siteName', $translations->siteName);
$tmpl->set('siteTagline', $translations->siteTagline);
$tmpl->set('formallyKnownAs', $translations->formallyKnownAs);
$tmpl->set('maps', $translations->maps);
$tmpl->set('blog', $translations->blog);
$tmpl->set('forums', $translations->forums);
$tmpl->set('submitAReading', $translations->submitAReading);
$tmpl->set('languageSelect', $translations->languageSelect);
$tmpl->set('contact', $translations->contact);
$tmpl->set('follow', $translations->follow);
$tmpl->set('termsPolicy', $translations->termsPolicy);
$tmpl->set('conceivedPart1', $translations->conceivedPart1);
$tmpl->set('conceivedPart2', $translations->conceivedPart2);
$tmpl->set('pageName', 'submit');
$action = fRequest::get('action',"string?" );
$driveId = fRequest::get('driveId',"integer" );
$existingLatitude = "";
$existingLongitude = "";
$existingDescription = "";
$existingDrivers = "";
$existingZoom = "13";
$tmpl->set('title', 'List of Drives');
$tmpl->place('header_headless');
$drives = fRecordSet::build('Drive');
echo '<script language="Javascript">var currentDrive='.$driveId.';</script><div class="content">
<div class="relativeWrap">
<div class="crudWrap">
<div id="submitFormBody" class="form">
<table>
<tr>
<th>#</th>
<th>Drive Description</th>
<th>Participants</th>';
$odd = true;
foreach ($drives as $drive) {
if($odd){
echo '<tr class="crudOddRow">';
}else{
echo '<tr class="crudEvenRow">';
}
$odd = !$odd;
echo '<td><a href="/drive/'.$drive->getDriveId().'" target="_top">'.$drive->getDriveId().'</td><td>'.$drive->getRouteDescription().'</td><td>'.$drive->getDrivers().'</td></tr>';
}
echo '</table>';
echo '<span id="last" />';
echo '</div>
</div>
</div>
</div>';
die;
?>