123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- <?php
- ini_set('error_reporting', E_ALL | E_STRICT);
- $tag_header = 'set';
- include 'head.php';
- $obj = json_decode(trim($output[1]),true);//var_dump($obj);
- $ChargingInfo3=$obj['ChargingInfo3'];//var_dump($ChargingInfo3);
- $idx=0;
- ?>
- <div class="envor-content">
- <!--
- Page Title start
- //-->
- <section class="envor-page-title-1" data-stellar-background-ratio="0.5">
- <div class="container">
- <div class="row">
- <div class="col-lg-9 col-md-9 col-sm-9">
- <h1><?php echo $lang->showWord("charging"); ?></h1>
- </div>
- </div>
- </div>
- <!--
- Page Title end
- //-->
- </section>
- <!--
- Main Content start
- //-->
- <section class="envor-section">
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <div class="envor-sorting" id="faq-sorting">
- <div class="envor-toggle">
- <!--Charging relevant parameters-->
- <article class="envor-sorting-item css">
- <header><?php echo $lang->showWord("charging_relevant_parameters"); ?><i class="fa fa-plus"></i></header>
- <section>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>MaxChargingEnergy</label>
- <input type="text" name="MaxChargingEnergy" id="MaxChargingEnergy" class="form-control" value="<?php echo $ob['MaxChargingEnergy'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>MaxChargingPower</label>
- <input type="text" name="MaxChargingPower" id="MaxChargingPower" class="form-control" value="<?php echo $obj['MaxChargingPower'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>MaxChargingCurrent</label>
- <input type="text" name="MaxChargingCurrent" id="MaxChargingCurrent" class="form-control" value="<?php echo $obj['MaxChargingCurrent'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>MaxChargingDuration</label>
- <input type="text" name="MaxChargingDuration" id="MaxChargingDuration" class="form-control" value="<?php echo $obj['MaxChargingDuration'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>PhaseLossPolicy</label>
- <select class="form-control" id="PhaseLossPolicy" name="PhaseLossPolicy">
- <option value="0" <?php echo $obj['PhaseLossPolicy']==0?"selected":""?>>charging</option>
- <option value="1" <?php echo $obj['PhaseLossPolicy']==1?"selected":""?>>stop charging</option>
- </select>
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard0</label>
- <input type="text" name="LocalWhiteCard0" id="LocalWhiteCard0" class="form-control" value="<?php echo $obj['LocalWhiteCard'][0];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard1</label>
- <input type="text" name="LocalWhiteCard1" id="LocalWhiteCard1" class="form-control" value="<?php echo $obj['LocalWhiteCard'][1];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard2</label>
- <input type="text" name="LocalWhiteCard2" id="LocalWhiteCard2" class="form-control" value="<?php echo $obj['LocalWhiteCard'][2];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard3</label>
- <input type="text" name="LocalWhiteCard3" id="LocalWhiteCard3" class="form-control" value="<?php echo $obj['LocalWhiteCard'][3];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard4</label>
- <input type="text" name="LocalWhiteCard4" id="LocalWhiteCard4" class="form-control" value="<?php echo $obj['LocalWhiteCard'][4];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard5</label>
- <input type="text" name="LocalWhiteCard5" id="LocalWhiteCard5" class="form-control" value="<?php echo $obj['LocalWhiteCard'][5];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard6</label>
- <input type="text" name="LocalWhiteCard6" id="LocalWhiteCard6" class="form-control" value="<?php echo $obj['LocalWhiteCard'][6];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard7</label>
- <input type="text" name="LocalWhiteCard7" id="LocalWhiteCard7" class="form-control" value="<?php echo $obj['LocalWhiteCard'][7];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard8</label>
- <input type="text" name="LocalWhiteCard8" id="LocalWhiteCard8" class="form-control" value="<?php echo $obj['LocalWhiteCard'][8];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>LocalWhiteCard9</label>
- <input type="text" name="LocalWhiteCard9" id="LocalWhiteCard9" class="form-control" value="<?php echo $obj['LocalWhiteCard'][9];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>CcsAuthentication</label>
- <select class="form-control" id="CcsAuthentication" name="CcsAuthentication">
- <option value="0" <?php echo $obj['CcsAuthentication']==0?"selected":""?>>EIM</option>
- <option value="1" <?php echo $obj['CcsAuthentication']==1?"selected":""?>>EIM&PnC mixed</option>
- </select>
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>AcCcsChargingModel</label>
- <select class="form-control" id="AcCcsChargingModel" name="AcCcsChargingModel">
- <option value="0" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC (PWM) only</option>
- <option value="1" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC&PLC mixed</option>
- </select>
- </div>
- </section>
- </article>
- <?php if($obj['ChargingInfo1']){ $idx++;?>
- <!--Charging Information-->
- <article class="envor-sorting-item css">
- <header><?php echo $lang->showWord("charging_information").$idx; ?><i class="fa fa-plus"></i></header>
- <section>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>User Id</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['UserId'];?>">
- <input type="hidden" name="UserId" id="UserId" value="<?php echo $obj->{'UserId'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>PresentChargingVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargingVoltage'];?>">
- <input type="hidden" name="PresentChargingVoltage" id="PresentChargingVoltage" value="<?php echo $obj->{'PresentChargingVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargingCurrent</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargingCurrent'];?>">
- <input type="hidden" name="PresentChargingCurrent" id="PresentChargingCurrent" value="<?php echo $obj->{'PresentChargingCurrent'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargingPower</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargingPower'];?>">
- <input type="hidden" name="PresentChargingPower" id="PresentChargingPower" value="<?php echo $obj->{'PresentChargingPower'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargedEnergy</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargedEnergy'];?>">
- <input type="hidden" name="PresentChargedEnergy" id="PresentChargedEnergy" value="<?php echo $obj->{'PresentChargedEnergy'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargedDuration</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?>">
- <input type="hidden" name="PresentChargedDuration" id="PresentChargedDuration" value="<?php echo $obj->{'PresentChargedDuration'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>RemainChargingDuration</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?>">
- <input type="hidden" name="RemainChargingDuration" id="RemainChargingDuration" value="<?php echo $obj->{'RemainChargingDuration'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatteryMaxVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['EvBatteryMaxVoltage'];?>">
- <input type="hidden" name="EvBatteryMaxVoltage" id="EvBatteryMaxVoltage" value="<?php echo $obj->{'EvBatteryMaxVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatterytargetVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['EvBatterytargetVoltage'];?>">
- <input type="hidden" name="EvBatterytargetVoltage" id="EvBatterytargetVoltage" value="<?php echo $obj->{'EvBatterytargetVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatterySoc</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
- <input type="hidden" name="EvBatterySoc" id="EvBatterySoc" value="<?php echo $obj->{'EvBatterySoc'};?>">
- </div>
- </section>
- </article>
- <?php }?>
- <?php if($obj['ChargingInfo2']){ $idx++;?>
- <!--Charging Information-->
- <article class="envor-sorting-item css">
- <header><?php echo $lang->showWord("charging_information").$idx; ?><i class="fa fa-plus"></i></header>
- <section>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>User Id</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['UserId'];?>">
- <input type="hidden" name="UserId" id="UserId" value="<?php echo $obj->{'UserId'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>PresentChargingVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargingVoltage'];?>">
- <input type="hidden" name="PresentChargingVoltage" id="PresentChargingVoltage" value="<?php echo $obj->{'PresentChargingVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargingCurrent</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargingCurrent'];?>">
- <input type="hidden" name="PresentChargingCurrent" id="PresentChargingCurrent" value="<?php echo $obj->{'PresentChargingCurrent'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargingPower</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargingPower'];?>">
- <input type="hidden" name="PresentChargingPower" id="PresentChargingPower" value="<?php echo $obj->{'PresentChargingPower'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargedEnergy</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargedEnergy'];?>">
- <input type="hidden" name="PresentChargedEnergy" id="PresentChargedEnergy" value="<?php echo $obj->{'PresentChargedEnergy'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargedDuration</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?>">
- <input type="hidden" name="PresentChargedDuration" id="PresentChargedDuration" value="<?php echo $obj->{'PresentChargedDuration'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>RemainChargingDuration</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?>">
- <input type="hidden" name="RemainChargingDuration" id="RemainChargingDuration" value="<?php echo $obj->{'RemainChargingDuration'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatteryMaxVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['EvBatteryMaxVoltage'];?>">
- <input type="hidden" name="EvBatteryMaxVoltage" id="EvBatteryMaxVoltage" value="<?php echo $obj->{'EvBatteryMaxVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatterytargetVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['EvBatterytargetVoltage'];?>">
- <input type="hidden" name="EvBatterytargetVoltage" id="EvBatterytargetVoltage" value="<?php echo $obj->{'EvBatterytargetVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatterySoc</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
- <input type="hidden" name="EvBatterySoc" id="EvBatterySoc" value="<?php echo $obj->{'EvBatterySoc'};?>">
- </div>
- </section>
- </article>
- <?php }?>
- <?php if($obj['ChargingInfo3']){ $idx++;?>
- <!--Charging Information-->
- <article class="envor-sorting-item css">
- <header><?php echo $lang->showWord("charging_information").$idx; ?><i class="fa fa-plus"></i></header>
- <section>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>User Id</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['UserId'];?>">
- <input type="hidden" name="UserId" id="UserId" value="<?php echo $obj->{'UserId'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>PresentChargingVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargingVoltage'];?>">
- <input type="hidden" name="PresentChargingVoltage" id="PresentChargingVoltage" value="<?php echo $obj->{'PresentChargingVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargingCurrent</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargingCurrent'];?>">
- <input type="hidden" name="PresentChargingCurrent" id="PresentChargingCurrent" value="<?php echo $obj->{'PresentChargingCurrent'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargingPower</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargingPower'];?>">
- <input type="hidden" name="PresentChargingPower" id="PresentChargingPower" value="<?php echo $obj->{'PresentChargingPower'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargedEnergy</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargedEnergy'];?>">
- <input type="hidden" name="PresentChargedEnergy" id="PresentChargedEnergy" value="<?php echo $obj->{'PresentChargedEnergy'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>PresentChargedDuration</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?>">
- <input type="hidden" name="PresentChargedDuration" id="PresentChargedDuration" value="<?php echo $obj->{'PresentChargedDuration'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>RemainChargingDuration</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?>">
- <input type="hidden" name="RemainChargingDuration" id="RemainChargingDuration" value="<?php echo $obj->{'RemainChargingDuration'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatteryMaxVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['EvBatteryMaxVoltage'];?>">
- <input type="hidden" name="EvBatteryMaxVoltage" id="EvBatteryMaxVoltage" value="<?php echo $obj->{'EvBatteryMaxVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatterytargetVoltage</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['EvBatterytargetVoltage'];?>">
- <input type="hidden" name="EvBatterytargetVoltage" id="EvBatterytargetVoltage" value="<?php echo $obj->{'EvBatterytargetVoltage'};?>">
- </div>
- <div class="form-group" style="display:<?php echo $am001;?>">
- <label>EvBatterySoc</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
- <input type="hidden" name="EvBatterySoc" id="EvBatterySoc" value="<?php echo $obj->{'EvBatterySoc'};?>">
- </div>
- </section>
- </article>
- <?php }?>
- <article class="envor-sorting-item css">
- <div align="center"><button id="save"><?php echo $lang->showWord("set")?></button></div>
- </article>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- <?php
- include 'foot.php';
- ?>
- <script type="text/JavaScript">
- document.getElementById("save").onclick = function() {
- if(formCheck())
- {
- // 發送 Ajax 查詢請求並處理
- var request = new XMLHttpRequest();
- request.open("POST", "set_charging_action.php");
- // POST 參數須使用 send() 發送
- var data = "MaxChargingEnergy=" + document.getElementById("MaxChargingEnergy").value +
- "&MaxChargingPower=" + document.getElementById("MaxChargingPower").value +
- "&MaxChargingCurrent=" + document.getElementById("MaxChargingCurrent").value+
- "&MaxChargingDuration=" + document.getElementById("MaxChargingDuration").value+
- "&PhaseLossPolicy=" + document.getElementById("PhaseLossPolicy").value+
- "&LocalWhiteCard0=" + document.getElementById("LocalWhiteCard0").value+
- "&LocalWhiteCard1=" + document.getElementById("LocalWhiteCard1").value+
- "&LocalWhiteCard2=" + document.getElementById("LocalWhiteCard2").value+
- "&LocalWhiteCard3=" + document.getElementById("LocalWhiteCard3").value+
- "&LocalWhiteCard4=" + document.getElementById("LocalWhiteCard4").value+
- "&LocalWhiteCard5=" + document.getElementById("LocalWhiteCard5").value+
- "&LocalWhiteCard6=" + document.getElementById("LocalWhiteCard6").value+
- "&LocalWhiteCard7=" + document.getElementById("LocalWhiteCard7").value+
- "&LocalWhiteCard8=" + document.getElementById("LocalWhiteCard8").value+
- "&LocalWhiteCard9=" + document.getElementById("LocalWhiteCard9").value+
- "&CcsAuthentication=" + document.getElementById("CcsAuthentication").value+
- "&AcCcsChargingModel=" + document.getElementById("AcCcsChargingModel").value+
- "&UserId=" + document.getElementById("UserId").value+
- "&PresentChargingVoltage=" + document.getElementById("PresentChargingVoltage").value+
- "&PresentChargingCurrent=" + document.getElementById("PresentChargingCurrent").value+
- "&PresentChargingPower=" + document.getElementById("PresentChargingPower").value+
- "&PresentChargedEnergy=" + document.getElementById("PresentChargedEnergy").value+
- "&PresentChargedDuration=" + document.getElementById("PresentChargedDuration").value+
- "&RemainChargingDuration=" + document.getElementById("RemainChargingDuration").value+
- "&EvBatteryMaxVoltage=" + document.getElementById("EvBatteryMaxVoltage").value+
- "&EvBatterytargetVoltage=" + document.getElementById("EvBatterytargetVoltage").value+
- "&EvBatterySoc=" + document.getElementById("EvBatterySoc").value;
-
- // POST 請求必須設置表頭在 open() 下面,send() 上面
- request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- request.send(data);
- request.onreadystatechange = function() {
- // 伺服器請求完成
- if (request.readyState == 4) {
- // 伺服器回應成功
- if (request.status == 200) {
- alert("<?php echo $lang->showWord("done")?>");
- //location.reload();
- // getInfo();
- } else {
- alert("發生錯誤" + request.status);
- }
- }
- }
- }
- }
-
- function formCheck()
- {
- var MaxChargingEnergy = document.getElementById("MaxChargingEnergy").value;
- var MaxChargingPower = document.getElementById("MaxChargingPower").value;
- var MaxChargingCurrent = document.getElementById("MaxChargingCurrent").value;
- var MaxChargingDuration = document.getElementById("MaxChargingDuration").value;
-
- if(MaxChargingEnergy >65535)
- {
- alert("MaxChargingEnergy must <= 65535!");
- document.getElementById("MaxChargingEnergy").focus();
- return false;
- }
-
- if(MaxChargingPower >65535)
- {
- alert("MaxChargingPower must <= 65535!");
- document.getElementById("MaxChargingPower").focus();
- return false;
- }
-
- if(MaxChargingCurrent >65535)
- {
- alert("MaxChargingCurrent must <= 65535!");
- document.getElementById("MaxChargingCurrent").focus();
- return false;
- }
-
- if(MaxChargingDuration >65535)
- {
- alert("MaxChargingDuration must <= 65535!");
- document.getElementById("MaxChargingDuration").focus();
- return false;
- }
-
- // if(serverAddr.length <=0)
- // {
- // alert("Please check remote server address!");
- // serverAddr.focus();
- // return false;
- // }
-
- // if((serverPort.value >65535) || (serverPort.value<0))
- // {
- // alert("Please check remote server port, it's must <= 65535!");
- // serverPort.focus();
- // return false;
- // }
-
- // if( confirm("Are you sure to update ID to " + ChargerID + "?") == 1 )
- // return true;
- // else
- // return false;
- return true;
- }
- function isNumberKey(evt)
- {
- var charCode = (evt.which) ? evt.which : event.keyCode
-
- if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode != 46))
- return false;
-
- return true;
- }
-
- </script>
- </html>
|