This commit is contained in:
Eike Foken
2011-08-11 15:22:05 +02:00
parent 29042dd010
commit 1e4adc74fb
2 changed files with 54 additions and 49 deletions

View File

@@ -1,60 +1,63 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html lang="<?=substr($this->config->item('language'), 0, 2);?>">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8" />
<title>ScattPort | Login</title> <title>ScattPort | <?=_('Login');?></title>
<?= link_tag('assets/css/login.css'); ?> <?= link_tag('assets/css/login.css'); ?>
<?= link_tag('assets/css/form.css'); ?> <?= link_tag('assets/css/form.css'); ?>
<?= script_tag('assets/js/minmax.js'); ?>
<?= script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); ?>
<?= script_tag('assets/js/scattport.js'); ?>
<?= script_tag('assets/js/minmax.js'); ?>
<?= script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); ?>
<?= script_tag('assets/js/scattport.js'); ?>
<script type="text/javascript">
var SITE_URL = '<?=site_url()?>';
</script>
</head> </head>
<body> <body>
<div id="wrapper"> <div id="wrapper">
<div id="box"> <div id="box">
<h2>Scattport <span class="light">Login</span></h2> <h2>Scattport <span class="light"><?=_('Login');?></span></h2>
<p> <?php
<?php if (isset($error))
if (isset($error)) foreach ($error as $e)
foreach ($error as $e) echo "<p class=\"error\">" . $e . "</p>";
echo "<div class=\"error\">" . $e . "</div>"; if (isset($notice))
if (isset($notice)) foreach ($notice as $n)
foreach ($notice as $n) echo "<p class=\"notice\">" . $n . "</p>";
echo "<div class=\"notice\">" . $n . "</div>"; ?>
if (isset($success)) <form action="<?= site_url('auth/login') ?>" method="post" name="loginform">
foreach ($success as $s) <ul>
echo "<div class=\"success\">" . $s . "</div>"; <li>
?> <?=form_label(_('Username'), 'username');?>
</p> <div>
<input type="text" name="username" id="username" class="text max" value="<?=set_value('username');?>" />
<?=form_error('username');?>
</div>
</li>
<li>
<?=form_label(_('Password'), 'password');?>
<div>
<input type="password" name="password" id="password" class="text max" />
<?=form_error('password');?>
</div>
</li>
<li>
<div>
<input type="submit" class="button" name="login" value="<?=_('Log in');?>" />
</div>
</li>
</ul>
</form>
<form action="<?= site_url('auth/login') ?>" method="post" name="loginform"> <p><?=anchor('auth/forgot_password', _('Forgotten password?'));?></p>
<ul>
<li>
<label>Benutzername</label>
<div><input type="text" name="username" class="text medium" /></div>
</li>
<li>
<label>Passwort</label>
<div><input type="password" name="password" class="text medium" /></div>
</li>
<li>
<div>
<input type="submit" class="button" name="login" value="Einloggen" />
</div>
</li>
</ul>
</form>
<p><a href="#">Passwort vergessen?</a></p>
</div>
</div> </div>
</div>
</body> </body>
</html> </html>

View File

@@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head> <html lang="<?=substr($this->config->item('language'), 0, 2);?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8" />
<title>ScattPort</title> <title>ScattPort</title>
@@ -17,6 +18,7 @@
var SITE_URL = '<?=site_url()?>'; var SITE_URL = '<?=site_url()?>';
</script> </script>
</head> </head>
<body> <body>
<div id="header"> <div id="header">