--- loncom/interface/slotrequest.pm 2005/11/02 22:46:12 1.28 +++ loncom/interface/slotrequest.pm 2005/11/08 03:13:20 1.29 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for requesting to have slots added to a students record # -# $Id: slotrequest.pm,v 1.28 2005/11/02 22:46:12 albertel Exp $ +# $Id: slotrequest.pm,v 1.29 2005/11/08 03:13:20 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -468,24 +468,52 @@ sub show_table { '); } + + my %Saveable_Parameters = ('show' => 'array'); + + &Apache::loncommon::store_course_settings('chart',\%Saveable_Parameters); + &Apache::loncommon::restore_course_settings('chart',\%Saveable_Parameters); + + my %fields=&Apache::lonlocal::texthash( + 'name' => 'Slot Name', + 'description' => 'Description', + 'type' => 'Type', + 'starttime' => 'Start time', + 'endtime' => 'End Time', + 'startreserve' => 'Time students can start reserving', + 'secret' => 'Secret Word', + 'maxspace' => 'Maxium # of students', + 'ip' => 'IP or DNS restrictions', + 'symb' => 'Resource slot is restricted to.', + 'uniqueperiod' => 'Period of time slot is unique', + 'proctor' => 'List of proctors'); + my @order=('name','description','type','starttime','endtime', + 'startreserve','secret','maxspace','ip','symb', + 'uniqueperiod','proctor'); + my @sel = + (exists($env{'form.show'})) ? &Apache::loncommon::get_env_multiple('form.show') + : keys(%fields); + my %sel = map { $_ => 1 } (@sel); + + $r->print('
EDITFORM - $r->print(<