phpDocumentor default
[ class tree: default ] [ index: default ] [ all elements ]

Source for file Login.php

Documentation is available at Login.php

  1. <div class="loginDiv">
  2.     <?php
  3.     if (\Wodafok\Factories\Auth::userIsConnected()) {
  4.         ?>
  5.  
  6.         <a href="<?php echo \Wodafok\Rewriting\Rewriting::createUrl('User''Profil')?>">
  7.             <?php echo \Wodafok\Factories\Auth::getConnectedUser()->getLogin()?>
  8.         </a>&nbsp;<span id="loginButton" style="margin:0 10px" > <a href="<?php echo \Wodafok\Rewriting\Rewriting::createUrl('User''Logout')?>">Disconnect</a></span>
  9.         <?php
  10.     else {
  11.         ?>
  12.         <form action="<?php echo \Wodafok\Rewriting\Rewriting::createUrl('User''Logon')?>" method="post" id="loginForm" name="loginForm">
  13.  
  14.             <?php //echo $this->Translate("STR_LOGIN_TEXT");  ?>
  15.             <input placeholder="Votre identifiant" type="text" required name="login" id="login"/>
  16.             <?php //echo $this->Translate("STR_PASSWORD_TEXT");  ?>
  17.             <input type="password" class="required" placeholder="Mot de passe" required id="password" name="password" value=""/>
  18.             <input type="submit" id="loginButton" value="Login"/>
  19.         </form>
  20.  
  21.         <?php
  22.     }
  23.     ?>
  24. </div>

Documentation generated on Mon, 13 Aug 2012 23:01:09 +0200 by phpDocumentor 1.4.4