<?php // @version $Id: default.php 9830 2008-01-03 01:09:39Z eddieajau $
defined('_JEXEC') or die('Restricted access');
?>
<?php
$return = base64_encode(base64_decode($return).'#content');

if ($type == 'logout') : ?>

<form action="index.php" method="post" name="login" class="log">
    <div class="logo-title">
        <?php if ($params->get('greeting')) : echo JText::sprintf('HINAME', $user->get('name')); endif; ?>
    </div>
    <div>
        <input type="submit" name="Submit" class="button png" value="<?php echo JText::_('BUTTON_LOGOUT'); ?>" />
    </div>
    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="logout" />
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
</form>
<?php else : ?>
<form action="<?php echo JRoute::_( 'index.php', true, $params->get('usesecure')); ?>" method="post" name="login" class="form-login">
    <?php if ($params->get('pretext')) : ?>
    <p> <?php echo $params->get('pretext'); ?> </p>
    <?php endif; ?>
    <div class="clearfix">
        <!--<label for="modlgn_username"><?php echo JText::_('Username:') ?></label>-->
        <div class="username form-height">
           <input name="username" id="mod_login_username" type="text" class="inputbox" value="<?php echo JText::_('Username'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('Username'); ?>'" onfocus="if(this.value =='<?php echo JText::_('Username')?>' ) this.value=''" alt="<?php echo JText::_('Username'); ?>" />
        </div>
        <!--<label for="modlgn_passwd"><?php echo JText::_('Password:') ?></label>-->
        <div class="password  form-height">
            <input type="password" id="mod_login_password" name="passwd" class="inputbox"  alt="<?php echo JText::_('Password'); ?>" value="password" onfocus="this.value=null" />
            <br />
        </div>
        
         <div id="inputs">
                        <input type="checkbox" name="remember" id="mod_login_remember" class="checkbox" value="yes" alt="<?php echo JText::_('Remember me'); ?>" />
                        <label for="mod_login_remember" class="remember"> <?php echo JText::_('Remember me'); ?> </label>
                </div>
        <div class="clear"><input type="submit" name="Submit" class="button-login" value="<?php echo JText::_('LOGIN'); ?>" /></div>
        
    </div>
     
    <div id="form-login-remember"> <a class="form-link1" href="<?php echo JRoute::_('index.php?option=com_user&view=reset#content'); ?>"> <?php echo JText::_('Password Reminder '); ?></a><br  />
      <!--<a href="<?php echo JRoute::_('index.php?option=com_user&view=remind#content'); ?>"> <?php echo JText::_('Forgot your username? '); ?></a>  -->
        <?php $usersConfig =& JComponentHelper::getParams('com_users');
	if ($usersConfig->get('allowUserRegistration')) : ?>
        <div class="form-indent-top">
        	<span class="login-text-1"><?php echo JText::_('No account yet?'); ?></span>
            <a class="reg" href="<?php echo JRoute::_('index.php?option=com_user&task=register#content'); ?>"> <?php echo JText::_('Create one  '); ?></a>
            
        </div>
        <?php endif; ?>
    </div>
    
    <?php 
	echo $params->get('posttext'); ?>
    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="login" />
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
    <?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php endif;
