[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_user/views/login/tmpl/ -> default_login.php (source)

   1  <?php defined('_JEXEC') or die('Restricted access'); ?>
   2  <?php if(JPluginHelper::isEnabled('authentication', 'openid')) :
   3          $lang = &JFactory::getLanguage();
   4          $lang->load( 'plg_authentication_openid', JPATH_ADMINISTRATOR );
   5          $langScript =     'var JLanguage = {};'.
   6                          ' JLanguage.WHAT_IS_OPENID = \''.JText::_( 'WHAT_IS_OPENID' ).'\';'.
   7                          ' JLanguage.LOGIN_WITH_OPENID = \''.JText::_( 'LOGIN_WITH_OPENID' ).'\';'.
   8                          ' JLanguage.NORMAL_LOGIN = \''.JText::_( 'NORMAL_LOGIN' ).'\';'.
   9                          ' var comlogin = 1;';
  10          $document = &JFactory::getDocument();
  11          $document->addScriptDeclaration( $langScript );
  12          JHTML::_('script', 'openid.js');
  13  endif; ?>
  14  <form action="<?php echo JRoute::_( 'index.php', true, $this->params->get('usesecure')); ?>" method="post" name="com-login" id="com-form-login">
  15  <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="contentpane<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  16  <tr>
  17      <td colspan="2">
  18          <?php if ( $this->params->get( 'show_login_title' ) ) : ?>
  19          <div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  20              <?php echo $this->params->get( 'header_login' ); ?>
  21          </div>
  22          <?php endif; ?>
  23          <div>
  24              <?php echo $this->image; ?>
  25              <?php if ( $this->params->get( 'description_login' ) ) : ?>
  26                  <?php echo $this->params->get( 'description_login_text' ); ?>
  27                  <br /><br />
  28              <?php endif; ?>
  29          </div>
  30      </td>
  31  </tr>
  32  
  33  </table>
  34  <fieldset class="input">
  35      <p id="com-form-login-username">
  36          <label for="username"><?php echo JText::_('Username') ?></label><br />
  37          <input name="username" id="username" type="text" class="inputbox" alt="username" size="18" />
  38      </p>
  39      <p id="com-form-login-password">
  40          <label for="passwd"><?php echo JText::_('Password') ?></label><br />
  41          <input type="password" id="passwd" name="passwd" class="inputbox" size="18" alt="password" />
  42      </p>
  43      <?php if(JPluginHelper::isEnabled('system', 'remember')) : ?>
  44      <p id="com-form-login-remember">
  45          <label for="remember"><?php echo JText::_('Remember me') ?></label>
  46          <input type="checkbox" id="remember" name="remember" class="inputbox" value="yes" alt="Remember Me" />
  47      </p>
  48      <?php endif; ?>
  49      <input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" />
  50  </fieldset>
  51  <ul>
  52      <li>
  53          <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=reset' ); ?>">
  54          <?php echo JText::_('FORGOT_YOUR_PASSWORD'); ?></a>
  55      </li>
  56      <li>
  57          <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>">
  58          <?php echo JText::_('FORGOT_YOUR_USERNAME'); ?></a>
  59      </li>
  60      <?php
  61      $usersConfig = &JComponentHelper::getParams( 'com_users' );
  62      if ($usersConfig->get('allowUserRegistration')) : ?>
  63      <li>
  64          <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=register' ); ?>">
  65              <?php echo JText::_('REGISTER'); ?></a>
  66      </li>
  67      <?php endif; ?>
  68  </ul>
  69  
  70      <input type="hidden" name="option" value="com_user" />
  71      <input type="hidden" name="task" value="login" />
  72      <input type="hidden" name="return" value="<?php echo $this->return; ?>" />
  73      <?php echo JHTML::_( 'form.token' ); ?>
  74  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1