[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm lonparmset.pm
amueller
amueller@source.lon-capa.org
Sat, 14 Nov 2009 18:54:17 -0000
amueller Sat Nov 14 18:54:17 2009 EDT
Modified files:
/loncom/interface lonparmset.pm lonhtmlcommon.pm
Log:
-lonhtmlcommon:
Added a new argument for function row_title. Now you can pass through this argument more attribute for the <tr> Tag
-lonparmset:
Changes in Table Mode:
Delete the space between pickbox "Select Parameter Level" and pickbox "Select Enclosing Map or Folder". If you choose as Parameter Level
>>Course Level<< you will hide the row that enclosed the pickbox "Select Enclosing Map or Folder".
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.483 loncom/interface/lonparmset.pm:1.484
--- loncom/interface/lonparmset.pm:1.483 Sat Nov 14 17:47:18 2009
+++ loncom/interface/lonparmset.pm Sat Nov 14 18:54:17 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.483 2009/11/14 17:47:18 amueller Exp $
+# $Id: lonparmset.pm,v 1.484 2009/11/14 18:54:17 amueller Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1768,7 +1768,7 @@
}
}
# Show it ...
- $r->print(&Apache::lonhtmlcommon::row_title(&mt('Select Enclosing Map or Folder')));
+ $r->print(&Apache::lonhtmlcommon::row_title(&mt('Select Enclosing Map or Folder'),'','',' id="mapmenu"'));
if ((ref($tree) eq 'ARRAY') && (ref($treeinfo) eq 'HASH')) {
my $icon = '<img src="/adm/lonIcons/navmap.folder.open.gif" alt="" />';
$r->print(&Apache::loncommon::start_data_table()
@@ -2222,12 +2222,10 @@
&levelmenu($r,\%alllevs,$parmlev);
$r->print(&Apache::lonhtmlcommon::row_closure(1));
$r->print(&Apache::lonhtmlcommon::end_pick_box());
- $r->print('<div id="mapmenu">');
$r->print(&Apache::lonhtmlcommon::start_pick_box());
&mapmenu($r,\%allmaps,$pschp,\%maptitles, \%symbp);
$r->print(&Apache::lonhtmlcommon::row_closure(1));
$r->print(&Apache::lonhtmlcommon::end_pick_box());
- $r->print('</div>');
#Display Unit 2 "Select Parameter"
$r->print(&Apache::lonhtmlcommon::topic_bar(2,&mt('Parameter Specification')));
&displaymenu($r,\%allparms,\%allparts,\@pscat,\@psprt,\%keyorder);
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.242 loncom/interface/lonhtmlcommon.pm:1.243
--- loncom/interface/lonhtmlcommon.pm:1.242 Tue Nov 10 13:58:55 2009
+++ loncom/interface/lonhtmlcommon.pm Sat Nov 14 18:54:17 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.242 2009/11/10 13:58:55 droeschl Exp $
+# $Id: lonhtmlcommon.pm,v 1.243 2009/11/14 18:54:17 amueller Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1599,7 +1599,7 @@
}
sub row_title {
- my ($title,$css_title_class,$css_value_class) = @_;
+ my ($title,$css_title_class,$css_value_class, $css_value_furtherAttributes) = @_;
$row_count[0]++;
my $css_class = ($row_count[0] % 2)?'LC_odd_row':'LC_even_row';
$css_title_class ||= 'LC_pick_box_title';
@@ -1611,7 +1611,7 @@
$title .= ':';
}
my $output = <<"ENDONE";
- <tr class="LC_pick_box_row">
+ <tr class="LC_pick_box_row" $css_value_furtherAttributes>
<td $css_title_class>
$title
</td>