- <noscript>
- <style type="text/css">
- #map, #message, #data_controls, #login_controls, #user_area, #login_area, #newpwd_area {
- display: none;
- }
- </style>
-
- <p><?php echo $this->translate('SYJ needs javascript. Please activate scripts in your browser.');?></p>
- </noscript>
-
- <div id="map"></div>
-
- <div id="message" class="message info">
- <?php if (!$this->path and !$this->loggedUser) {?>
- <?php echo $this->translate('Welcome on Syj.')?>
- <br/>
- <?php echo $this->translate('To create a journey, just click on the map to add points to your route. You can zoom and move map with controls upper left.')?>
- <br/>
- <?php echo $this->translate('When you have finished a path, press "save", button.')?>
- <?php }?>
+<noscript>
+ <style type="text/css">
+ #map, #message, #data_controls, #login_controls, #user_area, #login_area, #newpwd_area {
+ display: none;
+ }
+ </style>
+
+ <p><?php echo $this->translate('SYJ needs javascript. Please activate scripts in your browser.');?></p>
+</noscript>
+
+<div id="map"></div>
+<div id="map-overlay"></div>
+
+<?php
+$message = "";
+$msgclass = "info";
+if ($this->errorMsg) {
+ $message .= $this->errorMsg;
+ $msgclass = "error";
+} else if (!$this->path and !$this->loggedUser) {
+ $message .= $this->translate('Welcome on Syj.');
+ $message .= "<br>";
+ $message .= $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');
+ $message .= "<br>";
+ $message .= $this->translate('When you have finished a path, press "create", button.');
+}
+?>
+
+<div id="message" class="message <?php echo $msgclass?>">
+ <?php echo $message ?>
+</div>
+
+
+<div id="path-length" class="menu-group">
+ <div id="path-length-title" class="info-title"><?php echo $this->translate('route length')?></div>
+ <div id="path-length-content">
+ </div>
+</div>
+
+<div id="menu">
+
+ <?php echo $this->localeSwitcher(); ?>
+
+ <div id="login_controls" class="menu-group">
+ <div>
+ <div class="menu-item">
+ <?php
+ echo $this->anchor('login', $this->translate('login'), array('id' => 'login_control_anchor'));
+ $anchortext = sprintf("<span id=\"account-create-anchor\">%s</span><span id=\"account-info\"><br>%s</span>",
+ $this->translate('create an account'),
+ $this->translate('Whith an account, you can manage and modify your routes'));
+ ?>
+ </div>
+ <div class="menu-item">
+ <?php
+ echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor'), false);
+ ?>
+ </div>
+ </div>
+ <div>
+ <?php echo $this->logoutLink(); ?>
+ </div>