|
@@ -1,602 +1,633 @@
|
|
|
-<?php
|
|
|
- ini_set('error_reporting', E_ALL | E_STRICT);
|
|
|
- $tag_header = 'set';
|
|
|
- include 'head.php';
|
|
|
- $obj = json_decode(trim($output[0]));//var_dump($obj);
|
|
|
- $AcPhaseCount='';
|
|
|
- switch ($obj->{'AcPhaseCount'}){
|
|
|
- case 1:
|
|
|
- $AcPhaseCount='one phase';
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $AcPhaseCount='three phase';
|
|
|
- break;
|
|
|
- default:
|
|
|
- $AcPhaseCount='unknown';
|
|
|
- break;
|
|
|
- }
|
|
|
- $ModelName = $obj->{'ModelName'};
|
|
|
- $RatingPower = substr($ModelName,4,2)*pow(10,-1+substr($ModelName,6,1));
|
|
|
- $Connector1=substr($ModelName,7,1);
|
|
|
- $Connector2=substr($ModelName,9,1);
|
|
|
- $Connector3=substr($ModelName,8,1);
|
|
|
- $connectorType1=ConnectorType($Connector1);
|
|
|
- $connectorType2=ConnectorType($Connector2);
|
|
|
- $connectorType3=ConnectorType($Connector3);
|
|
|
- if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB"){
|
|
|
- for($idx=0;$idx<$obj->{'DispenserQuantity'};$idx++){
|
|
|
- $DDconnectorType1[$idx]=ConnectorType(substr($obj->{'DDModelName'}[$idx],7,1));
|
|
|
- $DDconnectorType2[$idx]=ConnectorType(substr($obj->{'DDModelName'}[$idx],9,1));
|
|
|
- }
|
|
|
- }
|
|
|
- $IsAcDc = substr($ModelName,0,1);
|
|
|
- $PsuQuantity = 0;
|
|
|
- if($IsAcDc == "D"){
|
|
|
- if($RatingPower==50){
|
|
|
- $PsuQuantity = 3;
|
|
|
- }
|
|
|
- else{
|
|
|
-// if($RatingPower>=30){
|
|
|
- $PsuQuantity = $RatingPower/30;
|
|
|
-// }
|
|
|
- }
|
|
|
- }
|
|
|
- function ConnectorType($connector){
|
|
|
- $result="";
|
|
|
- if($connector == "0"){
|
|
|
- $result= "";
|
|
|
- }
|
|
|
- else if($connector == "U" || $connector == "V" || $connector == "E" || $connector == "F" || $connector == "T" || $connector == "D" || $connector == "M" || $connector == "N" || $connector == "P" || $connector == "R" || $connector == "Y" || $connector == "Z" || $connector == "I" || $connector == "Q"){
|
|
|
- $result= "CCS";
|
|
|
- }
|
|
|
- else if($connector == "G" || $connector == "B" || $connector == "H" || $connector == "A"){
|
|
|
- $result= "GB";
|
|
|
- }
|
|
|
- else if($connector == "J" || $connector == "K" || $connector == "L" || $connector == "S" || $connector == "O"){
|
|
|
- $result= "CHAdeMO";
|
|
|
- }
|
|
|
- else if($connector == "1" || $connector == "2" || $connector == "3" || $connector == "4" || $connector == "5" || $connector == "6" || $connector == "7" || $connector == "8"){
|
|
|
- $result= "AC";
|
|
|
- }
|
|
|
- else{
|
|
|
- $result= "";
|
|
|
- }
|
|
|
- return $result;
|
|
|
- }
|
|
|
-?>
|
|
|
-<style>
|
|
|
-img {
|
|
|
- display: block;
|
|
|
- margin-left: auto;
|
|
|
- margin-right: auto;
|
|
|
-}
|
|
|
-</style>
|
|
|
- <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("system"); ?></h1>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!--
|
|
|
- Page Title end
|
|
|
- //-->
|
|
|
- </section>
|
|
|
- <!--
|
|
|
- Main Content start
|
|
|
- //-->
|
|
|
- <a id="loadinghref"><div id="loading" style="display:none;"><img src="img/giphy.gif"/></div></a>
|
|
|
- <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">
|
|
|
- <!--System Information-->
|
|
|
- <article class="envor-sorting-item css">
|
|
|
- <header><?php echo $lang->showWord("system_information"); ?><i class="fa fa-plus"></i></header>
|
|
|
- <section>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("model_name"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'ModelName'};?>">
|
|
|
- <input type="hidden" name="ModelName" id="ModelName" value="<?php echo $obj->{'ModelName'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" id="AcModelNameDiv">
|
|
|
- <label><?php echo $lang->showWord("ac_model_name"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'AcModelName'};?>">
|
|
|
- <input type="hidden" name="AcModelName" id="AcModelName" value="<?php echo $obj->{'AcModelName'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("serial_number"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'SerialNumber'};?>">
|
|
|
- <input type="hidden" name="SerialNumber" id="SerialNumber" value="<?php echo $obj->{'SerialNumber'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("system_ID"); ?></label>
|
|
|
- <input type="text" name="SystemId" id="SystemId" class="form-control" value="<?php echo $obj->{'SystemId'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("system_dateTime"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo date('Y-m-d H:i:s');?>" id="SystemDateTime0"><br>
|
|
|
- <div class='input-group date' id='datetimepicker1'>
|
|
|
- <input type='text' class="form-control" name="SystemDateTime" id='SystemDateTime' />
|
|
|
- <span class="input-group-addon">
|
|
|
- <span class="glyphicon glyphicon-calendar"></span>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label><?php echo $lang->showWord("ac_phase_loss_policy"); ?></label>
|
|
|
- <select class="form-control" id="PhaseLossPolicy" name="PhaseLossPolicy">
|
|
|
- <option value="0" <?php echo $obj->{'PhaseLossPolicy'}=="0"?"selected":""?>>de-rating</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>
|
|
|
- <input type="checkbox" id="FactoryConfiguration" name="FactoryConfiguration" <?php echo $obj->{'FactoryConfiguration'}==1?"checked":"";?>>
|
|
|
- <?php echo $lang->showWord("factory_default_configuration"); ?></label>
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("authentication"); ?></label>
|
|
|
- <select class="form-control" id="AuthorisationMode" name="AuthorisationMode" onchange="AuthorisationMode_changed()">
|
|
|
- <option value="0" <?php echo $obj->{'AuthorisationMode'}=="0"?"selected":""?>><?php echo $lang->showWord("enable"); ?></option>
|
|
|
- <option value="1" <?php echo $obj->{'AuthorisationMode'}=="1"?"selected":""?>><?php echo $lang->showWord("disable"); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="form-group" id="isAuthrizeByEVCCIDDiv">
|
|
|
- <label id="isAPPLabel">
|
|
|
- <input type="checkbox" id="isAuthrizeByEVCCID" name="isAuthrizeByEVCCID" <?php echo $obj->{'isAuthrizeByEVCCID'}==1?"checked":"";?>>
|
|
|
- <?php echo $lang->showWord("authorized_by_EVCCID"); ?></label>
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("input_voltage_r"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageR'},2);?> volt">
|
|
|
- <input type="hidden" name="InputVoltageR" id="InputVoltageR" value="<?php echo $obj->{'InputVoltageR'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("input_voltage_s"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageS'},2);?> volt">
|
|
|
- <input type="hidden" name="InputVoltageS" id="InputVoltageS" value="<?php echo $obj->{'InputVoltageS'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("input_voltage_t"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageT'},2);?> volt">
|
|
|
- <input type="hidden" name="InputVoltageT" id="InputVoltageT" value="<?php echo $obj->{'InputVoltageT'};?>">
|
|
|
- </div>
|
|
|
-<?php if(substr($ModelName,0,2)=="DB"){?>
|
|
|
- <div class="form-group">
|
|
|
- <label><?php echo $lang->showWord("input_voltage_dc"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageDc'},2);?> volt">
|
|
|
- <input type="hidden" name="InputVoltageDc" id="InputVoltageDc" value="<?php echo $obj->{'InputVoltageDc'};?>">
|
|
|
- </div>
|
|
|
-<?php } ?>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label><?php echo $lang->showWord("system_fan_speed"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'SystemFanRotaSpeed'};?> RPM">
|
|
|
- <input type="hidden" name="SystemFanRotaSpeed" id="SystemFanRotaSpeed" value="<?php echo $obj->{'SystemFanRotaSpeed'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("rfid_card_num_endian"); ?></label>
|
|
|
- <select class="form-control" id="RfidCardNumEndian" name="RfidCardNumEndian">
|
|
|
- <option value="0" <?php echo $obj->{'RfidCardNumEndian'}=="0"?"selected":""?>><?php echo $lang->showWord("little_endian"); ?></option>
|
|
|
- <option value="1" <?php echo $obj->{'RfidCardNumEndian'}=="1"?"selected":""?>><?php echo $lang->showWord("big_endian"); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am120;?>">
|
|
|
- <label><?php echo $lang->showWord("psu_ac_input_type"); ?></label>
|
|
|
- <select class="form-control" id="PsuAcInputType" name="PsuAcInputType">
|
|
|
- <option value="0" <?php echo $obj->{'PsuAcInputType'}=="0"?"selected":""?>>220~230 +/- 15%</option>
|
|
|
- <option value="1" <?php echo $obj->{'PsuAcInputType'}=="1"?"selected":""?>>277 +10%/-15%</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label id="RatingCurrentLbl"><?php echo $lang->showWord("rating_current"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'RatingCurrent'};?> amp">
|
|
|
- <input type="hidden" name="RatingCurrent" id="RatingCurrent" value="<?php echo $obj->{'RatingCurrent'};?>">
|
|
|
- </div>
|
|
|
-<?php if(substr($ModelName,8,1)!="0"){?>
|
|
|
- <div class="form-group" id="AcRatingCurrentDiv">
|
|
|
- <label><?php echo $lang->showWord("ac_rating_current"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'AcRatingCurrent'};?> amp">
|
|
|
- <input type="hidden" name="AcRatingCurrent" id="AcRatingCurrent" value="<?php echo $obj->{'AcRatingCurrent'};?>">
|
|
|
- </div>
|
|
|
-<?php } ?>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>" id="startMode">
|
|
|
- <label id="isAPPLabel">
|
|
|
- <input type="checkbox" id="isAPP" name="isAPP" <?php echo $obj->{'isAPP'}==1?"checked":"";?> onclick="isAPP_clicked()">
|
|
|
- APP</label>
|
|
|
- <label id="isQRCodeLabel">
|
|
|
- <input type="checkbox" id="isQRCode" name="isQRCode" <?php echo $obj->{'isQRCode'}==1?"checked":"";?> onclick="isQRCode_clicked()">
|
|
|
- QR Code</label>
|
|
|
- <label id="isRFIDLabel">
|
|
|
- <input type="checkbox" id="isRFID" name="isRFID" <?php echo $obj->{'isRFID'}%2==1?"checked":"";?> onclick="isRFID_clicked()">
|
|
|
- RFID</label>
|
|
|
-<?php if(substr($ModelName,12,2)=="N0" || substr($ModelName,12,2)=="N1"){?>
|
|
|
- <label id="isCreditCardLabel">
|
|
|
- <input type="checkbox" id="isCreditCard" name="isCreditCard" <?php echo $obj->{'isRFID'}>1?"checked":"";?>>
|
|
|
- Credit Card</label>
|
|
|
-<?php } ?>
|
|
|
- </div>
|
|
|
- <div class="form-group" id="QRCodeMadeModeDiv">
|
|
|
- <label><?php echo $lang->showWord("qr_code_made_mode"); ?></label>
|
|
|
- <select class="form-control" id="QRCodeMadeMode" name="QRCodeMadeMode" onchange="QRCodeMadeMode_changed()">
|
|
|
- <option value="0" <?php echo $obj->{'QRCodeMadeMode'}=="0"?"selected":""?>><?php echo $lang->showWord("default"); ?></option>
|
|
|
- <option value="1" <?php echo $obj->{'QRCodeMadeMode'}=="1"?"selected":""?>><?php echo $lang->showWord("customized"); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="form-group" id="QRCodeContentDiv">
|
|
|
- <label><?php echo $lang->showWord("qr_code_content"); ?></label>
|
|
|
- <input type="text" name="QRCodeContent" id="QRCodeContent" class="form-control" placeholder="<?php echo $obj->{'QRCodeContent'};?>" value="<?php echo $obj->{'QRCodeContent'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label><?php echo $lang->showWord("led_intensity"); ?></label>
|
|
|
- <select class="form-control" id="Intensity" name="Intensity">
|
|
|
- <option value="0" <?php echo $obj->{'Intensity'}=="0"?"selected":""?>><?php echo $lang->showWord("darkest"); ?></option>
|
|
|
- <option value="1" <?php echo $obj->{'Intensity'}=="1"?"selected":""?>><?php echo $lang->showWord("medium"); ?></option>
|
|
|
- <option value="2" <?php echo $obj->{'Intensity'}=="2"?"selected":""?>><?php echo $lang->showWord("brightest"); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
-<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB"){?>
|
|
|
- <div class="form-group">
|
|
|
- <label><?php echo $lang->showWord("dispenser_quantity"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DispenserQuantity'};?>">
|
|
|
- <input type="hidden" name="DispenserQuantity" id="DispenserQuantity" value="<?php echo $obj->{'DispenserQuantity'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label><?php echo $lang->showWord("total_connector_quantity"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TotalConnectorQuantity'};?>">
|
|
|
- <input type="hidden" name="TotalConnectorQuantity" id="TotalConnectorQuantity" value="<?php echo $obj->{'TotalConnectorQuantity'};?>">
|
|
|
- </div>
|
|
|
-<?php } ?>
|
|
|
- </section>
|
|
|
- </article>
|
|
|
- <article class="envor-sorting-item css">
|
|
|
- <header><?php echo $lang->showWord("version_information"); ?><i class="fa fa-plus"></i></header>
|
|
|
- <section>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label>Csu Boot Load Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuBootLoadFwRev'};?>">
|
|
|
- <input type="hidden" name="CsuBootLoadFwRev" id="CsuBootLoadFwRev" value="<?php echo $obj->{'CsuBootLoadFwRev'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label>Csu Kernel Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuKernelFwRev'};?>">
|
|
|
- <input type="hidden" name="CsuKernelFwRev" id="CsuKernelFwRev" value="<?php echo $obj->{'CsuKernelFwRev'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label>Csu Root Fs Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuRootFsFwRev'};?>">
|
|
|
- <input type="hidden" name="CsuRootFsFwRev" id="CsuRootFsFwRev" value="<?php echo $obj->{'CsuRootFsFwRev'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
- <label>Csu Prim Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuPrimFwRev'};?>">
|
|
|
- <input type="hidden" name="CsuPrimFwRev" id="CsuPrimFwRev" value="<?php echo $obj->{'CsuPrimFwRev'};?>">
|
|
|
- </div>
|
|
|
-<?php for($i=0;$i<$PsuQuantity;$i++){?>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label>Psu Prim Fw Rev(<?php echo $i+1;?>)</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'FwPrimaryVersion'}[$i];?>">
|
|
|
- <input type="hidden" name="PsuPrimFwRev<?php echo $i;?>" id="PsuPrimFwRev<?php echo $i;?>" value="<?php echo $obj->{'FwPrimaryVersion'}[$i];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label>Psu Sec Fw Rev(<?php echo $i+1;?>)</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'FwSecondVersion'}[$i];?>">
|
|
|
- <input type="hidden" name="PsuSecFwRev<?php echo $i;?>" id="PsuSecFwRev<?php echo $i;?>" value="<?php echo $obj->{'FwSecondVersion'}[$i];?>">
|
|
|
- </div>
|
|
|
-<?php } ?>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label>Fan Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'FanModuleFwRev'};?>">
|
|
|
- <input type="hidden" name="FanModuleFwRev" id="FanModuleFwRev" value="<?php echo $obj->{'FanModuleFwRev'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label>Relay Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'RelayModuleFwRev'};?>">
|
|
|
- <input type="hidden" name="RelayModuleFwRev" id="RelayModuleFwRev" value="<?php echo $obj->{'RelayModuleFwRev'};?>">
|
|
|
- </div>
|
|
|
-<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB"){?>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label>Relay2 Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Relay2ModuleFwRev'};?>">
|
|
|
- <input type="hidden" name="Relay2ModuleFwRev" id="Relay2ModuleFwRev" value="<?php echo $obj->{'Relay2ModuleFwRev'};?>">
|
|
|
- </div>
|
|
|
-<?php } ?>
|
|
|
- <div class="form-group" style="display:<?php echo $showTelcom;?>">
|
|
|
- <label>Telcom Modem Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TelcomModemFwRev'};?>">
|
|
|
- <input type="hidden" name="TelcomModemFwRev" id="TelcomModemFwRev" value="<?php echo $obj->{'TelcomModemFwRev'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" id="Connector1FwRevDiv" style="display:<?php echo $am001;?>">
|
|
|
- <label>Connector1(<?php echo $connectorType1;?>) Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Connector1FwRev'};?>">
|
|
|
- <input type="hidden" name="Connector1FwRev" id="Connector1FwRev" value="<?php echo $obj->{'Connector1FwRev'};?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" id="Connector2FwRevDiv">
|
|
|
- <label>Connector2(<?php echo $connectorType2;?>) Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Connector2FwRev'};?>">
|
|
|
- <input type="hidden" name="Connector2FwRev" id="Connector2FwRev" value="<?php echo $obj->{'Connector2FwRev'};?>">
|
|
|
- </div>
|
|
|
-<?php if($connectorType3=="AC"){?>
|
|
|
- <div class="form-group" id="Connector3FwRevDiv">
|
|
|
- <label>Connector3(<?php echo $connectorType3;?>) Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Connector3FwRev'};?>">
|
|
|
- <input type="hidden" name="Connector3FwRev" id="Connector3FwRev" value="<?php echo $obj->{'Connector3FwRev'};?>">
|
|
|
- </div>
|
|
|
-<?php } ?>
|
|
|
- <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
- <label>Led Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'LedModuleFwRev'};?>">
|
|
|
- <input type="hidden" name="LedModuleFwRev" id="LedModuleFwRev" value="<?php echo $obj->{'LedModuleFwRev'};?>">
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- </article>
|
|
|
-<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB"){?>
|
|
|
-<?php for($idx=0;$idx<$obj->{'DispenserQuantity'};$idx++){ $idx2=$idx+1;?>
|
|
|
- <article class="envor-sorting-item css">
|
|
|
- <header> Dispenser <?php echo $idx2;?><i class="fa fa-plus"></i></header>
|
|
|
- <section>
|
|
|
- <div class="form-group">
|
|
|
- <label><?php echo $lang->showWord("model_name"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDModelName'}[$idx];?>">
|
|
|
- <input type="hidden" name="DDModelName<?php echo $idx2;?>" id="DDModelName<?php echo $idx2;?>" value="<?php echo $obj->{'DDModelName'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label><?php echo $lang->showWord("serial_number"); ?></label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDSerialNumber'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label><?php echo $lang->showWord("system_ID"); ?></label>
|
|
|
- <input type="text" name="DDSystemId<?php echo $idx2; ?>" id="DDSystemId<?php echo $idx2; ?>" class="form-control" value="<?php echo $obj->{'DDSystemId'}[$idx];?>">
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- </article>
|
|
|
- <article class="envor-sorting-item css">
|
|
|
- <header><?php echo $lang->showWord("version_information"); ?> Dispenser <?php echo $idx+1; ?><i class="fa fa-plus"></i></header>
|
|
|
- <section>
|
|
|
- <div class="form-group">
|
|
|
- <label>Csu Boot Load Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuBootLoadFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Csu Kernel Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuKernelFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Csu Root Fs Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuRootFsFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Csu Prim Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuPrimFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Fan Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDFanModuleFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Relay Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDRelayModuleFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Telcom Modem Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDTelcomModemFwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Connector1(<?php echo $DDconnectorType1[$idx];?>) Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDConnector1FwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group" id="DDConnector2FwRevDiv">
|
|
|
- <label>Connector2(<?php echo $DDconnectorType2[$idx];?>) Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDConnector2FwRev'}[$idx];?>">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>Led Module Fw Rev</label>
|
|
|
- <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDLedModuleFwRev'}[$idx];?>">
|
|
|
- </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).ready(function(){
|
|
|
- $("#datetimepicker1").datetimepicker({
|
|
|
- format:"YYYY-MM-DD HH:mm:ss"
|
|
|
- });
|
|
|
- setInterval(function(){var t = new Date(document.getElementById("SystemDateTime0").placeholder);var t_s = t.getTime();t.setTime(t_s + 1000 );document.getElementById("SystemDateTime0").placeholder= t.Format("yyyy-MM-dd hh:mm:ss");}, 1000);
|
|
|
- if(document.getElementById("ModelName").value.substr(0,1) != "A" && document.getElementById("ModelName").value.substr(9,1) != "0"){
|
|
|
- document.getElementById("Connector2FwRevDiv").style.display="block";
|
|
|
- }
|
|
|
- else{
|
|
|
- document.getElementById("Connector2FwRevDiv").style.display="none";
|
|
|
- }
|
|
|
- if(document.getElementById("ModelName").value.substr(0,1) != "D" && document.getElementById("ModelName").value.substr(0,2) != "AX"){
|
|
|
- document.getElementById("isAPPLabel").style.display="none";
|
|
|
- document.getElementById("isQRCodeLabel").style.display="none";
|
|
|
- document.getElementById("isRFIDLabel").style.display="none";
|
|
|
- }
|
|
|
- if(document.getElementById("ModelName").value.substr(8,1) != "0"){
|
|
|
- document.getElementById("AcModelNameDiv").style.display="block";
|
|
|
- document.getElementById("RatingCurrentLbl").innerHTML="DC Rating Current";
|
|
|
- }
|
|
|
- else{
|
|
|
- document.getElementById("AcModelNameDiv").style.display="none";
|
|
|
- }
|
|
|
- isQRCode_clicked();
|
|
|
- AuthorisationMode_changed();
|
|
|
- QRCodeMadeMode_changed();
|
|
|
- });
|
|
|
-
|
|
|
- document.getElementById("save").onclick = function() {
|
|
|
- if(formCheck())
|
|
|
- {
|
|
|
- window.location="#loadinghref";
|
|
|
- document.getElementById("loading").style.display="block";
|
|
|
- // 發送 Ajax 查詢請求並處理
|
|
|
- var request = new XMLHttpRequest();
|
|
|
- request.open("POST", "set_system_action.php");
|
|
|
- var isRFID= (document.getElementById("isRFID").checked?1:0);
|
|
|
- if(document.getElementById("ModelName").value.substr(12,2) == "N0" || document.getElementById("ModelName").value.substr(12,2) == "N1"){
|
|
|
- isRFID=parseInt(document.getElementById("isRFID").checked?1:0)+parseInt(document.getElementById("isCreditCard").checked?2:0);
|
|
|
- }
|
|
|
- // POST 參數須使用 send() 發送
|
|
|
- var data = "SystemId=" + document.getElementById("SystemId").value+
|
|
|
- "&SystemDateTime=" + document.getElementById("SystemDateTime").value+
|
|
|
- "&FactoryConfiguration=" + (document.getElementById("FactoryConfiguration").checked?1:0);
|
|
|
- data += "&PhaseLossPolicy=" + document.getElementById("PhaseLossPolicy").value+
|
|
|
- "&AuthorisationMode=" + document.getElementById("AuthorisationMode").value+
|
|
|
- "&isAPP=" + (document.getElementById("isAPP").checked?1:0)+
|
|
|
- "&isQRCode=" + (document.getElementById("isQRCode").checked?1:0)+
|
|
|
- "&isRFID=" + isRFID+
|
|
|
- "&isAuthrizeByEVCCID=" + (document.getElementById("isAuthrizeByEVCCID").checked?1:0)+
|
|
|
- "&QRCodeMadeMode=" + document.getElementById("QRCodeMadeMode").value+
|
|
|
- "&QRCodeContent=" + encodeURIComponent(document.getElementById("QRCodeContent").value)+
|
|
|
- "&Intensity=" + document.getElementById("Intensity").value+
|
|
|
- "&RfidCardNumEndian=" + document.getElementById("RfidCardNumEndian").value+
|
|
|
- "&PsuAcInputType=" + document.getElementById("PsuAcInputType").value;
|
|
|
-
|
|
|
-<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB"){?>
|
|
|
-<?php for($idx=0;$idx<$obj->{'DispenserQuantity'};$idx++){ $idx2=$idx+1;?>
|
|
|
- data += "&DDSystemId<?php echo $idx2; ?>=" + document.getElementById("DDSystemId<?php echo $idx2; ?>").value;
|
|
|
-<?php }} ?>
|
|
|
- // POST 請求必須設置表頭在 open() 下面,send() 上面
|
|
|
- request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
|
- request.send(data);
|
|
|
-
|
|
|
- request.onreadystatechange = function() {
|
|
|
- // 伺服器請求完成
|
|
|
- if (request.readyState == 4) {
|
|
|
- document.getElementById("loading").style.display="none";
|
|
|
- // 伺服器回應成功
|
|
|
- if (request.status == 200 && JSON.parse(request.responseText).result=="Success") {
|
|
|
- alert("<?php echo $lang->showWord("done")?>");
|
|
|
- location.href="set_system.php";
|
|
|
- } else {
|
|
|
- alert(JSON.parse(request.responseText).message);
|
|
|
- }
|
|
|
- request = null;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function formCheck()
|
|
|
- {
|
|
|
- var SystemId = document.getElementById("SystemId").value;
|
|
|
- var SystemDateTime = document.getElementById("SystemDateTime").value;
|
|
|
- var result=true;
|
|
|
-
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- function AuthorisationMode_changed(){
|
|
|
- if(document.getElementById("AuthorisationMode").value == "0"){
|
|
|
- if(document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX"){
|
|
|
- document.getElementById("startMode").style.display="block";
|
|
|
- isQRCode_clicked();
|
|
|
- }
|
|
|
- if((document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && !document.getElementById("isQRCode").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
- alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
- document.getElementById("isAPP").checked=true;
|
|
|
- document.getElementById("isQRCode").checked=true;
|
|
|
- document.getElementById("isRFID").checked=true;
|
|
|
- }
|
|
|
- if((document.getElementById("ModelName").value.substr(0,1) == "D") || (document.getElementById("ModelName").value.substr(0,2) == "AX")){
|
|
|
- document.getElementById("isAuthrizeByEVCCIDDiv").style.display="block";
|
|
|
- }
|
|
|
- else{
|
|
|
- document.getElementById("isAuthrizeByEVCCIDDiv").style.display="none";
|
|
|
- }
|
|
|
- }
|
|
|
- else{
|
|
|
- document.getElementById("startMode").style.display="none";
|
|
|
- document.getElementById("QRCodeMadeModeDiv").style.display="none";
|
|
|
- document.getElementById("isAuthrizeByEVCCIDDiv").style.display="none";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function isQRCode_clicked(){
|
|
|
- if(document.getElementById("isQRCode").checked){
|
|
|
- document.getElementById("QRCodeMadeModeDiv").style.display="block";
|
|
|
- QRCodeMadeMode_changed();
|
|
|
- }
|
|
|
- else{
|
|
|
- document.getElementById("QRCodeMadeModeDiv").style.display="none";
|
|
|
- document.getElementById("QRCodeContentDiv").style.display="none";
|
|
|
- if((document.getElementById("ModelName").value.substr(0,1) == "D" ||document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
- alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
- document.getElementById("isQRCode").checked=true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function isAPP_clicked(){
|
|
|
- if((document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isQRCode").checked && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
- alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
- document.getElementById("isAPP").checked=true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function isRFID_clicked(){
|
|
|
- if((document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isQRCode").checked && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
- alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
- document.getElementById("isRFID").checked=true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function QRCodeMadeMode_changed(){
|
|
|
- if(document.getElementById("QRCodeMadeMode").value == "1"){
|
|
|
- document.getElementById("QRCodeContentDiv").style.display="block";
|
|
|
- }
|
|
|
- else{
|
|
|
- document.getElementById("QRCodeContentDiv").style.display="none";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- Date.prototype.Format = function (fmt) { //author: meizz
|
|
|
- var o = {
|
|
|
- "M+": this.getMonth() + 1, //月份
|
|
|
- "d+": this.getDate(), //日
|
|
|
- "h+": this.getHours(), //小时
|
|
|
- "m+": this.getMinutes(), //分
|
|
|
- "s+": this.getSeconds(), //秒
|
|
|
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
|
- "S": this.getMilliseconds() //毫秒
|
|
|
- };
|
|
|
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
|
- for (var k in o)
|
|
|
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
|
- return fmt;
|
|
|
- }
|
|
|
-
|
|
|
- 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>
|
|
|
+<?php
|
|
|
+ ini_set('error_reporting', E_ALL | E_STRICT);
|
|
|
+ $tag_header = 'set';
|
|
|
+ include 'head.php';
|
|
|
+ $obj = json_decode(trim($output[0]));//var_dump($obj);
|
|
|
+ $AcPhaseCount='';
|
|
|
+ switch ($obj->{'AcPhaseCount'}){
|
|
|
+ case 1:
|
|
|
+ $AcPhaseCount='one phase';
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ $AcPhaseCount='three phase';
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ $AcPhaseCount='unknown';
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ $ModelName = $obj->{'ModelName'};
|
|
|
+ $RatingPower = substr($ModelName,4,2)*pow(10,-1+substr($ModelName,6,1));
|
|
|
+ $Connector1=substr($ModelName,7,1);
|
|
|
+ $Connector2=substr($ModelName,9,1);
|
|
|
+ $Connector3=substr($ModelName,8,1);
|
|
|
+ $connectorType1=ConnectorType($Connector1);
|
|
|
+ $connectorType2=ConnectorType($Connector2);
|
|
|
+ $connectorType3=ConnectorType($Connector3);
|
|
|
+ if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB" || substr($ModelName,0,2)=="DL"){
|
|
|
+ for($idx=0;$idx<$obj->{'DispenserQuantity'};$idx++){
|
|
|
+ $DDconnectorType1[$idx]=ConnectorType(substr($obj->{'DDModelName'}[$idx],7,1));
|
|
|
+ $DDconnectorType2[$idx]=ConnectorType(substr($obj->{'DDModelName'}[$idx],9,1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $IsAcDc = substr($ModelName,0,1);
|
|
|
+ $PsuQuantity = 0;
|
|
|
+ if($IsAcDc == "D"){
|
|
|
+ if($RatingPower==50){
|
|
|
+ $PsuQuantity = 3;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+// if($RatingPower>=30){
|
|
|
+ $PsuQuantity = $RatingPower/30;
|
|
|
+// }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function ConnectorType($connector){
|
|
|
+ $result="";
|
|
|
+ if($connector == "0"){
|
|
|
+ $result= "";
|
|
|
+ }
|
|
|
+ else if($connector == "U" || $connector == "V" || $connector == "E" || $connector == "F" || $connector == "T" || $connector == "D" || $connector == "M" || $connector == "N" || $connector == "P" || $connector == "R" || $connector == "Y" || $connector == "Z" || $connector == "I" || $connector == "Q"){
|
|
|
+ $result= "CCS";
|
|
|
+ }
|
|
|
+ else if($connector == "G" || $connector == "B" || $connector == "H" || $connector == "A"){
|
|
|
+ $result= "GB";
|
|
|
+ }
|
|
|
+ else if($connector == "J" || $connector == "K" || $connector == "L" || $connector == "S" || $connector == "O"){
|
|
|
+ $result= "CHAdeMO";
|
|
|
+ }
|
|
|
+ else if($connector == "1" || $connector == "2" || $connector == "3" || $connector == "4" || $connector == "5" || $connector == "6" || $connector == "7" || $connector == "8"){
|
|
|
+ $result= "AC";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $result= "";
|
|
|
+ }
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
+ function LocalStatus($status){
|
|
|
+ $result="";
|
|
|
+ switch ($status){
|
|
|
+ case 0:
|
|
|
+ $result='None';
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ $result='Identification';
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $result='Idle';
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ $result='Alarm';
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ $result='Charging';
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ $result='_DS_Timeout';
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
+?>
|
|
|
+<style>
|
|
|
+img {
|
|
|
+ display: block;
|
|
|
+ margin-left: auto;
|
|
|
+ margin-right: auto;
|
|
|
+}
|
|
|
+</style>
|
|
|
+ <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("system"); ?></h1>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--
|
|
|
+ Page Title end
|
|
|
+ //-->
|
|
|
+ </section>
|
|
|
+ <!--
|
|
|
+ Main Content start
|
|
|
+ //-->
|
|
|
+ <a id="loadinghref"><div id="loading" style="display:none;"><img src="img/giphy.gif"/></div></a>
|
|
|
+ <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">
|
|
|
+ <!--System Information-->
|
|
|
+ <article class="envor-sorting-item css">
|
|
|
+ <header><?php echo $lang->showWord("system_information"); ?><i class="fa fa-plus"></i></header>
|
|
|
+ <section>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("model_name"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'ModelName'};?>">
|
|
|
+ <input type="hidden" name="ModelName" id="ModelName" value="<?php echo $obj->{'ModelName'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="AcModelNameDiv">
|
|
|
+ <label><?php echo $lang->showWord("ac_model_name"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'AcModelName'};?>">
|
|
|
+ <input type="hidden" name="AcModelName" id="AcModelName" value="<?php echo $obj->{'AcModelName'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("serial_number"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'SerialNumber'};?>">
|
|
|
+ <input type="hidden" name="SerialNumber" id="SerialNumber" value="<?php echo $obj->{'SerialNumber'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("system_ID"); ?></label>
|
|
|
+ <input type="text" name="SystemId" id="SystemId" class="form-control" value="<?php echo $obj->{'SystemId'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("system_dateTime"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo date('Y-m-d H:i:s');?>" id="SystemDateTime0"><br>
|
|
|
+ <div class='input-group date' id='datetimepicker1'>
|
|
|
+ <input type='text' class="form-control" name="SystemDateTime" id='SystemDateTime' />
|
|
|
+ <span class="input-group-addon">
|
|
|
+ <span class="glyphicon glyphicon-calendar"></span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label><?php echo $lang->showWord("ac_phase_loss_policy"); ?></label>
|
|
|
+ <select class="form-control" id="PhaseLossPolicy" name="PhaseLossPolicy">
|
|
|
+ <option value="0" <?php echo $obj->{'PhaseLossPolicy'}=="0"?"selected":""?>>de-rating</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>
|
|
|
+ <input type="checkbox" id="FactoryConfiguration" name="FactoryConfiguration" <?php echo $obj->{'FactoryConfiguration'}==1?"checked":"";?>>
|
|
|
+ <?php echo $lang->showWord("factory_default_configuration"); ?></label>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("authentication"); ?></label>
|
|
|
+ <select class="form-control" id="AuthorisationMode" name="AuthorisationMode" onchange="AuthorisationMode_changed()">
|
|
|
+ <option value="0" <?php echo $obj->{'AuthorisationMode'}=="0"?"selected":""?>><?php echo $lang->showWord("enable"); ?></option>
|
|
|
+ <option value="1" <?php echo $obj->{'AuthorisationMode'}=="1"?"selected":""?>><?php echo $lang->showWord("disable"); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="isAuthrizeByEVCCIDDiv">
|
|
|
+ <label id="isAPPLabel">
|
|
|
+ <input type="checkbox" id="isAuthrizeByEVCCID" name="isAuthrizeByEVCCID" <?php echo $obj->{'isAuthrizeByEVCCID'}==1?"checked":"";?>>
|
|
|
+ <?php echo $lang->showWord("authorized_by_EVCCID"); ?></label>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("input_voltage_r"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageR'},2);?> volt">
|
|
|
+ <input type="hidden" name="InputVoltageR" id="InputVoltageR" value="<?php echo $obj->{'InputVoltageR'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("input_voltage_s"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageS'},2);?> volt">
|
|
|
+ <input type="hidden" name="InputVoltageS" id="InputVoltageS" value="<?php echo $obj->{'InputVoltageS'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("input_voltage_t"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageT'},2);?> volt">
|
|
|
+ <input type="hidden" name="InputVoltageT" id="InputVoltageT" value="<?php echo $obj->{'InputVoltageT'};?>">
|
|
|
+ </div>
|
|
|
+<?php if(substr($ModelName,0,2)=="DB"){?>
|
|
|
+ <div class="form-group">
|
|
|
+ <label><?php echo $lang->showWord("input_voltage_dc"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo round($obj->{'InputVoltageDc'},2);?> volt">
|
|
|
+ <input type="hidden" name="InputVoltageDc" id="InputVoltageDc" value="<?php echo $obj->{'InputVoltageDc'};?>">
|
|
|
+ </div>
|
|
|
+<?php } ?>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label><?php echo $lang->showWord("system_fan_speed"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'SystemFanRotaSpeed'};?> RPM">
|
|
|
+ <input type="hidden" name="SystemFanRotaSpeed" id="SystemFanRotaSpeed" value="<?php echo $obj->{'SystemFanRotaSpeed'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("rfid_card_num_endian"); ?></label>
|
|
|
+ <select class="form-control" id="RfidCardNumEndian" name="RfidCardNumEndian">
|
|
|
+ <option value="0" <?php echo $obj->{'RfidCardNumEndian'}=="0"?"selected":""?>><?php echo $lang->showWord("little_endian"); ?></option>
|
|
|
+ <option value="1" <?php echo $obj->{'RfidCardNumEndian'}=="1"?"selected":""?>><?php echo $lang->showWord("big_endian"); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am120;?>">
|
|
|
+ <label><?php echo $lang->showWord("psu_ac_input_type"); ?></label>
|
|
|
+ <select class="form-control" id="PsuAcInputType" name="PsuAcInputType">
|
|
|
+ <option value="0" <?php echo $obj->{'PsuAcInputType'}=="0"?"selected":""?>>220~230 +/- 15%</option>
|
|
|
+ <option value="1" <?php echo $obj->{'PsuAcInputType'}=="1"?"selected":""?>>277 +10%/-15%</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label id="RatingCurrentLbl"><?php echo $lang->showWord("rating_current"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'RatingCurrent'};?> amp">
|
|
|
+ <input type="hidden" name="RatingCurrent" id="RatingCurrent" value="<?php echo $obj->{'RatingCurrent'};?>">
|
|
|
+ </div>
|
|
|
+<?php if(substr($ModelName,8,1)!="0"){?>
|
|
|
+ <div class="form-group" id="AcRatingCurrentDiv">
|
|
|
+ <label><?php echo $lang->showWord("ac_rating_current"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'AcRatingCurrent'};?> amp">
|
|
|
+ <input type="hidden" name="AcRatingCurrent" id="AcRatingCurrent" value="<?php echo $obj->{'AcRatingCurrent'};?>">
|
|
|
+ </div>
|
|
|
+<?php } ?>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>" id="startMode">
|
|
|
+ <label id="isAPPLabel">
|
|
|
+ <input type="checkbox" id="isAPP" name="isAPP" <?php echo $obj->{'isAPP'}==1?"checked":"";?> onclick="isAPP_clicked()">
|
|
|
+ APP</label>
|
|
|
+ <label id="isQRCodeLabel">
|
|
|
+ <input type="checkbox" id="isQRCode" name="isQRCode" <?php echo $obj->{'isQRCode'}==1?"checked":"";?> onclick="isQRCode_clicked()">
|
|
|
+ QR Code</label>
|
|
|
+ <label id="isRFIDLabel">
|
|
|
+ <input type="checkbox" id="isRFID" name="isRFID" <?php echo $obj->{'isRFID'}%2==1?"checked":"";?> onclick="isRFID_clicked()">
|
|
|
+ RFID</label>
|
|
|
+<?php if(substr($ModelName,12,2)=="N0" || substr($ModelName,12,2)=="N1"){?>
|
|
|
+ <label id="isCreditCardLabel">
|
|
|
+ <input type="checkbox" id="isCreditCard" name="isCreditCard" <?php echo $obj->{'isRFID'}>1?"checked":"";?>>
|
|
|
+ Credit Card</label>
|
|
|
+<?php } ?>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="QRCodeMadeModeDiv">
|
|
|
+ <label><?php echo $lang->showWord("qr_code_made_mode"); ?></label>
|
|
|
+ <select class="form-control" id="QRCodeMadeMode" name="QRCodeMadeMode" onchange="QRCodeMadeMode_changed()">
|
|
|
+ <option value="0" <?php echo $obj->{'QRCodeMadeMode'}=="0"?"selected":""?>><?php echo $lang->showWord("default"); ?></option>
|
|
|
+ <option value="1" <?php echo $obj->{'QRCodeMadeMode'}=="1"?"selected":""?>><?php echo $lang->showWord("customized"); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="QRCodeContentDiv">
|
|
|
+ <label><?php echo $lang->showWord("qr_code_content"); ?></label>
|
|
|
+ <input type="text" name="QRCodeContent" id="QRCodeContent" class="form-control" placeholder="<?php echo $obj->{'QRCodeContent'};?>" value="<?php echo $obj->{'QRCodeContent'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label><?php echo $lang->showWord("led_intensity"); ?></label>
|
|
|
+ <select class="form-control" id="Intensity" name="Intensity">
|
|
|
+ <option value="0" <?php echo $obj->{'Intensity'}=="0"?"selected":""?>><?php echo $lang->showWord("darkest"); ?></option>
|
|
|
+ <option value="1" <?php echo $obj->{'Intensity'}=="1"?"selected":""?>><?php echo $lang->showWord("medium"); ?></option>
|
|
|
+ <option value="2" <?php echo $obj->{'Intensity'}=="2"?"selected":""?>><?php echo $lang->showWord("brightest"); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB" || substr($ModelName,0,2)=="DL"){?>
|
|
|
+ <div class="form-group">
|
|
|
+ <label><?php echo $lang->showWord("dispenser_quantity"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DispenserQuantity'};?>">
|
|
|
+ <input type="hidden" name="DispenserQuantity" id="DispenserQuantity" value="<?php echo $obj->{'DispenserQuantity'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label><?php echo $lang->showWord("total_connector_quantity"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TotalConnectorQuantity'};?>">
|
|
|
+ <input type="hidden" name="TotalConnectorQuantity" id="TotalConnectorQuantity" value="<?php echo $obj->{'TotalConnectorQuantity'};?>">
|
|
|
+ </div>
|
|
|
+<?php } ?>
|
|
|
+ </section>
|
|
|
+ </article>
|
|
|
+ <article class="envor-sorting-item css">
|
|
|
+ <header><?php echo $lang->showWord("version_information"); ?><i class="fa fa-plus"></i></header>
|
|
|
+ <section>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label>Csu Boot Load Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuBootLoadFwRev'};?>">
|
|
|
+ <input type="hidden" name="CsuBootLoadFwRev" id="CsuBootLoadFwRev" value="<?php echo $obj->{'CsuBootLoadFwRev'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label>Csu Kernel Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuKernelFwRev'};?>">
|
|
|
+ <input type="hidden" name="CsuKernelFwRev" id="CsuKernelFwRev" value="<?php echo $obj->{'CsuKernelFwRev'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label>Csu Root Fs Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuRootFsFwRev'};?>">
|
|
|
+ <input type="hidden" name="CsuRootFsFwRev" id="CsuRootFsFwRev" value="<?php echo $obj->{'CsuRootFsFwRev'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am111;?>">
|
|
|
+ <label>Csu Prim Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'CsuPrimFwRev'};?>">
|
|
|
+ <input type="hidden" name="CsuPrimFwRev" id="CsuPrimFwRev" value="<?php echo $obj->{'CsuPrimFwRev'};?>">
|
|
|
+ </div>
|
|
|
+<?php for($i=0;$i<$PsuQuantity;$i++){?>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Psu Prim Fw Rev(<?php echo $i+1;?>)</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'FwPrimaryVersion'}[$i];?>">
|
|
|
+ <input type="hidden" name="PsuPrimFwRev<?php echo $i;?>" id="PsuPrimFwRev<?php echo $i;?>" value="<?php echo $obj->{'FwPrimaryVersion'}[$i];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Psu Sec Fw Rev(<?php echo $i+1;?>)</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'FwSecondVersion'}[$i];?>">
|
|
|
+ <input type="hidden" name="PsuSecFwRev<?php echo $i;?>" id="PsuSecFwRev<?php echo $i;?>" value="<?php echo $obj->{'FwSecondVersion'}[$i];?>">
|
|
|
+ </div>
|
|
|
+<?php } ?>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Fan Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'FanModuleFwRev'};?>">
|
|
|
+ <input type="hidden" name="FanModuleFwRev" id="FanModuleFwRev" value="<?php echo $obj->{'FanModuleFwRev'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Relay Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'RelayModuleFwRev'};?>">
|
|
|
+ <input type="hidden" name="RelayModuleFwRev" id="RelayModuleFwRev" value="<?php echo $obj->{'RelayModuleFwRev'};?>">
|
|
|
+ </div>
|
|
|
+<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB" || substr($ModelName,0,2)=="DL"){?>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Relay2 Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Relay2ModuleFwRev'};?>">
|
|
|
+ <input type="hidden" name="Relay2ModuleFwRev" id="Relay2ModuleFwRev" value="<?php echo $obj->{'Relay2ModuleFwRev'};?>">
|
|
|
+ </div>
|
|
|
+<?php } ?>
|
|
|
+ <div class="form-group" style="display:<?php echo $showTelcom;?>">
|
|
|
+ <label>Telcom Modem Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TelcomModemFwRev'};?>">
|
|
|
+ <input type="hidden" name="TelcomModemFwRev" id="TelcomModemFwRev" value="<?php echo $obj->{'TelcomModemFwRev'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="Connector1FwRevDiv" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Connector1(<?php echo $connectorType1;?>) Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Connector1FwRev'};?>">
|
|
|
+ <input type="hidden" name="Connector1FwRev" id="Connector1FwRev" value="<?php echo $obj->{'Connector1FwRev'};?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="Connector2FwRevDiv">
|
|
|
+ <label>Connector2(<?php echo $connectorType2;?>) Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Connector2FwRev'};?>">
|
|
|
+ <input type="hidden" name="Connector2FwRev" id="Connector2FwRev" value="<?php echo $obj->{'Connector2FwRev'};?>">
|
|
|
+ </div>
|
|
|
+<?php if($connectorType3=="AC"){?>
|
|
|
+ <div class="form-group" id="Connector3FwRevDiv">
|
|
|
+ <label>Connector3(<?php echo $connectorType3;?>) Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Connector3FwRev'};?>">
|
|
|
+ <input type="hidden" name="Connector3FwRev" id="Connector3FwRev" value="<?php echo $obj->{'Connector3FwRev'};?>">
|
|
|
+ </div>
|
|
|
+<?php } ?>
|
|
|
+ <div class="form-group" style="display:<?php echo $am001;?>">
|
|
|
+ <label>Led Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'LedModuleFwRev'};?>">
|
|
|
+ <input type="hidden" name="LedModuleFwRev" id="LedModuleFwRev" value="<?php echo $obj->{'LedModuleFwRev'};?>">
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+ </article>
|
|
|
+<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB" || substr($ModelName,0,2)=="DL"){?>
|
|
|
+<?php for($idx=0;$idx<$obj->{'DispenserQuantity'};$idx++){ $idx2=$idx+1;?>
|
|
|
+ <article class="envor-sorting-item css">
|
|
|
+ <header> Dispenser <?php echo $idx2;?><i class="fa fa-plus"></i></header>
|
|
|
+ <section>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Local Status</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDLocalStatus'}[$idx];?>">
|
|
|
+ <input type="hidden" name="DDLocalStatus<?php echo $idx2;?>" id="DDLocalStatus<?php echo $idx2;?>" value="<?php echo LocalStatus($obj->{'DDLocalStatus'}[$idx]);?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label><?php echo $lang->showWord("model_name"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDModelName'}[$idx];?>">
|
|
|
+ <input type="hidden" name="DDModelName<?php echo $idx2;?>" id="DDModelName<?php echo $idx2;?>" value="<?php echo $obj->{'DDModelName'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label><?php echo $lang->showWord("serial_number"); ?></label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDSerialNumber'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label><?php echo $lang->showWord("system_ID"); ?></label>
|
|
|
+ <input type="text" name="DDSystemId<?php echo $idx2; ?>" id="DDSystemId<?php echo $idx2; ?>" class="form-control" value="<?php echo $obj->{'DDSystemId'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+ </article>
|
|
|
+ <article class="envor-sorting-item css">
|
|
|
+ <header><?php echo $lang->showWord("version_information"); ?> Dispenser <?php echo $idx+1; ?><i class="fa fa-plus"></i></header>
|
|
|
+ <section>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Csu Boot Load Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuBootLoadFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Csu Kernel Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuKernelFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Csu Root Fs Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuRootFsFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Csu Prim Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDCsuPrimFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Fan Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDFanModuleFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Relay Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDRelayModuleFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Telcom Modem Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDTelcomModemFwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Connector1(<?php echo $DDconnectorType1[$idx];?>) Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDConnector1FwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group" id="DDConnector2FwRevDiv">
|
|
|
+ <label>Connector2(<?php echo $DDconnectorType2[$idx];?>) Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDConnector2FwRev'}[$idx];?>">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>Led Module Fw Rev</label>
|
|
|
+ <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'DDLedModuleFwRev'}[$idx];?>">
|
|
|
+ </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).ready(function(){
|
|
|
+ $("#datetimepicker1").datetimepicker({
|
|
|
+ format:"YYYY-MM-DD HH:mm:ss"
|
|
|
+ });
|
|
|
+ setInterval(function(){var t = new Date(document.getElementById("SystemDateTime0").placeholder);var t_s = t.getTime();t.setTime(t_s + 1000 );document.getElementById("SystemDateTime0").placeholder= t.Format("yyyy-MM-dd hh:mm:ss");}, 1000);
|
|
|
+ if(document.getElementById("ModelName").value.substr(0,1) != "A" && document.getElementById("ModelName").value.substr(9,1) != "0"){
|
|
|
+ document.getElementById("Connector2FwRevDiv").style.display="block";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ document.getElementById("Connector2FwRevDiv").style.display="none";
|
|
|
+ }
|
|
|
+ if(document.getElementById("ModelName").value.substr(0,1) != "D" && document.getElementById("ModelName").value.substr(0,2) != "AX"){
|
|
|
+ document.getElementById("isAPPLabel").style.display="none";
|
|
|
+ document.getElementById("isQRCodeLabel").style.display="none";
|
|
|
+ document.getElementById("isRFIDLabel").style.display="none";
|
|
|
+ }
|
|
|
+ if(document.getElementById("ModelName").value.substr(8,1) != "0"){
|
|
|
+ document.getElementById("AcModelNameDiv").style.display="block";
|
|
|
+ document.getElementById("RatingCurrentLbl").innerHTML="DC Rating Current";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ document.getElementById("AcModelNameDiv").style.display="none";
|
|
|
+ }
|
|
|
+ isQRCode_clicked();
|
|
|
+ AuthorisationMode_changed();
|
|
|
+ QRCodeMadeMode_changed();
|
|
|
+ });
|
|
|
+
|
|
|
+ document.getElementById("save").onclick = function() {
|
|
|
+ if(formCheck())
|
|
|
+ {
|
|
|
+ window.location="#loadinghref";
|
|
|
+ document.getElementById("loading").style.display="block";
|
|
|
+ // 發送 Ajax 查詢請求並處理
|
|
|
+ var request = new XMLHttpRequest();
|
|
|
+ request.open("POST", "set_system_action.php");
|
|
|
+ var isRFID= (document.getElementById("isRFID").checked?1:0);
|
|
|
+ if(document.getElementById("ModelName").value.substr(12,2) == "N0" || document.getElementById("ModelName").value.substr(12,2) == "N1"){
|
|
|
+ isRFID=parseInt(document.getElementById("isRFID").checked?1:0)+parseInt(document.getElementById("isCreditCard").checked?2:0);
|
|
|
+ }
|
|
|
+ // POST 參數須使用 send() 發送
|
|
|
+ var data = "SystemId=" + document.getElementById("SystemId").value+
|
|
|
+ "&SystemDateTime=" + document.getElementById("SystemDateTime").value+
|
|
|
+ "&FactoryConfiguration=" + (document.getElementById("FactoryConfiguration").checked?1:0);
|
|
|
+ data += "&PhaseLossPolicy=" + document.getElementById("PhaseLossPolicy").value+
|
|
|
+ "&AuthorisationMode=" + document.getElementById("AuthorisationMode").value+
|
|
|
+ "&isAPP=" + (document.getElementById("isAPP").checked?1:0)+
|
|
|
+ "&isQRCode=" + (document.getElementById("isQRCode").checked?1:0)+
|
|
|
+ "&isRFID=" + isRFID+
|
|
|
+ "&isAuthrizeByEVCCID=" + (document.getElementById("isAuthrizeByEVCCID").checked?1:0)+
|
|
|
+ "&QRCodeMadeMode=" + document.getElementById("QRCodeMadeMode").value+
|
|
|
+ "&QRCodeContent=" + encodeURIComponent(document.getElementById("QRCodeContent").value)+
|
|
|
+ "&Intensity=" + document.getElementById("Intensity").value+
|
|
|
+ "&RfidCardNumEndian=" + document.getElementById("RfidCardNumEndian").value+
|
|
|
+ "&PsuAcInputType=" + document.getElementById("PsuAcInputType").value;
|
|
|
+
|
|
|
+<?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB" || substr($ModelName,0,2)=="DL"){?>
|
|
|
+<?php for($idx=0;$idx<$obj->{'DispenserQuantity'};$idx++){ $idx2=$idx+1;?>
|
|
|
+ data += "&DDSystemId<?php echo $idx2; ?>=" + document.getElementById("DDSystemId<?php echo $idx2; ?>").value;
|
|
|
+<?php }} ?>
|
|
|
+ // POST 請求必須設置表頭在 open() 下面,send() 上面
|
|
|
+ request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
|
+ request.send(data);
|
|
|
+
|
|
|
+ request.onreadystatechange = function() {
|
|
|
+ // 伺服器請求完成
|
|
|
+ if (request.readyState == 4) {
|
|
|
+ document.getElementById("loading").style.display="none";
|
|
|
+ // 伺服器回應成功
|
|
|
+ if (request.status == 200 && JSON.parse(request.responseText).result=="Success") {
|
|
|
+ alert("<?php echo $lang->showWord("done")?>");
|
|
|
+ location.href="set_system.php";
|
|
|
+ } else {
|
|
|
+ alert(JSON.parse(request.responseText).message);
|
|
|
+ }
|
|
|
+ request = null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function formCheck()
|
|
|
+ {
|
|
|
+ var SystemId = document.getElementById("SystemId").value;
|
|
|
+ var SystemDateTime = document.getElementById("SystemDateTime").value;
|
|
|
+ var result=true;
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ function AuthorisationMode_changed(){
|
|
|
+ if(document.getElementById("AuthorisationMode").value == "0"){
|
|
|
+ if(document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX"){
|
|
|
+ document.getElementById("startMode").style.display="block";
|
|
|
+ isQRCode_clicked();
|
|
|
+ }
|
|
|
+ if((document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && !document.getElementById("isQRCode").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
+ alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
+ document.getElementById("isAPP").checked=true;
|
|
|
+ document.getElementById("isQRCode").checked=true;
|
|
|
+ document.getElementById("isRFID").checked=true;
|
|
|
+ }
|
|
|
+ if((document.getElementById("ModelName").value.substr(0,1) == "D") || (document.getElementById("ModelName").value.substr(0,2) == "AX")){
|
|
|
+ document.getElementById("isAuthrizeByEVCCIDDiv").style.display="block";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ document.getElementById("isAuthrizeByEVCCIDDiv").style.display="none";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ document.getElementById("startMode").style.display="none";
|
|
|
+ document.getElementById("QRCodeMadeModeDiv").style.display="none";
|
|
|
+ document.getElementById("isAuthrizeByEVCCIDDiv").style.display="none";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function isQRCode_clicked(){
|
|
|
+ if(document.getElementById("isQRCode").checked){
|
|
|
+ document.getElementById("QRCodeMadeModeDiv").style.display="block";
|
|
|
+ QRCodeMadeMode_changed();
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ document.getElementById("QRCodeMadeModeDiv").style.display="none";
|
|
|
+ document.getElementById("QRCodeContentDiv").style.display="none";
|
|
|
+ if((document.getElementById("ModelName").value.substr(0,1) == "D" ||document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
+ alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
+ document.getElementById("isQRCode").checked=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function isAPP_clicked(){
|
|
|
+ if((document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isQRCode").checked && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
+ alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
+ document.getElementById("isAPP").checked=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function isRFID_clicked(){
|
|
|
+ if((document.getElementById("ModelName").value.substr(0,1) == "D" || document.getElementById("ModelName").value.substr(0,2) == "AX") && document.getElementById("AuthorisationMode").value == "0" && !document.getElementById("isQRCode").checked && !document.getElementById("isAPP").checked && !document.getElementById("isRFID").checked && (document.getElementById("ModelName").value.substr(12,2) != "N0" && document.getElementById("ModelName").value.substr(12,2) != "N1")){
|
|
|
+ alert("Please choose one of 'APP、QR code、RFID'");
|
|
|
+ document.getElementById("isRFID").checked=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function QRCodeMadeMode_changed(){
|
|
|
+ if(document.getElementById("QRCodeMadeMode").value == "1"){
|
|
|
+ document.getElementById("QRCodeContentDiv").style.display="block";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ document.getElementById("QRCodeContentDiv").style.display="none";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ Date.prototype.Format = function (fmt) { //author: meizz
|
|
|
+ var o = {
|
|
|
+ "M+": this.getMonth() + 1, //月份
|
|
|
+ "d+": this.getDate(), //日
|
|
|
+ "h+": this.getHours(), //小时
|
|
|
+ "m+": this.getMinutes(), //分
|
|
|
+ "s+": this.getSeconds(), //秒
|
|
|
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
|
+ "S": this.getMilliseconds() //毫秒
|
|
|
+ };
|
|
|
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
|
+ for (var k in o)
|
|
|
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
|
+ return fmt;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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>
|