Diff for /rat/client/parameter.html between versions 1.39 and 1.45

version 1.39, 2006/06/16 19:57:56 version 1.45, 2007/06/13 01:01:33
Line 529  function draw() { Line 529  function draw() {
    }     }
   
    if (ptype=='string') {     if (ptype=='string') {
       if (pscat=='default') {          if ((pscat=='any') || (pscat=='') || (pscat=='default') ||  
          tablestart('Default value or none');              (typeof(pscat)=='undefined')) {
          choicewrite('</table>');           
       } else {  
         if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) {  
            tablestart('Text');             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="'+svalue+             choicewrite('<input name="stringval" size="20" value="'+svalue+
Line 639  function draw() { Line 636  function draw() {
            if (svalue=='map') { choicewrite(' checked'); }             if (svalue=='map') { choicewrite(' checked'); }
            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('> 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'));                    ' type="radio" '+callradiostringeval('map_map'));
            if (svalue=='map_map') { choicewrite(' checked'); }             if (svalue=='map_map') { choicewrite(' 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></table>');
       }        }
    }     }
Line 666  function draw() { Line 662  function draw() {
       choicewrite('</table></td></table>');        choicewrite('</table></td></table>');
    }     }
   
    choicewrite('</table></form>');     choicewrite('</form>');
    choiceend();     choiceend();
 }  }
   
Line 686  function catchange() { Line 682  function catchange() {
   
 function assemble() {  function assemble() {
     if ((ptype=='date') && (pscat!='interval')) {      if ((ptype=='date') && (pscat!='interval')) {
         svalue=Math.round(cdate.getTime()/1000);          svalue=Math.floor(cdate.getTime()/1000);
     }      }
     if (ptype=='tolerance') {      if (ptype=='tolerance') {
        if (pscat=='relative_sym') {         if (pscat=='relative_sym') {
Line 842  function init() { Line 838  function init() {
   }    }
   
   if (ptype=='string') {    if (ptype=='string') {
      sopt('default','Default');       //sopt('default','Default');
        if (pscat == 'yesno')        { sopt('yesno','Yes/No'); }
        else if (pscat == 'examtype')     { sopt('examtype','Exam Type'); }
        else if (pscat == 'questiontype') { sopt('questiontype','Question Type'); }
        else if (pscat == 'ip')           { sopt('ip','IP Number/Name'); }
        else if (pscat == 'fileext')      { sopt('fileext','File Extension'); }
        else if (pscat == 'useslots')     { sopt('useslots','Slots control access'); }
        else { pscat = 'any'; }
      sopt('any','String Value');       sopt('any','String Value');
   }    }
   
Line 867  function init() { Line 870  function init() {
   if (pcode!='') {    if (pcode!='') {
      selwrite('parent.opener.'+pcode+'();');       selwrite('parent.opener.'+pcode+'();');
   }    }
   selwrite('">Store</a>&nbsp;&nbsp;');    selwrite('">Save</a>&nbsp;&nbsp;');
   
   selwrite('<a href="javascript:');    selwrite('<a href="javascript:');
      selwrite(       selwrite(

Removed from v.1.39  
changed lines
  Added in v.1.45


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