]> dev.renevier.net Git - syj.git/blob - application/views/scripts/idx/index.phtml
fixes welcome popup wording (bis)
[syj.git] / application / views / scripts / idx / index.phtml
1 <noscript>
2     <style type="text/css">
3         #map, #message, #data_controls, #login_controls, #user_area, #login_area, #newpwd_area {
4             display: none;
5         }
6     </style>
7
8     <p><?php echo $this->translate('SYJ needs javascript. Please activate scripts in your browser.');?></p>
9 </noscript>
10
11 <div id="map"></div>
12
13 <div id="message" class="message info">
14 <?php if (!$this->path and !$this->loggedUser) {?>
15 <?php echo $this->translate('Welcome on Syj.')?>
16 <br/>
17 <?php echo $this->translate('To create a journey, just press <strong>"start a route"</strong> button, then click on the map to add points to your route. You can zoom and move the map with the controls in the top left corner')?>
18 <br/>
19 <?php echo $this->translate('When you have finished a path, press "create", button.')?>
20 <?php }?>
21 </div>
22
23
24 <div id="path-length" class="menu-group">
25     <div id="path-length-title" class="info-title"><?php echo $this->translate('route length')?></div>
26     <div id="path-length-content">
27     </div>
28 </div>
29
30 <div id="menu">
31
32     <?php echo $this->localeSwitcher(); ?>
33
34     <div id="login_controls" class="menu-group">
35         <div>
36             <div class="menu-item">
37             <?php
38                 echo $this->anchor('login', $this->translate('login'), array('id' => 'login_control_anchor'));
39                 $anchortext = sprintf("<span id=\"account-create-anchor\">%s</span><span id=\"account-info\"><br>%s</span>",
40                                       $this->translate('create an account'),
41                                       $this->translate('Whith an account, you can manage and modify your routes'));
42                 ?>
43                </div>
44                <div class="menu-item">
45                <?php
46                 echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor'), false);
47             ?>
48             </div>
49         </div>
50         <div>
51             <?php echo $this->logoutLink(); ?>
52         </div>
53     </div>
54
55     <?php if (isset($this->path)) { ?>
56         <div id="path-infos" class="menu-group">
57             <div class="menu-item">
58                 <div id="path-infos-toggler"><a href="" id="path-infos-anchor"><?php echo $this->translate("route infos")?></a></div>
59              </div>
60                 <div id="path-infos-content" class="menu-item">
61
62                     <div id="path-directlink-title" class="info-title"><?php echo $this->translate("direct link")?></div>
63                     <div id="path-directlink-content"><?php
64                             $serverUrl = rtrim($this->serverUrl(), '/');
65                             $baseUrl = trim($this->baseUrl(), '/');
66                             $fullBaseUrl = $serverUrl . '/' . ($baseUrl ? ($baseUrl . '/'): '');
67                             $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
68                             $href = $fullBaseUrl . 'idx/' . $urlcomp . '?format=raw';
69                             printf('<a href="%s" title="%s">%s</a>',
70                                         $href,
71                                         $this->translate('direct link'),
72                                         $this->escape($href));
73                         ?></div>
74
75                     <div id="path-export-title" class="info-title"><?php echo $this->translate("export")?></div>
76                     <div id="path-export-content"><?php
77                        $href = $fullBaseUrl . 'geom/' . urlencode($this->path->id) . '.kml';
78                        printf('<a href="%s" title="%s">%s</a>',
79                                         $href,
80                                         $this->translate('kml export'),
81                                         $this->translate('kml export'));
82
83                         print '<br>';
84                        $href = $fullBaseUrl . 'geom/' . urlencode($this->path->id) . '.gpx';
85                        printf('<a href="%s" title="%s">%s</a>',
86                                         $href,
87                                         $this->translate('gpx export'),
88                                         $this->translate('gpx export'));
89                        ?>
90
91
92                 </div>
93             </div>
94         </div>
95     <?php }?>
96
97     <div id="data_controls">
98         <div id="data_controls_btns">
99
100     <?php if (isset($this->path)) { ?>
101         <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
102         <br>
103         <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
104     <?php } else {?>
105
106         <form id="nominatim-form" action="nominatim" method="get">
107             <div><a id="nominatim-label" href=""><?php echo $this->translate('Search a place')?></a></div>
108             <div id="nominatim-message" class="message"></div>
109             <div id="nominatim-controls">
110             <input name="nominatim-search" id="nominatim-search">
111             <input type="submit" id="nominatim-submit" name="nominatim-submit" value="<?php echo $this->translate('Ok')?>">
112             <img id="nominatim-throbber" src="icons/throbber.gif">
113             </div>
114
115         </form>
116
117         <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
118     <?php } ?>
119         </div>
120
121     <?php
122         print $this->geomform;
123     ?>
124
125 </div>
126
127 <?php if (!isset($this->path)) {?>
128             <div id="nominatim-suggestions">
129             <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
130             <ul id="nominatim-suggestions-list"></ul>
131             </div>
132 <?php }?>
133
134
135 </div>
136
137 <div id="newpwd_area" class="modal">
138     <div id="newpwd_message" class="message"></div>
139     <?php
140         print $this->newpwdform;
141     ?>
142 </div>
143
144 <div id="user_area" class="modal">
145     <div id="user_message" class="message"></div>
146     <?php
147         print $this->userform;
148     ?>
149 </div>
150
151 <div id="login_area" class="modal">
152    <div id="login_message" class="message"></div>
153
154 <?php
155   print $this->loginform;
156 ?>
157
158 <p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
159
160 </div>
161
162 <div id="termsofusearea" class="modal">
163   <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>
164 </div>