[LON-CAPA-cvs] cvs: rat / lonpageflip.pm lonratedt.pm lonratmenu.pm /client parameter.html

bisitz bisitz@source.lon-capa.org
Thu, 23 Apr 2009 17:31:30 -0000


This is a MIME encoded message

--bisitz1240507890
Content-Type: text/plain

bisitz		Thu Apr 23 17:31:30 2009 EDT

  Modified files:              
    /rat	lonpageflip.pm lonratedt.pm lonratmenu.pm 
    /rat/client	parameter.html 
  Log:
  XHTML:
  Added quotation marks to HTML attribute values
  
  
--bisitz1240507890
Content-Type: text/plain
Content-Disposition: attachment; filename="bisitz-20090423173130.txt"

Index: rat/lonpageflip.pm
diff -u rat/lonpageflip.pm:1.78 rat/lonpageflip.pm:1.79
--- rat/lonpageflip.pm:1.78	Fri Dec 19 14:12:55 2008
+++ rat/lonpageflip.pm	Thu Apr 23 17:31:25 2009
@@ -2,7 +2,7 @@
 #
 # Page flip handler
 #
-# $Id: lonpageflip.pm,v 1.78 2008/12/19 14:12:55 raeburn Exp $
+# $Id: lonpageflip.pm,v 1.79 2009/04/23 17:31:25 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -478,7 +478,7 @@
 <p>
 $lt{'pick'}:
 <p>
