version 1.305, 2017/08/03 16:22:08
|
version 1.306, 2017/08/03 16:51:53
|
Line 762 sub print_config_box {
|
Line 762 sub print_config_box {
|
$output .= |
$output .= |
'<table class="LC_nested_outer"> |
'<table class="LC_nested_outer"> |
<tr> |
<tr> |
<th align="left" valign="middle"><span class="LC_nobreak">'. |
<th class="LC_left_item LC_middle"><span class="LC_nobreak">'. |
&mt($item->{text}).' '. |
&mt($item->{text}).' '. |
&Apache::loncommon::help_open_topic($item->{'help'}).'</span></th>'."\n". |
&Apache::loncommon::help_open_topic($item->{'help'}).'</span></th>'."\n". |
'</tr>'; |
'</tr>'; |
Line 978 sub print_config_box {
|
Line 978 sub print_config_box {
|
<td> |
<td> |
<table class="LC_nested"> |
<table class="LC_nested"> |
<tr class="LC_info_row"> |
<tr class="LC_info_row"> |
<td class="LC_left_item"'.$colspan.' valign="top">'.&mt($item->{'header'}->[4]->{'col1'}).'</td> |
<td class="LC_left_item"'.$colspan.' style="vertical-align: top">'.&mt($item->{'header'}->[4]->{'col1'}).'</td> |
<td class="LC_right_item" valign="top">'.&mt($item->{'header'}->[4]->{'col2'}).'</td> |
<td class="LC_right_item" style="vertical-align: top">'.&mt($item->{'header'}->[4]->{'col2'}).'</td> |
</tr>'. |
</tr>'. |
&print_validation_rows('requestcourses',$dom,$settings,\$rowtotal); |
&print_validation_rows('requestcourses',$dom,$settings,\$rowtotal); |
} elsif ($action eq 'requestauthor') { |
} elsif ($action eq 'requestauthor') { |
Line 994 sub print_config_box {
|
Line 994 sub print_config_box {
|
<td> |
<td> |
<table class="LC_nested"> |
<table class="LC_nested"> |
<tr class="LC_info_row"> |
<tr class="LC_info_row"> |
<td class="LC_left_item"'.$colspan.' valign="top">'. |
<td class="LC_left_item"'.$colspan.' style="vertical-align: top">'. |
&mt($item->{'header'}->[2]->{'col1'}).'</td> |
&mt($item->{'header'}->[2]->{'col1'}).'</td> |
<td class="LC_right_item" valign="top">'. |
<td class="LC_right_item" style="vertical-align: top">'. |
&mt($item->{'header'}->[2]->{'col2'}).'</td> |
&mt($item->{'header'}->[2]->{'col2'}).'</td> |
</tr>'. |
</tr>'. |
&print_rolecolors($phase,'author',$dom,$confname,$settings,\$rowtotal).' |
&print_rolecolors($phase,'author',$dom,$confname,$settings,\$rowtotal).' |
Line 1024 sub print_config_box {
|
Line 1024 sub print_config_box {
|
<td class="LC_left_item" colspan="2">'.&mt($item->{'header'}->[0]->{'col1'}).'</td>'; |
<td class="LC_left_item" colspan="2">'.&mt($item->{'header'}->[0]->{'col1'}).'</td>'; |
} elsif ($action eq 'serverstatuses') { |
} elsif ($action eq 'serverstatuses') { |
$output .= ' |
$output .= ' |
<td class="LC_left_item" valign="top">'.&mt($item->{'header'}->[0]->{'col1'}). |
<td class="LC_left_item" style="vertical-align: top">'.&mt($item->{'header'}->[0]->{'col1'}). |
'<br />('.&mt('Automatic access for Dom. Coords.').')</td>'; |
'<br />('.&mt('Automatic access for Dom. Coords.').')</td>'; |
|
|
} else { |
} else { |
$output .= ' |
$output .= ' |
<td class="LC_left_item" valign="top">'.&mt($item->{'header'}->[0]->{'col1'}).'</td>'; |
<td class="LC_left_item" style="vertical-align: top">'.&mt($item->{'header'}->[0]->{'col1'}).'</td>'; |
} |
} |
if (defined($item->{'header'}->[0]->{'col3'})) { |
if (defined($item->{'header'}->[0]->{'col3'})) { |
$output .= '<td class="LC_left_item" valign="top">'. |
$output .= '<td class="LC_left_item" style="vertical-align: top">'. |
&mt($item->{'header'}->[0]->{'col2'}); |
&mt($item->{'header'}->[0]->{'col2'}); |
if ($action eq 'serverstatuses') { |
if ($action eq 'serverstatuses') { |
$output .= '<br />(<tt>'.&mt('user1:domain1,user2:domain2 etc.').'</tt>)'; |
$output .= '<br />(<tt>'.&mt('user1:domain1,user2:domain2 etc.').'</tt>)'; |
} |
} |
} else { |
} else { |
$output .= '<td class="LC_right_item" valign="top">'. |
$output .= '<td class="LC_right_item" style="vertical-align: top">'. |
&mt($item->{'header'}->[0]->{'col2'}); |
&mt($item->{'header'}->[0]->{'col2'}); |
} |
} |
$output .= '</td>'; |
$output .= '</td>'; |
if ($item->{'header'}->[0]->{'col3'}) { |
if ($item->{'header'}->[0]->{'col3'}) { |
if (defined($item->{'header'}->[0]->{'col4'})) { |
if (defined($item->{'header'}->[0]->{'col4'})) { |
$output .= '<td class="LC_left_item" valign="top">'. |
$output .= '<td class="LC_left_item" style="vertical-align: top">'. |
&mt($item->{'header'}->[0]->{'col3'}); |
&mt($item->{'header'}->[0]->{'col3'}); |
} else { |
} else { |
$output .= '<td class="LC_right_item" valign="top">'. |
$output .= '<td class="LC_right_item" style="vertical-align: top">'. |
&mt($item->{'header'}->[0]->{'col3'}); |
&mt($item->{'header'}->[0]->{'col3'}); |
} |
} |
if ($action eq 'serverstatuses') { |
if ($action eq 'serverstatuses') { |
Line 1056 sub print_config_box {
|
Line 1056 sub print_config_box {
|
$output .= '</td>'; |
$output .= '</td>'; |
} |
} |
if ($item->{'header'}->[0]->{'col4'}) { |
if ($item->{'header'}->[0]->{'col4'}) { |
$output .= '<td class="LC_right_item" valign="top">'. |
$output .= '<td class="LC_right_item" style="vertical-align: top">'. |
&mt($item->{'header'}->[0]->{'col4'}); |
&mt($item->{'header'}->[0]->{'col4'}); |
} |
} |
$output .= '</tr>'; |
$output .= '</tr>'; |
Line 1089 sub print_login {
|
Line 1089 sub print_login {
|
my $choice = $choices{'disallowlogin'}; |
my $choice = $choices{'disallowlogin'}; |
$css_class = ' class="LC_odd_row"'; |
$css_class = ' class="LC_odd_row"'; |
$datatable .= '<tr'.$css_class.'><td>'.$choice.'</td>'. |
$datatable .= '<tr'.$css_class.'><td>'.$choice.'</td>'. |
'<td align="right"><table><tr><th>'.$choices{'hostid'}.'</th>'. |
'<td style="text-align: right"><table><tr><th>'.$choices{'hostid'}.'</th>'. |
'<th>'.$choices{'server'}.'</th>'. |
'<th>'.$choices{'server'}.'</th>'. |
'<th>'.$choices{'serverpath'}.'</th>'. |
'<th>'.$choices{'serverpath'}.'</th>'. |
'<th>'.$choices{'custompath'}.'</th>'. |
'<th>'.$choices{'custompath'}.'</th>'. |
Line 1370 sub print_login {
|
Line 1370 sub print_login {
|
my $choice = $choices{'headtag'}; |
my $choice = $choices{'headtag'}; |
$css_class = ' class="LC_odd_row"'; |
$css_class = ' class="LC_odd_row"'; |
$datatable .= '<tr'.$css_class.'><td colspan="2">'.$choice.'</td>'. |
$datatable .= '<tr'.$css_class.'><td colspan="2">'.$choice.'</td>'. |
'<td align="left"><table><tr><th>'.$choices{'hostid'}.'</th>'. |
'<td style="text-align: left"><table><tr><th>'.$choices{'hostid'}.'</th>'. |
'<th>'.$choices{'current'}.'</th>'. |
'<th>'.$choices{'current'}.'</th>'. |
'<th>'.$choices{'action'}.'</th>'. |
'<th>'.$choices{'action'}.'</th>'. |
'<th>'.$choices{'exempt'}.'</th></tr>'."\n"; |
'<th>'.$choices{'exempt'}.'</th></tr>'."\n"; |
Line 1726 sub display_color_options {
|
Line 1726 sub display_color_options {
|
'<table border="0"><tr>'; |
'<table border="0"><tr>'; |
|
|
foreach my $item (@{$bgs}) { |
foreach my $item (@{$bgs}) { |
$datatable .= '<td align="center">'.$choices->{$item}; |
$datatable .= '<td style="text-align: center">'.$choices->{$item}; |
my $color = $designs->{'bgs'}{$item} ? $designs->{'bgs'}{$item} : $defaults->{'bgs'}{$item}; |
my $color = $designs->{'bgs'}{$item} ? $designs->{'bgs'}{$item} : $defaults->{'bgs'}{$item}; |
if ($designs->{'bgs'}{$item}) { |
if ($designs->{'bgs'}{$item}) { |
$datatable .= ' '; |
$datatable .= ' '; |
Line 1754 sub display_color_options {
|
Line 1754 sub display_color_options {
|
'<table border="0"><tr>'; |
'<table border="0"><tr>'; |
foreach my $item (@{$links}) { |
foreach my $item (@{$links}) { |
my $color = $designs->{'links'}{$item} ? $designs->{'links'}{$item} : $defaults->{'links'}{$item}; |
my $color = $designs->{'links'}{$item} ? $designs->{'links'}{$item} : $defaults->{'links'}{$item}; |
$datatable .= '<td align="center">'.$choices->{$item}."\n"; |
$datatable .= '<td style="text-align: center">'.$choices->{$item}."\n"; |
if ($designs->{'links'}{$item}) { |
if ($designs->{'links'}{$item}) { |
$datatable.=' '; |
$datatable.=' '; |
} |
} |
Line 1815 sub login_text_colors {
|
Line 1815 sub login_text_colors {
|
my ($img,$role,$logintext,$phase,$choices,$designs,$defaults) = @_; |
my ($img,$role,$logintext,$phase,$choices,$designs,$defaults) = @_; |
my $color_menu = '<table border="0"><tr>'; |
my $color_menu = '<table border="0"><tr>'; |
foreach my $item (@{$logintext}) { |
foreach my $item (@{$logintext}) { |
$color_menu .= '<td align="center">'.$choices->{$item}; |
$color_menu .= '<td style="text-align: center">'.$choices->{$item}; |
my $color = $designs->{'logintext'}{$item} ? $designs->{'logintext'}{$item} : $defaults->{'logintext'}{$item}; |
my $color = $designs->{'logintext'}{$item} ? $designs->{'logintext'}{$item} : $defaults->{'logintext'}{$item}; |
$color_menu .= '<br /><input type="text" class="colorchooser" size="8" name="'.$role.'_'.$item.'" value="'.$color. |
$color_menu .= '<br /><input type="text" class="colorchooser" size="8" name="'.$role.'_'.$item.'" value="'.$color. |
'" onblur = "javascript:colchg_span('."'css_".$role.'_'.$item."'".',this);" /></td>'; |
'" onblur = "javascript:colchg_span('."'css_".$role.'_'.$item."'".',this);" /></td>'; |
Line 1850 sub image_changes {
|
Line 1850 sub image_changes {
|
$role.'_del_'.$img.'" value="1" />'.&mt('Delete?'). |
$role.'_del_'.$img.'" value="1" />'.&mt('Delete?'). |
'</label> '.&mt('Replace:').'</span><br />'; |
'</label> '.&mt('Replace:').'</span><br />'; |
} else { |
} else { |
$output .= '<td valign="middle">'.$logincolors.&mt('Upload:').'<br />'; |
$output .= '<td class="LC_middle">'.$logincolors.&mt('Upload:').'<br />'; |
} |
} |
} |
} |
return $output; |
return $output; |
Line 3356 sub print_helpsettings {
|
Line 3356 sub print_helpsettings {
|
my @templateroles = &Apache::lonuserutils::custom_template_roles($context,$crstype); |
my @templateroles = &Apache::lonuserutils::custom_template_roles($context,$crstype); |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
my $chgstr = ' onchange="javascript:reorderHelpRoles(this.form,'."'helproles_".$num."_pos'".');"'; |
my $chgstr = ' onchange="javascript:reorderHelpRoles(this.form,'."'helproles_".$num."_pos'".');"'; |
$datatable .= '<tr '.$css_class.'><td valign="top"><b>'.$role.'</b><br />'. |
$datatable .= '<tr '.$css_class.'><td style="vertical-align: top"><b>'.$role.'</b><br />'. |
'<select name="helproles_'.$num.'_pos"'.$chgstr.'>'; |
'<select name="helproles_'.$num.'_pos"'.$chgstr.'>'; |
for (my $k=0; $k<=$maxnum; $k++) { |
for (my $k=0; $k<=$maxnum; $k++) { |
my $vpos = $k+1; |
my $vpos = $k+1; |
Line 3395 sub print_helpsettings {
|
Line 3395 sub print_helpsettings {
|
&Apache::lonuserutils::custom_role_privs(\%privs,\%full,\%levels,\%levelscurrent); |
&Apache::lonuserutils::custom_role_privs(\%privs,\%full,\%levels,\%levelscurrent); |
my @templateroles = &Apache::lonuserutils::custom_template_roles($context,$crstype); |
my @templateroles = &Apache::lonuserutils::custom_template_roles($context,$crstype); |
my $chgstr = ' onchange="javascript:reorderHelpRoles(this.form,'."'helproles_".$count."_pos'".');"'; |
my $chgstr = ' onchange="javascript:reorderHelpRoles(this.form,'."'helproles_".$count."_pos'".');"'; |
$datatable .= '<tr '.$css_class.'><td valign="top"><span class="LC_nobreak"><label>'. |
$datatable .= '<tr '.$css_class.'><td style="vertical-align: top"><span class="LC_nobreak"><label>'. |
'<input type="hidden" name="helproles_maxnum" value="'.$maxnum.'" />'."\n". |
'<input type="hidden" name="helproles_maxnum" value="'.$maxnum.'" />'."\n". |
'<select name="helproles_'.$count.'_pos"'.$chgstr.'>'; |
'<select name="helproles_'.$count.'_pos"'.$chgstr.'>'; |
for (my $k=0; $k<$maxnum+1; $k++) { |
for (my $k=0; $k<$maxnum+1; $k++) { |
Line 3674 sub radiobutton_prefs {
|
Line 3674 sub radiobutton_prefs {
|
foreach my $item (@{$toggles}) { |
foreach my $item (@{$toggles}) { |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$datatable .= |
$datatable .= |
'<tr'.$css_class.'><td valign="top">'. |
'<tr'.$css_class.'><td style="vertical-align: top">'. |
'<span class="LC_nobreak">'.$choices->{$item}. |
'<span class="LC_nobreak">'.$choices->{$item}. |
'</span></td>'; |
'</span></td>'; |
if ($align eq 'left') { |
if ($align eq 'left') { |
Line 3865 sub print_ltitools {
|
Line 3865 sub print_ltitools {
|
if (!$rolemaps{$role}) { |
if (!$rolemaps{$role}) { |
$selectnone = ' selected="selected"'; |
$selectnone = ' selected="selected"'; |
} |
} |
$datatable .= '<td align="center">'. |
$datatable .= '<td style="text-align: center">'. |
&Apache::lonnet::plaintext($role,'Course').'<br />'. |
&Apache::lonnet::plaintext($role,'Course').'<br />'. |
'<select name="ltitools_roles_'.$role.'_'.$i.'">'. |
'<select name="ltitools_roles_'.$role.'_'.$i.'">'. |
'<option value=""'.$selectnone.'>'.&mt('Select').'</option>'; |
'<option value=""'.$selectnone.'>'.&mt('Select').'</option>'; |
Line 3999 sub print_ltitools {
|
Line 3999 sub print_ltitools {
|
'<fieldset><legend>'.&mt('Role mapping').'</legend><table><tr>'; |
'<fieldset><legend>'.&mt('Role mapping').'</legend><table><tr>'; |
foreach my $role (@courseroles) { |
foreach my $role (@courseroles) { |
my ($checked,$checkednone); |
my ($checked,$checkednone); |
$datatable .= '<td align="center">'. |
$datatable .= '<td style="text-align: center">'. |
&Apache::lonnet::plaintext($role,'Course').'<br />'. |
&Apache::lonnet::plaintext($role,'Course').'<br />'. |
'<select name="ltitools_add_roles_'.$role.'">'. |
'<select name="ltitools_add_roles_'.$role.'">'. |
'<option value="" selected="selected">'.&mt('Select').'</option>'; |
'<option value="" selected="selected">'.&mt('Select').'</option>'; |
Line 4095 sub print_coursedefaults {
|
Line 4095 sub print_coursedefaults {
|
\%choices,$itemcount); |
\%choices,$itemcount); |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$datatable .= |
$datatable .= |
'<tr'.$css_class.'><td valign="top">'. |
'<tr'.$css_class.'><td style="vertical-align: top">'. |
'<span class="LC_nobreak">'.$choices{'canclone'}. |
'<span class="LC_nobreak">'.$choices{'canclone'}. |
'</span></td><td class="LC_left_item">'; |
'</span></td><td class="LC_left_item">'; |
my $currcanclone = 'none'; |
my $currcanclone = 'none'; |
Line 4247 sub print_coursedefaults {
|
Line 4247 sub print_coursedefaults {
|
$datatable .= '<tr'.$css_class.'><td><span class="LC_nobreak">'. |
$datatable .= '<tr'.$css_class.'><td><span class="LC_nobreak">'. |
$choices{'uploadquota'}. |
$choices{'uploadquota'}. |
'</span></td>'. |
'</span></td>'. |
'<td align="right" class="LC_right_item">'. |
'<td style="text-align: right" class="LC_right_item">'. |
'<table><tr>'; |
'<table><tr>'; |
foreach my $type (@types) { |
foreach my $type (@types) { |
$datatable .= '<td align="center">'.&mt($type).'<br />'. |
$datatable .= '<td style="text-align: center">'.&mt($type).'<br />'. |
'<input type="text" name="uploadquota_'.$type.'"'. |
'<input type="text" name="uploadquota_'.$type.'"'. |
' value="'.$curruploadquota{$type}.'" size="5" /></td>'; |
' value="'.$curruploadquota{$type}.'" size="5" /></td>'; |
} |
} |
Line 4265 sub print_coursedefaults {
|
Line 4265 sub print_coursedefaults {
|
'<i>'.&mt('Default credits').'</i><br /><table><tr>'; |
'<i>'.&mt('Default credits').'</i><br /><table><tr>'; |
foreach my $type (@types) { |
foreach my $type (@types) { |
next if ($type eq 'community'); |
next if ($type eq 'community'); |
$additional .= '<td align="center">'.&mt($type).'<br />'. |
$additional .= '<td style="text-align: center">'.&mt($type).'<br />'. |
'<input type="text" name="'.$type.'_credits"'. |
'<input type="text" name="'.$type.'_credits"'. |
' value="'.$defcredits{$type}.'" size="3" /></td>'; |
' value="'.$defcredits{$type}.'" size="3" /></td>'; |
} |
} |
Line 4289 sub print_coursedefaults {
|
Line 4289 sub print_coursedefaults {
|
'<i>'.&mt('Enter 0 to remain disabled until page reload.').'</i><br />'. |
'<i>'.&mt('Enter 0 to remain disabled until page reload.').'</i><br />'. |
'<table><tr>'; |
'<table><tr>'; |
foreach my $type (@types) { |
foreach my $type (@types) { |
$additional .= '<td align="center">'.&mt($type).'<br />'. |
$additional .= '<td style="text-align: center">'.&mt($type).'<br />'. |
'<input type="text" name="'.$type.'_timeout" value="'. |
'<input type="text" name="'.$type.'_timeout" value="'. |
$deftimeout{$type}.'" size="5" /></td>'; |
$deftimeout{$type}.'" size="5" /></td>'; |
} |
} |
Line 4307 sub print_coursedefaults {
|
Line 4307 sub print_coursedefaults {
|
$datatable .= '<tr'.$css_class.'><td><span class="LC_nobreak">'. |
$datatable .= '<tr'.$css_class.'><td><span class="LC_nobreak">'. |
$choices{'mysqltables'}. |
$choices{'mysqltables'}. |
'</span></td>'. |
'</span></td>'. |
'<td align="right" class="LC_right_item">'. |
'<td style="text-align: right" class="LC_right_item">'. |
'<table><tr>'; |
'<table><tr>'; |
foreach my $type (@types) { |
foreach my $type (@types) { |
$datatable .= '<td align="center">'.&mt($type).'<br />'. |
$datatable .= '<td style="text-align: center">'.&mt($type).'<br />'. |
'<input type="text" name="mysqltables_'.$type.'"'. |
'<input type="text" name="mysqltables_'.$type.'"'. |
' value="'.$currmysql{$type}.'" size="8" /></td>'; |
' value="'.$currmysql{$type}.'" size="8" /></td>'; |
} |
} |
Line 5209 sub print_loadbalancing {
|
Line 5209 sub print_loadbalancing {
|
my $disabled_div_style = 'display: block'; |
my $disabled_div_style = 'display: block'; |
my $homedom_div_style = 'display: none'; |
my $homedom_div_style = 'display: none'; |
$datatable .= '<tr class="'.$css_class[$cssidx].'">'. |
$datatable .= '<tr class="'.$css_class[$cssidx].'">'. |
'<td rowspan="'.$rownum.'" valign="top">'. |
'<td rowspan="'.$rownum.'" style="vertical-align: top">'. |
'<p>'; |
'<p>'; |
if ($lonhost eq '') { |
if ($lonhost eq '') { |
$datatable .= '<span class="LC_nobreak">'; |
$datatable .= '<span class="LC_nobreak">'; |
Line 5242 sub print_loadbalancing {
|
Line 5242 sub print_loadbalancing {
|
$homedom_div_style = 'display: block'; |
$homedom_div_style = 'display: block'; |
} |
} |
} |
} |
$datatable .= '</p></td><td rowspan="'.$rownum.'" valign="top">'. |
$datatable .= '</p></td><td rowspan="'.$rownum.'" style="vertical-align: top">'. |
'<div id="loadbalancing_disabled_'.$balnum.'" style="'. |
'<div id="loadbalancing_disabled_'.$balnum.'" style="'. |
$disabled_div_style.'">'.$disabledtext.'</div>'."\n". |
$disabled_div_style.'">'.$disabledtext.'</div>'."\n". |
'<div id="loadbalancing_targets_'.$balnum.'" style="'.$targets_div_style.'">'.&mt('Offloads to:').'<br />'; |
'<div id="loadbalancing_targets_'.$balnum.'" style="'.$targets_div_style.'">'.&mt('Offloads to:').'<br />'; |
Line 5457 sub loadbalance_rule_row {
|
Line 5457 sub loadbalance_rule_row {
|
$space = '<div display="inline-block"> </div>'; |
$space = '<div display="inline-block"> </div>'; |
} |
} |
my $output = |
my $output = |
'<tr class="'.$css_class.'" id="balanceruletr_'.$balnum.'_'.$num.'"><td valign="top">'.$space. |
'<tr class="'.$css_class.'" id="balanceruletr_'.$balnum.'_'.$num.'"><td style="vertical-align: top">'.$space. |
'<div id="balanceruletitle_'.$balnum.'_'.$type.'" style="'.$style.'">'.$title.'</div></td>'."\n". |
'<div id="balanceruletitle_'.$balnum.'_'.$type.'" style="'.$style.'">'.$title.'</div></td>'."\n". |
'<td valaign="top">'.$space. |
'<td valaign="top">'.$space. |
'<div id="balancerule_'.$balnum.'_'.$type.'" style="'.$style.'">'."\n"; |
'<div id="balancerule_'.$balnum.'_'.$type.'" style="'.$style.'">'."\n"; |
Line 5694 sub print_usercreation {
|
Line 5694 sub print_usercreation {
|
} |
} |
$datatable .= '<tr'.$css_class.'>'. |
$datatable .= '<tr'.$css_class.'>'. |
'<td><span class="LC_nobreak">'.$lt{$item}. |
'<td><span class="LC_nobreak">'.$lt{$item}. |
'</span></td><td align="right">'; |
'</span></td><td style="text-align: right">'; |
my @options = ('any'); |
my @options = ('any'); |
if (ref($rules) eq 'HASH') { |
if (ref($rules) eq 'HASH') { |
if (keys(%{$rules}) > 0) { |
if (keys(%{$rules}) > 0) { |
Line 6137 sub noninst_users {
|
Line 6137 sub noninst_users {
|
} |
} |
$output .= '</tr><tr>'; |
$output .= '</tr><tr>'; |
foreach my $item ('approve','email','username') { |
foreach my $item ('approve','email','username') { |
$output .= '<td valign="top">'; |
$output .= '<td style="vertical-align: top">'; |
my (%choices,@options,$hashref,$defoption,$name,$onclick,$hascustom); |
my (%choices,@options,$hashref,$defoption,$name,$onclick,$hascustom); |
if ($item eq 'approve') { |
if ($item eq 'approve') { |
%choices = &Apache::lonlocal::texthash ( |
%choices = &Apache::lonlocal::texthash ( |
Line 6849 sub print_scantronformat {
|
Line 6849 sub print_scantronformat {
|
} |
} |
$datatable .= '</span></td>'; |
$datatable .= '</span></td>'; |
if (keys(%error) == 0) { |
if (keys(%error) == 0) { |
$datatable .= '<td valign="bottom">'; |
$datatable .= '<td style="vertical-align: bottom">'; |
if (!$switchserver) { |
if (!$switchserver) { |
$datatable .= &mt('Upload:').'<br />'; |
$datatable .= &mt('Upload:').'<br />'; |
} |
} |
Line 8736 sub display_colorchgs {
|
Line 8736 sub display_colorchgs {
|
} else { |
} else { |
my $newitem = $confhash->{$role}{$item}; |
my $newitem = $confhash->{$role}{$item}; |
if ($key eq 'images') { |
if ($key eq 'images') { |
$newitem = '<img src="'.$confhash->{$role}{$item}.'" alt="'.$choices{$item}.'" valign="bottom" />'; |
$newitem = '<img src="'.$confhash->{$role}{$item}.'" alt="'.$choices{$item}.'" style="vertical-align: bottom" />'; |
} |
} |
$resulttext .= '<li>'.&mt("$choices{$item} set to [_1]",$newitem).'</li>'; |
$resulttext .= '<li>'.&mt("$choices{$item} set to [_1]",$newitem).'</li>'; |
} |
} |