[LON-CAPA-cvs] cvs: rat /client parameter.html

bisitz bisitz@source.lon-capa.org
Fri, 05 Feb 2010 18:16:23 -0000


bisitz		Fri Feb  5 18:16:23 2010 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  Table Mode, Parameter Setting Popup Window:
  Bug 6212 - Font Size
  - Manually added standard font styles taken from CSS definitions in loncommon.pm which can't be used here automatically
  - Added padding and border to enhance layout and readability
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.54 rat/client/parameter.html:1.55
--- rat/client/parameter.html:1.54	Wed Jan 13 18:45:15 2010
+++ rat/client/parameter.html	Fri Feb  5 18:16:23 2010
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.54 2010/01/13 18:45:15 bisitz Exp $
+// $Id: parameter.html,v 1.55 2010/02/05 18:16:23 bisitz Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -68,7 +68,21 @@
 
 function choicestart() {
   this.window.choices.document.clear();
-  choicewrite('<html><body bgcolor="#FFFFFF">');
+  choicewrite('<html><body>');
+  choicewrite('<head>');
+  choicewrite('<style type="text/css">');
+  choicewrite('<!--');
+  choicewrite('body {');
+  choicewrite('font-family: Verdana,Arial,Helvetica,sans-serif;');
+  choicewrite('line-height:130%;');
+  choicewrite('font-size:0.83em;');
+  choicewrite('background: #FFFFFF;');
+  choicewrite('}');
+  choicewrite('table.LC_parmsel_table {font-size: 90%;}');
+  choicewrite('table.LC_parmsel_table tr td { padding: 5px; border: 1px solid #C8C8C8;}');
+  choicewrite('-->');
+  choicewrite('</style>');
+  choicewrite('</head>');
 }
 
 function choiceend() {
@@ -81,7 +95,7 @@
 }
 
 function tablestart(headtext) {
-  choicewrite('<table><tr bgcolor="#C5DB99"><th colspan="3">'+
+  choicewrite('<table class="LC_parmsel_table"><tr bgcolor="#C5DB99"><th colspan="3">'+
               headtext+'</th></tr>');
 }
 
@@ -666,7 +680,7 @@
            choicewrite('<label><input name="stringval" value="map_map"'+
                   ' type="radio" '+callradiostringeval('map_map'));
            if (svalue=='map_map') { choicewrite(' checked="checked"'); }
-           choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in..</label><br />');
+           choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in.</label><br />');
         choicewrite('</td></tr></table>');
       }
    }
@@ -807,8 +821,19 @@
   }
 
   this.window.selector.document.clear();
-  selwrite('<html><body bgcolor="#FFFFFF">');
-
+  selwrite('<html><body>');
+  selwrite('<head>');
+  selwrite('<style type="text/css">');
+  selwrite('<!--');
+  selwrite('body {');
+  selwrite('font-family: Verdana,Arial,Helvetica,sans-serif;');
+  selwrite('line-height:130%;');
+  selwrite('font-size:0.83em;');
+  selwrite('background: #FFFFFF;');
+  selwrite('}');
+  selwrite('-->');
+  selwrite('</style>');
+  selwrite('</head>');
   selwrite('<form name="fsel"><b>'+pname+'</b><br />');
   selwrite('<select name="fcat" onchange="parent.catchange();">');