--- loncom/interface/loncommon.pm 2008/12/08 18:25:07 1.710
+++ loncom/interface/loncommon.pm 2008/12/11 14:52:34 1.714
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.710 2008/12/08 18:25:07 bisitz Exp $
+# $Id: loncommon.pm,v 1.714 2008/12/11 14:52:34 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1686,17 +1686,17 @@ sub select_form {
sub display_filter {
if (!$env{'form.show'}) { $env{'form.show'}=10; }
if (!$env{'form.displayfilter'}) { $env{'form.displayfilter'}='currentfolder'; }
- return ' '.
+ ' '.
&mt('Filter [_1]',
&select_form($env{'form.displayfilter'},
'displayfilter',
('currentfolder' => 'Current folder/page',
'containing' => 'Containing phrase',
'none' => 'None'))).
- '';
+ '';
}
sub gradeleveldescription {
@@ -4392,6 +4392,8 @@ sub standard_css {
my $link = &designparm($function.'.link', $domain);
my $loginbg = &designparm('login.sidebg',$domain);
+ my $bgcol = &designparm('login.bgcol',$domain);
+ my $textcol = &designparm('login.textcol',$domain);
my $sans = 'Verdana,Arial,Helvetica,sans-serif';
my $mono = 'monospace';
@@ -4697,6 +4699,11 @@ table.LC_prior_tries tr th {
background-color: $data_table_head;
font-size:90%;
}
+table.LC_data_table tr.LC_info_row > td {
+ background-color: #CCC;
+ font-weight: bold;
+ text-align: left;
+}
table.LC_data_table tr.LC_odd_row > td,
table.LC_pick_box tr > td.LC_odd_row,
table.LC_aboutme_port tr td {
@@ -5694,19 +5701,26 @@ div.columnSection > .ContentBoxSpecial
width:65%;
padding: 10px;
height: auto;
-# background-color:#FFFFFF;
- background-color:$loginbg;
+ background-color:#FFFFFF;
border:1px solid #CCCCCC;
}
.LC_loginpage_loginContainer {
float:left;
- width:60%;
+ width: 182px;
+ border:1px solid #CCCCCC;
+ background-color:$loginbg;
}
+.LC_loginpage_loginContainer h1{
+ margin-top:0;
+ display:block;
+ background:$bgcol;
+ color:$textcol;
+ padding-left:5px;
+}
.LC_loginpage_loginInfo {
- margin-top:20px;
margin-left:20px;
float:left;
width:30%;
@@ -5714,6 +5728,13 @@ div.columnSection > .ContentBoxSpecial
padding:10px;
}
+.LC_loginpage_loginDomain {
+ margin-right:20px;
+ width:20%;
+ float:left;
+ padding:10px;
+}
+
.LC_loginpage_space {
clear:both;
margin-bottom:20px;
@@ -5733,7 +5754,6 @@ div.columnSection > .ContentBoxSpecial
}
-
END
}
@@ -5997,11 +6017,21 @@ sub start_page {
}
if ($args->{'js_ready'}) {
- $result = &js_ready($result);
+ $result = &js_ready($result);
}
if ($args->{'html_encode'}) {
- $result = &html_encode($result);
+ $result = &html_encode($result);
+ }
+
+ if (exists $args->{'bread_crumbs'}) {
+ &Apache::lonhtmlcommon::clear_breadcrumbs();
+ my $temp = $args->{'bread_crumbs'};
+ foreach my $crumb (@$temp){
+ &Apache::lonhtmlcommon::add_breadcrumb($crumb);
+ }
+ $result .= &Apache::lonhtmlcommon::breadcrumbs();
}
+
return $result;
}
@@ -6764,19 +6794,35 @@ sub default_quota {
if ($inststatus ne '') {
my @statuses = split(/:/,$inststatus);
foreach my $item (@statuses) {
- if ($quotahash{'quotas'}{$item} ne '') {
- if ($defquota eq '') {
- $defquota = $quotahash{'quotas'}{$item};
- $settingstatus = $item;
- } elsif ($quotahash{'quotas'}{$item} > $defquota) {
- $defquota = $quotahash{'quotas'}{$item};
- $settingstatus = $item;
+ if (ref($quotahash{'quotas'}{'defaultquota'}) eq 'HASH') {
+ if ($quotahash{'quotas'}{'defaultquota'}{$item} ne '') {
+ if ($defquota eq '') {
+ $defquota = $quotahash{'quotas'}{'defaultquota'}{$item};
+ $settingstatus = $item;
+ } elsif ($quotahash{'quotas'}{'defaultquota'}{$item} > $defquota) {
+ $defquota = $quotahash{'quotas'}{'defaultquota'}{$item};
+ $settingstatus = $item;
+ }
+ }
+ } else {
+ if ($quotahash{'quotas'}{$item} ne '') {
+ if ($defquota eq '') {
+ $defquota = $quotahash{'quotas'}{$item};
+ $settingstatus = $item;
+ } elsif ($quotahash{'quotas'}{$item} > $defquota) {
+ $defquota = $quotahash{'quotas'}{$item};
+ $settingstatus = $item;
+ }
}
}
}
}
if ($defquota eq '') {
- $defquota = $quotahash{'quotas'}{'default'};
+ if (ref($quotahash{'quotas'}{'defaultquota'}) eq 'HASH') {
+ $defquota = $quotahash{'quotas'}{'defaultquota'}{'default'};
+ } else {
+ $defquota = $quotahash{'quotas'}{'default'};
+ }
$settingstatus = 'default';
}
} else {