123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- <?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;
- if($obj['ChargingInfo1']){
- switch (ord($obj['ChargingInfo1']['SystemStatus'])){
- case 0:
- $SystemStatus1='booting';
- break;
- case 1:
- $SystemStatus1='idle';
- break;
- case 2:
- $SystemStatus1='authorizing';
- break;
- case 3:
- $SystemStatus1='preparing';
- break;
- case 4:
- $SystemStatus1='charging';
- break;
- case 5:
- $SystemStatus1='terminating';
- break;
- case 6:
- $SystemStatus1='alarm';
- break;
- case 7:
- $SystemStatus1='fault';
- break;
- }
- }
- if($obj['ChargingInfo2']){
- switch (ord($obj['ChargingInfo2']['SystemStatus'])){
- case 0:
- $SystemStatus2='booting';
- break;
- case 1:
- $SystemStatus2='idle';
- break;
- case 2:
- $SystemStatus2='authorizing';
- break;
- case 3:
- $SystemStatus2='preparing';
- break;
- case 4:
- $SystemStatus2='charging';
- break;
- case 5:
- $SystemStatus2='terminating';
- break;
- case 6:
- $SystemStatus2='alarm';
- break;
- case 7:
- $SystemStatus2='fault';
- break;
- }
- }
- if($obj['ChargingInfo3']){
- switch (ord($obj['ChargingInfo3']['SystemStatus'])){
- case 0:
- $SystemStatus3='booting';
- break;
- case 1:
- $SystemStatus3='idle';
- break;
- case 2:
- $SystemStatus3='authorizing';
- break;
- case 3:
- $SystemStatus3='preparing';
- break;
- case 4:
- $SystemStatus3='charging';
- break;
- case 5:
- $SystemStatus3='terminating';
- break;
- case 6:
- $SystemStatus3='alarm';
- break;
- case 7:
- $SystemStatus3='fault';
- break;
- }
- }
- ?>
- <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 $obj['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 ord($obj['PhaseLossPolicy'])=="0"?"selected":""?>>charging</option>
- <option value="1" <?php echo ord($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>
- <?php /* <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 ord($obj['CcsAuthentication'])==0?"selected":""?>>EIM</option>
- <option value="1" <?php echo ord($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 ord($obj['AcCcsChargingModel'])==0?"selected":""?>>BC (PWM) only</option>
- <option value="1" <?php echo ord($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['ChargingInfo1']['StartUserId'];?>">
- <input type="hidden" name="UserId1" id="UserId1" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>Card Number</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['CardNumber'];?>">
- <input type="hidden" name="CardNumber1" id="CardNumber1" value="<?php echo $obj['ChargingInfo1']['CardNumber'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StartDateTime</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
- <input type="hidden" name="StartDateTime1" id="StartDateTime1" value="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StoptDateTime</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StoptDateTime'];?>">
- <input type="hidden" name="StoptDateTime1" id="StoptDateTime1" value="<?php echo $obj['ChargingInfo1']['StoptDateTime'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StartMethod</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo ord($obj['ChargingInfo1']['StartMethod']);?>">
- <input type="hidden" name="StartMethod1" id="StartMethod1" value="<?php echo ord($obj['ChargingInfo1']['StartMethod']);?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>SystemStatus</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus1;?>">
- <input type="hidden" name="SystemStatus1" id="SystemStatus1" value="<?php echo ord($obj['ChargingInfo1']['SystemStatus']);?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>ConnectorTemp</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['ConnectorTemp'];?>">
- <input type="hidden" name="ConnectorTemp1" id="ConnectorTemp1" value="<?php echo $obj['ChargingInfo1']['ConnectorTemp'];?>">
- </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="PresentChargingVoltage1" id="PresentChargingVoltage1" value="<?php echo $obj['ChargingInfo1']['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="PresentChargingCurrent1" id="PresentChargingCurrent1" value="<?php echo $obj['ChargingInfo1']['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="PresentChargingPower1" id="PresentChargingPower1" value="<?php echo $obj['ChargingInfo1']['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="PresentChargedEnergy1" id="PresentChargedEnergy1" value="<?php echo $obj['ChargingInfo1']['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="PresentChargedDuration1" id="PresentChargedDuration1" value="<?php echo $obj['ChargingInfo1']['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="RemainChargingDuration1" id="RemainChargingDuration1" value="<?php echo $obj['ChargingInfo1']['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="EvBatteryMaxVoltage1" id="EvBatteryMaxVoltage1" value="<?php echo $obj['ChargingInfo1']['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="EvBatterytargetVoltage1" id="EvBatterytargetVoltage1" value="<?php echo $obj['ChargingInfo1']['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="EvBatterySoc1" id="EvBatterySoc1" value="<?php echo $obj['ChargingInfo1']['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['ChargingInfo2']['StartUserId'];?>">
- <input type="hidden" name="UserId2" id="UserId2" value="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>Card Number</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['CardNumber'];?>">
- <input type="hidden" name="CardNumber2" id="CardNumber2" value="<?php echo $obj['ChargingInfo2']['CardNumber'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StartDateTime</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
- <input type="hidden" name="StartDateTime2" id="StartDateTime2" value="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StoptDateTime</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StoptDateTime'];?>">
- <input type="hidden" name="StoptDateTime2" id="StoptDateTime2" value="<?php echo $obj['ChargingInfo2']['StoptDateTime'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StartMethod</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo ord($obj['ChargingInfo2']['StartMethod']);?>">
- <input type="hidden" name="StartMethod2" id="StartMethod2" value="<?php echo ord($obj['ChargingInfo2']['StartMethod']);?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>SystemStatus</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus2;?>">
- <input type="hidden" name="SystemStatus2" id="SystemStatus2" value="<?php echo ord($obj['ChargingInfo2']['SystemStatus']);?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>ConnectorTemp</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['ConnectorTemp'];?>">
- <input type="hidden" name="ConnectorTemp2" id="ConnectorTemp2" value="<?php echo $obj['ChargingInfo2']['ConnectorTemp'];?>">
- </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="PresentChargingVoltage2" id="PresentChargingVoltage2" value="<?php echo $obj['ChargingInfo2']['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="PresentChargingCurrent2" id="PresentChargingCurrent2" value="<?php echo $obj['ChargingInfo2']['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="PresentChargingPower2" id="PresentChargingPower2" value="<?php echo $obj['ChargingInfo2']['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="PresentChargedEnergy2" id="PresentChargedEnergy2" value="<?php echo $obj['ChargingInfo2']['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="PresentChargedDuration2" id="PresentChargedDuration2" value="<?php echo $obj['ChargingInfo2']['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="RemainChargingDuration2" id="RemainChargingDuration2" value="<?php echo $obj['ChargingInfo2']['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="EvBatteryMaxVoltage2" id="EvBatteryMaxVoltage2" value="<?php echo $obj['ChargingInfo2']['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="EvBatterytargetVoltage2" id="EvBatterytargetVoltage2" value="<?php echo $obj['ChargingInfo2']['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="EvBatterySoc2" id="EvBatterySoc2" value="<?php echo $obj['ChargingInfo2']['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['ChargingInfo3']['StartUserId'];?>">
- <input type="hidden" name="UserId3" id="UserId3" value="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>Card Number</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['CardNumber'];?>">
- <input type="hidden" name="CardNumber3" id="CardNumber3" value="<?php echo $obj['ChargingInfo3']['CardNumber'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StartDateTime</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
- <input type="hidden" name="StartDateTime3" id="StartDateTime3" value="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StoptDateTime</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StoptDateTime'];?>">
- <input type="hidden" name="StoptDateTime3" id="StoptDateTime3" value="<?php echo $obj['ChargingInfo3']['StoptDateTime'];?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>StartMethod</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo ord($obj['ChargingInfo3']['StartMethod']);?>">
- <input type="hidden" name="StartMethod3" id="StartMethod3" value="<?php echo ord($obj['ChargingInfo3']['StartMethod']);?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>SystemStatus</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus3;?>">
- <input type="hidden" name="SystemStatus3" id="SystemStatus3" value="<?php echo ord($obj['ChargingInfo3']['SystemStatus']);?>">
- </div>
- <div class="form-group" style="display:<?php echo $am111;?>">
- <label>ConnectorTemp</label>
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['ConnectorTemp'];?>">
- <input type="hidden" name="ConnectorTemp3" id="ConnectorTemp3" value="<?php echo $obj['ChargingInfo3']['ConnectorTemp'];?>">
- </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="PresentChargingVoltage3" id="PresentChargingVoltage3" value="<?php echo $obj['ChargingInfo3']['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="PresentChargingCurrent3" id="PresentChargingCurrent3" value="<?php echo $obj['ChargingInfo3']['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="PresentChargingPower3" id="PresentChargingPower3" value="<?php echo $obj['ChargingInfo3']['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="PresentChargedEnergy3" id="PresentChargedEnergy3" value="<?php echo $obj['ChargingInfo3']['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="PresentChargedDuration3" id="PresentChargedDuration3" value="<?php echo $obj['ChargingInfo3']['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="RemainChargingDuration3" id="RemainChargingDuration3" value="<?php echo $obj['ChargingInfo3']['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="EvBatteryMaxVoltage3" id="EvBatteryMaxVoltage3" value="<?php echo $obj['ChargingInfo3']['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="EvBatterytargetVoltage3" id="EvBatterytargetVoltage3" value="<?php echo $obj['ChargingInfo3']['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="EvBatterySoc3" id="EvBatterySoc3" value="<?php echo $obj['ChargingInfo3']['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;
-
- // 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(MaxChargingEnergy < 0)
- {
- alert("MaxChargingEnergy must >= 0!");
- document.getElementById("MaxChargingEnergy").focus();
- return false;
- }
- if(MaxChargingPower >65535)
- {
- alert("MaxChargingPower must <= 65535!");
- document.getElementById("MaxChargingPower").focus();
- return false;
- }
- if(MaxChargingPower < 0)
- {
- alert("MaxChargingPower must >= 0!");
- document.getElementById("MaxChargingPower").focus();
- return false;
- }
- if(MaxChargingCurrent >65535)
- {
- alert("MaxChargingCurrent must <= 65535!");
- document.getElementById("MaxChargingCurrent").focus();
- return false;
- }
- if(MaxChargingCurrent < 0)
- {
- alert("MaxChargingCurrent must >= 0!");
- document.getElementById("MaxChargingCurrent").focus();
- return false;
- }
- if(MaxChargingDuration >65535)
- {
- alert("MaxChargingDuration must <= 65535!");
- document.getElementById("MaxChargingDuration").focus();
- return false;
- }
- if(MaxChargingDuration < 0)
- {
- alert("MaxChargingDuration must >= 0!");
- document.getElementById("MaxChargingDuration").focus();
- 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>
|