Revision 38902b24
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
SL/Controller/Layout.pm | ||
---|---|---|
|
||
use SL::Menu;
|
||
use SL::Controller::Layout::Admin;
|
||
use SL::Controller::Layout::Login;
|
||
use SL::Controller::Layout::Classic;
|
||
use SL::Controller::Layout::V3;
|
||
use SL::Controller::Layout::V4;
|
||
... | ... | |
return SL::Controller::Layout::V4->new if $params{style} eq 'v4';
|
||
return SL::Controller::Layout::Javascript->new if $params{style} eq 'neu';
|
||
return SL::Controller::Layout::Admin->new if $params{style} eq 'admin';
|
||
return SL::Controller::Layout::Login->new if $params{style} eq 'login';
|
||
return SL::Controller::Layout::None->new;
|
||
}
|
||
|
SL/Controller/Layout/Login.pm | ||
---|---|---|
package SL::Controller::Layout::Login;
|
||
|
||
use strict;
|
||
use parent qw(SL::Controller::Layout::Base);
|
||
|
||
sub new {
|
||
my ($class, @slurp) = @_;
|
||
|
||
my $self = $class->SUPER::new(@slurp);
|
||
|
||
$self->add_sub_layouts([
|
||
SL::Controller::Layout::None->new,
|
||
]);
|
||
|
||
$self;
|
||
}
|
||
|
||
sub start_content {
|
||
"<div id='login' class='login'>\n";
|
||
}
|
||
|
||
sub end_content {
|
||
"</div>\n";
|
||
}
|
||
|
||
1;
|
SL/Controller/LoginScreen.pm | ||
---|---|---|
use SL::Dispatcher::AuthHandler::User;
|
||
use SL::User;
|
||
|
||
__PACKAGE__->run_before('set_layout');
|
||
#
|
||
# actions
|
||
#
|
||
... | ... | |
}->{$_[0]};
|
||
}
|
||
|
||
sub set_layout {
|
||
$::request->{layout} = SL::Controller::Layout->new(style => 'login');
|
||
}
|
||
|
||
1;
|
css/lx-office-erp/main.css | ||
---|---|---|
background-color: yellow;
|
||
}
|
||
|
||
html {
|
||
height: 100%;
|
||
}
|
||
|
||
body {
|
||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||
font-size: 10pt;
|
||
background-color: white;
|
||
background-image: url("../../image/fade.png"); background-repeat:repeat-x;
|
||
color: black;
|
||
height: 100%;
|
||
}
|
||
|
||
td {
|
||
... | ... | |
.login {
|
||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||
}
|
||
body.login {
|
||
div.login {
|
||
min-height: 100%;
|
||
height: auto !important;
|
||
height: 100%;
|
||
background: #b8d1f3;
|
||
color: #A0A0A0;
|
||
}
|
templates/webpages/login_screen/user_login.html | ||
---|---|---|
[%- USE T8 %]
|
||
[%- USE HTML %]
|
||
<body class="login" onLoad="document.loginscreen.login.focus()">
|
||
|
||
<center>
|
||
<table class="login" border="3" cellpadding="20">
|
||
<tr>
|
||
... | ... | |
<table>
|
||
<tr>
|
||
<th align="right">[% 'Login Name' | $T8 %]</th>
|
||
<td><input class="login" name="{AUTH}login" size="30" tabindex="1"></td>
|
||
<td><input id='login' class="login" name="{AUTH}login" size="30" tabindex="1"></td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Password' | $T8 %]</th>
|
||
... | ... | |
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<script type='text/javascript'>
|
||
$(function(){ $('#login').focus() })
|
||
</script>
|
Auch abrufbar als: Unified diff
login Layout