version 1.742, 2009/02/05 00:45:29
|
version 1.750, 2009/02/17 10:14:56
|
Line 1746 sub select_level_form {
|
Line 1746 sub select_level_form {
|
|
|
=pod |
=pod |
|
|
=item * &select_dom_form($defdom,$name,$includeempty,$showdomdesc) |
=item * &select_dom_form($defdom,$name,$includeempty,$showdomdesc,$autosubmit) |
|
|
Returns a string containing a <select name='$name' size='1'> form to |
Returns a string containing a <select name='$name' size='1'> form to |
allow a user to select the domain to preform an operation in. |
allow a user to select the domain to preform an operation in. |
Line 1755 See loncreateuser.pm for an example invo
|
Line 1755 See loncreateuser.pm for an example invo
|
If the $includeempty flag is set, it also includes an empty choice ("no domain |
If the $includeempty flag is set, it also includes an empty choice ("no domain |
selected"); |
selected"); |
|
|
If the $showdomdesc flag is set, the domain name is followed by the domain description. |
If the $showdomdesc flag is set, the domain name is followed by the domain description. |
|
|
|
If the $autosubmit flag is set, the form containing the domain selector will be auto-submitted by an onchange action. |
|
|
=cut |
=cut |
|
|
#------------------------------------------- |
#------------------------------------------- |
sub select_dom_form { |
sub select_dom_form { |
my ($defdom,$name,$includeempty,$showdomdesc) = @_; |
my ($defdom,$name,$includeempty,$showdomdesc,$autosubmit) = @_; |
|
my $onchange; |
|
if ($autosubmit) { |
|
$onchange = ' onchange="this.form.submit()"'; |
|
} |
my @domains = sort {lc($a) cmp lc($b)} (&Apache::lonnet::all_domains()); |
my @domains = sort {lc($a) cmp lc($b)} (&Apache::lonnet::all_domains()); |
if ($includeempty) { @domains=('',@domains); } |
if ($includeempty) { @domains=('',@domains); } |
my $selectdomain = "<select name=\"$name\" size=\"1\">\n"; |
my $selectdomain = "<select name=\"$name\" size=\"1\"$onchange>\n"; |
foreach my $dom (@domains) { |
foreach my $dom (@domains) { |
$selectdomain.="<option value=\"$dom\" ". |
$selectdomain.="<option value=\"$dom\" ". |
($dom eq $defdom ? 'selected="selected" ' : '').'>'.$dom; |
($dom eq $defdom ? 'selected="selected" ' : '').'>'.$dom; |
Line 2804 sub aboutmewrapper {
|
Line 2810 sub aboutmewrapper {
|
return; |
return; |
} |
} |
return '<a href="/adm/'.$domain.'/'.$username.'/aboutme"'. |
return '<a href="/adm/'.$domain.'/'.$username.'/aboutme"'. |
($target?' target="$target"':'').' title="'.&mt("View this user's personal page").'">'.$link.'</a>'; |
($target?' target="$target"':'').' title="'.&mt("View this user's personal |
|
homepage").'">'.$link.'</a>'; |
} |
} |
|
|
# ------------------------------------------------------------ Syllabus Wrapper |
# ------------------------------------------------------------ Syllabus Wrapper |
Line 5612 ol.LC_smallMenu a {
|
Line 5619 ol.LC_smallMenu a {
|
color: RGB(80, 80, 80); |
color: RGB(80, 80, 80); |
text-decoration: none; |
text-decoration: none; |
} |
} |
ol#LC_TabMainMenueContent, ul.LC_TabContent, |
ol#LC_TabMainMenueContent, ul.LC_TabContent , |
ul.LC_TabContentBigger { |
ul.LC_TabContentBigger { |
display:block; |
display:block; |
list-style:none; |
list-style:none; |
Line 5620 ul.LC_TabContentBigger {
|
Line 5627 ul.LC_TabContentBigger {
|
padding: 0px; |
padding: 0px; |
} |
} |
|
|
ol#LC_TabMainMenuContent li, ul.LC_TabContent, |
ol#LC_TabMainMenuContent li, ul.LC_TabContent li, |
ul.LC_TabContentBigger li{ |
ul.LC_TabContentBigger li{ |
display: inline; |
display: inline; |
border-right: solid 1px $lg_border_color; |
border-right: solid 1px $lg_border_color; |
Line 5644 ol#LC_TabMainMenuContent li a{
|
Line 5651 ol#LC_TabMainMenuContent li a{
|
} |
} |
ul.LC_TabContent { |
ul.LC_TabContent { |
min-height:1.6em; |
min-height:1.6em; |
border-bottom:solid 1px $lg_border_color; |
|
} |
} |
ul.LC_TabContent li{ |
ul.LC_TabContent li{ |
vertical-align:middle; |
vertical-align:middle; |
padding:0px 10px 0px 10px; |
padding:0px 10px 0px 10px; |
|
background-color:$tabbg; |
|
border-bottom:solid 1px $lg_border_color; |
} |
} |
ul.LC_TabContent li a, ul.LC_TabContent li{ |
ul.LC_TabContent li a, ul.LC_TabContent li{ |
color:rgb(47,47,47); |
color:rgb(47,47,47); |
text-decoration:none; |
text-decoration:none; |
font-size:95%; |
font-size:95%; |
font-weight:bold; |
font-weight:bold; |
} |
} |
|
ul.LC_TabContent li:hover, ul.LC_TabContent li.active{ |
|
background-color:#FFFFFF; |
|
border-bottom:solid 1px #FFFFFF; |
|
} |
ul.LC_TabContentBigger li{ |
ul.LC_TabContentBigger li{ |
vertical-align:bottom; |
vertical-align:bottom; |
border-top:solid 1px $lg_border_color; |
border-top:solid 1px $lg_border_color; |
Line 5664 ul.LC_TabContentBigger li{
|
Line 5676 ul.LC_TabContentBigger li{
|
margin-left:2px; |
margin-left:2px; |
background:url(/adm/lonIcons/lightGreyBG.png) repeat-x left top; |
background:url(/adm/lonIcons/lightGreyBG.png) repeat-x left top; |
} |
} |
|
ul.LC_TabContentBigger li:hover, ul.LC_TabContentBigger li.active{ |
|
background:url(/adm/lonIcons/lightGreyBG.png) repeat-x right bottom; |
|
} |
ul.LC_TabContentBigger li, ul.LC_TabContentBigger li a{ |
ul.LC_TabContentBigger li, ul.LC_TabContentBigger li a{ |
font-size:110%; |
font-size:110%; |
font-weight:bold; |
font-weight:bold; |
Line 5713 ol#LC_PathBreadcrumbs li a{
|
Line 5728 ol#LC_PathBreadcrumbs li a{
|
{ |
{ |
border: solid 1px $lg_border_color; |
border: solid 1px $lg_border_color; |
} |
} |
|
.LC_ContentBoxSpecialContactInfo |
|
{ |
|
border: solid 1px $lg_border_color; |
|
max-width:25%; |
|
min-width:25%; |
|
} |
|
.LC_AboutMe_Image |
|
{ |
|
float:left; |
|
margin-right:10px; |
|
} |
|
.LC_Clear_AboutMe_Image |
|
{ |
|
clear:left; |
|
} |
dl.LC_ListStyleClean dt { |
dl.LC_ListStyleClean dt { |
padding-right: 5px; |
padding-right: 5px; |
display: table-header-group; |
display: table-header-group; |
Line 5789 div.LC_columnSection {
|
Line 5818 div.LC_columnSection {
|
div.LC_columnSection>* { |
div.LC_columnSection>* { |
float: left; |
float: left; |
margin: 10px 20px 10px 0px; |
margin: 10px 20px 10px 0px; |
overflow:hidden; |
overflow:hidden; |
} |
} |
div.LC_columnSection > .LC_ContentBox, |
div.LC_columnSection > .LC_ContentBox, |
div.LC_columnSection > .LC_ContentBoxSpecial |
div.LC_columnSection > .LC_ContentBoxSpecial |
{ |
{ |
width: 400px; |
width: 400px; |
} |
} |
|
|
.ContentBoxSpecialTemplate |
.ContentBoxSpecialTemplate |
Line 5865 div.LC_columnSection > .ContentBoxSpecia
|
Line 5894 div.LC_columnSection > .ContentBoxSpecia
|
border-bottom: 1px solid #CCCCCC; |
border-bottom: 1px solid #CCCCCC; |
} |
} |
|
|
|
table em{ |
|
font-weight:bold; |
|
font-style:normal; |
|
} |
|
|
END |
END |
} |
} |
|
|