Location: PHPKode > scripts > Upble > upble-master/application/views/auth/login_form.php
<?php
$login = array(
	'name'	=> 'login',
	'id'	=> 'login',
	'value' => set_value('login'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
if ($login_by_username AND $login_by_email) {
	$login_label = 'Email or login';
} else if ($login_by_username) {
	$login_label = 'Login';
} else {
	$login_label = 'Email';
}
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30,
);
$remember = array(
	'name'	=> 'remember',
	'id'	=> 'remember',
	'value'	=> 1,
	'checked'	=> set_value('remember'),
	'style' => 'margin:0;padding:0',
);
$captcha = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8,
);
?>
<?php $this->load->view('header.php'); ?>
<div id="content">
	<div id="top" class="clearfix">
		<div class="span-4"><h1>Login</h1></div>
		
	</div>
	<div class="box">
		<?php echo form_open($this->uri->uri_string()); ?>
		<table cellpadding="0" cellspacing="0" class="user_table">
			
			<tr>
				<th><?php echo form_label($login_label, $login['id']); ?></th>
				<td><?php echo form_input($login); ?>
				<span style="color: red;"><?php echo form_error($login['name']); ?><?php echo isset($errors[$login['name']])?$errors[$login['name']]:''; ?></span></td>
			</tr>
			<tr>
				<th><?php echo form_label('Password', $password['id']); ?></th>
				<td><?php echo form_password($password); ?>
				<span style="color: red;"><?php echo form_error($password['name']); ?><?php echo isset($errors[$password['name']])?$errors[$password['name']]:''; ?></span></td>
			</tr>

			<?php if ($show_captcha) {
				if ($use_recaptcha) { ?>
			<tr>
				<td colspan="2">
					<div id="recaptcha_image"></div>
				</td>
				<td>
					<a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a>
					<div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a></div>
					<div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="recaptcha_only_if_image">Enter the words above</div>
					<div class="recaptcha_only_if_audio">Enter the numbers you hear</div>
				</td>
				<td><input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /></td>
				<td style="color: red;"><?php echo form_error('recaptcha_response_field'); ?></td>
				<?php echo $recaptcha_html; ?>
			</tr>
			<?php } else { ?>
			<tr>
				<th>&nbsp;</th>
				<td>
					<p>Enter the code exactly as it appears:</p>
					<?php echo $captcha_html; ?>
				</td>
			</tr>
			<tr>
				<th><?php echo form_label('Confirmation Code', $captcha['id']); ?></th>
				<td><?php echo form_input($captcha); ?>
				<span style="color: red;"><?php echo form_error($captcha['name']); ?></span></td>
			</tr>
			<?php }
			} ?>

			<tr>
				<th>&nbsp;</th>
				<td >
					<?php echo form_checkbox($remember); ?>
					<?php echo form_label('Remember me', $remember['id']); ?>
					
					
				</td>
			</tr>
			<tr>
				<th>&nbsp;</th>
				<td><?php echo form_submit('submit', 'Login','class="submit"'); ?>
					&nbsp;<?php echo anchor('/ucp/forgot_password/', 'Forgot password?'); ?>
				</td>
			</tr>
		</table>

	<?php echo form_close(); ?>
	</div>
		
</div>		
<?php $this->load->view('footer.php'); ?>
Return current item: Upble