<?php
/**
 * Copyright 2012, Eugene Poberezkin. All rights reserved.
 * http://WhoYouMeet.com - here busy people choose who they meet
 *
 *---------------------------------------------------------------
 * File /application/views/view_login.php
 * 
 * Main part of /Login webpage
 *---------------------------------------------------------------
 *
 */
?> 
 
	<?=form_open('login/validate', 'class="form-signin"')?>

		<h2 class="form-signin-heading">Sign in to <strong>Who You Meet</strong></h2>

		<?php $this->load->view('includes/view_alerts'); ?>

		<p><?=form_input('email', $this->input->post('email'), 'class="input-block-level" placeholder="Email address"')?></p>

		<p>
			<?=form_password('password', '', 'class="input-block-level" placeholder="Password"')?>
			
		</p>

		<div style="text-align: center">

			<p>
				<?=form_submit('login_submit', 'Sign in', 'class="btn btn-large btn-primary" style="width: 110px"')?>
				<span style="vertical-align: middle"><big>&nbsp;or&nbsp;</big><span>
				<a class="btn btn-large ajax" style="vertical-align: top" href="<?=base_url()?>signup">
					Join now!
				</a>
			</p>

			<p class="ajax"><a href="<?=base_url()?>login/recover<?php if ($this->input->post('email')): ?>?email=<?=$this->input->post('email')?><?php endif; ?>">
				Help! I have forgotten my password!</a></p>

			<div>&nbsp;</div>

			<p>
				<small class="vert-middle">Sign in with</small>&nbsp;
				<a type="button" class="btn btn-mini" href="<?=base_url()?>login/twitter_redirect">
					<img src="<?=base_url()?>img/icon-twitter.png" class="icon-login"/>
					<span class="vert-middle">&nbsp;Twitter</span>
				</a>
				&nbsp;
				<a type="button" class="btn btn-mini" href="<?=base_url()?>login/linkedin_redirect">
					<img src="<?=base_url()?>img/icon-linkedin.png" class="icon-login"/>
					<span class="vert-middle">&nbsp;LinkedIn</span>
				</a>
				&nbsp;
				<a type="button" class="btn btn-mini" href="<?=base_url()?>login/facebook_redirect">
					<img src="<?=base_url()?>img/icon-facebook.png" class="icon-login"/>
					<span class="vert-middle">&nbsp;Facebook</span>
				</a>
			</p>

		</div>
		
	<?=form_close()?>

