<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <script src=/js/d.js></script> <script>hdr();</script> <div id=content> <h1>General Config</h1> <form name=cff> <h2>Generic Configurations</h2> <fieldset> <!-- <div><label>Debug:</label><input type=checkbox class=sm name=debug value=1 disabled /></div> --> <div><label>TimeCheck:</label><input type=checkbox class=sm name=tchkp value=1 disabled /></div> <div><label>Serial Device:</label><select name=slave class=sm disabled > <option value=0 selected>Disabled</option> <option value=1>Serial RTC</option> <option value=2>KeeLoq RF</option> </select></div> <div id=cs1><input type=checkbox class=sm name=adcal value=1 disabled />Enable ADC Auto Calibration</div> <div id=cs2><input type=checkbox class=sm name=adcad value=1 disabled onclick="cBox()" />Enable Current Sensors auto-deviation</div> <div id=cs3><label>ADC Zero Deviation:</label><input type=text class=num name=adczd disabled>-99 to 99</div> <div id=cs4><label>ADC Compensation:</label><input type=text class=num name=adcco disabled>0 to 99</div> <div id=cs5><label>ADC Moltiplier:</label><input type=text class=num name=adcmp disabled>99 to 299</div> <div id=cs7><label>NET Buf Size:</label><input type=text class=num name=netbu disabled>1 to 99</div> <div id=cs8><label>Act Port:</label><input type=text class=num name=aport disabled>1 to 65535</div> <div id=cs9><label>Notify Port:</label><input type=text class=num name=nport disabled>1 to 65535</div> <div id=tzc><label>GMT tz:</label><input type=text class=num name=tzcfg disabled>-23 to 23</div> <div id=dst><input type=checkbox class=sm name=tzdst value=1 disabled />use DST</div> <div id=dss><label>DST shift:</label><input type=text class=num name=dstsh disabled>-23 to 23</div> <div id=dsr><label>DST rule:</label><input type=text class=num name=dstru disabled></div> <div id=btn></div> <div><span class="domoB pressB grayO grayB" OnClick="sForm('cff','/config.htm',null)">Save</span></div> </fieldset> </form> </div> <script> function cBox() { e = $d.forms.cff; if(e.adcad.checked) { e.adczd.disabled=true; e.adcco.disabled=false; } else { e.adczd.disabled=false; e.adcco.disabled=true; } } function aLoopCB(xDt) { e = $d.forms.cff; if(e.adcad.checked) { e.adczd.value=getX(xDt, 'adczero'); } else { e.adcco.value=getX(xDt, 'adccompensation'); } } function aFirstCB(xDt) { if(xDt) { e = $d.forms.cff; if(getX(xDt,'cfg_adcalchecked')=='checked') { e.adcal.checked=true; } e.tchkp.disabled=false; e.adczd.disabled=false; e.adcal.disabled=false; e.adcad.disabled=false; e.netbu.disabled=false; e.slave.disabled=false; e.adcmp.disabled=false; /*e.debug.disabled=false;*/ e.aport.disabled=false; e.nport.disabled=false; e.tzdst.disabled=false; e.tzcfg.disabled=false; e.dstsh.disabled=false; e.dstru.disabled=false; e.adcmp.value=getX(xDt,'adcmoltiplier'); if(getX(xDt,'cfg_adcadchecked')=='checked') { e.adcad.checked=true; } else { e.adcad.checked=false; } /* if(getX(xDt,'cfg_debug')=='checked') { e.debug.checked=true; } else { e.debug.checked=false; }*/ if(getX(xDt,'cfg_tchkp')=='checked') { e.tchkp.checked=true; } else { e.tchkp.checked=false; } if(getX(xDt,'dst')=='checked') { e.tzdst.checked=true; } else { e.tzdst.checked=false; } e.slave.options[parseInt(getX(xDt,'cfg_slave'))].selected=true; cBox(); e.netbu.value=getX(xDt,'nb'); e.adczd.value=getX(xDt,'adczero'); e.adcco.value=getX(xDt,'adccompensation'); e.aport.value=getX(xDt,'ap'); e.nport.value=getX(xDt,'np'); e.tzcfg.value=getX(xDt,'tz'); e.dstsh.value=getX(xDt,'dsts'); e.dstru.value=getX(xDt,'dstr'); } } ftr(); </script>