2 <style type="text/css">
3 #map, #message, #data_controls, #login_controls, #user_area, #login_area, #newpwd_area {
8 <p><?php echo $this->translate('SYJ needs javascript. Please activate scripts in your browser.');?></p>
12 <div id="map-overlay"></div>
17 if ($this->errorMsg) {
18 $message .= $this->errorMsg;
20 } else if (!$this->path and !$this->loggedUser) {
21 $message .= $this->translate('To create a journey, press <strong>"start a route"</strong> button, then click on the map to add points. To delete a point, hold shift pressed while clicking on it.');
23 $message .= $this->translate('You can zoom and move the map with the controls in the top left corner.');
25 $message .= $this->translate('When you have finished a path, press "create", button.');
26 $msgclass = "info optional";
30 <div id="message" class="message <?php echo $msgclass?>">
31 <?php echo $message ?>
35 <div id="path-length" class="menu-group">
36 <div id="path-length-title" class="info-title"><?php echo $this->translate('route length')?></div>
37 <div id="path-length-content">
43 <?php echo $this->localeSwitcher(); ?>
45 <div id="login_controls" class="menu-group">
47 <div class="menu-item">
49 echo $this->anchor('login', $this->translate('login'), array('id' => 'login_control_anchor'));
50 $anchortext = sprintf("<span id=\"account-create-anchor\">%s</span><span id=\"account-info\"><br>%s</span>",
51 $this->translate('create an account'),
52 $this->translate('Whith an account, you can manage and modify your routes'));
55 <div class="menu-item">
57 echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor'), false);
62 <?php echo $this->logoutLink(); ?>
66 <?php if (isset($this->path)) { ?>
67 <div id="path-infos" class="menu-group">
68 <div class="menu-item">
69 <div id="path-infos-toggler"><a href="" id="path-infos-anchor"><?php echo $this->translate("route infos")?></a></div>
71 <div id="path-infos-content" class="menu-item">
73 <section class="info-section">
74 <h1 id="path-directlink-title"><?php echo $this->translate("direct link")?></h1>
76 $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
77 $href = $this->baseUrl() . '/idx/' . $urlcomp . '?format=raw';
78 printf('<a href="%s" title="%s">%s</a>',
80 $this->translate('direct link'),
81 $this->escape($href));
85 <section class="info-section">
86 <h1 id="path-export-title"><?php echo $this->translate("export")?></h1>
88 $fileName = $this->path->title ?: $this->path->id;
89 $href = $this->baseUrl() . '/geom/' . rawurlencode($fileName) . '.kml';
90 printf('<a href="%s" title="%s">%s</a>',
92 $this->translate('kml export'),
93 $this->translate('kml export'));
96 $href = $this->baseUrl() . '/geom/' . rawurlencode($fileName) . '.gpx';
97 printf('<a href="%s" title="%s">%s</a>',
99 $this->translate('gpx export'),
100 $this->translate('gpx export'));
104 <?php if ($this->profileActive) { ?>
105 <section class="info-section">
106 <h1 id="path-profile-title"><?php echo $this->translate("altitude profile")?></h1>
108 $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
109 $href = $this->baseUrl() . '/profile/' . $urlcomp . '.png';
110 $imgsrc = $this->addParamToUrl($href, 'size', 'small', true);
111 printf('<a href="%s"><img src="%s"></a>', $href, $imgsrc);
121 <div id="data_controls">
122 <div id="data_controls_btns">
124 <?php if (isset($this->path)) { ?>
125 <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
127 <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
130 <form id="nominatim-form" action="nominatim" method="get">
131 <div><a id="nominatim-label" href=""><?php echo $this->translate('Search a place')?></a></div>
132 <div id="nominatim-message" class="message"></div>
133 <div id="nominatim-controls">
134 <input name="nominatim-search" id="nominatim-search">
135 <input type="submit" id="nominatim-submit" name="nominatim-submit" value="<?php echo $this->translate('Ok')?>">
136 <img id="nominatim-throbber" src="icons/throbber.gif">
141 <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
146 print $this->geomform;
151 <?php if (!isset($this->path)) {?>
152 <div id="nominatim-suggestions">
153 <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
154 <ul id="nominatim-suggestions-list"></ul>
161 <div id="newpwd_area" class="modal">
162 <div id="newpwd_message" class="message"></div>
164 print $this->newpwdform;
168 <div id="user_area" class="modal">
169 <div id="user_message" class="message"></div>
171 print $this->userform;
175 <div id="login_area" class="modal">
176 <div id="login_message" class="message"></div>
179 print $this->loginform;
182 <p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
186 <div id="termsofusearea" class="modal">
187 <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>