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>
13 <div id="message" class="message info">
14 <?php if (!$this->path and !$this->loggedUser) {?>
15 <?php echo $this->translate('Welcome on Syj.')?>
17 <?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.')?>
19 <?php echo $this->translate('When you have finished a path, press "save", button.')?>
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">
32 <?php echo $this->localeSwitcher(); ?>
34 <div id="login_controls" class="menu-group">
36 <div class="menu-item">
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'));
44 <div class="menu-item">
46 echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor'), false);
51 <?php echo $this->logoutLink(); ?>
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>
60 <div id="path-infos-content" class="menu-item">
61 <div id="path-directlink-title" class="info-title"><?php echo $this->translate("direct link")?></div>
62 <div id="path-directlink-content"><?php
63 $serverUrl = rtrim($this->serverUrl(), '/');
64 $baseUrl = trim($this->baseUrl(), '/');
65 $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
66 $href = $serverUrl . '/' . ($baseUrl ? ($baseUrl . '/'): '') . 'idx/' . $urlcomp . '?format=raw';
67 printf('<a href="%s" title="%s">%s</a>',
69 $this->translate('direct link'),
70 $this->escape($href));
77 <div id="data_controls">
78 <div id="data_controls_btns">
80 <?php if (isset($this->path)) { ?>
81 <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
83 <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
86 <form id="nominatim-form" action="nominatim" method="get">
87 <div><a id="nominatim-label" href=""><?php echo $this->translate('Search a place')?></a></div>
88 <div id="nominatim-message" class="message"></div>
89 <div id="nominatim-controls">
90 <input name="nominatim-search" id="nominatim-search">
91 <input type="submit" id="nominatim-submit" name="nominatim-submit" value="<?php echo $this->translate('Ok')?>">
92 <img id="nominatim-throbber" src="icons/throbber.gif">
97 <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
102 print $this->geomform;
107 <?php if (!isset($this->path)) {?>
108 <div id="nominatim-suggestions">
109 <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
110 <ul id="nominatim-suggestions-list"></ul>
117 <div id="newpwd_area" class="modal">
118 <div id="newpwd_message" class="message"></div>
120 print $this->newpwdform;
124 <div id="user_area" class="modal">
125 <div id="user_message" class="message"></div>
127 print $this->userform;
131 <div id="login_area" class="modal">
132 <div id="login_message" class="message"></div>
135 print $this->loginform;
138 <p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
142 <div id="termsofusearea" class="modal">
143 <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>