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

bisitz bisitz@source.lon-capa.org
Fri, 08 Jan 2010 17:39:33 -0000


bisitz		Fri Jan  8 17:39:33 2010 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  Quick intermediate layout fix:
  Consistent colors: no special background color for parametrisation popup pages, just for the header rows (hardcoded new CC default light bg color)
  
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.51 rat/client/parameter.html:1.52
--- rat/client/parameter.html:1.51	Thu Apr 23 17:31:29 2009
+++ rat/client/parameter.html	Fri Jan  8 17:39:33 2010
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.51 2009/04/23 17:31:29 bisitz Exp $
+// $Id: parameter.html,v 1.52 2010/01/08 17:39:33 bisitz Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -81,12 +81,12 @@
 }
 
 function tablestart(headtext) {
-  choicewrite('<table><tr bgcolor="#AAFFAA"><th colspan="3">'+
+  choicewrite('<table><tr bgcolor="#C5DB99"><th colspan="3">'+
               headtext+'</th></tr>');
 }
 
 function valline(text,id1,id2) {
-  choicewrite('<tr bgcolor="#AAFFAA"><td>'+text+
+  choicewrite('<tr><td>'+text+
               '</td><td><input type="text" size="4" name="val'+
               id1+'"></td><td>incl:<input type="checkbox" name="val'+
               id2+'"></td></tr>');
@@ -448,20 +448,20 @@
       }
       if (pscat=='interval') {
          tablestart('Time interval');
-         choicewrite('<tr bgcolor="#AAFFAA"><td colspan="3">');
+         choicewrite('<tr><td colspan="3">');
          intervaldis();
-         choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:'
+         choicewrite('</td></tr><tr><td>Time:'
          +'</td><td colspan="2">');
          intday();choicewrite('days ');
          inthour();choicewrite('hours ');
          intminute(); choicewrite('mins '); intsecond();
          choicewrite('secs</td></tr></table>');         
       } else { 
-         choicewrite('<tr bgcolor="#AAFFAA"><td colspan="3">'
+         choicewrite('<tr><td colspan="3">'
          +cdate.toString()+
-         '</td></tr><tr bgcolor="#AAFFAA"><td>Date:</td><td colspan="2">');
+         '</td></tr><tr><td>Date:</td><td colspan="2">');
          month();date();year();
-         choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:'
+         choicewrite('</td></tr><tr><td>Time:'
          +'</td><td colspan="2">');hour();choicewrite('h ');minute();
          choicewrite('m ');second();
          choicewrite('s</td></tr></table>');
@@ -479,10 +479,10 @@
       } else {
        if (pscat=='range') {
          tablestart('Integer range');      
-         choicewrite('<tr bgcolor="#AAFFAA"><td>Lower Value:'+
+         choicewrite('<tr><td>Lower Value:'+
               '</td><td colspan="2"><input type="text" size="4" name="val2'+
               '"></td></tr>');
-         choicewrite('<tr bgcolor="#AAFFAA"><td>Upper Value:'+
+         choicewrite('<tr><td>Upper Value:'+
               '</td><td colspan="2"><input type="text" size="4" name="val4'+
               '"></td></tr></table>');
          var range=new Array;
@@ -507,7 +507,7 @@
         if (pscat=='any') {
            tablestart('Integer');
         }
-        choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+        choicewrite('<tr><td>Value:</td><td colspan="2">');
         choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+
                     '" name=intval onChange="parent.integereval()">');
         choicewrite('</td></table>');
@@ -529,7 +529,7 @@
         if (pscat=='any') {
            tablestart('Floating point number');
         }
-        choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+        choicewrite('<tr><td>Value:</td><td colspan="2">');
         choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+
                     '" name=floatval onChange="parent.floateval()">');
         choicewrite('</td></table>');
@@ -540,13 +540,13 @@
         if ((pscat=='any') || (pscat=='') || (pscat=='default') ||  
             (typeof(pscat)=='undefined')) {
            tablestart('Text');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+
                     '" type="text" onChange="parent.stringeval()">');
         }
         if (pscat=='yesno') {
            tablestart('Yes/No');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="stringval" value="yes"'+
                   ' type="radio" '+callradiostringeval('yes'));
            if (svalue=='yes') { choicewrite(' checked'); }
@@ -558,7 +558,7 @@
         }
         if (pscat=='problemstatus') {
            tablestart('Problem Status');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="stringval" value="yes"'+
                   ' type="radio" '+callradiostringeval('yes'));
            if (svalue=='yes') { choicewrite(' checked'); }
@@ -578,7 +578,7 @@
         }
         if (pscat=='examtype') {
            tablestart('Exam Type');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="stringval" value="online"'+
                 ' type="radio" '+callradiostringeval('online'));
            if (svalue=='online') { choicewrite(' checked'); }
@@ -590,7 +590,7 @@
        }
         if (pscat=='questiontype') {
            tablestart('Question Type');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="stringval" value="problem"'+
                ' type="radio" '+callradiostringeval('problem'));
            if (svalue=='problem') { choicewrite(' checked'); }
@@ -626,13 +626,13 @@
         }
         if (pscat=='ip') {
            tablestart('IP Number/Name');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+
                     '" onChange="parent.stringeval()">');
         }
         if (pscat=='fileext') {
             tablestart('Allowed File Extensions');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="radstringval" value="txt"'+
                ' type="radio" '+callradiostringeval('txt'));
            if (svalue=='txt') { choicewrite(' checked'); }
@@ -650,7 +650,7 @@
        }
        if (pscat=='useslots') {
            tablestart('Slots control access');
-	   choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+	   choicewrite('<tr><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="stringval" value="no"'+
                   ' type="radio" '+callradiostringeval('no'));
            if (svalue=='no') { choicewrite(' checked'); }