-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathshare.php
executable file
·108 lines (97 loc) · 4.06 KB
/
share.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
<?php
include "templates/head.php";
include "functions/user.php";
?>
<?php if (user\user_logged_in()): ?>
<link href="/css/lib/bootstrap-datepicker.css" rel="stylesheet">
<link href="/css/lib/bootstrap-timepicker.css" rel="stylesheet">
<link href="/css/share.css" rel="stylesheet">
<div class="container-fluid">
<div class="row-fluid">
<div id="share-bar">
<!--Sidebar content-->
<form action="share_post.php" method="post" class="form-horizontal well" id="share">
<fieldset>
<div id="share-route" class="control-group">
<!-- From -->
<div class="control-group">
<label class="control-label">From</label>
<div class="controls">
<input class="input-xlarge" id="share-from" type="text" placeholder="Type the name of a place or address over here">
</div>
</div>
<!-- To -->
<div class="control-group">
<label class="control-label">To</label>
<div class="controls">
<input class="input-xlarge" id="share-to" type="text" placeholder="Type the name of a place or address over here">
</div>
</div>
</div>
<!-- Departure -->
<div class="control-group" id="share-departure">
<label class="control-label">Departure</label>
<div class="controls controls-row">
<!-- Date Picker -->
<div class="input-append date" id="share-departure-date" data-date="" data-date-format="dd-mm-yyyy">
<input class="span7" size="16" type="text" >
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
<!-- Time Picker -->
<div class="input-append bootstrap-timepicker">
<input id="share-departure-time" type="text" class="input-mini">
<span class="add-on"><i class="icon-time"></i></span>
</div>
</div>
</div>
<!-- Trip Length -->
<div class="control-group">
<label class="control-label">Trip Length</label>
<div class="controls">
<input class="input-medium" id="share-trip-length" type="text">
</div>
</div>
<!-- Spots-->
<div class="control-group">
<label class="control-label" for="share-spots">Spots in Your Car</label>
<div class="controls">
<input type="number" class="input-medium" id="share-spots" name="share-spots" min="1" max="49">
</div>
</div>
<!-- Women Only -->
<div class="control-group" >
<label class="checkbox">
<div class="controls">
<input type="checkbox" id="share-women-only">Women Only
</div>
</label>
</div>
<!-- Message -->
<div class="control-group">
<label class="control-label">Message</label>
<div class="controls">
<textarea id="share-message" class="input-xlarge" rows="5" placeholder="Message..."></textarea>
</div>
</div>
<!-- Share Button -->
<div class="form-actions" >
<button type="button" id="share-button" class="btn btn-primary">Share</button>
</div>
</fieldset>
</form><!-- End Sidebar Content -->
</div>
<div id="map_canvas" class="well"></div>
</div>
</div>
<hr>
<!-- Load JS in the end for faster page loading -->
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&libraries=places"></script>
<script data-main="/js/share" src="/js/require.js"></script>
<?php else: ?>
<div class="well ds-component ds-hover container-narrow" data-componentid="well1">
<div class="ds-component ds-hover" data-componentid="content2">
<?php functions\html_respond('Log In Required', 'Please register or log in to access this part of the website'); ?>
</div>
</div>
<?php endif; ?>
<?php include "templates/footer.php" ?>