-<table border=2>
+<table border="2">
 <tr><th>$lt{'titleheader'}</th><th>$lt{'type'}</th></tr>
 ENDSTART
                      foreach my $id (@possibilities) {
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.93 rat/lonratedt.pm:1.94
--- rat/lonratedt.pm:1.93	Sat Apr  4 21:46:02 2009
+++ rat/lonratedt.pm	Thu Apr 23 17:31:25 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.93 2009/04/04 21:46:02 bisitz Exp $
+# $Id: lonratedt.pm,v 1.94 2009/04/23 17:31:25 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -75,7 +75,7 @@
 
 sub buttons {
     my $adv=shift;
-    my $output='<form method=post>';     
+    my $output='<form method="post">';     
     if ($adv==1) {
 	$output.='<input type="submit" name="forceadv" value="'.&mt('Edit').'" />'.
 	    &Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation');
Index: rat/lonratmenu.pm
diff -u rat/lonratmenu.pm:1.10 rat/lonratmenu.pm:1.11
--- rat/lonratmenu.pm:1.10	Sat Mar 22 01:39:05 2008
+++ rat/lonratmenu.pm	Thu Apr 23 17:31:25 2009
@@ -2,7 +2,7 @@
 # Build menu bar for Advanced RAT. Uses javascript code originally in
 # static file: rat/client/code.html, now in  rat/client/ratcode.js  
 #
-# $Id: lonratmenu.pm,v 1.10 2008/03/22 01:39:05 raeburn Exp $
+# $Id: lonratmenu.pm,v 1.11 2009/04/23 17:31:25 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -57,8 +57,8 @@
     my $help=&Apache::loncommon::help_open_menu('Sequence_Advanced_Editor_Creation','Sequence_Advanced_Editor_Creation',6,'RAT');
 
     my $pagetext = <<"END";
-<table border=0><tr><td bgcolor="#aaaaaa">
-<table border=0><tr>
+<table border="0"><tr><td bgcolor="#AAAAAA">
+<table border="0"><tr>
 <td bgcolor="#ffffcc">$help</td>
 <td bgcolor="#ffffcc"><a href="javascript:togglemode();"><font size="-2">Toggle display</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:if (zscale>1) { zscale--; draw();}"><font size="-2">Zoom out</font></a></td>
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.50 rat/client/parameter.html:1.51
--- rat/client/parameter.html:1.50	Sat Apr  5 16:11:03 2008
+++ rat/client/parameter.html	Thu Apr 23 17:31:29 2009
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.50 2008/04/05 16:11:03 www Exp $
+// $Id: parameter.html,v 1.51 2009/04/23 17:31:29 bisitz Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -81,15 +81,15 @@
 }
 
 function tablestart(headtext) {
-  choicewrite('<table><tr bgcolor="#AAFFAA"><th colspan=3>'+
+  choicewrite('<table><tr bgcolor="#AAFFAA"><th colspan="3">'+
               headtext+'</th></tr>');
 }
 
 function valline(text,id1,id2) {
   choicewrite('<tr bgcolor="#AAFFAA"><td>'+text+
-              '</td><td><input type=text size=4 name=val'+
-              id1+'></td><td>incl:<input type=checkbox name=val'+
-              id2+'></td></tr>');
+              '</td><td><input type="text" size="4" name="val'+
+              id1+'"></td><td>incl:<input type="checkbox" name="val'+
+              id2+'"></td></tr>');
 }
 
 function escapeHTML(text) {
@@ -116,7 +116,7 @@
 function hour() {
    var thishour=cdate.getHours();
     var i; var j;
-    choicewrite('<select name=hours onChange="parent.datecalc();">');
+    choicewrite('<select name="hours" onChange="parent.datecalc();">');
     for (i=0;i<=23;i++) {
         choicewrite('<option value='+i);
         if (i==thishour) {
@@ -140,7 +140,7 @@
 function minute() {
    var thisminutes=cdate.getMinutes();
     var i;
-    choicewrite('<select name=minutes onChange="parent.datecalc();">');
+    choicewrite('<select name="minutes" onChange="parent.datecalc();">');
     for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);
         if (i==thisminutes) {
@@ -154,7 +154,7 @@
 function second() {
    var thisseconds=cdate.getSeconds();
     var i;
-    choicewrite('<select name=seconds onChange="parent.datecalc();">');
+    choicewrite('<select name="seconds" onChange="parent.datecalc();">');
     for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);
         if (i==thisseconds) {
@@ -169,7 +169,7 @@
 function date() {
    var thisdate=cdate.getDate();
     var i;
-    choicewrite('<select name=date onChange="parent.datecalc();">');
+    choicewrite('<select name="date" onChange="parent.datecalc();">');
     for (i=1;i<=31;i++) {
         choicewrite('<option value='+i);
         if (i==thisdate) {
@@ -190,7 +190,7 @@
    if (thisyear>nowyear) { loweryear=nowyear-2; }
    if (thisyear<nowyear) { upperyear=nowyear+5; } 
     var i;
-    choicewrite('<select name=year onChange="parent.datecalc();">');
+    choicewrite('<select name="year" onChange="parent.datecalc();">');
     for (i=loweryear;i<=upperyear;i++) {
         choicewrite('<option value='+i);
         if (i==thisyear) {
@@ -204,7 +204,7 @@
 function month() {
     var thismonth=cdate.getMonth();
     var i;
-    choicewrite('<select name=month onChange="parent.datecalc();">');
+    choicewrite('<select name="month" onChange="parent.datecalc();">');
     for (i=0;i<=11;i++) {
         choicewrite('<option value='+i);
         if (i==thismonth) {
@@ -219,7 +219,7 @@
 function intminute() {
    var thisminutes=cmins;
     var i;
-    choicewrite('<select name=minutes onChange="parent.intcalc();">');
+    choicewrite('<select name="minutes" onChange="parent.intcalc();">');
     for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);
         if (i==thisminutes) {
@@ -233,7 +233,7 @@
 function inthour() {
    var thishours=chours;
     var i;
-    choicewrite('<select name=hours onChange="parent.intcalc();">');
+    choicewrite('<select name="hours" onChange="parent.intcalc();">');
     for (i=0;i<=23;i++) {
         choicewrite('<option value='+i);
         if (i==thishours) {
@@ -247,7 +247,7 @@
 function intsecond() {
    var thisseconds=csecs;
     var i;
-    choicewrite('<select name=seconds onChange="parent.intcalc();">');
+    choicewrite('<select name="seconds" onChange="parent.intcalc();">');
     for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);
         if (i==thisseconds) {
@@ -262,7 +262,7 @@
 function intday() {
    var thisdate=cdays;
     var i;
-    choicewrite('<select name=date onChange="parent.intcalc();">');
+    choicewrite('<select name="date" onChange="parent.intcalc();">');
     for (i=0;i<=31;i++) {
         choicewrite('<option value='+i);
         if (i==thisdate) {
@@ -355,7 +355,7 @@
 
 function draw() {
    choicestart();
-   choicewrite('<form name=sch');
+   choicewrite('<form name="sch"');
    if (ptype=='int') {
       choicewrite(' action="javascript:integereval();"');
    }
@@ -448,21 +448,21 @@
       }
       if (pscat=='interval') {
          tablestart('Time interval');
-         choicewrite('<tr bgcolor="#AAFFAA"><td colspan=3>');
+         choicewrite('<tr bgcolor="#AAFFAA"><td colspan="3">');
          intervaldis();
          choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:'
-         +'</td><td colspan=2>');
+         +'</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 bgcolor="#AAFFAA"><td colspan="3">'
          +cdate.toString()+
-         '</td></tr><tr bgcolor="#AAFFAA"><td>Date:</td><td colspan=2>');
+         '</td></tr><tr bgcolor="#AAFFAA"><td>Date:</td><td colspan="2">');
          month();date();year();
          choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:'
-         +'</td><td colspan=2>');hour();choicewrite('h ');minute();
+         +'</td><td colspan="2">');hour();choicewrite('h ');minute();
          choicewrite('m ');second();
          choicewrite('s</td></tr></table>');
       }
@@ -480,11 +480,11 @@
        if (pscat=='range') {
          tablestart('Integer range');      
          choicewrite('<tr bgcolor="#AAFFAA"><td>Lower Value:'+
-              '</td><td colspan=2><input type=text size=4 name=val2'+
-              '></td></tr>');
+              '</td><td colspan="2"><input type="text" size="4" name="val2'+
+              '"></td></tr>');
          choicewrite('<tr bgcolor="#AAFFAA"><td>Upper Value:'+
-              '</td><td colspan=2><input type=text size=4 name=val4'+
-              '></td></tr></table>');
+              '</td><td colspan="2"><input type="text" size="4" name="val4'+
+              '"></td></tr></table>');
          var range=new Array;
          if ((svalue!='') && (typeof(svalue)!="undefined")) {
             range=svalue.split(',');
@@ -507,8 +507,8 @@
         if (pscat=='any') {
            tablestart('Integer');
         }
-        choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
-        choicewrite('<input name=intval size=10 value="'+escapeHTML(svalue)+
+        choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
+        choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+
                     '" name=intval onChange="parent.integereval()">');
         choicewrite('</td></table>');
       }
@@ -529,8 +529,8 @@
         if (pscat=='any') {
            tablestart('Floating point number');
         }
-        choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
-        choicewrite('<input name=floatval size=10 value="'+escapeHTML(svalue)+
+        choicewrite('<tr bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><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 bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">');
            choicewrite('<label><input name="stringval" value="no"'+
                   ' type="radio" '+callradiostringeval('no'));
            if (svalue=='no') { choicewrite(' checked'); }
@@ -809,7 +809,7 @@
   this.window.selector.document.clear();
   selwrite('<html><body bgcolor="#FFFFFF">');
 
-  selwrite('<form name="fsel"><b>'+pname+'</b><br>');
+  selwrite('<form name="fsel"><b>'+pname+'</b><br />');
   selwrite('<select name="fcat" onChange="parent.catchange();">');
 
   if (ptype=='tolerance') {
@@ -946,8 +946,8 @@
 </script>
 
 <frameset rows="120,*" onLoad="init();">
-<frame name=selector src="empty.html">
-<frame name=choices src="empty.html">
+<frame name="selector" src="empty.html">
+<frame name="choices" src="empty.html">
 </frameset>
 
 

--bisitz1240507890--