Diff for /rat/client/parameter.html between versions 1.64.2.5 and 1.65

version 1.64.2.5, 2022/01/04 04:03:47 version 1.65, 2013/01/28 18:17:21
Line 241  function month() { Line 241  function month() {
 function intminute() {  function intminute() {
    var thisminutes=cmins;     var thisminutes=cmins;
     var i;      var i;
     var result = '';      choicewrite('<select name="minutes" onchange="parent.intcalc();">');
     result += '<select name="minutes" onchange="parent.intcalc();">';  
     for (i=0;i<=59;i++) {      for (i=0;i<=59;i++) {
         result += '<option value="'+i+'"';          choicewrite('<option value="'+i+'"');
         if (i==thisminutes) {          if (i==thisminutes) {
             result += ' selected="selected"';              choicewrite(' selected="selected"');
         }          }
         result += '>'+i+'</option>';          choicewrite('>'+i+'</option>');
     }      }
     result += '</select>';      choicewrite('</select>');
     return result;  
 }   } 
   
 function inthour() {  function inthour() {
    var thishours=chours;     var thishours=chours;
     var i;      var i;
     var result = '';      choicewrite('<select name="hours" onchange="parent.intcalc();">');
     result += '<select name="hours" onchange="parent.intcalc();">';  
     for (i=0;i<=23;i++) {      for (i=0;i<=23;i++) {
         result += '<option value="'+i+'"';          choicewrite('<option value="'+i+'"');
         if (i==thishours) {          if (i==thishours) {
             result += ' selected="selected"';              choicewrite(' selected="selected"');
         }          }
         result += '>'+i+'</option>';          choicewrite('>'+i+'</option>');
     }      }
     result += '</select>';      choicewrite('</select>');
     return result;  } 
 }  
   
 function intsecond() {  function intsecond() {
    var thisseconds=csecs;     var thisseconds=csecs;
     var i;      var i;
     var result = '';      choicewrite('<select name="seconds" onchange="parent.intcalc();">');
     result += '<select name="seconds" onchange="parent.intcalc();">';  
     for (i=0;i<=59;i++) {      for (i=0;i<=59;i++) {
         result += '<option value="'+i+'"';          choicewrite('<option value="'+i+'"');
         if (i==thisseconds) {          if (i==thisseconds) {
             result += ' selected="selected"';              choicewrite(' selected="selected"');
         }          }
         result += '>'+i+'</option>';          choicewrite('>'+i+'</option>');
     }      }
     result += '</select>';      choicewrite('</select>');
     return result;  } 
 }  
   
   
 function intday() {  function intday() {
    var thisdate=cdays;     var thisdate=cdays;
     var i;      var i;
     var result ='';      choicewrite('<select name="date" onchange="parent.intcalc();">');
     result += '<select name="date" onchange="parent.intcalc();">';  
     for (i=0;i<=31;i++) {      for (i=0;i<=31;i++) {
         result += '<option value="'+i+'"';          choicewrite('<option value="'+i+'"');
         if (i==thisdate) {          if (i==thisdate) {
             result += ' selected="selected"';              choicewrite(' selected="selected"');
         }          }
         result += '>'+i+'</option>';          choicewrite('>'+i+'</option>');
     }      }
     result += '</select>';      choicewrite('</select>');
     return result;  
 }  }
   
 function intcalc() {  function intcalc() {
Line 350  function radiostringeval(newval) { Line 342  function radiostringeval(newval) {
 }  }
   
 function callradiostringeval(newval) {  function callradiostringeval(newval) {
     return 'onclick="parent.radiostringeval(\''+newval+'\')"';     return 'onchange="parent.radiostringeval(\''
             +newval+'\')" onclick="parent.radiostringeval(\''
             +newval+'\')"';
 }  }
   
 function intervaldis() {  function intervaldis() {
Line 361  function intervaldis() { Line 355  function intervaldis() {
     csecs-=chours*3600;      csecs-=chours*3600;
     cmins=Math.floor(csecs/60);      cmins=Math.floor(csecs/60);
     csecs-=cmins*60;      csecs-=cmins*60;
     return cdays+' days '+chours+' hours '+cmins+' mins '+csecs+' secs';      choicewrite(cdays+' days '+chours+' hours '
                  +cmins+' mins '+csecs+' secs');
 }  }
   
 function pickcolor(picked) {  function pickcolor(picked) {
Line 478  function draw() { Line 473  function draw() {
       }        }
       if (pscat=='interval') {        if (pscat=='interval') {
          tablestart('Time interval');           tablestart('Time interval');
          choicewrite( [           choicewrite('<tr><td colspan="3">');
             '<tr><td colspan="3">'+intervaldis()+'</td></tr>',           intervaldis();
             '<tr><td>Time:</td><td colspan="2">',           choicewrite('</td></tr><tr><td>Time:'
                 '<span style="white-space:nowrap">'+intday()+' days </span>',           +'</td><td colspan="2">');
                 '<span style="white-space:nowrap">'+inthour()+' hours</span>',           intday();choicewrite('days ');
                 '<span style="white-space:nowrap">'+intminute()+' mins</span>',           inthour();choicewrite('hours ');
                 '<span style="white-space:nowrap">'+intsecond()+' secs</span>',           intminute(); choicewrite('mins '); intsecond();
             '</td></tr>',           choicewrite('secs</td></tr></table>');         
             '</table>',  
             '<br />',  
             ].join("\n"));  
       } else {         } else { 
          choicewrite('<tr><td colspan="3">'           choicewrite('<tr><td colspan="3">'
          +cdate.toString()+           +cdate.toString()+
Line 570  function draw() { Line 562  function draw() {
    }     }
   
    if (ptype=='string') {     if (ptype=='string') {
         if ((pscat=='any') || (pscat=='') || (pscat=='default') ||           if ((pscat=='any') || (pscat=='') || (pscat=='default') ||  
             (typeof(pscat)=='undefined')) {              (typeof(pscat)=='undefined')) {
            tablestart('Text');             tablestart('Text');
            choicewrite('<tr><td>Value:</td><td colspan="2">');             choicewrite('<tr><td>Value:</td><td colspan="2">');
Line 639  function draw() { Line 631  function draw() {
            choicewrite('<label><input name="stringval" value="exam"'+             choicewrite('<label><input name="stringval" value="exam"'+
                   ' type="radio" '+callradiostringeval('exam'));                    ' type="radio" '+callradiostringeval('exam'));
            if (svalue=='exam') { choicewrite(' checked="checked"'); }             if (svalue=='exam') { choicewrite(' checked="checked"'); }
            choicewrite(' /> Exam</label><br />');             choicewrite(' /> Bubblesheet Exam</label><br />');
 //         choicewrite('<label><input name="stringval" value="assess"'+  //         choicewrite('<label><input name="stringval" value="assess"'+
 //              ' type="radio" '+callradiostringeval('assess'));  //              ' type="radio" '+callradiostringeval('assess'));
 //         if (svalue=='assess') { choicewrite(' checked="checked"'); }  //         if (svalue=='assess') { choicewrite(' checked="checked"'); }
Line 740  function draw() { Line 732  function draw() {
            choicewrite('<label><input name="stringval" value="resource"'+             choicewrite('<label><input name="stringval" value="resource"'+
                   ' type="radio" '+callradiostringeval('resource'));                    ' type="radio" '+callradiostringeval('resource'));
            if (svalue=='resource') { choicewrite(' checked="checked"'); }             if (svalue=='resource') { choicewrite(' checked="checked"'); }
            choicewrite(' /> Yes, and the scope of the slot is a single resource.</label><br />');             choicewrite(' /> Yes, and the scope of student selected slot is a single resource.</label><br />');
            choicewrite('<label><input name="stringval" value="map"'+             choicewrite('<label><input name="stringval" value="map"'+
                   ' type="radio" '+callradiostringeval('map'));                    ' type="radio" '+callradiostringeval('map'));
            if (svalue=='map') { choicewrite(' checked="checked"'); }             if (svalue=='map') { choicewrite(' checked="checked"'); }
            choicewrite(' /> Yes, and the scope of the slot is the enclosing map/folder. When checking in, it applies to only one resource.</label><br />');             choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource.</label><br />');
            choicewrite('<label><input name="stringval" value="map_map"'+             choicewrite('<label><input name="stringval" value="map_map"'+
                   ' type="radio" '+callradiostringeval('map_map'));                    ' type="radio" '+callradiostringeval('map_map'));
            if (svalue=='map_map') { choicewrite(' checked="checked"'); }             if (svalue=='map_map') { choicewrite(' checked="checked"'); }
            choicewrite(' /> Yes, and the scope of the 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>');          choicewrite('</td></tr></table>');
       }        }
    }     }
Line 908  function init() { Line 900  function init() {
   selwrite('</head>');    selwrite('</head>');
   selwrite('<body>');    selwrite('<body>');
   selwrite('<form name="fsel" action=""><b>'+pname+'</b><br />');    selwrite('<form name="fsel" action=""><b>'+pname+'</b><br />');
   selwrite('Format of Value(s): <select name="fcat" onchange="parent.catchange();">');    selwrite('<select name="fcat" onchange="parent.catchange();">');
   
   if (ptype=='tolerance') {    if (ptype=='tolerance') {
      sopt('default','Default');       sopt('default','Default');
Line 1018  function init() { Line 1010  function init() {
   selwrite('</body></html>');    selwrite('</body></html>');
   this.window.selector.document.close();    this.window.selector.document.close();
   draw();    draw();
     
 }  }
   
 // ]]>  // ]]>

Removed from v.1.64.2.5  
changed lines
  Added in v.1.65


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>