Location: PHPKode > projects > Anahita Social Engine > dependencies/tmpl_anahita/html/mod_login/default.php
<?php // @version $Id: default.php 10381 2008-06-01 03:35:53Z pasamio $
defined('_JEXEC') or die('Restricted access');
?>

<div id="login-wrapper" class="rounded">
<?php
$return = base64_encode(base64_decode($return).'#content');

if ($type == 'logout') : ?>
<form action="index.php" method="post" id="login-form" name="login" class="log">
	
	<?php if ($params->get('greeting')) : ?>
	<?php
		$viewer = AnModelAnahita::getSessionViewer();
		print KFactory::get('lib.anahita.uikit.actor.avatar')->setActor($viewer)->setSize(AnModelAvatar::SizeSquare);
	?>		
	<?php echo JText::sprintf('HINAME', $viewer->name); ?>		
	<?php endif; ?>
	<a href="#" onclick="$('login-form').submit()">
		<?php echo JText::_('BUTTON_LOGOUT'); ?>
	</a>
		
	<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 : ?>
<script>

	window.addEvent('domready',function(){
		
		new MenuSlider($('login-less'), $('login-more'));
		new OverText($('mod_login_username'));
		new OverText($('mod_login_password'));		
	})	
	
</script>
<div id="login-form-wrapper">
	<form action="<?php echo JRoute::_( 'index.php', true, $params->get('usesecure')); ?>" method="post" name="login" class="form-login">
		<div id="login-less">
			<?php if ($params->get('pretext')) : ?>
			<p>
				<?php echo $params->get('pretext'); ?>
			</p>
			<?php endif; ?>
			
			<input name="username" id="mod_login_username" type="text" class="inputbox overtext" alt="<?php echo JText::_('Username'); ?>" />
			<input type="password" id="mod_login_password" name="passwd" class="inputbox overtext"  alt="<?php echo JText::_('Password'); ?>" />
			<input type="submit" name="Submit" class="button" value="<?php echo JText::_('BUTTON_LOGIN'); ?>" />
		</div>
		<div id="login-more">
			<input type="checkbox" name="remember" id="mod_login_remember" class="checkbox" value="yes" alt="<?php echo JText::_('Remember me'); ?>" />			
			<?php echo JText::_('Remember me'); ?>
			
			<p>
				<a href="<?php echo JRoute::_('index.php?option=com_user&view=reset#content'); ?>">
					<?php echo JText::_('FORGOT_YOUR_PASSWORD'); ?></a>
				| 
				<a href="<?php echo JRoute::_('index.php?option=com_user&view=remind#content'); ?>">
					<?php echo JText::_('FORGOT_YOUR_USERNAME'); ?></a>
			</p>
			<?php $usersConfig =& JComponentHelper::getParams('com_users');
			if ($usersConfig->get('allowUserRegistration')) : ?>
			<p>
				<?php echo JText::_('No account yet?'); ?>
				<a href="<?php echo JRoute::_('index.php?option=com_user&task=register#content'); ?>">
					<?php echo JText::_('Register'); ?></a>
			</p>
			<?php endif;
			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' ); ?>
		</div>
	</form>
</div>
<?php endif;?>
</div>


Return current item: Anahita Social Engine