[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

neumanie neumanie@source.lon-capa.org
Sat, 16 May 2009 22:18:20 -0000


neumanie		Sat May 16 22:18:20 2009 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  Change the Desgin in the Table Mode.
  
  -Add &mt heading
  -Replace the style boxes to topic_bar
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.448 loncom/interface/lonparmset.pm:1.449
--- loncom/interface/lonparmset.pm:1.448	Tue May 12 12:20:53 2009
+++ loncom/interface/lonparmset.pm	Sat May 16 22:18:20 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.448 2009/05/12 12:20:53 bisitz Exp $
+# $Id: lonparmset.pm,v 1.449 2009/05/16 22:18:20 neumanie Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1500,9 +1500,7 @@
 
 sub displaymenu {
     my ($r,$allparms,$allparts,$pscat,$psprt,$keyorder)=@_;
-    $r->print('<div class="LC_ContentBoxSpecial">');
-    $r->print('<h2 class="LC_hcell">Step 2</h2>');
-    $r->print('<div class="LC_BoxPadding">' );
+    $r->print(&Apache::lonhtmlcommon::topic_bar (2,&mt('Select Parameters')));
     $r->print(&Apache::lonhtmlcommon::start_pick_box());
     &parmmenu($r,$allparms,$pscat,$keyorder);
     $r->print(&Apache::lonhtmlcommon::row_closure());
@@ -1511,7 +1509,6 @@
     &partmenu($r,$allparts,$psprt);
     $r->print(&Apache::lonhtmlcommon::row_closure(1));
     $r->print(&Apache::lonhtmlcommon::end_pick_box());
-    $r->print('</div></div>');
 }
 
 sub mapmenu {
@@ -1865,10 +1862,7 @@
     }
 
     if (!$pssymb) {
-
-        $r->print('<div class="LC_ContentBoxSpecial">');
-        $r->print('<h2 class="LC_hcell">Step 1</h2>');
-        $r->print('<div class="LC_BoxPadding">' );
+        $r->print(&Apache::lonhtmlcommon::topic_bar (1,&mt('General Parameters')));
         $r->print(&Apache::lonhtmlcommon::start_pick_box());
 
         &levelmenu($r,\%alllevs,$parmlev);
@@ -1880,8 +1874,7 @@
 
         $r->print(&Apache::lonhtmlcommon::row_closure(1));
         $r->print(&Apache::lonhtmlcommon::end_pick_box());
-        $r->print('</div></div>');
-
+       
 	&displaymenu($r,\%allparms,\%allparts,\@pscat,\@psprt,\%keyorder);
     } else {
         my ($map,$id,$resource)=&Apache::lonnet::decode_symb($pssymb);
@@ -1891,14 +1884,12 @@
 		  '<br /><label><b>'.&mt('Show all parts').': <input type="checkbox" name="psprt" value="all"'.
 		  ($env{'form.psprt'}?' checked="checked"':'').' /></b></label><br />');
     }
-    $r->print('<div class="LC_ContentBoxSpecial">');
-    $r->print('<h2 class="LC_hcell">Step 3</h2>');
-    $r->print('<div class="LC_BoxPadding">' );
+    $r->print(&Apache::lonhtmlcommon::topic_bar (3,&mt('User Selection')));
     $r->print(&Apache::lonhtmlcommon::start_pick_box());
     &usermenu($r,$uname,$id,$udom,$csec,$cgroup,$parmlev,\@usersgroups);
     $r->print(&Apache::lonhtmlcommon::row_closure(1));
     $r->print(&Apache::lonhtmlcommon::end_pick_box());
-    $r->print('</div></div>');
+    
 
     $r->print('<p>'.$message.'</p>');