Annotation of loncom/interface/lonconfigsettings.pm, revision 1.21.4.10
1.1 raeburn 1: # The LearningOnline Network with CAPA
2: # Handler to set domain-wide configuration settings
3: #
1.21.4.10! raeburn 4: # $Id: lonconfigsettings.pm,v 1.21.4.9 2016/10/23 21:13:51 raeburn Exp $
1.1 raeburn 5: #
6: # Copyright Michigan State University Board of Trustees
7: #
8: # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
9: #
10: # LON-CAPA is free software; you can redistribute it and/or modify
11: # it under the terms of the GNU General Public License as published by
12: # the Free Software Foundation; either version 2 of the License, or
13: # (at your option) any later version.
14: #
15: # LON-CAPA is distributed in the hope that it will be useful,
16: # but WITHOUT ANY WARRANTY; without even the implied warranty of
17: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18: # GNU General Public License for more details.
19: #
20: # You should have received a copy of the GNU General Public License
21: # along with LON-CAPA; if not, write to the Free Software
22: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA#
23: # /home/httpd/html/adm/gpl.txt
24: #
25: # http://www.lon-capa.org/
26: #
27: #
28: ###############################################################
29: ##############################################################
30:
31: package Apache::lonconfigsettings;
32:
33: use strict;
34: use Apache::lonnet;
35: use Apache::loncommon();
36: use Apache::lonhtmlcommon();
37: use Apache::lonlocal;
1.21.4.7 raeburn 38: use Apache::courseclassifier();
39: use LONCAPA qw(:DEFAULT :match);
1.1 raeburn 40:
41: sub print_header {
1.21.4.10! raeburn 42: my ($r,$phase,$context,$jscript,$container,$instcode,$dom) = @_;
1.21.4.7 raeburn 43: my ($pagetitle,$brcrumtitle,$action,$call_category_check,$instcode_check,
44: $crstype,@actions,@code_order);
45: if ($phase eq 'display') {
46: @actions = &Apache::loncommon::get_env_multiple('form.actions');
47: }
1.1 raeburn 48: if ($context eq 'domain') {
1.12 raeburn 49: ($pagetitle, $brcrumtitle) = ('View/Modify Domain Settings','View/Modify Domain Settings');
1.1 raeburn 50: $action = '/adm/domainprefs';
1.8 raeburn 51: if ($phase eq 'display') {
52: if (grep(/^coursecategories$/,@actions)) {
53: $call_category_check = qq|
54: if (formname == document.display) {
55: if (!categoryCheck(formname)) {
56: return;
57: }
58: }
59: |;
60: }
61: }
1.1 raeburn 62: } else {
1.21.4.3 raeburn 63: $crstype = &Apache::loncommon::course_type();
64: if ($crstype eq 'Community') {
1.7 raeburn 65: ($pagetitle,$brcrumtitle) = ('Community Configuration','Community Configuration');
66: } else {
67: ($pagetitle,$brcrumtitle) = ('Course Configuration','Course Configuration');
68: }
1.1 raeburn 69: $action = '/adm/courseprefs';
1.21.4.7 raeburn 70: if ($phase eq 'display') {
71: if (grep(/^courseinfo$/,@actions)) {
72: my %codedefaults;
73: &Apache::lonnet::auto_instcode_defaults($env{'request.role.domain'},\%codedefaults,
74: \@code_order);
75: if (@code_order) {
76: my $noinstcodestr = &mt('You indicated cloning based on category, but did not select any categories.');
1.21.4.8 raeburn 77: &js_escape(\$noinstcodestr);
1.21.4.7 raeburn 78: $instcode_check = <<"ENDSCRIPT";
79: if (formname == document.display) {
80: if (formname.cloners_instcode.length) {
81: for (var j=0; j<formname.cloners_instcode.length; j++) {
82: if (formname.cloners_instcode[j].checked) {
83: if (formname.cloners_instcode[j].value == 1) {
84: var codes;
85: if (document.getElementsByClassName) {
86: codes = document.getElementsByClassName('LC_cloners_instcodes');
87: } else {
88: codes = getElementsByClassName(document.body,'LC_cloners_instcodes');
89: }
90: if (codes.length) {
91: var gotcode = 0;
92: for (var i=0; i<codes.length; i++) {
93: if (codes[i].selectedIndex != 0) {
94: gotcode = 1;
95: break;
96: }
97: }
98: if (!gotcode) {
99: for (var k=0; k<formname.cloners_instcode.length; k++) {
100: if (formname.cloners_instcode[k].value == 0) {
101: formname.cloners_instcode[k].checked = true;
102: }
103: }
104: toggleCloners(document.display.cloners_instcode);
105: alert('$noinstcodestr');
106: return false;
107: }
108: }
109: }
110: }
111: }
112: }
113: }
114:
115: ENDSCRIPT
116: }
117: }
118: }
1.1 raeburn 119: }
120: my $alert = &mt('You must select at least one functionality type to display.');
1.21.4.8 raeburn 121: &js_escape(\$alert);
1.1 raeburn 122: my $js = '
123: <script type="text/javascript">
1.6 raeburn 124: // <![CDATA[
125:
1.1 raeburn 126: function changePage(formname,newphase) {
127: formname.phase.value = newphase;
128: numchecked = 0;
129: if (formname == document.pickactions) {
130: if (formname.actions.length > 0) {
131: for (var i = 0; i<formname.actions.length; i++) {
132: if (formname.actions[i].checked) {
133: numchecked ++;
134: }
135: }
136: } else {
137: if (formname.actions.checked) {
138: numchecked ++;
139: }
140: }
141: if (numchecked > 0) {
142: formname.submit();
143: } else {
144: alert("'.$alert.'");
145: return;
146: }
147: }
1.21.4.7 raeburn 148: '.$instcode_check.$call_category_check.'
1.1 raeburn 149: formname.submit();
150: }'."\n";
151: if ($phase eq 'pickactions') {
1.21.4.2 raeburn 152: $js .= &Apache::lonhtmlcommon::color_picker();
1.1 raeburn 153: $js .=
1.12 raeburn 154: &Apache::lonhtmlcommon::set_form_elements({actions => 'checkbox'})."\n";
1.1 raeburn 155: } elsif ($phase eq 'display') {
1.21.4.2 raeburn 156: $js .= &Apache::lonhtmlcommon::color_picker();
1.1 raeburn 157: $js .= &color_pick_js()."\n";
158: }
159: $js .= &Apache::loncommon::viewport_size_js().'
1.6 raeburn 160:
161: // ]]>
1.1 raeburn 162: </script>
163: ';
1.2 raeburn 164: if ($jscript) {
165: $js .= "
166:
167: $jscript
168:
169: ";
170: }
1.1 raeburn 171: my $additem;
172: if ($phase eq 'pickactions') {
173: my %loaditems = (
1.12 raeburn 174: 'onload' => "setFormElements(document.pickactions);",
1.1 raeburn 175: );
176: $additem = {'add_entries' => \%loaditems,};
1.21.4.7 raeburn 177: } elsif ($phase eq 'display') {
178: if ($context eq 'domain') {
1.21.4.10! raeburn 179: my $onload;
1.21.4.7 raeburn 180: if (grep(/^coursedefaults$/,@actions)) {
1.21.4.10! raeburn 181: $onload = "toggleDisplay(document.display,'cloneinstcode');".
! 182: "toggleDisplay(document.display,'credits');".
! 183: "toggleDisplay(document.display,'studentsubmission');";
! 184: }
! 185: if (grep(/^selfcreation$/,@actions)) {
! 186: my $prefix = 'cancreate_emailverified';
! 187: my $customclass = 'LC_selfcreate_email';
! 188: my $classprefix = 'LC_canmodify_emailusername_';
! 189: my $optionsprefix = 'LC_options_emailusername_';
! 190: $onload .= "toggleRows(document.display,'cancreate_email','selfassign','$customclass','$classprefix','$optionsprefix');";
! 191: my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($dom);
! 192: my $hascustom;
! 193: my ($emailrules,$emailruleorder) = &Apache::lonnet::inst_userrules($dom,'email');
! 194: if (ref($emailrules) eq 'HASH') {
! 195: if (keys(%{$emailrules}) > 0) {
! 196: $hascustom = 'cancreate_emailrule';
! 197: }
! 198: }
! 199: my @posstypes;
! 200: if (ref($types) eq 'ARRAY') {
! 201: @posstypes = @{$types};
! 202: push(@posstypes,'default');
! 203: foreach my $type (@posstypes) {
! 204: $onload .= "toggleEmailOptions(document.display,'cancreate_emailoptions','$hascustom',".
! 205: "'cancreate_emaildomain','$type');";
! 206: }
! 207: } else {
! 208: $onload .= "toggleEmailOptions(document.display,'cancreate_emailoptions','$hascustom',".
! 209: "'cancreate_emaildomain','default');";
! 210: }
! 211: }
! 212: if ($onload) {
1.21.4.7 raeburn 213: my %loaditems = (
1.21.4.10! raeburn 214: 'onload' => $onload,
1.21.4.7 raeburn 215: );
216: $additem = {'add_entries' => \%loaditems,};
217: }
218: } elsif ($context eq 'course') {
219: if (grep(/^courseinfo$/,@actions)) {
220: if (@code_order) {
221: $additem = {
222: add_entries => {'onload' => "courseSet('','load');toggleCloners(document.display.cloners_instcode);"},
223: };
224: }
225: }
226: }
1.1 raeburn 227: }
228: $r->print(&Apache::loncommon::start_page($pagetitle,$js,$additem));
229: $r->print(&Apache::lonhtmlcommon::breadcrumbs($brcrumtitle));
230: $r->print('
231: <form name="parmform" action="">
232: <input type="hidden" name="pres_marker" />
233: <input type="hidden" name="pres_type" />
234: <input type="hidden" name="pres_value" />
235: </form>
236: ');
237: $r->print('<form method="post" name="'.$phase.'" action="'.$action.'"'.
238: ' enctype="multipart/form-data">');
239: return;
240: }
241:
242: sub print_footer {
1.21.4.9 raeburn 243: my ($r,$phase,$newphase,$button_text,$actions,$container,$parm_permission) = @_;
1.1 raeburn 244: $button_text = &mt($button_text);
1.12 raeburn 245: $r->print('<input type="hidden" name="phase" value="" />');
1.5 raeburn 246: if (defined($env{'form.origin'})) {
247: $r->print('<input type="hidden" name="origin" value="'.$env{'form.origin'}.'" />'."\n");
248: }
1.1 raeburn 249: if (($phase eq 'display') || ($phase eq 'process')) {
250: if (ref($actions) eq 'ARRAY') {
251: foreach my $item (@{$actions}) {
1.16 raeburn 252: $r->print('<input type="hidden" name="actions" value="'.$item.'" />'."\n");
1.1 raeburn 253: }
254: }
255: }
256: my $dest='"javascript:changePage(document.'.$phase.','."'$newphase'".')"';
257: if ($phase eq 'process') {
1.21.4.2 raeburn 258: $r->print(
259: &Apache::lonhtmlcommon::actionbox(
260: ['<a href='.$dest.'>'.$button_text.'</a>']));
1.1 raeburn 261: } else {
262: my $onclick;
263: if ($phase eq 'display') {
264: $onclick = '"javascript:changePage(document.'.$phase.','."'$newphase'".')"';
265: } else {
266: $onclick = '"javascript:changePage(document.'.$phase.','."'$newphase'".')"';
267: }
1.21.4.9 raeburn 268: my $showbutton = 1;
269: if (ref($parm_permission) eq 'HASH') {
270: unless (($parm_permission->{'process'}) || ($newphase eq 'display')) {
271: $showbutton = 0;
272: }
273: }
274: if ($showbutton) {
275: $r->print('<p><input type="button" name="store" value="'.
276: $button_text.'" onclick='.$onclick.' /></p>');
277: }
1.1 raeburn 278: }
279: if ($phase eq 'process') {
1.20 www 280: $r->print('</form>');
281: $r->print(&Apache::loncommon::end_page());
1.1 raeburn 282: }
283: return;
284: }
285:
286: sub make_changes {
1.21.4.9 raeburn 287: my ($r,$dom,$phase,$context,$prefs_order,$prefs,$values,$confname,$roles,
288: $allitems,$container,$parm_permission) = @_;
1.1 raeburn 289: my %brcrumtext = &get_crumb_text();
290: my @actions = &Apache::loncommon::get_env_multiple('form.actions');
1.4 raeburn 291: my ($numchanged,%changes,%disallowed);
1.1 raeburn 292: &Apache::lonhtmlcommon::add_breadcrumb
293: ({href=>"javascript:changePage(document.$phase,'display')",
294: text=>$brcrumtext{$context}},
295: {href=>"javascript:changePage(document.$phase,'$phase')",
296: text=>"Updated"});
1.20 www 297: &print_header($r,$phase,$context,undef,$container);
1.21.4.4 raeburn 298: my ($crstype,%lastact);
1.7 raeburn 299: if ($context eq 'course') {
300: $crstype = &Apache::loncommon::course_type();
301: }
1.1 raeburn 302: if ((ref($prefs_order) eq 'ARRAY') && (ref($prefs) eq 'HASH') &&
303: (ref($prefs) eq 'HASH')) {
304: foreach my $item (@{$prefs_order}) {
305: if (grep(/^\Q$item\E$/,@actions)) {
306: if ($context eq 'domain') {
1.4 raeburn 307: $r->print('<h3>'.&mt($prefs->{$item}{'text'}).'</h3>'.
308: &Apache::domainprefs::process_changes($r,$dom,
1.21.4.4 raeburn 309: $confname,$item,$roles,$values,\%lastact));
1.1 raeburn 310: } else {
1.4 raeburn 311: $changes{$item} = {};
312: &Apache::courseprefs::process_changes($dom,$item,$values,
313: $prefs->{$item},$changes{$item},
1.7 raeburn 314: $allitems,\%disallowed,$crstype);
1.4 raeburn 315: if (keys(%{$changes{$item}}) > 0) {
316: $numchanged ++;
317: }
1.1 raeburn 318: }
319: }
320: }
321: }
1.4 raeburn 322: if ($context eq 'course') {
323: if ($numchanged) {
1.11 wenzelju 324: my $message = &Apache::courseprefs::store_changes($dom,$confname,$prefs_order,\@actions,
325: $prefs,$values,\%changes,$crstype);
326: $r->print(&Apache::loncommon::confirmwrapper($message));
1.4 raeburn 327: } else {
1.7 raeburn 328: if ($crstype eq 'Community') {
1.11 wenzelju 329: $r->print(&Apache::loncommon::confirmwrapper(&mt("No changes made to community configuration.")));
1.7 raeburn 330: } else {
1.11 wenzelju 331: $r->print(&Apache::loncommon::confirmwrapper(&mt("No changes made to course configuration.")));
1.7 raeburn 332: }
1.4 raeburn 333: }
334: if (keys(%disallowed) > 0) {
335: $r->print('<p>');
336: foreach my $item ('cloners','rolenames','feedback','discussion','localization') {
337: if (ref($disallowed{$item}) eq 'HASH') {
338: if (keys(%{$disallowed{$item}}) > 0) {
339: $r->print(&Apache::courseprefs::display_disallowed($item,$disallowed{$item},
1.7 raeburn 340: $prefs,$crstype));
1.4 raeburn 341: }
342: }
343: }
344: $r->print('</p>');
345: }
346: }
1.1 raeburn 347: $r->print('<p>');
1.4 raeburn 348: my $footer_text = 'Back to configuration display';
349: if ($context eq 'course') {
350: $footer_text = 'Back to display/edit settings';
351: }
1.21.4.9 raeburn 352: &print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission);
1.1 raeburn 353: $r->print('</p>');
1.21.4.4 raeburn 354: return \%lastact;
1.1 raeburn 355: }
356:
357: sub display_settings {
1.3 raeburn 358: my ($r,$dom,$phase,$context,$prefs_order,$prefs,$values,$confname,$jscript,
1.21.4.9 raeburn 359: $allitems,$crstype,$container,$parm_permission) = @_;
1.1 raeburn 360: my %brcrumtext = &get_crumb_text();
361: my @actions = &Apache::loncommon::get_env_multiple('form.actions');
362: &Apache::lonhtmlcommon::add_breadcrumb
363: ({href=>"javascript:changePage(document.$phase,'display')",
1.4 raeburn 364: text=>"Display/Edit Settings"});
1.21.4.7 raeburn 365: my $instcode;
366: if (ref($values) eq 'HASH') {
367: $instcode = $values->{'internal.coursecode'};
368: }
1.21.4.10! raeburn 369: &print_header($r,$phase,$context,$jscript,$container,$instcode,$dom);
1.12 raeburn 370: my $divwidth = 900;
1.1 raeburn 371: if ((ref($prefs_order) eq 'ARRAY') && (ref($prefs) eq 'HASH') && (ref($values) eq 'HASH')) {
372: if (@actions > 0) {
373: my $rowsum = 0;
374: my (%output,%rowtotal,@items);
375: foreach my $item (@{$prefs_order}) {
376: if (grep(/^\Q$item\E$/,@actions)) {
377: push(@items,$item);
378: if ($context eq 'domain') {
1.21.4.6 raeburn 379: my $settings;
380: if (ref($values) eq 'HASH') {
381: $settings = $values->{$item};
382: }
1.15 raeburn 383: if ($item eq 'usersessions') {
384: $r->print('<script type="text/javascript">'."\n".
385: '// <![CDATA['."\n".
386: &Apache::loncommon::check_uncheck_jscript()."\n".
387: '// ]]>'."\n".
388: '</script>'."\n");
1.21.4.5 raeburn 389: } elsif ($item eq 'selfcreation') {
1.21.4.6 raeburn 390: if (ref($values) eq 'HASH') {
391: $settings = $values->{'usercreation'};
392: }
393: } elsif ($item eq 'defaults') {
394: if (ref($values->{'inststatus'}) eq 'HASH') {
395: if (ref($values->{'defaults'}) eq 'HASH') {
396: $settings = {%{$values->{'inststatus'}},%{$values->{'defaults'}}};
397: } else {
398: $settings = $values->{'inststatus'};
399: }
400: } else {
401: my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($dom);
402: my $inststatus = {
403: inststatustypes => $usertypes,
404: inststatusorder => $types,
405: inststatusguest => [],
406: };
407: if (ref($values->{defaults}) eq 'HASH') {
408: $settings = {%{$inststatus},%{$values->{'defaults'}}};
409: } else {
410: $settings = $inststatus;
411: }
412: }
1.15 raeburn 413: }
1.1 raeburn 414: ($output{$item},$rowtotal{$item}) =
415: &Apache::domainprefs::print_config_box($r,$dom,$confname,
1.21.4.5 raeburn 416: $phase,$item,$prefs->{$item},$settings);
1.1 raeburn 417: } else {
418: ($output{$item},$rowtotal{$item}) =
419: &Apache::courseprefs::print_config_box($r,$dom,$phase,
1.21.4.9 raeburn 420: $item,$prefs->{$item},$values,$allitems,$crstype,$parm_permission);
1.1 raeburn 421: }
422: $rowsum += $rowtotal{$item};
423: }
424: }
1.12 raeburn 425: $r->print('<div id="prefs" style="max-width:'.$divwidth.'px;margin: 10px auto 10px auto;">');
1.1 raeburn 426: for (my $i=0; $i<@items; $i++) {
427: $r->print($output{$items[$i]});
428: }
1.12 raeburn 429: $r->print('</div>');
1.21.4.9 raeburn 430: $r->print(&print_footer($r,$phase,'process','Save Changes',\@actions,$container,$parm_permission));
1.1 raeburn 431: } else {
432: $r->print('<input type="hidden" name="phase" value="" />'.
1.12 raeburn 433: '<span class="LC_error">'.&mt('No settings chosen').
434: '</span>');
1.1 raeburn 435: }
436: $r->print('</form>');
437: }
438: $r->print(&Apache::loncommon::end_page());
439: return;
440: }
441:
442: sub display_choices {
1.21.4.9 raeburn 443: my ($r,$phase,$context,$prefs_order,$prefs,$container,$parm_permission) = @_;
1.1 raeburn 444: if ($phase eq '') {
445: $phase = 'pickactions';
446: }
447: my %helphash;
1.20 www 448: &print_header($r,$phase,$context,undef,$container);
1.1 raeburn 449: $r->print('<script type="text/javascript">'."\n".
1.6 raeburn 450: '// <![CDATA['."\n".
1.1 raeburn 451: &Apache::loncommon::check_uncheck_jscript()."\n".
1.6 raeburn 452: '// ]]>'."\n".
1.12 raeburn 453: '</script>'."\n");
1.21.4.9 raeburn 454: my $heading = &mt('Settings to display/modify');
455: if (ref($parm_permission) eq 'HASH') {
456: unless ($parm_permission->{'process'}) {
457: $heading = &mt('Settings to display');
458: }
459: }
460: $r->print('<h3>'.$heading.'</h3>'.
1.13 raeburn 461: '<div><input type="button" value="'.&mt('check all').'" '.
1.1 raeburn 462: 'onclick="javascript:checkAll(document.pickactions.actions)"'.
463: ' />'.(' 'x2).
464: '<input type="button" value="'.&mt('uncheck all').'" '.
1.12 raeburn 465: 'onclick="javascript:uncheckAll(document.pickactions.actions)" />'.
466: "\n".
1.13 raeburn 467: '</div><div class="LC_left_float">');
1.12 raeburn 468: my ($numitems,$maxincol,$firstthird,$secondthird,$seconddiv,$thirddiv,$count);
1.1 raeburn 469: if (ref($prefs_order) eq 'ARRAY') {
470: $numitems = @{$prefs_order};
471: }
1.12 raeburn 472: my $numcols = 3;
473: $maxincol = int($numitems/$numcols);
474: if ($numitems%$numcols) {
475: $maxincol ++;
1.1 raeburn 476: }
1.14 raeburn 477: $firstthird = $maxincol;
478: $secondthird = $firstthird + $maxincol;
1.1 raeburn 479: $count = 0;
480: if ((ref($prefs_order) eq 'ARRAY') && (ref($prefs) eq 'HASH')) {
481: foreach my $item (@{$prefs_order}) {
482: $r->print('<h4>'.
483: &Apache::loncommon::help_open_topic($prefs->{$item}->{'help'}).
484: '<label><input type="checkbox" name="actions" value="'.$item.
485: '" /> '.&mt($prefs->{$item}->{'text'}).'</label></h4>');
486: $count ++;
1.12 raeburn 487: if ((!$seconddiv) && ($count >= $firstthird)) {
1.1 raeburn 488: $r->print('</div>'."\n".'<div class="LC_left_float">'."\n");
489: $seconddiv = 1;
490: }
1.12 raeburn 491: if ((!$thirddiv) && ($count >= $secondthird)) {
492: $r->print('</div>'."\n".'<div class="LC_left_float">'."\n");
493: $thirddiv = 1;
1.13 raeburn 494: }
1.1 raeburn 495: }
1.12 raeburn 496: $r->print('</div><br clear="all" />');
1.1 raeburn 497: }
1.21.4.9 raeburn 498: $r->print(&print_footer($r,$phase,'display','Display',undef,$container,$parm_permission));
1.1 raeburn 499: $r->print('</form>');
500: $r->print(&Apache::loncommon::end_page());
501: return;
502: }
503:
504: sub color_pick_js {
505: my $pjump_def = &Apache::lonhtmlcommon::pjump_javascript_definition();
506: my $output = <<"ENDCOL";
507:
508: $pjump_def
509:
510: function psub() {
1.21 www 511: modalWindow.close();
1.1 raeburn 512: if (document.parmform.pres_marker.value!='') {
513: if (document.parmform.pres_type.value!='') {
514: eval('document.display.'+
515: document.parmform.pres_marker.value+
516: '.value=document.parmform.pres_value.value;');
517: }
518: } else {
519: document.parmform.pres_value.value='';
520: document.parmform.pres_marker.value='';
521: }
522: }
523:
524: function get_id (span_id) {
525: if (document.getElementById) {
526: return document.getElementById(span_id);
527: }
528: if (document.all) {
529: return document.all[span_id];
530: }
531: return false;
532: }
533:
534: function colchg_span (span_id_str,new_color_item) {
535: var span_ref = get_id(span_id_str);
536: if (span_ref.style) { span_ref = span_ref.style; }
537: span_ref.background = new_color_item.value;
538: span_ref.backgroundColor = new_color_item.value;
539: span_ref.bgColor = new_color_item.value;
540: }
541:
542: ENDCOL
543: return $output;
544: }
545:
546: sub get_crumb_text {
547: my %brcrumbtext = (
548: domain => 'Domain Settings',
1.4 raeburn 549: course => 'Display/Edit Settings',
1.1 raeburn 550: );
551: return %brcrumbtext;
552: }
553:
554: 1;
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>