set_charging.php 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721
  1. <?php
  2. ini_set('error_reporting', E_ALL | E_STRICT);
  3. $tag_header = 'set';
  4. include 'head.php';
  5. $obj = json_decode(trim($output[1]),true);//var_dump($obj);
  6. $system = json_decode(trim($output[0]),true);//var_dump($obj);
  7. $RatingCurrent = $system['RatingCurrent'];
  8. $AcRatingCurrent = $system['AcRatingCurrent'];
  9. $ModelName = $system['ModelName'];
  10. $RatingPower = substr($ModelName,4,2)*pow(10,-1+substr($ModelName,6,1));
  11. $Connector1=substr($ModelName,7,1);
  12. $Connector2=substr($ModelName,9,1);
  13. $Connector3=substr($ModelName,8,1);
  14. if(substr($ModelName,0,2)!="DO"){
  15. $connectorType1=ConnectorType($Connector1);
  16. $connectorType2=ConnectorType($Connector2);
  17. $connectorType3=ConnectorType($Connector3);
  18. }
  19. $idx=0;
  20. if($obj['ChargingInfo1']){
  21. switch ($obj['ChargingInfo1']['SystemStatus']){
  22. case 0:
  23. $SystemStatus1='booting';
  24. break;
  25. case 1:
  26. $SystemStatus1='idle';
  27. break;
  28. case 2:
  29. $SystemStatus1='authorizing';
  30. break;
  31. case 3:
  32. $SystemStatus1='reassign check';
  33. break;
  34. case 4:
  35. $SystemStatus1='reassign';
  36. break;
  37. case 5:
  38. $SystemStatus1='preparing';
  39. break;
  40. case 6:
  41. $SystemStatus1='preparing for EV';
  42. break;
  43. case 7:
  44. $SystemStatus1='preparing for evse';
  45. break;
  46. case 8:
  47. $SystemStatus1='charging';
  48. break;
  49. case 9:
  50. $SystemStatus1='terminating';
  51. break;
  52. case 10:
  53. $SystemStatus1='complete';
  54. break;
  55. case 11:
  56. $SystemStatus1='alarm';
  57. break;
  58. case 12:
  59. $SystemStatus1='fault';
  60. break;
  61. case 13:
  62. $SystemStatus1='reservation';
  63. break;
  64. case 14:
  65. $SystemStatus1='booking';
  66. break;
  67. case 15:
  68. $SystemStatus1='maintain';
  69. break;
  70. case 16:
  71. $SystemStatus1='debug';
  72. break;
  73. case 17:
  74. $SystemStatus1='precharge step 0';
  75. break;
  76. case 18:
  77. $SystemStatus1='precharge step 1';
  78. break;
  79. case 19:
  80. $SystemStatus1='update';
  81. break;
  82. default:
  83. $SystemStatus1='unknown';
  84. break;
  85. }
  86. }
  87. if($obj['ChargingInfo2']){
  88. switch ($obj['ChargingInfo2']['SystemStatus']){
  89. case 0:
  90. $SystemStatus2='booting';
  91. break;
  92. case 1:
  93. $SystemStatus2='idle';
  94. break;
  95. case 2:
  96. $SystemStatus2='authorizing';
  97. break;
  98. case 3:
  99. $SystemStatus2='reassign check';
  100. break;
  101. case 4:
  102. $SystemStatus2='reassign';
  103. break;
  104. case 5:
  105. $SystemStatus2='preparing';
  106. break;
  107. case 6:
  108. $SystemStatus2='preparing for EV';
  109. break;
  110. case 7:
  111. $SystemStatus2='preparing for evse';
  112. break;
  113. case 8:
  114. $SystemStatus2='charging';
  115. break;
  116. case 9:
  117. $SystemStatus2='terminating';
  118. break;
  119. case 10:
  120. $SystemStatus2='complete';
  121. break;
  122. case 11:
  123. $SystemStatus2='alarm';
  124. break;
  125. case 12:
  126. $SystemStatus2='fault';
  127. break;
  128. case 13:
  129. $SystemStatus2='reservation';
  130. break;
  131. case 14:
  132. $SystemStatus2='booking';
  133. break;
  134. case 15:
  135. $SystemStatus2='maintain';
  136. break;
  137. case 16:
  138. $SystemStatus2='debug';
  139. break;
  140. case 17:
  141. $SystemStatus2='precharge step 0';
  142. break;
  143. case 18:
  144. $SystemStatus2='precharge step 1';
  145. break;
  146. case 19:
  147. $SystemStatus2='update';
  148. break;
  149. default:
  150. $SystemStatus2='unknown';
  151. break;
  152. }
  153. }
  154. if($obj['ChargingInfo3']){
  155. switch ($obj['ChargingInfo3']['SystemStatus']){
  156. case 0:
  157. $SystemStatus3='booting';
  158. break;
  159. case 1:
  160. $SystemStatus3='idle';
  161. break;
  162. case 2:
  163. $SystemStatus3='authorizing';
  164. break;
  165. case 3:
  166. $SystemStatus3='reassign check';
  167. break;
  168. case 4:
  169. $SystemStatus3='reassign';
  170. break;
  171. case 5:
  172. $SystemStatus3='preparing';
  173. break;
  174. case 6:
  175. $SystemStatus3='preparing for EV';
  176. break;
  177. case 7:
  178. $SystemStatus3='preparing for evse';
  179. break;
  180. case 8:
  181. $SystemStatus3='charging';
  182. break;
  183. case 9:
  184. $SystemStatus3='terminating';
  185. break;
  186. case 10:
  187. $SystemStatus3='complete';
  188. break;
  189. case 11:
  190. $SystemStatus3='alarm';
  191. break;
  192. case 12:
  193. $SystemStatus3='fault';
  194. break;
  195. case 13:
  196. $SystemStatus3='reservation';
  197. break;
  198. case 14:
  199. $SystemStatus3='booking';
  200. break;
  201. case 15:
  202. $SystemStatus3='maintain';
  203. break;
  204. case 16:
  205. $SystemStatus3='debug';
  206. break;
  207. case 17:
  208. $SystemStatus3='precharge step 0';
  209. break;
  210. case 18:
  211. $SystemStatus3='precharge step 1';
  212. break;
  213. case 19:
  214. $SystemStatus3='update';
  215. break;
  216. default:
  217. $SystemStatus3='unknown';
  218. break;
  219. }
  220. }
  221. if($obj['DDChargingInfo1']){
  222. switch ($obj['DDChargingInfo1']['DDSystemStatus']){
  223. case 0:
  224. $DDSystemStatus1='booting';
  225. break;
  226. case 1:
  227. $DDSystemStatus1='idle';
  228. break;
  229. case 2:
  230. $DDSystemStatus1='authorizing';
  231. break;
  232. case 3:
  233. $DDSystemStatus1='reassign check';
  234. break;
  235. case 4:
  236. $DDSystemStatus1='reassign';
  237. break;
  238. case 5:
  239. $DDSystemStatus1='preparing';
  240. break;
  241. case 6:
  242. $DDSystemStatus1='preparing for EV';
  243. break;
  244. case 7:
  245. $DDSystemStatus1='preparing for evse';
  246. break;
  247. case 8:
  248. $DDSystemStatus1='charging';
  249. break;
  250. case 9:
  251. $DDSystemStatus1='terminating';
  252. break;
  253. case 10:
  254. $DDSystemStatus1='complete';
  255. break;
  256. case 11:
  257. $DDSystemStatus1='alarm';
  258. break;
  259. case 12:
  260. $DDSystemStatus1='fault';
  261. break;
  262. case 13:
  263. $DDSystemStatus1='reservation';
  264. break;
  265. case 14:
  266. $DDSystemStatus1='booking';
  267. break;
  268. case 15:
  269. $DDSystemStatus1='maintain';
  270. break;
  271. case 16:
  272. $DDSystemStatus1='debug';
  273. break;
  274. case 17:
  275. $DDSystemStatus1='precharge step 0';
  276. break;
  277. case 18:
  278. $DDSystemStatus1='precharge step 1';
  279. break;
  280. case 19:
  281. $DDSystemStatus1='update';
  282. break;
  283. default:
  284. $DDSystemStatus1='unknown';
  285. break;
  286. }
  287. }
  288. if($obj['DDChargingInfo2']){
  289. switch ($obj['DDChargingInfo2']['DDSystemStatus']){
  290. case 0:
  291. $DDSystemStatus2='booting';
  292. break;
  293. case 1:
  294. $DDSystemStatus2='idle';
  295. break;
  296. case 2:
  297. $DDSystemStatus2='authorizing';
  298. break;
  299. case 3:
  300. $DDSystemStatus2='reassign check';
  301. break;
  302. case 4:
  303. $DDSystemStatus2='reassign';
  304. break;
  305. case 5:
  306. $DDSystemStatus2='preparing';
  307. break;
  308. case 6:
  309. $DDSystemStatus2='preparing for EV';
  310. break;
  311. case 7:
  312. $DDSystemStatus2='preparing for evse';
  313. break;
  314. case 8:
  315. $DDSystemStatus2='charging';
  316. break;
  317. case 9:
  318. $DDSystemStatus2='terminating';
  319. break;
  320. case 10:
  321. $DDSystemStatus2='complete';
  322. break;
  323. case 11:
  324. $DDSystemStatus2='alarm';
  325. break;
  326. case 12:
  327. $DDSystemStatus2='fault';
  328. break;
  329. case 13:
  330. $DDSystemStatus2='reservation';
  331. break;
  332. case 14:
  333. $DDSystemStatus2='booking';
  334. break;
  335. case 15:
  336. $DDSystemStatus2='maintain';
  337. break;
  338. case 16:
  339. $DDSystemStatus2='debug';
  340. break;
  341. case 17:
  342. $DDSystemStatus2='precharge step 0';
  343. break;
  344. case 18:
  345. $DDSystemStatus2='precharge step 1';
  346. break;
  347. case 19:
  348. $DDSystemStatus2='update';
  349. break;
  350. default:
  351. $DDSystemStatus2='unknown';
  352. break;
  353. }
  354. }
  355. if($obj['DDChargingInfo3']){
  356. switch ($obj['DDChargingInfo3']['DDSystemStatus']){
  357. case 0:
  358. $DDSystemStatus3='booting';
  359. break;
  360. case 1:
  361. $DDSystemStatus3='idle';
  362. break;
  363. case 2:
  364. $DDSystemStatus3='authorizing';
  365. break;
  366. case 3:
  367. $DDSystemStatus3='reassign check';
  368. break;
  369. case 4:
  370. $DDSystemStatus3='reassign';
  371. break;
  372. case 5:
  373. $DDSystemStatus3='preparing';
  374. break;
  375. case 6:
  376. $DDSystemStatus3='preparing for EV';
  377. break;
  378. case 7:
  379. $DDSystemStatus3='preparing for evse';
  380. break;
  381. case 8:
  382. $DDSystemStatus3='charging';
  383. break;
  384. case 9:
  385. $DDSystemStatus3='terminating';
  386. break;
  387. case 10:
  388. $DDSystemStatus3='complete';
  389. break;
  390. case 11:
  391. $DDSystemStatus3='alarm';
  392. break;
  393. case 12:
  394. $DDSystemStatus3='fault';
  395. break;
  396. case 13:
  397. $DDSystemStatus3='reservation';
  398. break;
  399. case 14:
  400. $DDSystemStatus3='booking';
  401. break;
  402. case 15:
  403. $DDSystemStatus3='maintain';
  404. break;
  405. case 16:
  406. $DDSystemStatus3='debug';
  407. break;
  408. case 17:
  409. $DDSystemStatus3='precharge step 0';
  410. break;
  411. case 18:
  412. $DDSystemStatus3='precharge step 1';
  413. break;
  414. case 19:
  415. $DDSystemStatus3='update';
  416. break;
  417. default:
  418. $DDSystemStatus3='unknown';
  419. break;
  420. }
  421. }
  422. if($obj['DDChargingInfo4']){
  423. switch ($obj['DDChargingInfo4']['DDSystemStatus']){
  424. case 0:
  425. $DDSystemStatus4='booting';
  426. break;
  427. case 1:
  428. $DDSystemStatus4='idle';
  429. break;
  430. case 2:
  431. $DDSystemStatus4='authorizing';
  432. break;
  433. case 3:
  434. $DDSystemStatus4='reassign check';
  435. break;
  436. case 4:
  437. $DDSystemStatus4='reassign';
  438. break;
  439. case 5:
  440. $DDSystemStatus4='preparing';
  441. break;
  442. case 6:
  443. $DDSystemStatus4='preparing for EV';
  444. break;
  445. case 7:
  446. $DDSystemStatus4='preparing for evse';
  447. break;
  448. case 8:
  449. $DDSystemStatus4='charging';
  450. break;
  451. case 9:
  452. $DDSystemStatus4='terminating';
  453. break;
  454. case 10:
  455. $DDSystemStatus4='complete';
  456. break;
  457. case 11:
  458. $DDSystemStatus4='alarm';
  459. break;
  460. case 12:
  461. $DDSystemStatus4='fault';
  462. break;
  463. case 13:
  464. $DDSystemStatus4='reservation';
  465. break;
  466. case 14:
  467. $DDSystemStatus4='booking';
  468. break;
  469. case 15:
  470. $DDSystemStatus4='maintain';
  471. break;
  472. case 16:
  473. $DDSystemStatus4='debug';
  474. break;
  475. case 17:
  476. $DDSystemStatus4='precharge step 0';
  477. break;
  478. case 18:
  479. $DDSystemStatus4='precharge step 1';
  480. break;
  481. case 19:
  482. $DDSystemStatus4='update';
  483. break;
  484. default:
  485. $DDSystemStatus4='unknown';
  486. break;
  487. }
  488. }
  489. function ConnectorType($connector){
  490. $result="";
  491. if($connector == "0"){
  492. $result= "";
  493. }
  494. else if($connector == "U" || $connector == "E"){
  495. $result= "CCS";
  496. }
  497. else if($connector == "G" || $connector == "D"){
  498. $result= "GB";
  499. }
  500. else if($connector == "J"){
  501. $result= "CHAdeMO";
  502. }
  503. else if($connector == "1" || $connector == "2" || $connector == "3" || $connector == "4" || $connector == "5" || $connector == "6"){
  504. $result= "AC";
  505. }
  506. else{
  507. $result= "";
  508. }
  509. return $result;
  510. }
  511. ?>
  512. <style>
  513. img {
  514. display: block;
  515. margin-left: auto;
  516. margin-right: auto;
  517. }
  518. </style>
  519. <div class="envor-content">
  520. <!--
  521. Page Title start
  522. //-->
  523. <section class="envor-page-title-1" data-stellar-background-ratio="0.5">
  524. <div class="container">
  525. <div class="row">
  526. <div class="col-lg-9 col-md-9 col-sm-9">
  527. <h1><?php echo $lang->showWord("charging"); ?></h1>
  528. </div>
  529. </div>
  530. </div>
  531. <!--
  532. Page Title end
  533. //-->
  534. </section>
  535. <!--
  536. Main Content start
  537. //-->
  538. <a id="loadinghref"><div id="loading" style="display:none;"><input type="hidden" name="ModelName" id="ModelName" value="<?php echo $ModelName;?>"><img src="img/giphy.gif"/></div></a>
  539. <section class="envor-section">
  540. <div class="container">
  541. <div class="row">
  542. <div class="col-lg-12">
  543. <div class="envor-sorting" id="faq-sorting">
  544. <div class="envor-toggle">
  545. <!--Charging relevant parameters-->
  546. <article class="envor-sorting-item css">
  547. <header><?php echo $lang->showWord("charging_relevant_parameters"); ?><i class="fa fa-plus"></i></header>
  548. <section>
  549. <div class="form-group" style="display:<?php echo $am111;?>">
  550. <label id="MaxChargingEnergyLbl">Max Charging Energy</label>
  551. <small class="form-text text-muted-red">kWh</small>
  552. <input type="text" name="MaxChargingEnergy" id="MaxChargingEnergy" class="form-control" value="<?php echo $obj['MaxChargingEnergy'];?>" placeholder="<?php echo ($obj['MaxChargingEnergy']==0||$obj['MaxChargingEnergy']=="")?"'0' means unlimit":"";?>" title="'0' means unlimit">
  553. <small class="form-text text-muted-red"><label id="MaxChargingEnergyText" style="display:none;">'0' means unlimit</label></small>
  554. </div>
  555. <div class="form-group" style="display:<?php echo $am001;?>">
  556. <label id="MaxChargingPowerLbl">Max Charging Power</label>
  557. <small class="form-text text-muted-red">kW</small>
  558. <input type="text" name="MaxChargingPower" id="MaxChargingPower" class="form-control" value="<?php echo $obj['MaxChargingPower'];?>" placeholder="<?php echo ($obj['MaxChargingPower']==0||$obj['MaxChargingPower']=="")?"'0' means unlimit":"";?>" title="'0' means unlimit">
  559. <input type="hidden" name="RatingPower" id="RatingPower" value="<?php echo $RatingPower;?>">
  560. <small class="form-text text-muted-red"><label id="MaxChargingPowerText" style="display:none;">'0' means unlimit</label></small>
  561. </div>
  562. <div class="form-group" style="display:<?php echo $am111;?>">
  563. <label id="MaxChargingCurrentLbl">Max Charging Current</label>
  564. <small class="form-text text-muted-red">amp</small>
  565. <input type="text" name="MaxChargingCurrent" id="MaxChargingCurrent" class="form-control" value="<?php echo $obj['MaxChargingCurrent'];?>" placeholder="<?php echo ($obj['MaxChargingCurrent']==0||$obj['MaxChargingCurrent']=="")?"'0' means unlimit":"";?>" title="'0' means unlimit">
  566. <input type="hidden" name="RatingCurrent" id="RatingCurrent" value="<?php echo $RatingCurrent;?>">
  567. <small class="form-text text-muted-red"><label id="MaxChargingCurrentText" style="display:none;">'0' means unlimit</label></small>
  568. </div>
  569. <div class="form-group" style="display:<?php echo $am111;?>">
  570. <label id="MaxChargingDurationLbl">Max Charging Duration</label>
  571. <small class="form-text text-muted-red">minutes</small>
  572. <input type="text" name="MaxChargingDuration" id="MaxChargingDuration" class="form-control" value="<?php echo $obj['MaxChargingDuration'];?>" placeholder="<?php echo ($obj['MaxChargingDuration']==0||$obj['MaxChargingDuration']=="")?"'0' means unlimit":"";?>" title="'0' means unlimit">
  573. <small class="form-text text-muted-red"><label id="MaxChargingDurationText" style="display:none;">'0' means unlimit</label></small>
  574. </div>
  575. <div class="form-group" id="AcMaxChargingCurrentDiv">
  576. <label>AC Max Charging Current</label>
  577. <small class="form-text text-muted-red">amp</small>
  578. <input type="text" name="AcMaxChargingCurrent" id="AcMaxChargingCurrent" class="form-control" value="<?php echo $obj['AcMaxChargingCurrent'];?>" placeholder="<?php echo ($obj['AcMaxChargingCurrent']==0||$obj['AcMaxChargingCurrent']=="")?"'0' means unlimit":"";?>" title="'0' means unlimit">
  579. <input type="hidden" name="AcRatingCurrent" id="AcRatingCurrent" value="<?php echo $AcRatingCurrent;?>">
  580. <small class="form-text text-muted-red"><label id="AcMaxChargingCurrentText" style="display:none;">'0' means unlimit</label></small>
  581. </div>
  582. <div class="form-group" style="display:<?php echo $am111;?>">
  583. <label>Local White Card0</label>
  584. <input type="text" name="LocalWhiteCard0" id="LocalWhiteCard0" class="form-control" value="<?php echo $obj['LocalWhiteCard'][0];?>">
  585. </div>
  586. <div class="form-group" style="display:<?php echo $am111;?>">
  587. <label>Local White Card1</label>
  588. <input type="text" name="LocalWhiteCard1" id="LocalWhiteCard1" class="form-control" value="<?php echo $obj['LocalWhiteCard'][1];?>">
  589. </div>
  590. <div class="form-group" style="display:<?php echo $am111;?>">
  591. <label>Local White Card2</label>
  592. <input type="text" name="LocalWhiteCard2" id="LocalWhiteCard2" class="form-control" value="<?php echo $obj['LocalWhiteCard'][2];?>">
  593. </div>
  594. <div class="form-group" style="display:<?php echo $am111;?>">
  595. <label>Local White Card3</label>
  596. <input type="text" name="LocalWhiteCard3" id="LocalWhiteCard3" class="form-control" value="<?php echo $obj['LocalWhiteCard'][3];?>">
  597. </div>
  598. <div class="form-group" style="display:<?php echo $am111;?>">
  599. <label>Local White Card4</label>
  600. <input type="text" name="LocalWhiteCard4" id="LocalWhiteCard4" class="form-control" value="<?php echo $obj['LocalWhiteCard'][4];?>">
  601. </div>
  602. <div class="form-group" style="display:<?php echo $am111;?>">
  603. <label>Local White Card5</label>
  604. <input type="text" name="LocalWhiteCard5" id="LocalWhiteCard5" class="form-control" value="<?php echo $obj['LocalWhiteCard'][5];?>">
  605. </div>
  606. <div class="form-group" style="display:<?php echo $am111;?>">
  607. <label>Local White Card6</label>
  608. <input type="text" name="LocalWhiteCard6" id="LocalWhiteCard6" class="form-control" value="<?php echo $obj['LocalWhiteCard'][6];?>">
  609. </div>
  610. <div class="form-group" style="display:<?php echo $am111;?>">
  611. <label>Local White Card7</label>
  612. <input type="text" name="LocalWhiteCard7" id="LocalWhiteCard7" class="form-control" value="<?php echo $obj['LocalWhiteCard'][7];?>">
  613. </div>
  614. <div class="form-group" style="display:<?php echo $am111;?>">
  615. <label>Local White Card8</label>
  616. <input type="text" name="LocalWhiteCard8" id="LocalWhiteCard8" class="form-control" value="<?php echo $obj['LocalWhiteCard'][8];?>">
  617. </div>
  618. <div class="form-group" style="display:<?php echo $am111;?>">
  619. <label>Local White Card9</label>
  620. <input type="text" name="LocalWhiteCard9" id="LocalWhiteCard9" class="form-control" value="<?php echo $obj['LocalWhiteCard'][9];?>">
  621. </div>
  622. <div class="form-group" id="isBillingDiv">
  623. <label>
  624. <input type="checkbox" id="isBilling" name="isBilling" <?php echo $obj['isBilling']==1?"checked":"";?> onclick="isBilling_clicked()">
  625. Billing</label>
  626. </div>
  627. <div class="form-group" id="CurrencyDiv">
  628. <label>Currency</label>
  629. <select class="form-control" id="Currency" name="Currency">
  630. <option value="0" <?php echo $obj['Currency']=="0"?"selected":""?>>AED - Emirati Dirham</option>
  631. <option value="1" <?php echo $obj['Currency']=="1"?"selected":""?>>ARS - Argentine Peso</option>
  632. <option value="2" <?php echo $obj['Currency']=="2"?"selected":""?>>AUD - Australian Dollar</option>
  633. <option value="3" <?php echo $obj['Currency']=="3"?"selected":""?>>BGN - Bulgarian Lev</option>
  634. <option value="4" <?php echo $obj['Currency']=="4"?"selected":""?>>BHD - Bahraini Dinar</option>
  635. <option value="5" <?php echo $obj['Currency']=="5"?"selected":""?>>BND - Bruneian Dollar</option>
  636. <option value="6" <?php echo $obj['Currency']=="6"?"selected":""?>>BRL - Brazilian Real</option>
  637. <option value="7" <?php echo $obj['Currency']=="7"?"selected":""?>>BWP - Botswana Pula</option>
  638. <option value="8" <?php echo $obj['Currency']=="8"?"selected":""?>>CAD - Canadian Dollar</option>
  639. <option value="9" <?php echo $obj['Currency']=="9"?"selected":""?>>CHF - Swiss Franc</option>
  640. <option value="10" <?php echo $obj['Currency']=="10"?"selected":""?>>CLP - Chilean Peso</option>
  641. <option value="11" <?php echo $obj['Currency']=="11"?"selected":""?>>CNY - Chinese Yuan Renminbi</option>
  642. <option value="12" <?php echo $obj['Currency']=="12"?"selected":""?>>COP - Colombian Peso</option>
  643. <option value="13" <?php echo $obj['Currency']=="13"?"selected":""?>>CZK - Czech Koruna</option>
  644. <option value="14" <?php echo $obj['Currency']=="14"?"selected":""?>>DKK - Danish Krone</option>
  645. <option value="15" <?php echo $obj['Currency']=="15"?"selected":""?>>EUR - Euro</option>
  646. <option value="16" <?php echo $obj['Currency']=="16"?"selected":""?>>GBP - British Pound</option>
  647. <option value="17" <?php echo $obj['Currency']=="17"?"selected":""?>>HKD - Hong Kong Dollar</option>
  648. <option value="18" <?php echo $obj['Currency']=="18"?"selected":""?>>HRK - Croatian Kuna</option>
  649. <option value="19" <?php echo $obj['Currency']=="19"?"selected":""?>>HUF - Hungarian Forint</option>
  650. <option value="20" <?php echo $obj['Currency']=="20"?"selected":""?>>IDR - Indonesian Rupiah</option>
  651. <option value="21" <?php echo $obj['Currency']=="21"?"selected":""?>>ILS - Israeli Shekel</option>
  652. <option value="22" <?php echo $obj['Currency']=="22"?"selected":""?>>INR - Indian Rupee</option>
  653. <option value="23" <?php echo $obj['Currency']=="23"?"selected":""?>>IRR - Iranian Rial</option>
  654. <option value="24" <?php echo $obj['Currency']=="24"?"selected":""?>>ISK - Icelandic Krona</option>
  655. <option value="25" <?php echo $obj['Currency']=="25"?"selected":""?>>JPY - Japanese Yen</option>
  656. <option value="26" <?php echo $obj['Currency']=="26"?"selected":""?>>KRW - South Korean Won</option>
  657. <option value="27" <?php echo $obj['Currency']=="27"?"selected":""?>>KWD - Kuwaiti Dinar</option>
  658. <option value="28" <?php echo $obj['Currency']=="28"?"selected":""?>>KZT - Kazakhstani Tenge</option>
  659. <option value="29" <?php echo $obj['Currency']=="29"?"selected":""?>>LKR - Sri Lankan Rupee</option>
  660. <option value="30" <?php echo $obj['Currency']=="30"?"selected":""?>>LYD - Libyan Dinar</option>
  661. <option value="31" <?php echo $obj['Currency']=="31"?"selected":""?>>MUR - Mauritian Rupee</option>
  662. <option value="32" <?php echo $obj['Currency']=="32"?"selected":""?>>MXN - Mexican Peso</option>
  663. <option value="33" <?php echo $obj['Currency']=="33"?"selected":""?>>MYR - Malaysian Ringgit</option>
  664. <option value="34" <?php echo $obj['Currency']=="34"?"selected":""?>>NOK - Norwegian Krone</option>
  665. <option value="35" <?php echo $obj['Currency']=="35"?"selected":""?>>NPR - Nepalese Rupee</option>
  666. <option value="36" <?php echo $obj['Currency']=="36"?"selected":""?>>NZD - New Zealand Dollar</option>
  667. <option value="37" <?php echo $obj['Currency']=="37"?"selected":""?>>OMR - Omani Rial</option>
  668. <option value="38" <?php echo $obj['Currency']=="38"?"selected":""?>>PHP - Philippine Peso</option>
  669. <option value="39" <?php echo $obj['Currency']=="39"?"selected":""?>>PKR - Pakistani Rupee</option>
  670. <option value="40" <?php echo $obj['Currency']=="40"?"selected":""?>>PLN - Polish Zloty</option>
  671. <option value="41" <?php echo $obj['Currency']=="41"?"selected":""?>>QAR - Qatari Riyal</option>
  672. <option value="42" <?php echo $obj['Currency']=="42"?"selected":""?>>RON - Romanian New Leu</option>
  673. <option value="43" <?php echo $obj['Currency']=="43"?"selected":""?>>RUB - Russian Ruble</option>
  674. <option value="44" <?php echo $obj['Currency']=="44"?"selected":""?>>SAR - Saudi Arabian Riyal</option>
  675. <option value="45" <?php echo $obj['Currency']=="45"?"selected":""?>>SEK - Swedish Krona</option>
  676. <option value="46" <?php echo $obj['Currency']=="46"?"selected":""?>>SGD - Singapore Dollar</option>
  677. <option value="47" <?php echo $obj['Currency']=="47"?"selected":""?>>THB - Thai Baht</option>
  678. <option value="48" <?php echo $obj['Currency']=="48"?"selected":""?>>TRY - Turkish Lira</option>
  679. <option value="49" <?php echo $obj['Currency']=="49"?"selected":""?>>TTD - Trinidadian Dollar</option>
  680. <option value="50" <?php echo $obj['Currency']=="50"?"selected":""?>>TWD - Taiwan New Dollar</option>
  681. <option value="51" <?php echo $obj['Currency']=="51"?"selected":""?>>USD - US Dollar</option>
  682. <option value="52" <?php echo $obj['Currency']=="52"?"selected":""?>>VEF - Venezuelan Bolivar</option>
  683. <option value="53" <?php echo $obj['Currency']=="53"?"selected":""?>>ZAR - South African Rand</option>
  684. </select>
  685. </div>
  686. <div class="form-group" id="FeeDiv">
  687. <div class="form-group">
  688. <label>Fee 00:00~00:59</label>
  689. <input type="text" name="Fee0" id="Fee0" class="form-control" value="<?php echo round($obj['Fee'][0],2);?>">
  690. </div>
  691. <div class="form-group">
  692. <label>Fee 01:00~01:59</label>
  693. <input type="text" name="Fee0" id="Fee1" class="form-control" value="<?php echo round($obj['Fee'][1],2);?>">
  694. </div>
  695. <div class="form-group">
  696. <label>Fee 02:00~02:59</label>
  697. <input type="text" name="Fee2" id="Fee2" class="form-control" value="<?php echo round($obj['Fee'][2],2);?>">
  698. </div>
  699. <div class="form-group">
  700. <label>Fee 03:00~03:59</label>
  701. <input type="text" name="Fee3" id="Fee3" class="form-control" value="<?php echo round($obj['Fee'][3],2);?>">
  702. </div>
  703. <div class="form-group">
  704. <label>Fee 04:00~04:59</label>
  705. <input type="text" name="Fee4" id="Fee4" class="form-control" value="<?php echo round($obj['Fee'][4],2);?>">
  706. </div>
  707. <div class="form-group">
  708. <label>Fee 05:00~05:59</label>
  709. <input type="text" name="Fee5" id="Fee5" class="form-control" value="<?php echo round($obj['Fee'][5],2);?>">
  710. </div>
  711. <div class="form-group">
  712. <label>Fee 06:00~06:59</label>
  713. <input type="text" name="Fee6" id="Fee6" class="form-control" value="<?php echo round($obj['Fee'][6],2);?>">
  714. </div>
  715. <div class="form-group">
  716. <label>Fee 07:00~07:59</label>
  717. <input type="text" name="Fee7" id="Fee7" class="form-control" value="<?php echo round($obj['Fee'][7],2);?>">
  718. </div>
  719. <div class="form-group">
  720. <label>Fee 08:00~08:59</label>
  721. <input type="text" name="Fee8" id="Fee8" class="form-control" value="<?php echo round($obj['Fee'][8],2);?>">
  722. </div>
  723. <div class="form-group">
  724. <label>Fee 09:00~09:59</label>
  725. <input type="text" name="Fee9" id="Fee9" class="form-control" value="<?php echo round($obj['Fee'][9],2);?>">
  726. </div>
  727. <div class="form-group">
  728. <label>Fee 10:00~10:59</label>
  729. <input type="text" name="Fee10" id="Fee10" class="form-control" value="<?php echo round($obj['Fee'][10],2);?>">
  730. </div>
  731. <div class="form-group">
  732. <label>Fee 11:00~11:59</label>
  733. <input type="text" name="Fee11" id="Fee11" class="form-control" value="<?php echo round($obj['Fee'][11],2);?>">
  734. </div>
  735. <div class="form-group">
  736. <label>Fee 12:00~12:59</label>
  737. <input type="text" name="Fee12" id="Fee12" class="form-control" value="<?php echo round($obj['Fee'][12],2);?>">
  738. </div>
  739. <div class="form-group">
  740. <label>Fee 13:00~13:59</label>
  741. <input type="text" name="Fee13" id="Fee13" class="form-control" value="<?php echo round($obj['Fee'][13],2);?>">
  742. </div>
  743. <div class="form-group">
  744. <label>Fee 14:00~14:59</label>
  745. <input type="text" name="Fee14" id="Fee14" class="form-control" value="<?php echo round($obj['Fee'][14],2);?>">
  746. </div>
  747. <div class="form-group">
  748. <label>Fee 15:00~15:59</label>
  749. <input type="text" name="Fee15" id="Fee15" class="form-control" value="<?php echo round($obj['Fee'][15],2);?>">
  750. </div>
  751. <div class="form-group">
  752. <label>Fee 16:00~16:59</label>
  753. <input type="text" name="Fee16" id="Fee16" class="form-control" value="<?php echo round($obj['Fee'][16],2);?>">
  754. </div>
  755. <div class="form-group">
  756. <label>Fee 17:00~17:59</label>
  757. <input type="text" name="Fee17" id="Fee17" class="form-control" value="<?php echo round($obj['Fee'][17],2);?>">
  758. </div>
  759. <div class="form-group">
  760. <label>Fee 18:00~18:59</label>
  761. <input type="text" name="Fee18" id="Fee18" class="form-control" value="<?php echo round($obj['Fee'][18],2);?>">
  762. </div>
  763. <div class="form-group">
  764. <label>Fee 19:00~19:59</label>
  765. <input type="text" name="Fee19" id="Fee19" class="form-control" value="<?php echo round($obj['Fee'][19],2);?>">
  766. </div>
  767. <div class="form-group">
  768. <label>Fee 20:00~20:59</label>
  769. <input type="text" name="Fee20" id="Fee20" class="form-control" value="<?php echo round($obj['Fee'][20],2);?>">
  770. </div>
  771. <div class="form-group">
  772. <label>Fee 21:00~21:59</label>
  773. <input type="text" name="Fee21" id="Fee21" class="form-control" value="<?php echo round($obj['Fee'][21],2);?>">
  774. </div>
  775. <div class="form-group">
  776. <label>Fee 22:00~22:59</label>
  777. <input type="text" name="Fee22" id="Fee22" class="form-control" value="<?php echo round($obj['Fee'][22],2);?>">
  778. </div>
  779. <div class="form-group">
  780. <label>Fee 23:00~23:59</label>
  781. <input type="text" name="Fee23" id="Fee23" class="form-control" value="<?php echo round($obj['Fee'][23],2);?>">
  782. </div>
  783. </div>
  784. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  785. <label>CcsAuthentication</label>
  786. <select class="form-control" id="CcsAuthentication" name="CcsAuthentication">
  787. <option value="0" <?php echo $obj['CcsAuthentication']==0?"selected":""?>>EIM</option>
  788. <option value="1" <?php echo $obj['CcsAuthentication']==1?"selected":""?>>EIM&PnC mixed</option>
  789. </select>
  790. </div>
  791. <div class="form-group" style="display:<?php echo $am111;?>">
  792. <label>AcCcsChargingModel</label>
  793. <select class="form-control" id="AcCcsChargingModel" name="AcCcsChargingModel">
  794. <option value="0" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC (PWM) only</option>
  795. <option value="1" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC&PLC mixed</option>
  796. </select>
  797. </div>*/?>
  798. </section>
  799. </article>
  800. <?php if(substr($ModelName,0,2)=="DO"){?>
  801. <?php if($obj['DDChargingInfo1']){ $idx++;?>
  802. <!--Charging Information-->
  803. <article class="envor-sorting-item css">
  804. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  805. <section>
  806. <div class="form-group" style="display:<?php echo $am111;?>">
  807. <label>User Id</label>
  808. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo1']['StartUserId'];?>">
  809. </div>
  810. <div class="form-group" style="display:<?php echo $am111;?>">
  811. <label>Start Date Time</label>
  812. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StartDateTime'];?>">
  813. </div>
  814. <div class="form-group" style="display:<?php echo $am111;?>">
  815. <label>Stop Date Time</label>
  816. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StopDateTime'];?>">
  817. </div>
  818. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  819. <label>StartMethod</label>
  820. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StartMethod'];?>">
  821. </div>*/?>
  822. <div class="form-group" style="display:<?php echo $am111;?>">
  823. <label>System Status</label>
  824. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus1;?>">
  825. </div>
  826. <div class="form-group" style="display:<?php echo $am111;?>">
  827. <label>Connector Temperature</label>
  828. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['ConnectorTemp'];?> ℃">
  829. </div>
  830. <div class="form-group" style="display:<?php echo $am001;?>">
  831. <label>Present Charging Voltage</label>
  832. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingVoltage'],2);?> volt">
  833. </div>
  834. <div class="form-group" style="display:<?php echo $am111;?>">
  835. <label>Present Charging Current</label>
  836. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingCurrent'],2);?> amp">
  837. </div>
  838. <div class="form-group" style="display:<?php echo $am111;?>">
  839. <label>Present Charging Power</label>
  840. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingPower'],2);?> kW">
  841. </div>
  842. <div class="form-group" style="display:<?php echo $am111;?>">
  843. <label>Present Charging Energy</label>
  844. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargedEnergy'],2);?> kWh">
  845. </div>
  846. <div class="form-group" style="display:<?php echo $am111;?>">
  847. <label>Present Charging Duration</label>
  848. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['PresentChargedDuration'];?> seconds">
  849. </div>
  850. <div class="form-group" style="display:<?php echo $am001;?>">
  851. <label>Remain Charging Time</label>
  852. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['RemainChargingDuration'];?> seconds">
  853. </div>
  854. <div class="form-group" style="display:<?php echo $am001;?>">
  855. <label>EV Battery Max Voltage</label>
  856. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['EvBatteryMaxVoltage'],2);?> volt">
  857. </div>
  858. <div class="form-group" style="display:<?php echo $am001;?>">
  859. <label>EV Battery Target Voltage</label>
  860. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['EvBatterytargetVoltage'],2);?> volt">
  861. </div>
  862. <div class="form-group" style="display:<?php echo $am001;?>">
  863. <label>EV Battery Soc</label>
  864. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['EvBatterySoc'];?>">
  865. </div>
  866. </section>
  867. </article>
  868. <?php }?>
  869. <?php if($obj['DDChargingInfo2']){ $idx++;?>
  870. <!--Charging Information-->
  871. <article class="envor-sorting-item css">
  872. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  873. <section>
  874. <div class="form-group" style="display:<?php echo $am111;?>">
  875. <label>User Id</label>
  876. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo2']['StartUserId'];?>">
  877. </div>
  878. <div class="form-group" style="display:<?php echo $am111;?>">
  879. <label>Start Date Time</label>
  880. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StartDateTime'];?>">
  881. </div>
  882. <div class="form-group" style="display:<?php echo $am111;?>">
  883. <label>Stop Date Time</label>
  884. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StopDateTime'];?>">
  885. </div>
  886. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  887. <label>StartMethod</label>
  888. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StartMethod'];?>">
  889. </div>*/?>
  890. <div class="form-group" style="display:<?php echo $am111;?>">
  891. <label>System Status</label>
  892. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus2;?>">
  893. </div>
  894. <div class="form-group" style="display:<?php echo $am111;?>">
  895. <label>Connector Temperature</label>
  896. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['ConnectorTemp'];?> ℃">
  897. </div>
  898. <div class="form-group" style="display:<?php echo $am001;?>">
  899. <label>Present Charging Voltage</label>
  900. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingVoltage'],2);?> volt">
  901. </div>
  902. <div class="form-group" style="display:<?php echo $am111;?>">
  903. <label>Present Charging Current</label>
  904. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingCurrent'],2);?> amp">
  905. </div>
  906. <div class="form-group" style="display:<?php echo $am111;?>">
  907. <label>Present Charging Power</label>
  908. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingPower'],2);?> kW">
  909. </div>
  910. <div class="form-group" style="display:<?php echo $am111;?>">
  911. <label>Present Charging Energy</label>
  912. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargedEnergy'],2);?> kWh">
  913. </div>
  914. <div class="form-group" style="display:<?php echo $am111;?>">
  915. <label>Present Charging Duration</label>
  916. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['PresentChargedDuration'];?> seconds">
  917. </div>
  918. <div class="form-group" style="display:<?php echo $am001;?>">
  919. <label>Remain Charging Time</label>
  920. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['RemainChargingDuration'];?> seconds">
  921. </div>
  922. <div class="form-group" style="display:<?php echo $am001;?>">
  923. <label>EV Battery Max Voltage</label>
  924. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['EvBatteryMaxVoltage'],2);?> volt">
  925. </div>
  926. <div class="form-group" style="display:<?php echo $am001;?>">
  927. <label>EV Battery Target Voltage</label>
  928. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['EvBatterytargetVoltage'],2);?> volt">
  929. </div>
  930. <div class="form-group" style="display:<?php echo $am001;?>">
  931. <label>EV Battery Soc</label>
  932. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['EvBatterySoc'];?>">
  933. </div>
  934. </section>
  935. </article>
  936. <?php }?>
  937. <?php if($obj['DDChargingInfo3']){ $idx++;?>
  938. <!--Charging Information-->
  939. <article class="envor-sorting-item css">
  940. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  941. <section>
  942. <div class="form-group" style="display:<?php echo $am111;?>">
  943. <label>User Id</label>
  944. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo3']['StartUserId'];?>">
  945. </div>
  946. <div class="form-group" style="display:<?php echo $am111;?>">
  947. <label>Start Date Time</label>
  948. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StartDateTime'];?>">
  949. </div>
  950. <div class="form-group" style="display:<?php echo $am111;?>">
  951. <label>Stop Date Time</label>
  952. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StopDateTime'];?>">
  953. </div>
  954. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  955. <label>StartMethod</label>
  956. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StartMethod'];?>">
  957. </div>*/?>
  958. <div class="form-group" style="display:<?php echo $am111;?>">
  959. <label>System Status</label>
  960. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus3;?>">
  961. </div>
  962. <div class="form-group" style="display:<?php echo $am111;?>">
  963. <label>Connector Temperature</label>
  964. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['ConnectorTemp'];?> ℃">
  965. </div>
  966. <div class="form-group" style="display:<?php echo $am001;?>">
  967. <label>Present Charging Voltage</label>
  968. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingVoltage'],2);?> volt">
  969. </div>
  970. <div class="form-group" style="display:<?php echo $am111;?>">
  971. <label>Present Charging Current</label>
  972. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingCurrent'],2);?> amp">
  973. </div>
  974. <div class="form-group" style="display:<?php echo $am111;?>">
  975. <label>Present Charging Power</label>
  976. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingPower'],2);?> kW">
  977. </div>
  978. <div class="form-group" style="display:<?php echo $am111;?>">
  979. <label>Present Charging Energy</label>
  980. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargedEnergy'],2);?> kWh">
  981. </div>
  982. <div class="form-group" style="display:<?php echo $am111;?>">
  983. <label>Present Charging Duration</label>
  984. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['PresentChargedDuration'];?> seconds">
  985. </div>
  986. <div class="form-group" style="display:<?php echo $am001;?>">
  987. <label>Remain Charging Time</label>
  988. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['RemainChargingDuration'];?> seconds">
  989. </div>
  990. <div class="form-group" style="display:<?php echo $am001;?>">
  991. <label>EV Battery Max Voltage</label>
  992. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['EvBatteryMaxVoltage'],2);?> volt">
  993. </div>
  994. <div class="form-group" style="display:<?php echo $am001;?>">
  995. <label>EV Battery Target Voltage</label>
  996. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['EvBatterytargetVoltage'],2);?> volt">
  997. </div>
  998. <div class="form-group" style="display:<?php echo $am001;?>">
  999. <label>EV Battery Soc</label>
  1000. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['EvBatterySoc'];?>">
  1001. </div>
  1002. </section>
  1003. </article>
  1004. <?php }?>
  1005. <?php if($obj['DDChargingInfo4']){ $idx++;?>
  1006. <!--Charging Information-->
  1007. <article class="envor-sorting-item css">
  1008. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  1009. <section>
  1010. <div class="form-group" style="display:<?php echo $am111;?>">
  1011. <label>User Id</label>
  1012. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo4']['StartUserId'];?>">
  1013. </div>
  1014. <div class="form-group" style="display:<?php echo $am111;?>">
  1015. <label>Start Date Time</label>
  1016. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StartDateTime'];?>">
  1017. </div>
  1018. <div class="form-group" style="display:<?php echo $am111;?>">
  1019. <label>Stop Date Time</label>
  1020. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StopDateTime'];?>">
  1021. </div>
  1022. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1023. <label>StartMethod</label>
  1024. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StartMethod'];?>">
  1025. </div>*/?>
  1026. <div class="form-group" style="display:<?php echo $am111;?>">
  1027. <label>System Status</label>
  1028. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus4;?>">
  1029. </div>
  1030. <div class="form-group" style="display:<?php echo $am111;?>">
  1031. <label>Connector Temperature</label>
  1032. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['ConnectorTemp'];?> ℃">
  1033. </div>
  1034. <div class="form-group" style="display:<?php echo $am001;?>">
  1035. <label>Present Charging Voltage</label>
  1036. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingVoltage'],2);?> volt">
  1037. </div>
  1038. <div class="form-group" style="display:<?php echo $am111;?>">
  1039. <label>Present Charging Current</label>
  1040. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingCurrent'],2);?> amp">
  1041. </div>
  1042. <div class="form-group" style="display:<?php echo $am111;?>">
  1043. <label>Present Charging Power</label>
  1044. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingPower'],2);?> kW">
  1045. </div>
  1046. <div class="form-group" style="display:<?php echo $am111;?>">
  1047. <label>Present Charging Energy</label>
  1048. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargedEnergy'],2);?> kWh">
  1049. </div>
  1050. <div class="form-group" style="display:<?php echo $am111;?>">
  1051. <label>Present Charging Duration</label>
  1052. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['PresentChargedDuration'];?> seconds">
  1053. </div>
  1054. <div class="form-group" style="display:<?php echo $am001;?>">
  1055. <label>Remain Charging Time</label>
  1056. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['RemainChargingDuration'];?> seconds">
  1057. </div>
  1058. <div class="form-group" style="display:<?php echo $am001;?>">
  1059. <label>EV Battery Max Voltage</label>
  1060. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['EvBatteryMaxVoltage'],2);?> volt">
  1061. </div>
  1062. <div class="form-group" style="display:<?php echo $am001;?>">
  1063. <label>EV Battery Target Voltage</label>
  1064. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['EvBatterytargetVoltage'],2);?> volt">
  1065. </div>
  1066. <div class="form-group" style="display:<?php echo $am001;?>">
  1067. <label>EV Battery Soc</label>
  1068. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['EvBatterySoc'];?>">
  1069. </div>
  1070. </section>
  1071. </article>
  1072. <?php }?>
  1073. <?php } else { ?>
  1074. <?php if($obj['ChargingInfo1']){ $idx++;?>
  1075. <!--Charging Information-->
  1076. <article class="envor-sorting-item css">
  1077. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType1.")"; ?><i class="fa fa-plus"></i></header>
  1078. <section>
  1079. <div class="form-group" style="display:<?php echo $am111;?>">
  1080. <label>User Id</label>
  1081. <input type="text" readonly class="form-control" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
  1082. <input type="hidden" name="UserId1" id="UserId1" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
  1083. </div>
  1084. <div class="form-group" style="display:<?php echo $am111;?>">
  1085. <label>Start Date Time</label>
  1086. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
  1087. <input type="hidden" name="StartDateTime1" id="StartDateTime1" value="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
  1088. </div>
  1089. <div class="form-group" style="display:<?php echo $am111;?>">
  1090. <label>Stop Date Time</label>
  1091. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StopDateTime'];?>">
  1092. <input type="hidden" name="StopDateTime1" id="StopDateTime1" value="<?php echo $obj['ChargingInfo1']['StopDateTime'];?>">
  1093. </div>
  1094. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1095. <label>StartMethod</label>
  1096. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartMethod'];?>">
  1097. <input type="hidden" name="StartMethod1" id="StartMethod1" value="<?php echo $obj['ChargingInfo1']['StartMethod'];?>">
  1098. </div>*/?>
  1099. <div class="form-group" style="display:<?php echo $am111;?>">
  1100. <label>System Status</label>
  1101. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus1;?>">
  1102. <input type="hidden" name="SystemStatus1" id="SystemStatus1" value="<?php echo $obj['ChargingInfo1']['SystemStatus'];?>">
  1103. </div>
  1104. <div class="form-group" style="display:<?php echo $am111;?>">
  1105. <label>Connector Temperature</label>
  1106. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['ConnectorTemp'];?> ℃">
  1107. <input type="hidden" name="ConnectorTemp1" id="ConnectorTemp1" value="<?php echo $obj['ChargingInfo1']['ConnectorTemp'];?>">
  1108. </div>
  1109. <div class="form-group" style="display:<?php echo $am001;?>">
  1110. <label>Present Charging Voltage</label>
  1111. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingVoltage'],2);?> volt">
  1112. <input type="hidden" name="PresentChargingVoltage1" id="PresentChargingVoltage1" value="<?php echo $obj['ChargingInfo1']['PresentChargingVoltage'];?>">
  1113. </div>
  1114. <div class="form-group" style="display:<?php echo $am111;?>">
  1115. <label>Present Charging Current</label>
  1116. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingCurrent'],2);?> amp">
  1117. <input type="hidden" name="PresentChargingCurrent1" id="PresentChargingCurrent1" value="<?php echo $obj['ChargingInfo1']['PresentChargingCurrent'];?>">
  1118. </div>
  1119. <div class="form-group" style="display:<?php echo $am111;?>">
  1120. <label>Present Charging Power</label>
  1121. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingPower'],2);?> kW">
  1122. <input type="hidden" name="PresentChargingPower1" id="PresentChargingPower1" value="<?php echo $obj['ChargingInfo1']['PresentChargingPower'];?>">
  1123. </div>
  1124. <div class="form-group" style="display:<?php echo $am111;?>">
  1125. <label>Present Charging Energy</label>
  1126. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargedEnergy'],2);?> kWh">
  1127. <input type="hidden" name="PresentChargedEnergy1" id="PresentChargedEnergy1" value="<?php echo $obj['ChargingInfo1']['PresentChargedEnergy'];?>">
  1128. </div>
  1129. <div class="form-group" style="display:<?php echo $am111;?>">
  1130. <label>Present Charging Duration</label>
  1131. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?> seconds">
  1132. <input type="hidden" name="PresentChargedDuration1" id="PresentChargedDuration1" value="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?>">
  1133. </div>
  1134. <div class="form-group" style="display:<?php echo $am001;?>">
  1135. <label>Remain Charging Time</label>
  1136. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?> seconds">
  1137. <input type="hidden" name="RemainChargingDuration1" id="RemainChargingDuration1" value="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?>">
  1138. </div>
  1139. <div class="form-group" style="display:<?php echo $am001;?>">
  1140. <label>EV Battery Max Voltage</label>
  1141. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['EvBatteryMaxVoltage'],2);?> volt">
  1142. <input type="hidden" name="EvBatteryMaxVoltage1" id="EvBatteryMaxVoltage1" value="<?php echo $obj['ChargingInfo1']['EvBatteryMaxVoltage'];?>">
  1143. </div>
  1144. <div class="form-group" style="display:<?php echo $am001;?>">
  1145. <label>EV Battery Target Voltage</label>
  1146. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['EvBatterytargetVoltage'],2);?> volt">
  1147. <input type="hidden" name="EvBatterytargetVoltage1" id="EvBatterytargetVoltage1" value="<?php echo $obj['ChargingInfo1']['EvBatterytargetVoltage'];?>">
  1148. </div>
  1149. <div class="form-group" style="display:<?php echo $am001;?>">
  1150. <label>EV Battery Soc</label>
  1151. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
  1152. <input type="hidden" name="EvBatterySoc1" id="EvBatterySoc1" value="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
  1153. </div>
  1154. </section>
  1155. </article>
  1156. <?php }?>
  1157. <?php if($obj['ChargingInfo2']){ $idx++;?>
  1158. <!--Charging Information-->
  1159. <article class="envor-sorting-item css">
  1160. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType2.")"; ?><i class="fa fa-plus"></i></header>
  1161. <section>
  1162. <div class="form-group" style="display:<?php echo $am111;?>">
  1163. <label>User Id</label>
  1164. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
  1165. <input type="hidden" name="UserId2" id="UserId2" value="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
  1166. </div>
  1167. <div class="form-group" style="display:<?php echo $am111;?>">
  1168. <label>Start Date Time</label>
  1169. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
  1170. <input type="hidden" name="StartDateTime2" id="StartDateTime2" value="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
  1171. </div>
  1172. <div class="form-group" style="display:<?php echo $am111;?>">
  1173. <label>Stop Date Time</label>
  1174. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StopDateTime'];?>">
  1175. <input type="hidden" name="StopDateTime2" id="StopDateTime2" value="<?php echo $obj['ChargingInfo2']['StopDateTime'];?>">
  1176. </div>
  1177. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1178. <label>StartMethod</label>
  1179. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartMethod'];?>">
  1180. <input type="hidden" name="StartMethod2" id="StartMethod2" value="<?php echo $obj['ChargingInfo2']['StartMethod'];?>">
  1181. </div>*/?>
  1182. <div class="form-group" style="display:<?php echo $am111;?>">
  1183. <label>System Status</label>
  1184. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus2;?>">
  1185. <input type="hidden" name="SystemStatus2" id="SystemStatus2" value="<?php echo $obj['ChargingInfo2']['SystemStatus'];?>">
  1186. </div>
  1187. <div class="form-group" style="display:<?php echo $am111;?>">
  1188. <label>Connector Temperature</label>
  1189. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['ConnectorTemp'];?> ℃">
  1190. <input type="hidden" name="ConnectorTemp2" id="ConnectorTemp2" value="<?php echo $obj['ChargingInfo2']['ConnectorTemp'];?>">
  1191. </div>
  1192. <div class="form-group" style="display:<?php echo $am001;?>">
  1193. <label>Present Charging Voltage</label>
  1194. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingVoltage'],2);?> volt">
  1195. <input type="hidden" name="PresentChargingVoltage2" id="PresentChargingVoltage2" value="<?php echo $obj['ChargingInfo2']['PresentChargingVoltage'];?>">
  1196. </div>
  1197. <div class="form-group" style="display:<?php echo $am111;?>">
  1198. <label>Present Charging Current</label>
  1199. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingCurrent'],2);?> amp">
  1200. <input type="hidden" name="PresentChargingCurrent2" id="PresentChargingCurrent2" value="<?php echo $obj['ChargingInfo2']['PresentChargingCurrent'];?>">
  1201. </div>
  1202. <div class="form-group" style="display:<?php echo $am111;?>">
  1203. <label>Present Charging Power</label>
  1204. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingPower'],2);?> kW">
  1205. <input type="hidden" name="PresentChargingPower2" id="PresentChargingPower2" value="<?php echo $obj['ChargingInfo2']['PresentChargingPower'];?>">
  1206. </div>
  1207. <div class="form-group" style="display:<?php echo $am111;?>">
  1208. <label>Present Charging Energy</label>
  1209. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargedEnergy'],2);?> kWh">
  1210. <input type="hidden" name="PresentChargedEnergy2" id="PresentChargedEnergy2" value="<?php echo $obj['ChargingInfo2']['PresentChargedEnergy'];?>">
  1211. </div>
  1212. <div class="form-group" style="display:<?php echo $am111;?>">
  1213. <label>Present Charging Duration</label>
  1214. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?> seconds">
  1215. <input type="hidden" name="PresentChargedDuration2" id="PresentChargedDuration2" value="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?>">
  1216. </div>
  1217. <div class="form-group" style="display:<?php echo $am001;?>">
  1218. <label>Remain Charging Time</label>
  1219. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?> seconds">
  1220. <input type="hidden" name="RemainChargingDuration2" id="RemainChargingDuration2" value="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?>">
  1221. </div>
  1222. <div class="form-group" style="display:<?php echo $am001;?>">
  1223. <label>EV Battery Max Voltage</label>
  1224. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['EvBatteryMaxVoltage'],2);?> volt">
  1225. <input type="hidden" name="EvBatteryMaxVoltage2" id="EvBatteryMaxVoltage2" value="<?php echo $obj['ChargingInfo2']['EvBatteryMaxVoltage'];?>">
  1226. </div>
  1227. <div class="form-group" style="display:<?php echo $am001;?>">
  1228. <label>EV Battery Target Voltage</label>
  1229. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['EvBatterytargetVoltage'],2);?> volt">
  1230. <input type="hidden" name="EvBatterytargetVoltage2" id="EvBatterytargetVoltage2" value="<?php echo $obj['ChargingInfo2']['EvBatterytargetVoltage'];?>">
  1231. </div>
  1232. <div class="form-group" style="display:<?php echo $am001;?>">
  1233. <label>EV Battery Soc</label>
  1234. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
  1235. <input type="hidden" name="EvBatterySoc2" id="EvBatterySoc2" value="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
  1236. </div>
  1237. </section>
  1238. </article>
  1239. <?php }?>
  1240. <?php if($obj['ChargingInfo3']){ $idx++;?>
  1241. <!--Charging Information-->
  1242. <article class="envor-sorting-item css">
  1243. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType3.")"; ?><i class="fa fa-plus"></i></header>
  1244. <section>
  1245. <div class="form-group" style="display:<?php echo $am111;?>">
  1246. <label>User Id</label>
  1247. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
  1248. <input type="hidden" name="UserId3" id="UserId3" value="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
  1249. </div>
  1250. <div class="form-group" style="display:<?php echo $am111;?>">
  1251. <label>Start Date Time</label>
  1252. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
  1253. <input type="hidden" name="StartDateTime3" id="StartDateTime3" value="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
  1254. </div>
  1255. <div class="form-group" style="display:<?php echo $am111;?>">
  1256. <label>Stop Date Time</label>
  1257. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StopDateTime'];?>">
  1258. <input type="hidden" name="StopDateTime3" id="StopDateTime3" value="<?php echo $obj['ChargingInfo3']['StopDateTime'];?>">
  1259. </div>
  1260. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1261. <label>StartMethod</label>
  1262. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartMethod'];?>">
  1263. <input type="hidden" name="StartMethod3" id="StartMethod3" value="<?php echo $obj['ChargingInfo3']['StartMethod'];?>">
  1264. </div>*/?>
  1265. <div class="form-group" style="display:<?php echo $am111;?>">
  1266. <label>System Status</label>
  1267. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus3;?>">
  1268. <input type="hidden" name="SystemStatus3" id="SystemStatus3" value="<?php echo $obj['ChargingInfo3']['SystemStatus'];?>">
  1269. </div>
  1270. <div class="form-group" style="display:<?php echo $am111;?>">
  1271. <label>Connector Temperature</label>
  1272. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['ConnectorTemp'];?> ℃">
  1273. <input type="hidden" name="ConnectorTemp3" id="ConnectorTemp3" value="<?php echo $obj['ChargingInfo3']['ConnectorTemp'];?>">
  1274. </div>
  1275. <div class="form-group" style="display:<?php echo $am001;?>">
  1276. <label>Present Charging Voltage</label>
  1277. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingVoltage'],2);?> volt">
  1278. <input type="hidden" name="PresentChargingVoltage3" id="PresentChargingVoltage3" value="<?php echo $obj['ChargingInfo3']['PresentChargingVoltage'];?>">
  1279. </div>
  1280. <div class="form-group" style="display:<?php echo $am111;?>">
  1281. <label>Present Charging Current</label>
  1282. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingCurrent'],2);?> amp">
  1283. <input type="hidden" name="PresentChargingCurrent3" id="PresentChargingCurrent3" value="<?php echo $obj['ChargingInfo3']['PresentChargingCurrent'];?>">
  1284. </div>
  1285. <div class="form-group" style="display:<?php echo $am111;?>">
  1286. <label>Present Charging Power</label>
  1287. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingPower'],2);?> kW">
  1288. <input type="hidden" name="PresentChargingPower3" id="PresentChargingPower3" value="<?php echo $obj['ChargingInfo3']['PresentChargingPower'];?>">
  1289. </div>
  1290. <div class="form-group" style="display:<?php echo $am111;?>">
  1291. <label>Present Charging Energy</label>
  1292. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargedEnergy'],2);?> kWh">
  1293. <input type="hidden" name="PresentChargedEnergy3" id="PresentChargedEnergy3" value="<?php echo $obj['ChargingInfo3']['PresentChargedEnergy'];?>">
  1294. </div>
  1295. <div class="form-group" style="display:<?php echo $am111;?>">
  1296. <label>Present Charging Duration</label>
  1297. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?> seconds">
  1298. <input type="hidden" name="PresentChargedDuration3" id="PresentChargedDuration3" value="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?>">
  1299. </div>
  1300. <div class="form-group" style="display:<?php echo $am001;?>">
  1301. <label>Remain Charging Time</label>
  1302. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?> seconds">
  1303. <input type="hidden" name="RemainChargingDuration3" id="RemainChargingDuration3" value="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?>">
  1304. </div>
  1305. <div class="form-group" style="display:<?php echo $am001;?>">
  1306. <label>EV Battery Max Voltage</label>
  1307. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['EvBatteryMaxVoltage'],2);?> volt">
  1308. <input type="hidden" name="EvBatteryMaxVoltage3" id="EvBatteryMaxVoltage3" value="<?php echo $obj['ChargingInfo3']['EvBatteryMaxVoltage'];?>">
  1309. </div>
  1310. <div class="form-group" style="display:<?php echo $am001;?>">
  1311. <label>EV Battery Target Voltage</label>
  1312. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['EvBatterytargetVoltage'],2);?> volt">
  1313. <input type="hidden" name="EvBatterytargetVoltage3" id="EvBatterytargetVoltage3" value="<?php echo $obj['ChargingInfo3']['EvBatterytargetVoltage'];?>">
  1314. </div>
  1315. <div class="form-group" style="display:<?php echo $am001;?>">
  1316. <label>EV Battery Soc</label>
  1317. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
  1318. <input type="hidden" name="EvBatterySoc3" id="EvBatterySoc3" value="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
  1319. </div>
  1320. </section>
  1321. </article>
  1322. <?php }?>
  1323. <?php } ?>
  1324. <article class="envor-sorting-item css">
  1325. <div align="center"><button id="save"><?php echo $lang->showWord("set")?></button></div>
  1326. </article>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. </section>
  1333. </div>
  1334. <?php
  1335. include 'foot.php';
  1336. ?>
  1337. <script type="text/JavaScript">
  1338. $(document).ready(function(){
  1339. if(document.getElementById("MaxChargingEnergy").value=="0" || document.getElementById("MaxChargingEnergy").value==""){
  1340. document.getElementById("MaxChargingEnergyText").style.display="block";
  1341. }
  1342. if(document.getElementById("MaxChargingPower").value=="0" || document.getElementById("MaxChargingPower").value==""){
  1343. document.getElementById("MaxChargingPowerText").style.display="block";
  1344. }
  1345. if(document.getElementById("MaxChargingCurrent").value=="0" || document.getElementById("MaxChargingCurrent").value==""){
  1346. document.getElementById("MaxChargingCurrentText").style.display="block";
  1347. }
  1348. if(document.getElementById("MaxChargingDuration").value=="0" || document.getElementById("MaxChargingDuration").value==""){
  1349. document.getElementById("MaxChargingDurationText").style.display="block";
  1350. }
  1351. if(document.getElementById("ModelName").value.substr(8,1) != "0"){
  1352. document.getElementById("AcMaxChargingCurrentDiv").style.display="block";
  1353. if(document.getElementById("AcMaxChargingCurrent").value=="0" || document.getElementById("AcMaxChargingCurrent").value==""){
  1354. document.getElementById("AcMaxChargingCurrentText").style.display="block";
  1355. }
  1356. document.getElementById("MaxChargingEnergyLbl").innerHTML="DC MaxCharging Energy";
  1357. document.getElementById("MaxChargingPowerLbl").innerHTML="DC MaxCharging Power";
  1358. document.getElementById("MaxChargingCurrentLbl").innerHTML="DC MaxCharging Current";
  1359. document.getElementById("MaxChargingDurationLbl").innerHTML="DC MaxCharging Duration";
  1360. }
  1361. else{
  1362. document.getElementById("AcMaxChargingCurrentDiv").style.display="none";
  1363. }
  1364. isBilling_clicked();
  1365. document.getElementById("MaxChargingEnergy").addEventListener("change", function() {
  1366. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1367. document.getElementById(this.id+"Text").style.display="block";
  1368. }
  1369. else{
  1370. document.getElementById(this.id+"Text").style.display="none";
  1371. }
  1372. });
  1373. document.getElementById("MaxChargingPower").addEventListener("change", function() {
  1374. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1375. document.getElementById(this.id+"Text").style.display="block";
  1376. }
  1377. else{
  1378. document.getElementById(this.id+"Text").style.display="none";
  1379. }
  1380. });
  1381. document.getElementById("MaxChargingCurrent").addEventListener("change", function() {
  1382. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1383. document.getElementById(this.id+"Text").style.display="block";
  1384. }
  1385. else{
  1386. document.getElementById(this.id+"Text").style.display="none";
  1387. }
  1388. });
  1389. document.getElementById("MaxChargingDuration").addEventListener("change", function() {
  1390. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1391. document.getElementById(this.id+"Text").style.display="block";
  1392. }
  1393. else{
  1394. document.getElementById(this.id+"Text").style.display="none";
  1395. }
  1396. });
  1397. document.getElementById("AcMaxChargingCurrent").addEventListener("change", function() {
  1398. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1399. document.getElementById(this.id+"Text").style.display="block";
  1400. }
  1401. else{
  1402. document.getElementById(this.id+"Text").style.display="none";
  1403. }
  1404. });
  1405. });
  1406. document.getElementById("save").onclick = function() {
  1407. if(formCheck())
  1408. {
  1409. window.location="#loadinghref";
  1410. document.getElementById("loading").style.display="block";
  1411. // 發送 Ajax 查詢請求並處理
  1412. var request = new XMLHttpRequest();
  1413. request.open("POST", "set_charging_action.php");
  1414. // POST 參數須使用 send() 發送
  1415. var data = "MaxChargingEnergy=" + document.getElementById("MaxChargingEnergy").value +
  1416. "&MaxChargingPower=" + document.getElementById("MaxChargingPower").value +
  1417. "&MaxChargingCurrent=" + document.getElementById("MaxChargingCurrent").value+
  1418. "&AcMaxChargingCurrent=" + document.getElementById("AcMaxChargingCurrent").value+
  1419. "&MaxChargingDuration=" + document.getElementById("MaxChargingDuration").value+
  1420. "&LocalWhiteCard0=" + document.getElementById("LocalWhiteCard0").value+
  1421. "&LocalWhiteCard1=" + document.getElementById("LocalWhiteCard1").value+
  1422. "&LocalWhiteCard2=" + document.getElementById("LocalWhiteCard2").value+
  1423. "&LocalWhiteCard3=" + document.getElementById("LocalWhiteCard3").value+
  1424. "&LocalWhiteCard4=" + document.getElementById("LocalWhiteCard4").value+
  1425. "&LocalWhiteCard5=" + document.getElementById("LocalWhiteCard5").value+
  1426. "&LocalWhiteCard6=" + document.getElementById("LocalWhiteCard6").value+
  1427. "&LocalWhiteCard7=" + document.getElementById("LocalWhiteCard7").value+
  1428. "&LocalWhiteCard8=" + document.getElementById("LocalWhiteCard8").value+
  1429. "&LocalWhiteCard9=" + document.getElementById("LocalWhiteCard9").value+
  1430. "&isBilling=" + (document.getElementById("isBilling").checked?1:0)+
  1431. "&Currency=" + document.getElementById("Currency").value+
  1432. "&Fee0=" + document.getElementById("Fee0").value+
  1433. "&Fee1=" + document.getElementById("Fee1").value+
  1434. "&Fee2=" + document.getElementById("Fee2").value+
  1435. "&Fee3=" + document.getElementById("Fee3").value+
  1436. "&Fee4=" + document.getElementById("Fee4").value+
  1437. "&Fee5=" + document.getElementById("Fee5").value+
  1438. "&Fee6=" + document.getElementById("Fee6").value+
  1439. "&Fee7=" + document.getElementById("Fee7").value+
  1440. "&Fee8=" + document.getElementById("Fee8").value+
  1441. "&Fee9=" + document.getElementById("Fee9").value+
  1442. "&Fee10=" + document.getElementById("Fee10").value+
  1443. "&Fee11=" + document.getElementById("Fee11").value+
  1444. "&Fee12=" + document.getElementById("Fee12").value+
  1445. "&Fee13=" + document.getElementById("Fee13").value+
  1446. "&Fee14=" + document.getElementById("Fee14").value+
  1447. "&Fee15=" + document.getElementById("Fee15").value+
  1448. "&Fee16=" + document.getElementById("Fee16").value+
  1449. "&Fee17=" + document.getElementById("Fee17").value+
  1450. "&Fee18=" + document.getElementById("Fee18").value+
  1451. "&Fee19=" + document.getElementById("Fee19").value+
  1452. "&Fee20=" + document.getElementById("Fee20").value+
  1453. "&Fee21=" + document.getElementById("Fee21").value+
  1454. "&Fee22=" + document.getElementById("Fee22").value+
  1455. "&Fee23=" + document.getElementById("Fee23").value;
  1456. // POST 請求必須設置表頭在 open() 下面,send() 上面
  1457. request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1458. request.send(data);
  1459. request.onreadystatechange = function() {
  1460. // 伺服器請求完成
  1461. if (request.readyState == 4) {
  1462. document.getElementById("loading").style.display="none";
  1463. // 伺服器回應成功
  1464. if (request.status == 200 && JSON.parse(request.responseText).result=="Success") {
  1465. alert("<?php echo $lang->showWord("done")?>");
  1466. location.href="set_charging.php";
  1467. } else {
  1468. alert(JSON.parse(request.responseText).message);
  1469. }
  1470. request = null;
  1471. }
  1472. }
  1473. }
  1474. }
  1475. function formCheck()
  1476. {
  1477. var LocalWhiteCard0 = document.getElementById("LocalWhiteCard0").value;
  1478. var LocalWhiteCard1 = document.getElementById("LocalWhiteCard1").value;
  1479. var LocalWhiteCard2 = document.getElementById("LocalWhiteCard2").value;
  1480. var LocalWhiteCard3 = document.getElementById("LocalWhiteCard3").value;
  1481. var LocalWhiteCard4 = document.getElementById("LocalWhiteCard4").value;
  1482. var LocalWhiteCard5 = document.getElementById("LocalWhiteCard5").value;
  1483. var LocalWhiteCard6 = document.getElementById("LocalWhiteCard6").value;
  1484. var LocalWhiteCard7 = document.getElementById("LocalWhiteCard7").value;
  1485. var LocalWhiteCard8 = document.getElementById("LocalWhiteCard8").value;
  1486. var LocalWhiteCard9 = document.getElementById("LocalWhiteCard9").value;
  1487. var RatingCurrent = document.getElementById("RatingCurrent").value;
  1488. var RatingPower = document.getElementById("RatingPower").value;
  1489. var MaxChargingEnergy = document.getElementById("MaxChargingEnergy").value;
  1490. var MaxChargingPower = document.getElementById("MaxChargingPower").value;
  1491. var MaxChargingCurrent = document.getElementById("MaxChargingCurrent").value;
  1492. var AcMaxChargingCurrent = document.getElementById("AcMaxChargingCurrent").value;
  1493. var MaxChargingDuration = document.getElementById("MaxChargingDuration").value;
  1494. if(LocalWhiteCard0 != ""){
  1495. if(LocalWhiteCard0.length>32){
  1496. alert("Local White Card0 must be less than 32 bytes!");
  1497. document.getElementById("LocalWhiteCard0").focus();
  1498. return false;
  1499. }
  1500. }
  1501. if(LocalWhiteCard1 != ""){
  1502. if(LocalWhiteCard1.length>32){
  1503. alert("Local White Card1 must be less than 32 bytes!");
  1504. document.getElementById("LocalWhiteCard1").focus();
  1505. return false;
  1506. }
  1507. }
  1508. if(LocalWhiteCard2 != ""){
  1509. if(LocalWhiteCard2.length>32){
  1510. alert("Local White Card2 must be less than 32 bytes!");
  1511. document.getElementById("LocalWhiteCard2").focus();
  1512. return false;
  1513. }
  1514. }
  1515. if(LocalWhiteCard3 != ""){
  1516. if(LocalWhiteCard3.length>32){
  1517. alert("Local White Card3 must be less than 32 bytes!");
  1518. document.getElementById("LocalWhiteCard3").focus();
  1519. return false;
  1520. }
  1521. }
  1522. if(LocalWhiteCard4 != ""){
  1523. if(LocalWhiteCard4.length>32){
  1524. alert("Local White Card4 must be less than 32 bytes!");
  1525. document.getElementById("LocalWhiteCard4").focus();
  1526. return false;
  1527. }
  1528. }
  1529. if(LocalWhiteCard5 != ""){
  1530. if(LocalWhiteCard5.length>32){
  1531. alert("Local White Card5 must be less than 32 bytes!");
  1532. document.getElementById("LocalWhiteCard5").focus();
  1533. return false;
  1534. }
  1535. }
  1536. if(LocalWhiteCard6 != ""){
  1537. if(LocalWhiteCard6.length>32){
  1538. alert("Local White Card6 must be less than 32 bytes!");
  1539. document.getElementById("LocalWhiteCard6").focus();
  1540. return false;
  1541. }
  1542. }
  1543. if(LocalWhiteCard7 != ""){
  1544. if(LocalWhiteCard7.length>32){
  1545. alert("Local White Card7 must be less than 32 bytes!");
  1546. document.getElementById("LocalWhiteCard7").focus();
  1547. return false;
  1548. }
  1549. }
  1550. if(LocalWhiteCard8 != ""){
  1551. if(LocalWhiteCard8.length>32){
  1552. alert("Local White Card8 must be less than 32 bytes!");
  1553. document.getElementById("LocalWhiteCard8").focus();
  1554. return false;
  1555. }
  1556. }
  1557. if(LocalWhiteCard9 != ""){
  1558. if(LocalWhiteCard9.length>32){
  1559. alert("Local White Card9 must be less than 32 bytes!");
  1560. document.getElementById("LocalWhiteCard9").focus();
  1561. return false;
  1562. }
  1563. }
  1564. if(MaxChargingEnergy =="")
  1565. {
  1566. alert("Fill Max Charging Energy !");
  1567. document.getElementById("MaxChargingEnergy").focus();
  1568. return false;
  1569. }
  1570. if(MaxChargingEnergy >65535)
  1571. {
  1572. alert("Max Charging Energy must <= 65535!");
  1573. document.getElementById("MaxChargingEnergy").focus();
  1574. return false;
  1575. }
  1576. if(MaxChargingEnergy < 0)
  1577. {
  1578. alert("Max Charging Energy must >= 0!");
  1579. document.getElementById("MaxChargingEnergy").focus();
  1580. return false;
  1581. }
  1582. if(MaxChargingPower =="")
  1583. {
  1584. alert("Fill Max Charging Power !");
  1585. document.getElementById("MaxChargingPower").focus();
  1586. return false;
  1587. }
  1588. if(RatingPower!="" && RatingPower!=0){
  1589. if(parseFloat(MaxChargingPower) > parseFloat(RatingPower))
  1590. {
  1591. alert("Max Charging Power must be less than RatingPower("+RatingPower+")!");
  1592. document.getElementById("MaxChargingPower").focus();
  1593. return false;
  1594. }
  1595. }
  1596. else{
  1597. if(MaxChargingPower >65535)
  1598. {
  1599. alert("Max Charging Power must <= 65535!");
  1600. document.getElementById("MaxChargingPower").focus();
  1601. return false;
  1602. }
  1603. }
  1604. if(MaxChargingCurrent =="")
  1605. {
  1606. alert("Fill Max Charging Current !");
  1607. document.getElementById("MaxChargingCurrent").focus();
  1608. return false;
  1609. }
  1610. if(RatingCurrent!="" && RatingCurrent!=0){
  1611. if(parseFloat(MaxChargingCurrent) > parseFloat(RatingCurrent))
  1612. {
  1613. alert("Max Charging Current must be less than RatingCurrent("+RatingCurrent+")!");
  1614. document.getElementById("MaxChargingCurrent").focus();
  1615. return false;
  1616. }
  1617. }
  1618. else{
  1619. if(MaxChargingCurrent >65535)
  1620. {
  1621. alert("Max Charging Current must <= 65535!");
  1622. document.getElementById("MaxChargingCurrent").focus();
  1623. return false;
  1624. }
  1625. }
  1626. if(document.getElementById("ModelName").value.substr(8,1)!= "0" && AcMaxChargingCurrent =="")
  1627. {
  1628. alert("Fill AC Max Charging Current !");
  1629. document.getElementById("AcMaxChargingCurrent").focus();
  1630. return false;
  1631. }
  1632. if(AcRatingCurrent!="" && AcRatingCurrent!=0){
  1633. if(parseFloat(AcMaxChargingCurrent) > parseFloat(AcRatingCurrent))
  1634. {
  1635. alert("Ac Max Charging Current must be less than Ac Rating Current("+AcRatingCurrent+")!");
  1636. document.getElementById("AcMaxChargingCurrent").focus();
  1637. return false;
  1638. }
  1639. }
  1640. else{
  1641. if(AcMaxChargingCurrent >65535)
  1642. {
  1643. alert("Ac Max Charging Current must <= 65535!");
  1644. document.getElementById("AcMaxChargingCurrent").focus();
  1645. return false;
  1646. }
  1647. if(AcMaxChargingCurrent < 0)
  1648. {
  1649. alert("Ac Max Charging Current must >= 0!");
  1650. document.getElementById("AcMaxChargingCurrent").focus();
  1651. return false;
  1652. }
  1653. }
  1654. if(MaxChargingCurrent =="")
  1655. {
  1656. alert("Fill Max Charging Current !");
  1657. document.getElementById("MaxChargingCurrent").focus();
  1658. return false;
  1659. }
  1660. if(MaxChargingCurrent < 0)
  1661. {
  1662. alert("MaxChargingCurrent must >= 0!");
  1663. document.getElementById("MaxChargingCurrent").focus();
  1664. return false;
  1665. }
  1666. if(MaxChargingDuration >65535)
  1667. {
  1668. alert("MaxChargingDuration must <= 65535!");
  1669. document.getElementById("MaxChargingDuration").focus();
  1670. return false;
  1671. }
  1672. if(MaxChargingDuration =="")
  1673. {
  1674. alert("Fill Max Charging Duration !");
  1675. document.getElementById("MaxChargingDuration").focus();
  1676. return false;
  1677. }
  1678. if(MaxChargingDuration < 0)
  1679. {
  1680. alert("MaxChargingDuration must >= 0!");
  1681. document.getElementById("MaxChargingDuration").focus();
  1682. return false;
  1683. }
  1684. return true;
  1685. }
  1686. function isBilling_clicked(){
  1687. if(document.getElementById("isBilling").checked){
  1688. document.getElementById("CurrencyDiv").style.display="block";
  1689. document.getElementById("FeeDiv").style.display="block";
  1690. }
  1691. else{
  1692. document.getElementById("CurrencyDiv").style.display="none";
  1693. document.getElementById("FeeDiv").style.display="none";
  1694. }
  1695. }
  1696. function isNumberKey(evt)
  1697. {
  1698. var charCode = (evt.which) ? evt.which : event.keyCode
  1699. if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode != 46))
  1700. return false;
  1701. return true;
  1702. }
  1703. </script>
  1704. </html>