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

bisitz bisitz@source.lon-capa.org
Wed, 13 Jan 2010 18:45:15 -0000


bisitz		Wed Jan 13 18:45:15 2010 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  - Corrected unbalanced tags / XHTML: Added missing table row closures (3x tr)
  - XHTML: selected
  - XHTML: wrapped attribute values in quotation marks
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.53 rat/client/parameter.html:1.54
--- rat/client/parameter.html:1.53	Fri Jan  8 17:59:57 2010
+++ rat/client/parameter.html	Wed Jan 13 18:45:15 2010
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.53 2010/01/08 17:59:57 bisitz Exp $
+// $Id: parameter.html,v 1.54 2010/01/13 18:45:15 bisitz Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -118,9 +118,9 @@
     var i; var j;
     choicewrite('<select name="hours" onchange="parent.datecalc();">');
     for (i=0;i<=23;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thishour) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>');
         if (i==12) { choicewrite('noon'); } else {
@@ -142,9 +142,9 @@
     var i;
     choicewrite('<select name="minutes" onchange="parent.datecalc();">');
     for (i=0;i<=59;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisminutes) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -156,9 +156,9 @@
     var i;
     choicewrite('<select name="seconds" onchange="parent.datecalc();">');
     for (i=0;i<=59;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisseconds) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -171,9 +171,9 @@
     var i;
     choicewrite('<select name="date" onchange="parent.datecalc();">');
     for (i=1;i<=31;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisdate) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -192,9 +192,9 @@
     var i;
     choicewrite('<select name="year" onchange="parent.datecalc();">');
     for (i=loweryear;i<=upperyear;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisyear) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -206,9 +206,9 @@
     var i;
     choicewrite('<select name="month" onchange="parent.datecalc();">');
     for (i=0;i<=11;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thismonth) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+months[i]+'</option>');
     }
@@ -221,9 +221,9 @@
     var i;
     choicewrite('<select name="minutes" onchange="parent.intcalc();">');
     for (i=0;i<=59;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisminutes) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -235,9 +235,9 @@
     var i;
     choicewrite('<select name="hours" onchange="parent.intcalc();">');
     for (i=0;i<=23;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thishours) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -249,9 +249,9 @@
     var i;
     choicewrite('<select name="seconds" onchange="parent.intcalc();">');
     for (i=0;i<=59;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisseconds) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -264,9 +264,9 @@
     var i;
     choicewrite('<select name="date" onchange="parent.intcalc();">');
     for (i=0;i<=31;i++) {
-        choicewrite('<option value='+i);
+        choicewrite('<option value="'+i+'"');
         if (i==thisdate) {
-            choicewrite(' selected');
+            choicewrite(' selected="selected"');
         }
         choicewrite('>'+i+'</option>');
     }
@@ -510,7 +510,7 @@
         choicewrite('<tr><td>Value:</td><td colspan="2">');
         choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+
                     '" onchange="parent.integereval()" />');
-        choicewrite('</td></table>');
+        choicewrite('</td></tr></table>');
       }
      }
    }
@@ -532,7 +532,7 @@
         choicewrite('<tr><td>Value:</td><td colspan="2">');
         choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+
                     '" onchange="parent.floateval()" />');
-        choicewrite('</td></table>');
+        choicewrite('</td></tr></table>');
       }
    }
 
@@ -540,7 +540,7 @@
         if ((pscat=='any') || (pscat=='') || (pscat=='default') ||  
             (typeof(pscat)=='undefined')) {
            tablestart('Text');
-	   choicewrite('<tr><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()" />');
         }
@@ -667,7 +667,7 @@
                   ' 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('</td></table>');
+        choicewrite('</td></tr></table>');
       }
    }
    
@@ -697,7 +697,7 @@
 function sopt(va,text) {
    selwrite('<option value="'+va+'"');
    if (va==pscat) {
-     selwrite(' selected');
+     selwrite(' selected="selected"');
    }
    selwrite('>'+text+'</option>');
 }