|
@@ -200,7 +200,7 @@ CORE STYLES ABOVE - NO TOUCHY
|
|
|
<section>
|
|
|
<div class="form-group" style="display:<?php echo $am101;?>">
|
|
|
<label>Backend Connection Timeout</label>
|
|
|
- <input type="text" name="BackendConnTimeout" id="BackendConnTimeout" class="form-control" value="<?php echo $obj->{'BackendConnTimeout'};?>">
|
|
|
+ <input type="number" name="BackendConnTimeout" id="BackendConnTimeout" class="form-control" value="<?php echo $obj->{'BackendConnTimeout'};?>">
|
|
|
<small class="form-text text-muted-red">seconds</small>
|
|
|
</div>
|
|
|
<div class="form-group" style="display:<?php echo $am101;?>">
|
|
@@ -215,12 +215,12 @@ CORE STYLES ABOVE - NO TOUCHY
|
|
|
<div class="form-group" style="display:<?php echo $am101;?>">
|
|
|
<label>Offline Max Charge Energy</label>
|
|
|
<small class="form-text text-muted-red">kWh</small>
|
|
|
- <input type="text" name="OfflineMaxChargeEnergy" id="OfflineMaxChargeEnergy" class="form-control" value="<?php echo $obj->{'OfflineMaxChargeEnergy'};?>">
|
|
|
+ <input type="number" name="OfflineMaxChargeEnergy" id="OfflineMaxChargeEnergy" class="form-control" value="<?php echo $obj->{'OfflineMaxChargeEnergy'};?>">
|
|
|
</div>
|
|
|
<div class="form-group" style="display:<?php echo $am101;?>">
|
|
|
<label>Offline Max Charge Duration</label>
|
|
|
<small class="form-text text-muted-red">minutes</small>
|
|
|
- <input type="text" name="OfflineMaxChargeDuration" id="OfflineMaxChargeDuration" class="form-control" value="<?php echo $obj->{'OfflineMaxChargeDuration'};?>">
|
|
|
+ <input type="number" name="OfflineMaxChargeDuration" id="OfflineMaxChargeDuration" class="form-control" value="<?php echo $obj->{'OfflineMaxChargeDuration'};?>">
|
|
|
</div>
|
|
|
</section>
|
|
|
</article>
|
|
@@ -271,10 +271,16 @@ CORE STYLES ABOVE - NO TOUCHY
|
|
|
<option value="2" <?php echo $obj->{'isEnableLocalPowerSharging'}=="2"?"selected":""?>>slave</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
+ <div id="PowerSharingCapacityDiv" class="form-group" style="display:<?php echo $am101;?>">
|
|
|
+ <label>Power Sharing Capacity</label><small class="form-text text-muted-red"> W</small>
|
|
|
+ <input type="number" min="0" max="5000000" name="PowerSharingCapacity" id="PowerSharingCapacity" class="form-control" value="<?php echo $obj->{'PowerSharingCapacity'};?>">
|
|
|
+ <small class="form-text text-muted-red">'0' means follow rating power from model name</small>
|
|
|
+ </div>
|
|
|
<div id="PowerSharingServerIPDiv" class="form-group" style="display:<?php echo $am101;?>">
|
|
|
<label>Power Sharing Server Ip</label>
|
|
|
<input type="text" name="PowerSharingServerIP" id="PowerSharingServerIP" class="form-control" value="<?php echo $obj->{'PowerSharingServerIP'};?>">
|
|
|
</div>
|
|
|
+
|
|
|
<?php } ?>
|
|
|
<div class="form-group" style="display:<?php echo $am101;?>">
|
|
|
<label>Maintain Server Connection Status</label>
|
|
@@ -399,6 +405,7 @@ CORE STYLES ABOVE - NO TOUCHY
|
|
|
<?php if(substr($ModelName,0,2)=="AX"){?>
|
|
|
data += "&isEnableLocalPowerSharging=" + document.getElementById("isEnableLocalPowerSharging").value;
|
|
|
data += "&PowerSharingServerIP=" + document.getElementById("PowerSharingServerIP").value;
|
|
|
+ data += "&PowerSharingCapacity=" + document.getElementById("PowerSharingCapacity").value;
|
|
|
<?php } if(substr($ModelName,0,2)=="AX" || substr($ModelName,0,1)=="D"){?>
|
|
|
data += "&OcppReceiptrURL=" + document.getElementById("OcppReceiptrURL").value;
|
|
|
<?php } ?>
|
|
@@ -553,10 +560,19 @@ CORE STYLES ABOVE - NO TOUCHY
|
|
|
document.getElementById("chargePointVendor").removeAttribute("readOnly");
|
|
|
}*/
|
|
|
|
|
|
- if(document.getElementById("isEnableLocalPowerSharging").selectedIndex==2){
|
|
|
- document.getElementById("PowerSharingServerIPDiv").style.display="block";
|
|
|
+ if(document.getElementById("isEnableLocalPowerSharging").selectedIndex==1)
|
|
|
+ {
|
|
|
+ document.getElementById("PowerSharingCapacityDiv").style.display="block";
|
|
|
+ document.getElementById("PowerSharingServerIPDiv").style.display="none";
|
|
|
}
|
|
|
- else{
|
|
|
+ else if(document.getElementById("isEnableLocalPowerSharging").selectedIndex==2)
|
|
|
+ {
|
|
|
+ document.getElementById("PowerSharingCapacityDiv").style.display="none";
|
|
|
+ document.getElementById("PowerSharingServerIPDiv").style.display="block";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ document.getElementById("PowerSharingCapacityDiv").style.display="none";
|
|
|
document.getElementById("PowerSharingServerIPDiv").style.display="none";
|
|
|
}
|
|
|
}
|