Add suburb geocode to timingpoints tables too
[bus.git] / index.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
<?php 
include('common.inc.php'); 
?>
<!doctype html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>bus.lambdacomplex.org</title>
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
        <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
        <!-- <script src="jqtouch/extensions/jqt.location.js" type="application/x-javascript" charset="utf-8"></script>  -->
 
<!--        <script type="text/javascript" charset="utf-8">
            $(function(){
                function setDisplay(text) {
                    $('.latlng').empty().append(text)
                }
                
                // We pass "updateLocation" a callback function,
                // to run once we have the coordinates.
                // We also set it to a variable, so we can know
                // right away if it's working or not
                var lookup = jQT.updateLocation(function(coords){
                    if (coords) {
                        setDisplay('Latitude: ' + coords.latitude + '<br />Longitude: ' + coords.longitude);
                         $('.nearby').empty().append('<a href="list.php?lat=' + coords.latitude + '&lng=' + coords.longitude + '">Nearby List</a>');
                    } else {
                        setDisplay('Device not capable of geo-location.');
                    }
                });
 
                if (lookup) {
                    setDisplay('Looking up location&hellip;');
                }
            });
        </script> -->
    </head>
    <body>
<div data-role="page" data-theme="b" id="jqm-home"> 
        <div id="jqm-homeheader"> 
                <p>bus.lambdacomplex.org</p> 
        </div> 
        <div data-role="content"> 
            <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
                <li data-role="list-divider">Stops</li>
                <li><a href="stopList.php">All stops List</a></li>
                <li class="nearby"><a href="">Nearby List</a></li>
                <li><a href="stopList.php">Favourites List</a></li>
            </ul>
            <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
                <li data-role="list-divider">Routes</li>
                <li><a href="routeList.php">All Routes List</a></li>
                <li class="nearby"><a href="">Nearby List</a></li>
                <li><a href="routeList.php">Favourites List</a></li>
            </ul>
            <div class="info">
                <p class="latlng"></p>
                Time: <?php echo date("H:m"); ?> <br>
                Service Period: <?php echo ucwords(service_period()); ?> 
            </div>
        </div>
   </div>
 </body>
</html>