_login.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php if (!$sf_user->isAuthenticated()): ?>
  2. <div class="login">
  3. <div class="top">
  4. <div><h4>connexion client</h4></div>
  5. </div>
  6. <div class="center">
  7. <?php echo form_tag('catalyz/login') ?>
  8. <?php echo input_hidden_tag('node', $ContentTree->getCurrentNode()?$ContentTree->getCurrentNode()->getId():$ContentTree->getRoot()->getId()) ?>
  9. <fieldset>
  10. <div class="login-form">
  11. <div>
  12. <label>Login</label>
  13. <input type="text" name="username" class="txt-login" />
  14. </div>
  15. <div>
  16. <label>Mot de passe</label>
  17. <input type="password" name="password" class="psswrd-login" />
  18. <?php echo submit_tag('', array('class' => 'btn-login', 'title' => 'Se connecter')) ?>
  19. </div>
  20. <?php if ('' != $catalyz_login_error = $sf_user->getAttribute('catalyz_login_error', '')): ?>
  21. <div style="color:red"><?php echo $catalyz_login_error ?></div>
  22. <?php $sf_user->setAttribute('catalyz_login_error', '') ?>
  23. <?php endif ?>
  24. <div>
  25. <a href="<?php echo url_for('@katao_subscribe') ?>">S'inscrire</a>
  26. <a href="<?php echo url_for('@katao_forgot_password') ?>">Mot de passe oublié ?</a>
  27. </div>
  28. </div>
  29. </fieldset>
  30. </form>
  31. </div>
  32. <div class="bottom"></div>
  33. </div>
  34. <?php endif ?>