]> dev.renevier.net Git - syj.git/blob - application/views/scripts/idx/index.phtml
css improvements for nominatim-suggestions
[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="path-length" class="menu-group">
25     <div id="path-length-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">
61                 </div>
62             </div>
63         </div>
64     <?php }?>
65
66     <div id="data_controls">
67         <div id="data_controls_btns">
68
69     <?php if (isset($this->path)) { ?>
70         <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
71         <br>
72         <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
73     <?php } else {?>
74
75         <form id="nominatim-form" action="nominatim" method="get">
76             <div><a id="nominatim-label" href=""><?php echo $this->translate('Search a place')?></a></div>
77             <div id="nominatim-message" class="message"></div>
78             <div id="nominatim-controls">
79             <input name="nominatim-search" id="nominatim-search">
80             <input type="submit" id="nominatim-submit" name="nominatim-submit" value="<?php echo $this->translate('Ok')?>">
81             <img id="nominatim-throbber" src="icons/throbber.gif">
82             </div>
83
84         </form>
85
86         <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
87     <?php } ?>
88         </div>
89
90     <?php
91         print $this->geomform;
92     ?>
93
94 </div>
95
96 <?php if (!isset($this->path)) {?>
97             <div id="nominatim-suggestions">
98             <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
99             <ul id="nominatim-suggestions-list"></ul>
100             </div>
101 <?php }?>
102
103
104 </div>
105
106 <div id="newpwd_area" class="modal">
107     <div id="newpwd_message" class="message"></div>
108     <?php
109         print $this->newpwdform;
110     ?>
111 </div>
112
113 <div id="user_area" class="modal">
114     <div id="user_message" class="message"></div>
115     <?php
116         print $this->userform;
117     ?>
118 </div>
119
120 <div id="login_area" class="modal">
121    <div id="login_message" class="message"></div>
122
123 <?php
124   print $this->loginform;
125 ?>
126
127 <p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
128
129 </div>
130
131 <div id="termsofusearea" class="modal">
132   <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>
133 </div>