Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 38902b24

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID 38902b24ceed494a2936edfe4d72e8c48e15bce0
  • Vorgänger dcc04bee
  • Nachfolger ddb162b6

login Layout

Unterschiede anzeigen:

SL/Controller/Layout.pm
5 5

  
6 6
use SL::Menu;
7 7
use SL::Controller::Layout::Admin;
8
use SL::Controller::Layout::Login;
8 9
use SL::Controller::Layout::Classic;
9 10
use SL::Controller::Layout::V3;
10 11
use SL::Controller::Layout::V4;
......
20 21
  return SL::Controller::Layout::V4->new         if $params{style} eq 'v4';
21 22
  return SL::Controller::Layout::Javascript->new if $params{style} eq 'neu';
22 23
  return SL::Controller::Layout::Admin->new      if $params{style} eq 'admin';
24
  return SL::Controller::Layout::Login->new      if $params{style} eq 'login';
23 25
  return SL::Controller::Layout::None->new;
24 26
}
25 27

  
SL/Controller/Layout/Login.pm
1
package SL::Controller::Layout::Login;
2

  
3
use strict;
4
use parent qw(SL::Controller::Layout::Base);
5

  
6
sub new {
7
  my ($class, @slurp) = @_;
8

  
9
  my $self = $class->SUPER::new(@slurp);
10

  
11
  $self->add_sub_layouts([
12
    SL::Controller::Layout::None->new,
13
  ]);
14

  
15
  $self;
16
}
17

  
18
sub start_content {
19
  "<div id='login' class='login'>\n";
20
}
21

  
22
sub end_content {
23
  "</div>\n";
24
}
25

  
26
1;
SL/Controller/LoginScreen.pm
7 7
use SL::Dispatcher::AuthHandler::User;
8 8
use SL::User;
9 9

  
10
__PACKAGE__->run_before('set_layout');
10 11
#
11 12
# actions
12 13
#
......
116 117
  }->{$_[0]};
117 118
}
118 119

  
120
sub set_layout {
121
  $::request->{layout} = SL::Controller::Layout->new(style => 'login');
122
}
123

  
119 124
1;
css/lx-office-erp/main.css
14 14
  background-color: yellow;
15 15
}
16 16

  
17
html {
18
  height: 100%;
19
}
20

  
17 21
body {
18 22
  font-family: Verdana, Arial, Helvetica, sans-serif;
19 23
  font-size: 10pt;
20 24
  background-color: white;
21 25
  background-image: url("../../image/fade.png"); background-repeat:repeat-x;
22 26
  color: black;
27
  height: 100%;
23 28
}
24 29

  
25 30
td {
......
51 56
.login {
52 57
  font-family: Verdana, Arial, Helvetica, sans-serif;
53 58
}
54
body.login {
59
div.login {
60
  min-height: 100%;
61
  height: auto !important;
62
  height: 100%;
55 63
  background: #b8d1f3;
56 64
  color: #A0A0A0;
57 65
}
templates/webpages/login_screen/user_login.html
1 1
[%- USE T8 %]
2 2
[%- USE HTML %]
3
<body class="login" onLoad="document.loginscreen.login.focus()">
4

  
5 3
 <center>
6 4
  <table class="login" border="3" cellpadding="20">
7 5
   <tr>
......
25 23
          <table>
26 24
           <tr>
27 25
            <th align="right">[% 'Login Name' | $T8 %]</th>
28
            <td><input class="login" name="{AUTH}login" size="30" tabindex="1"></td>
26
            <td><input id='login' class="login" name="{AUTH}login" size="30" tabindex="1"></td>
29 27
           </tr>
30 28
           <tr>
31 29
            <th align="right">[% 'Password' | $T8 %]</th>
......
46 44
    </td>
47 45
   </tr>
48 46
  </table>
49

  
47
  <script type='text/javascript'>
48
    $(function(){ $('#login').focus() })
49
  </script>

Auch abrufbar als: Unified diff