Manager: better integration of sessions explorer

This commit is contained in:
Clément Oudot 2010-03-22 11:32:28 +00:00
parent a00a20eb60
commit 3bb119108d
2 changed files with 28 additions and 28 deletions

View File

@ -20,17 +20,10 @@ our $cgi = Lemonldap::NG::Manager::Sessions->new(
# protection => 'authenticate', # protection => 'authenticate',
# * nothing : not protected # * nothing : not protected
# REDIRECTIONS # IP
# You have to set this to explain to the handler if runs under SSL # You can configure sessions explorer to use X-FORWARDED-FOR
# or not (for redirections after authentications). Default is true. # rather than REMOTRE_ADDR for IP
https => 0, #useXForwardedForIP => 1,
# You can also fix the port (for redirections after authentications)
#port => 80,
# IP
# You can configure sessions explorer to use X-FORWARDED-FOR rather than REMOTRE_ADDR for IP
#useXForwardedForIP => 1,
# ACCESS TO CONFIGURATION # ACCESS TO CONFIGURATION
# By default, Lemonldap::NG uses the default storage.conf file to know # By default, Lemonldap::NG uses the default storage.conf file to know

View File

@ -503,6 +503,7 @@ sub start {
<p class="ui-state-default ui-corner-all"><a href="index.pl">Gestion de la configuration</a></p> <p class="ui-state-default ui-corner-all"><a href="index.pl">Gestion de la configuration</a></p>
<p class="ui-state-default ui-corner-all ui-state-active"><a href="sessions.pl">Explorateur de sessions</a></p> <p class="ui-state-default ui-corner-all ui-state-active"><a href="sessions.pl">Explorateur de sessions</a></p>
</div> </div>
<div id="body" class="ui-widget ui-widget-content ui-corner-all">
'; ';
} }
@ -547,6 +548,7 @@ sub end {
my $self = shift; my $self = shift;
print print
'</ul></li></ul></div></td><td valign="top"><div id="content" style="overflow:auto;height:600px;"></div></td></tr></table>'; '</ul></li></ul></div></td><td valign="top"><div id="content" style="overflow:auto;height:600px;"></div></td></tr></table>';
print '</div>';
print $self->end_html(); print $self->end_html();
} }
@ -562,10 +564,15 @@ body
/*font: normal 12px arial, tahoma, helvetica, sans-serif;*/ /*font: normal 12px arial, tahoma, helvetica, sans-serif;*/
font:normal 9pt sans-serif; font:normal 9pt sans-serif;
margin:0; margin:0;
background-color:#000;
}
a
{
text-decoration:none;
} }
#header #header
{ {
background-color:#000000; background-color:#000;
padding:14px; padding:14px;
height:36px; height:36px;
width:auto; width:auto;
@ -579,12 +586,14 @@ body
margin:5px 10px; margin:5px 10px;
padding:5px; padding:5px;
} }
#body
{
margin: 0 10px;
}
.simpleTree .simpleTree
{ {
overflow:auto; overflow:auto;
margin:20px; margin:20px 0;
margin-top:0px;
margin-bottom:0px;
/* /*
* width: 250px; * width: 250px;
* height:350px; * height:350px;
@ -613,7 +622,7 @@ body
.simpleTree .root .simpleTree .root
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}root.gif) no-repeat 16px 0 #ffffff; background: url($self->{imagePath}root.gif) no-repeat 16px 0;
} }
.simpleTree .line .simpleTree .line
{ {
@ -654,36 +663,36 @@ body
.simpleTree .folder-open .simpleTree .folder-open
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}collapsable.gif) 0 -2px no-repeat #fff; background: url($self->{imagePath}collapsable.gif) 0 -2px no-repeat;
} }
.simpleTree .folder-open-last .simpleTree .folder-open-last
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}collapsable-last.gif) 0 -2px no-repeat #fff; background: url($self->{imagePath}collapsable-last.gif) 0 -2px no-repeat;
} }
.simpleTree .folder-close .simpleTree .folder-close
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}expandable.gif) 0 -2px no-repeat #fff; background: url($self->{imagePath}expandable.gif) 0 -2px no-repeat;
} }
.simpleTree .folder-close-last .simpleTree .folder-close-last
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}expandable-last.gif) 0 -2px no-repeat #fff; background: url($self->{imagePath}expandable-last.gif) 0 -2px no-repeat;
} }
.simpleTree .doc .simpleTree .doc
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}leaf.gif) 0 -1px no-repeat #fff; background: url($self->{imagePath}leaf.gif) 0 -1px no-repeat;
} }
.simpleTree .doc-last .simpleTree .doc-last
{ {
margin-left:-16px; margin-left:-16px;
background: url($self->{imagePath}leaf-last.gif) 0 -1px no-repeat #fff; background: url($self->{imagePath}leaf-last.gif) 0 -1px no-repeat;
} }
.simpleTree .ajax .simpleTree .ajax
{ {
background: url($self->{imagePath}spinner.gif) no-repeat 0 0 #ffffff; background: url($self->{imagePath}spinner.gif) no-repeat 0 0;
height: 16px; height: 16px;
display:none; display:none;
} }
@ -714,7 +723,6 @@ body
} }
#drag_container #drag_container
{ {
background:#ffffff;
color:#000; color:#000;
font: normal 11px arial, tahoma, helvetica, sans-serif; font: normal 11px arial, tahoma, helvetica, sans-serif;
border: 1px dashed #767676; border: 1px dashed #767676;
@ -729,7 +737,6 @@ body
#drag_container li #drag_container li
{ {
list-style: none; list-style: none;
background-color:#ffffff;
line-height:18px; line-height:18px;
white-space: nowrap; white-space: nowrap;
padding:1px 1px 0px 16px; padding:1px 1px 0px 16px;
@ -742,16 +749,16 @@ body
#drag_container li.doc, #drag_container li.doc-last #drag_container li.doc, #drag_container li.doc-last
{ {
background: url($self->{imagePath}leaf.gif) no-repeat -17px 0 #ffffff; background: url($self->{imagePath}leaf.gif) no-repeat -17px 0;
} }
#drag_container .folder-close, #drag_container .folder-close-last #drag_container .folder-close, #drag_container .folder-close-last
{ {
background: url($self->{imagePath}expandable.gif) no-repeat -17px 0 #ffffff; background: url($self->{imagePath}expandable.gif) no-repeat -17px 0;
} }
#drag_container .folder-open, #drag_container .folder-open-last #drag_container .folder-open, #drag_container .folder-open-last
{ {
background: url($self->{imagePath}collapsable.gif) no-repeat -17px 0 #ffffff; background: url($self->{imagePath}collapsable.gif) no-repeat -17px 0;
} }
EOF EOF
} }