]> dev.renevier.net Git - syj.git/blob - application/views/scripts/idx/index.phtml
search a place with nominatim
[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 click on the map to add points to your route. You can zoom and move map with controls upper left.')?>
18 <br/>
19 <?php echo $this->translate('When you have finished a path, press "save", button.')?>
20 <?php }?>
21 </div>
22
23
24 <div id="menu">
25
26     <?php echo $this->localeSwitcher(); ?>
27
28     <div id="login_controls">
29         <div>
30             <div class="login-anchor">
31             <?php
32                 echo $this->anchor('login', $this->translate('login'), array('id' => 'login_control_anchor'));
33                 $anchortext = sprintf("<span id=\"account-create-anchor\">%s</span><span id=\"account-info\"><br>%s</span>",
34                                       $this->translate('create an account'),
35                                       $this->translate('Whith an account, you can manage and modify your routes'));
36                 ?>
37                </div>
38                <div class="login-anchor">
39                <?php
40                 echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor'), false);
41             ?>
42             </div>
43         </div>
44         <div>
45             <?php echo $this->logoutLink(); ?>
46         </div>
47     </div>
48
49     <div id="data_controls">
50         <div id="data_controls_btns">
51
52     <?php if (isset($this->path)) { ?>
53         <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
54         <br>
55         <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
56     <?php } else {?>
57
58         <form id="nominatim-form" action="nominatim" method="get">
59             <div><a id="nominatim-label" href=""><?php echo $this->translate('Search a place')?></a></div>
60             <div id="nominatim-message" class="message"></div>
61             <div id="nominatim-controls">
62             <input name="nominatim-search" id="nominatim-search">
63             <input type="submit" id="nominatim-submit" name="nominatim-submit" value="<?php echo $this->translate('Ok')?>">
64             <img id="nominatim-throbber" src="icons/throbber.gif">
65             </div>
66
67             <div id="nominatim-suggestions">
68             <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
69             <ul id="nominatim-suggestions-list"></ul>
70             </div>
71
72         </form>
73
74         <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
75     <?php } ?>
76         </div>
77
78     <?php
79         print $this->geomform;
80     ?>
81 </div>
82
83 </div>
84
85 <div id="newpwd_area" class="modal">
86     <div id="newpwd_message" class="message"></div>
87     <?php
88         print $this->newpwdform;
89     ?>
90 </div>
91
92 <div id="user_area" class="modal">
93     <div id="user_message" class="message"></div>
94     <?php
95         print $this->userform;
96     ?>
97 </div>
98
99 <div id="login_area" class="modal">
100    <div id="login_message" class="message"></div>
101
102 <?php
103   print $this->loginform;
104 ?>
105
106 <p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
107
108 </div>
109
110 <div id="termsofusearea" class="modal">
111   <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>
112 </div>