]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/idx/index.phtml
general class for accout info toggler
[syj.git] / application / views / scripts / idx / index.phtml
index fedff0aa2a92380ef606277f5ac7d65681d9c81c..38de1516b78db1ba2a8d60ff807e25c509bcf485 100644 (file)
@@ -1,23 +1,49 @@
-    <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="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 }?>
+</div>
+
+
+<div id="menu">
+
+    <?php echo $this->localeSwitcher(); ?>
+
+    <div id="login_controls">
+        <div>
+            <div class="login-anchor">
+            <?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="login-anchor">
+               <?php
+                echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor'), false);
+            ?>
+            </div>
+        </div>
+        <div>
+            <?php echo $this->logoutLink(); ?>
+        </div>
     </div>
 
     <div id="data_controls">
     <?php
         print $this->geomform;
     ?>
+</div>
 
-    </div>
+</div>
 
-    <div id="login_controls">
-        <div>
-            <?php
-                echo $this->anchor('login', $this->translate('login'), array('id' => 'login_control_anchor', 'class' => 'login-anchor'));
-                $anchortext = sprintf("%s<img id=\"account-info-bullet\" src=\"icons/bullet_arrow_right.png\"><span id=\"account-info\"><br>%s</span>",
-                                      $this->translate('create an account'),
-                                      $this->translate('Whith an account, you can manage and modify your routes'));
-                echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor', 'class' => 'login-anchor'), false);
-            ?>
-        </div>
-        <div>
-            <?php echo $this->logoutLink(); ?>
-        </div>
-    </div>
-
-    <div id="newpwd_area" class="modal">
-        <div id="newpwd_message" class="message"></div>
-        <?php
-            print $this->newpwdform;
-        ?>
-    </div>
-
-    <div id="user_area" class="modal">
-        <div id="user_message" class="message"></div>
-        <?php
-            print $this->userform;
-        ?>
-    </div>
+<div id="newpwd_area" class="modal">
+    <div id="newpwd_message" class="message"></div>
+    <?php
+        print $this->newpwdform;
+    ?>
+</div>
 
-      <div id="login_area" class="modal">
-         <div id="login_message" class="message"></div>
+<div id="user_area" class="modal">
+    <div id="user_message" class="message"></div>
+    <?php
+        print $this->userform;
+    ?>
+</div>
 
-      <?php
-        print $this->loginform;
-      ?>
+<div id="login_area" class="modal">
+   <div id="login_message" class="message"></div>
 
-      <p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
+<?php
+  print $this->loginform;
+?>
 
-      </div>
+<p id="login_area_create"><a id="login_area_create_anchor" href=""><?php echo $this->translate('create an account')?></a></p>
 
-      <div id="termsofusearea" class="modal">
-        <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>
-      </div>
+</div>
 
-<?php echo $this->localeSwitcher(); ?>
+<div id="termsofusearea" class="modal">
+  <iframe id="termsofuseiframe" width="100%" height="100%" frameborder="0"></iframe>
+</div>