|
|
@@ -5,13 +5,11 @@ use \lithium\security\Auth;
|
|
|
<html>
|
|
|
<head>
|
|
|
<?= $this->html->charset() ?>
|
|
|
- <title>OtakuHub > <?= $this->title() ?></title>
|
|
|
+ <title>OtakuHub<?php $title = $this->title(); if ($title) echo " > $title" ?></title>
|
|
|
<?= $this->html->style(array('style', 'base')) ?>
|
|
|
<?= $this->html->style(array('themes/light')) ?>
|
|
|
<?= $this->html->style(array('prettyPhoto')) ?>
|
|
|
|
|
|
- <?= $this->html->script("/js/jquery-1.6.1.min.js") ?>
|
|
|
-
|
|
|
<script type="text/javascript" >
|
|
|
function clearDefault(el) {
|
|
|
if (el.defaultValue == el.value)
|
|
|
@@ -21,7 +19,7 @@ use \lithium\security\Auth;
|
|
|
el.value = "Search..."
|
|
|
}
|
|
|
</script>
|
|
|
- <link href='http://fonts.googleapis.com/css?family=Cantarell:regular,bold&v1' rel='stylesheet' type='text/css'>
|
|
|
+ <link href='http://fonts.googleapis.com/css?family=Cantarell:regular,bold&v1' rel='stylesheet' type='text/css'>
|
|
|
</head>
|
|
|
<header>
|
|
|
<?php
|
|
|
@@ -45,8 +43,8 @@ use \lithium\security\Auth;
|
|
|
<div id="login" style="display: none">
|
|
|
<h2>Login</h2>
|
|
|
';
|
|
|
- echo $this->form->create(null, array('url' => '/login', 'id' => 'login'));
|
|
|
- echo $this->form->field('username', array('type' => 'textbox'));
|
|
|
+ echo $this->form->create(null, array('url' => '/login'));
|
|
|
+ echo $this->form->field('username', array('type' => 'text'));
|
|
|
echo $this->form->field('password', array('type' => 'password'));
|
|
|
echo $this->form->submit('Login');
|
|
|
echo $this->form->end();
|
|
|
@@ -84,6 +82,7 @@ use \lithium\security\Auth;
|
|
|
<br class="cl" />
|
|
|
</footer>
|
|
|
|
|
|
+<?= $this->html->script("/js/jquery-1.6.1.min.js") ?>
|
|
|
<?= $this->html->script("/js/jquery.anchor.js"); ?>
|
|
|
<?= $this->html->script("/js/jquery.tools.min.js"); ?>
|
|
|
<?= $this->html->script("/js/jquery.form.js"); ?>
|
|
|
@@ -91,7 +90,7 @@ use \lithium\security\Auth;
|
|
|
<?= $this->html->script("/js/functions.js"); ?>
|
|
|
<?= $this->html->script("/js/jquery.prettyPhoto.js"); ?>
|
|
|
|
|
|
-<script type="text/javascript" charset="utf-8">
|
|
|
+<script type="text/javascript">
|
|
|
$(document).ready(function(){
|
|
|
var login = $("a[href='/login']");
|
|
|
login.attr('href', '#login');
|