Diff for /rat/client/parameter.html between versions 1.53 and 1.56

version 1.53, 2010/01/08 17:59:57 version 1.56, 2010/02/11 20:24:46
Line 1 Line 1
 <html>  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <!--  <!--
 The LearningOnline Network with CAPA  The LearningOnline Network with CAPA
 Parameter Input Window  Parameter Input Window
Line 29  Parameter Input Window Line 31  Parameter Input Window
 //  //
 -->  -->
 <head>  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>LON-CAPA</title>  <title>LON-CAPA</title>
 </head>  
   
 <script type="text/javascript">  <script type="text/javascript">
   // <![CDATA[
   
 var ptype='';  var ptype='';
 var pvalue='';  var pvalue='';
Line 68  function selwrite(text) { Line 71  function selwrite(text) {
   
 function choicestart() {  function choicestart() {
   this.window.choices.document.clear();    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() {  function choiceend() {
Line 81  function choicewrite(text) { Line 98  function choicewrite(text) {
 }  }
   
 function tablestart(headtext) {  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>');                headtext+'</th></tr>');
 }  }
   
Line 118  function hour() { Line 135  function hour() {
     var i; var j;      var i; var j;
     choicewrite('<select name="hours" onchange="parent.datecalc();">');      choicewrite('<select name="hours" onchange="parent.datecalc();">');
     for (i=0;i<=23;i++) {      for (i=0;i<=23;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thishour) {          if (i==thishour) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>');          choicewrite('>');
         if (i==12) { choicewrite('noon'); } else {          if (i==12) { choicewrite('noon'); } else {
Line 142  function minute() { Line 159  function minute() {
     var i;      var i;
     choicewrite('<select name="minutes" onchange="parent.datecalc();">');      choicewrite('<select name="minutes" onchange="parent.datecalc();">');
     for (i=0;i<=59;i++) {      for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisminutes) {          if (i==thisminutes) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 156  function second() { Line 173  function second() {
     var i;      var i;
     choicewrite('<select name="seconds" onchange="parent.datecalc();">');      choicewrite('<select name="seconds" onchange="parent.datecalc();">');
     for (i=0;i<=59;i++) {      for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisseconds) {          if (i==thisseconds) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 171  function date() { Line 188  function date() {
     var i;      var i;
     choicewrite('<select name="date" onchange="parent.datecalc();">');      choicewrite('<select name="date" onchange="parent.datecalc();">');
     for (i=1;i<=31;i++) {      for (i=1;i<=31;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisdate) {          if (i==thisdate) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 192  function year() { Line 209  function year() {
     var i;      var i;
     choicewrite('<select name="year" onchange="parent.datecalc();">');      choicewrite('<select name="year" onchange="parent.datecalc();">');
     for (i=loweryear;i<=upperyear;i++) {      for (i=loweryear;i<=upperyear;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisyear) {          if (i==thisyear) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 206  function month() { Line 223  function month() {
     var i;      var i;
     choicewrite('<select name="month" onchange="parent.datecalc();">');      choicewrite('<select name="month" onchange="parent.datecalc();">');
     for (i=0;i<=11;i++) {      for (i=0;i<=11;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thismonth) {          if (i==thismonth) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+months[i]+'</option>');          choicewrite('>'+months[i]+'</option>');
     }      }
Line 221  function intminute() { Line 238  function intminute() {
     var i;      var i;
     choicewrite('<select name="minutes" onchange="parent.intcalc();">');      choicewrite('<select name="minutes" onchange="parent.intcalc();">');
     for (i=0;i<=59;i++) {      for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisminutes) {          if (i==thisminutes) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 235  function inthour() { Line 252  function inthour() {
     var i;      var i;
     choicewrite('<select name="hours" onchange="parent.intcalc();">');      choicewrite('<select name="hours" onchange="parent.intcalc();">');
     for (i=0;i<=23;i++) {      for (i=0;i<=23;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thishours) {          if (i==thishours) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 249  function intsecond() { Line 266  function intsecond() {
     var i;      var i;
     choicewrite('<select name="seconds" onchange="parent.intcalc();">');      choicewrite('<select name="seconds" onchange="parent.intcalc();">');
     for (i=0;i<=59;i++) {      for (i=0;i<=59;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisseconds) {          if (i==thisseconds) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 264  function intday() { Line 281  function intday() {
     var i;      var i;
     choicewrite('<select name="date" onchange="parent.intcalc();">');      choicewrite('<select name="date" onchange="parent.intcalc();">');
     for (i=0;i<=31;i++) {      for (i=0;i<=31;i++) {
         choicewrite('<option value='+i);          choicewrite('<option value="'+i+'"');
         if (i==thisdate) {          if (i==thisdate) {
             choicewrite(' selected');              choicewrite(' selected="selected"');
         }          }
         choicewrite('>'+i+'</option>');          choicewrite('>'+i+'</option>');
     }      }
Line 510  function draw() { Line 527  function draw() {
         choicewrite('<tr><td>Value:</td><td colspan="2">');          choicewrite('<tr><td>Value:</td><td colspan="2">');
         choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+          choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+
                     '" onchange="parent.integereval()" />');                      '" onchange="parent.integereval()" />');
         choicewrite('</td></table>');          choicewrite('</td></tr></table>');
       }        }
      }       }
    }     }
Line 532  function draw() { Line 549  function draw() {
         choicewrite('<tr><td>Value:</td><td colspan="2">');          choicewrite('<tr><td>Value:</td><td colspan="2">');
         choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+          choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+
                     '" onchange="parent.floateval()" />');                      '" onchange="parent.floateval()" />');
         choicewrite('</td></table>');          choicewrite('</td></tr></table>');
       }        }
    }     }
   
Line 540  function draw() { Line 557  function draw() {
         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">');
            choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+             choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+
                     '" type="text" onchange="parent.stringeval()" />');                      '" type="text" onchange="parent.stringeval()" />');
         }          }
Line 666  function draw() { Line 683  function draw() {
            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 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></table>');          choicewrite('</td></tr></table>');
       }        }
    }     }
         
Line 697  function draw() { Line 714  function draw() {
 function sopt(va,text) {  function sopt(va,text) {
    selwrite('<option value="'+va+'"');     selwrite('<option value="'+va+'"');
    if (va==pscat) {     if (va==pscat) {
      selwrite(' selected');       selwrite(' selected="selected"');
    }     }
    selwrite('>'+text+'</option>');     selwrite('>'+text+'</option>');
 }  }
Line 807  function init() { Line 824  function init() {
   }    }
   
   this.window.selector.document.clear();    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('<form name="fsel"><b>'+pname+'</b><br />');
   selwrite('<select name="fcat" onchange="parent.catchange();">');    selwrite('<select name="fcat" onchange="parent.catchange();">');
   
Line 943  function init() { Line 971  function init() {
       
 }  }
   
   // ]]>
 </script>  </script>
   </head>
   
 <frameset rows="120,*" onLoad="init();">  <frameset rows="120,*" onload="init();">
 <frame name="selector" src="empty.html">  <frame name="selector" src="empty.html" />
 <frame name="choices" src="empty.html">  <frame name="choices" src="empty.html" />
 </frameset>  </frameset>
   
   

Removed from v.1.53  
changed lines
  Added in v.1.56


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