set_charging.php 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813
  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" && substr($ModelName,0,2)!="DK"){
  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 == "V" || $connector == "E" || $connector == "F" || $connector == "T" || $connector == "D" || $connector == "M" || $connector == "N" || $connector == "P" || $connector == "R"){
  495. $result= "CCS";
  496. }
  497. else if($connector == "G"){
  498. $result= "GB";
  499. }
  500. else if($connector == "J" || $connector == "K"){
  501. $result= "CHAdeMO";
  502. }
  503. else if($connector == "1" || $connector == "2" || $connector == "3" || $connector == "4" || $connector == "5" || $connector == "6" || $connector == "7" || $connector == "8"){
  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" style="display:<?php echo $am001;?>">
  576. <label>Stop Charging By Button</label>
  577. <select class="form-control" id="StopChargingByButton" name="StopChargingByButton">
  578. <option value="0" <?php echo $obj['StopChargingByButton']=="0"?"selected":""?>>Disable</option>
  579. <option value="1" <?php echo $obj['StopChargingByButton']=="1"?"selected":""?>>Enable</option>
  580. </select>
  581. </div>
  582. <div class="form-group" id="AcMaxChargingCurrentDiv">
  583. <label>AC Max Charging Current</label>
  584. <small class="form-text text-muted-red">amp</small>
  585. <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">
  586. <input type="hidden" name="AcRatingCurrent" id="AcRatingCurrent" value="<?php echo $AcRatingCurrent;?>">
  587. <small class="form-text text-muted-red"><label id="AcMaxChargingCurrentText" style="display:none;">'0' means unlimit</label></small>
  588. </div>
  589. <div class="form-group" style="display:<?php echo $am111;?>">
  590. <label>Local White Card0</label>
  591. <input type="text" name="LocalWhiteCard0" id="LocalWhiteCard0" class="form-control" value="<?php echo $obj['LocalWhiteCard'][0];?>">
  592. </div>
  593. <div class="form-group" style="display:<?php echo $am111;?>">
  594. <label>Local White Card1</label>
  595. <input type="text" name="LocalWhiteCard1" id="LocalWhiteCard1" class="form-control" value="<?php echo $obj['LocalWhiteCard'][1];?>">
  596. </div>
  597. <div class="form-group" style="display:<?php echo $am111;?>">
  598. <label>Local White Card2</label>
  599. <input type="text" name="LocalWhiteCard2" id="LocalWhiteCard2" class="form-control" value="<?php echo $obj['LocalWhiteCard'][2];?>">
  600. </div>
  601. <div class="form-group" style="display:<?php echo $am111;?>">
  602. <label>Local White Card3</label>
  603. <input type="text" name="LocalWhiteCard3" id="LocalWhiteCard3" class="form-control" value="<?php echo $obj['LocalWhiteCard'][3];?>">
  604. </div>
  605. <div class="form-group" style="display:<?php echo $am111;?>">
  606. <label>Local White Card4</label>
  607. <input type="text" name="LocalWhiteCard4" id="LocalWhiteCard4" class="form-control" value="<?php echo $obj['LocalWhiteCard'][4];?>">
  608. </div>
  609. <div class="form-group" style="display:<?php echo $am111;?>">
  610. <label>Local White Card5</label>
  611. <input type="text" name="LocalWhiteCard5" id="LocalWhiteCard5" class="form-control" value="<?php echo $obj['LocalWhiteCard'][5];?>">
  612. </div>
  613. <div class="form-group" style="display:<?php echo $am111;?>">
  614. <label>Local White Card6</label>
  615. <input type="text" name="LocalWhiteCard6" id="LocalWhiteCard6" class="form-control" value="<?php echo $obj['LocalWhiteCard'][6];?>">
  616. </div>
  617. <div class="form-group" style="display:<?php echo $am111;?>">
  618. <label>Local White Card7</label>
  619. <input type="text" name="LocalWhiteCard7" id="LocalWhiteCard7" class="form-control" value="<?php echo $obj['LocalWhiteCard'][7];?>">
  620. </div>
  621. <div class="form-group" style="display:<?php echo $am111;?>">
  622. <label>Local White Card8</label>
  623. <input type="text" name="LocalWhiteCard8" id="LocalWhiteCard8" class="form-control" value="<?php echo $obj['LocalWhiteCard'][8];?>">
  624. </div>
  625. <div class="form-group" style="display:<?php echo $am111;?>">
  626. <label>Local White Card9</label>
  627. <input type="text" name="LocalWhiteCard9" id="LocalWhiteCard9" class="form-control" value="<?php echo $obj['LocalWhiteCard'][9];?>">
  628. </div>
  629. <div class="form-group" id="isBillingDiv">
  630. <label>
  631. <input type="checkbox" id="isBilling" name="isBilling" <?php echo $obj['isBilling']==1?"checked":"";?> onclick="isBilling_clicked()">
  632. Billing</label>
  633. </div>
  634. <div class="form-group" id="CurrencyDiv">
  635. <label>Currency</label>
  636. <select class="form-control" id="Currency" name="Currency">
  637. <option value="0" <?php echo $obj['Currency']=="0"?"selected":""?>>AED - Emirati Dirham</option>
  638. <option value="1" <?php echo $obj['Currency']=="1"?"selected":""?>>ARS - Argentine Peso</option>
  639. <option value="2" <?php echo $obj['Currency']=="2"?"selected":""?>>AUD - Australian Dollar</option>
  640. <option value="3" <?php echo $obj['Currency']=="3"?"selected":""?>>BGN - Bulgarian Lev</option>
  641. <option value="4" <?php echo $obj['Currency']=="4"?"selected":""?>>BHD - Bahraini Dinar</option>
  642. <option value="5" <?php echo $obj['Currency']=="5"?"selected":""?>>BND - Bruneian Dollar</option>
  643. <option value="6" <?php echo $obj['Currency']=="6"?"selected":""?>>BRL - Brazilian Real</option>
  644. <option value="7" <?php echo $obj['Currency']=="7"?"selected":""?>>BWP - Botswana Pula</option>
  645. <option value="8" <?php echo $obj['Currency']=="8"?"selected":""?>>CAD - Canadian Dollar</option>
  646. <option value="9" <?php echo $obj['Currency']=="9"?"selected":""?>>CHF - Swiss Franc</option>
  647. <option value="10" <?php echo $obj['Currency']=="10"?"selected":""?>>CLP - Chilean Peso</option>
  648. <option value="11" <?php echo $obj['Currency']=="11"?"selected":""?>>CNY - Chinese Yuan Renminbi</option>
  649. <option value="12" <?php echo $obj['Currency']=="12"?"selected":""?>>COP - Colombian Peso</option>
  650. <option value="13" <?php echo $obj['Currency']=="13"?"selected":""?>>CZK - Czech Koruna</option>
  651. <option value="14" <?php echo $obj['Currency']=="14"?"selected":""?>>DKK - Danish Krone</option>
  652. <option value="15" <?php echo $obj['Currency']=="15"?"selected":""?>>EUR - Euro</option>
  653. <option value="16" <?php echo $obj['Currency']=="16"?"selected":""?>>GBP - British Pound</option>
  654. <option value="17" <?php echo $obj['Currency']=="17"?"selected":""?>>HKD - Hong Kong Dollar</option>
  655. <option value="18" <?php echo $obj['Currency']=="18"?"selected":""?>>HRK - Croatian Kuna</option>
  656. <option value="19" <?php echo $obj['Currency']=="19"?"selected":""?>>HUF - Hungarian Forint</option>
  657. <option value="20" <?php echo $obj['Currency']=="20"?"selected":""?>>IDR - Indonesian Rupiah</option>
  658. <option value="21" <?php echo $obj['Currency']=="21"?"selected":""?>>ILS - Israeli Shekel</option>
  659. <option value="22" <?php echo $obj['Currency']=="22"?"selected":""?>>INR - Indian Rupee</option>
  660. <option value="23" <?php echo $obj['Currency']=="23"?"selected":""?>>IRR - Iranian Rial</option>
  661. <option value="24" <?php echo $obj['Currency']=="24"?"selected":""?>>ISK - Icelandic Krona</option>
  662. <option value="25" <?php echo $obj['Currency']=="25"?"selected":""?>>JPY - Japanese Yen</option>
  663. <option value="26" <?php echo $obj['Currency']=="26"?"selected":""?>>KRW - South Korean Won</option>
  664. <option value="27" <?php echo $obj['Currency']=="27"?"selected":""?>>KWD - Kuwaiti Dinar</option>
  665. <option value="28" <?php echo $obj['Currency']=="28"?"selected":""?>>KZT - Kazakhstani Tenge</option>
  666. <option value="29" <?php echo $obj['Currency']=="29"?"selected":""?>>LKR - Sri Lankan Rupee</option>
  667. <option value="30" <?php echo $obj['Currency']=="30"?"selected":""?>>LYD - Libyan Dinar</option>
  668. <option value="31" <?php echo $obj['Currency']=="31"?"selected":""?>>MUR - Mauritian Rupee</option>
  669. <option value="32" <?php echo $obj['Currency']=="32"?"selected":""?>>MXN - Mexican Peso</option>
  670. <option value="33" <?php echo $obj['Currency']=="33"?"selected":""?>>MYR - Malaysian Ringgit</option>
  671. <option value="34" <?php echo $obj['Currency']=="34"?"selected":""?>>NOK - Norwegian Krone</option>
  672. <option value="35" <?php echo $obj['Currency']=="35"?"selected":""?>>NPR - Nepalese Rupee</option>
  673. <option value="36" <?php echo $obj['Currency']=="36"?"selected":""?>>NZD - New Zealand Dollar</option>
  674. <option value="37" <?php echo $obj['Currency']=="37"?"selected":""?>>OMR - Omani Rial</option>
  675. <option value="38" <?php echo $obj['Currency']=="38"?"selected":""?>>PHP - Philippine Peso</option>
  676. <option value="39" <?php echo $obj['Currency']=="39"?"selected":""?>>PKR - Pakistani Rupee</option>
  677. <option value="40" <?php echo $obj['Currency']=="40"?"selected":""?>>PLN - Polish Zloty</option>
  678. <option value="41" <?php echo $obj['Currency']=="41"?"selected":""?>>QAR - Qatari Riyal</option>
  679. <option value="42" <?php echo $obj['Currency']=="42"?"selected":""?>>RON - Romanian New Leu</option>
  680. <option value="43" <?php echo $obj['Currency']=="43"?"selected":""?>>RUB - Russian Ruble</option>
  681. <option value="44" <?php echo $obj['Currency']=="44"?"selected":""?>>SAR - Saudi Arabian Riyal</option>
  682. <option value="45" <?php echo $obj['Currency']=="45"?"selected":""?>>SEK - Swedish Krona</option>
  683. <option value="46" <?php echo $obj['Currency']=="46"?"selected":""?>>SGD - Singapore Dollar</option>
  684. <option value="47" <?php echo $obj['Currency']=="47"?"selected":""?>>THB - Thai Baht</option>
  685. <option value="48" <?php echo $obj['Currency']=="48"?"selected":""?>>TRY - Turkish Lira</option>
  686. <option value="49" <?php echo $obj['Currency']=="49"?"selected":""?>>TTD - Trinidadian Dollar</option>
  687. <option value="50" <?php echo $obj['Currency']=="50"?"selected":""?>>TWD - Taiwan New Dollar</option>
  688. <option value="51" <?php echo $obj['Currency']=="51"?"selected":""?>>USD - US Dollar</option>
  689. <option value="52" <?php echo $obj['Currency']=="52"?"selected":""?>>VEF - Venezuelan Bolivar</option>
  690. <option value="53" <?php echo $obj['Currency']=="53"?"selected":""?>>ZAR - South African Rand</option>
  691. </select>
  692. </div>
  693. <div class="form-group" id="FeeDiv">
  694. <div class="form-group">
  695. <label>Fee 00:00~00:59</label>
  696. <input type="text" name="Fee0" id="Fee0" class="form-control" value="<?php echo round($obj['Fee'][0],2);?>">
  697. </div>
  698. <div class="form-group">
  699. <label>Fee 01:00~01:59</label>
  700. <input type="text" name="Fee0" id="Fee1" class="form-control" value="<?php echo round($obj['Fee'][1],2);?>">
  701. </div>
  702. <div class="form-group">
  703. <label>Fee 02:00~02:59</label>
  704. <input type="text" name="Fee2" id="Fee2" class="form-control" value="<?php echo round($obj['Fee'][2],2);?>">
  705. </div>
  706. <div class="form-group">
  707. <label>Fee 03:00~03:59</label>
  708. <input type="text" name="Fee3" id="Fee3" class="form-control" value="<?php echo round($obj['Fee'][3],2);?>">
  709. </div>
  710. <div class="form-group">
  711. <label>Fee 04:00~04:59</label>
  712. <input type="text" name="Fee4" id="Fee4" class="form-control" value="<?php echo round($obj['Fee'][4],2);?>">
  713. </div>
  714. <div class="form-group">
  715. <label>Fee 05:00~05:59</label>
  716. <input type="text" name="Fee5" id="Fee5" class="form-control" value="<?php echo round($obj['Fee'][5],2);?>">
  717. </div>
  718. <div class="form-group">
  719. <label>Fee 06:00~06:59</label>
  720. <input type="text" name="Fee6" id="Fee6" class="form-control" value="<?php echo round($obj['Fee'][6],2);?>">
  721. </div>
  722. <div class="form-group">
  723. <label>Fee 07:00~07:59</label>
  724. <input type="text" name="Fee7" id="Fee7" class="form-control" value="<?php echo round($obj['Fee'][7],2);?>">
  725. </div>
  726. <div class="form-group">
  727. <label>Fee 08:00~08:59</label>
  728. <input type="text" name="Fee8" id="Fee8" class="form-control" value="<?php echo round($obj['Fee'][8],2);?>">
  729. </div>
  730. <div class="form-group">
  731. <label>Fee 09:00~09:59</label>
  732. <input type="text" name="Fee9" id="Fee9" class="form-control" value="<?php echo round($obj['Fee'][9],2);?>">
  733. </div>
  734. <div class="form-group">
  735. <label>Fee 10:00~10:59</label>
  736. <input type="text" name="Fee10" id="Fee10" class="form-control" value="<?php echo round($obj['Fee'][10],2);?>">
  737. </div>
  738. <div class="form-group">
  739. <label>Fee 11:00~11:59</label>
  740. <input type="text" name="Fee11" id="Fee11" class="form-control" value="<?php echo round($obj['Fee'][11],2);?>">
  741. </div>
  742. <div class="form-group">
  743. <label>Fee 12:00~12:59</label>
  744. <input type="text" name="Fee12" id="Fee12" class="form-control" value="<?php echo round($obj['Fee'][12],2);?>">
  745. </div>
  746. <div class="form-group">
  747. <label>Fee 13:00~13:59</label>
  748. <input type="text" name="Fee13" id="Fee13" class="form-control" value="<?php echo round($obj['Fee'][13],2);?>">
  749. </div>
  750. <div class="form-group">
  751. <label>Fee 14:00~14:59</label>
  752. <input type="text" name="Fee14" id="Fee14" class="form-control" value="<?php echo round($obj['Fee'][14],2);?>">
  753. </div>
  754. <div class="form-group">
  755. <label>Fee 15:00~15:59</label>
  756. <input type="text" name="Fee15" id="Fee15" class="form-control" value="<?php echo round($obj['Fee'][15],2);?>">
  757. </div>
  758. <div class="form-group">
  759. <label>Fee 16:00~16:59</label>
  760. <input type="text" name="Fee16" id="Fee16" class="form-control" value="<?php echo round($obj['Fee'][16],2);?>">
  761. </div>
  762. <div class="form-group">
  763. <label>Fee 17:00~17:59</label>
  764. <input type="text" name="Fee17" id="Fee17" class="form-control" value="<?php echo round($obj['Fee'][17],2);?>">
  765. </div>
  766. <div class="form-group">
  767. <label>Fee 18:00~18:59</label>
  768. <input type="text" name="Fee18" id="Fee18" class="form-control" value="<?php echo round($obj['Fee'][18],2);?>">
  769. </div>
  770. <div class="form-group">
  771. <label>Fee 19:00~19:59</label>
  772. <input type="text" name="Fee19" id="Fee19" class="form-control" value="<?php echo round($obj['Fee'][19],2);?>">
  773. </div>
  774. <div class="form-group">
  775. <label>Fee 20:00~20:59</label>
  776. <input type="text" name="Fee20" id="Fee20" class="form-control" value="<?php echo round($obj['Fee'][20],2);?>">
  777. </div>
  778. <div class="form-group">
  779. <label>Fee 21:00~21:59</label>
  780. <input type="text" name="Fee21" id="Fee21" class="form-control" value="<?php echo round($obj['Fee'][21],2);?>">
  781. </div>
  782. <div class="form-group">
  783. <label>Fee 22:00~22:59</label>
  784. <input type="text" name="Fee22" id="Fee22" class="form-control" value="<?php echo round($obj['Fee'][22],2);?>">
  785. </div>
  786. <div class="form-group">
  787. <label>Fee 23:00~23:59</label>
  788. <input type="text" name="Fee23" id="Fee23" class="form-control" value="<?php echo round($obj['Fee'][23],2);?>">
  789. </div>
  790. </div>
  791. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  792. <label>CcsAuthentication</label>
  793. <select class="form-control" id="CcsAuthentication" name="CcsAuthentication">
  794. <option value="0" <?php echo $obj['CcsAuthentication']==0?"selected":""?>>EIM</option>
  795. <option value="1" <?php echo $obj['CcsAuthentication']==1?"selected":""?>>EIM&PnC mixed</option>
  796. </select>
  797. </div>
  798. <div class="form-group" style="display:<?php echo $am111;?>">
  799. <label>AcCcsChargingModel</label>
  800. <select class="form-control" id="AcCcsChargingModel" name="AcCcsChargingModel">
  801. <option value="0" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC (PWM) only</option>
  802. <option value="1" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC&PLC mixed</option>
  803. </select>
  804. </div>*/?>
  805. </section>
  806. </article>
  807. <?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK"){?>
  808. <?php if($obj['DDChargingInfo1']){ $idx++;?>
  809. <!--Charging Information-->
  810. <article class="envor-sorting-item css">
  811. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  812. <section>
  813. <div class="form-group" style="display:<?php echo $am111;?>">
  814. <label>User Id</label>
  815. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo1']['StartUserId'];?>">
  816. </div>
  817. <div class="form-group" style="display:<?php echo $am111;?>">
  818. <label>Start Date Time</label>
  819. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StartDateTime'];?>">
  820. </div>
  821. <div class="form-group" style="display:<?php echo $am111;?>">
  822. <label>Stop Date Time</label>
  823. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StopDateTime'];?>">
  824. </div>
  825. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  826. <label>StartMethod</label>
  827. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StartMethod'];?>">
  828. </div>*/?>
  829. <div class="form-group" style="display:<?php echo $am111;?>">
  830. <label>System Status</label>
  831. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus1;?>">
  832. </div>
  833. <div class="form-group" style="display:<?php echo $am111;?>">
  834. <label>Connector Temperature</label>
  835. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['ConnectorTemp']!=255?$obj['DDChargingInfo1']['ConnectorTemp']." ℃":"not supported";?>">
  836. </div>
  837. <div class="form-group ChillerTemp">
  838. <label>Chiller Temperature</label>
  839. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['ChillerrTemp']!=255?$obj['DDChargingInfo1']['ChillerTemp']." ℃":"not supported";?>">
  840. </div>
  841. <div class="form-group" style="display:<?php echo $am001;?>">
  842. <label>Present Charging Voltage</label>
  843. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingVoltage'],2);?> volt">
  844. </div>
  845. <div class="form-group" style="display:<?php echo $am111;?>">
  846. <label>Present Charging Current</label>
  847. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingCurrent'],2);?> amp">
  848. </div>
  849. <div class="form-group" style="display:<?php echo $am111;?>">
  850. <label>Present Charging Power</label>
  851. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingPower'],2);?> kW">
  852. </div>
  853. <div class="form-group" style="display:<?php echo $am111;?>">
  854. <label>Present Charging Energy</label>
  855. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo1']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  856. </div>
  857. <div class="form-group" style="display:<?php echo $am111;?>">
  858. <label>Present Charging Duration</label>
  859. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['PresentChargedDuration'];?> seconds">
  860. </div>
  861. <div class="form-group" style="display:<?php echo $am001;?>">
  862. <label>Remain Charging Time</label>
  863. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['RemainChargingDuration'];?> seconds">
  864. </div>
  865. <div class="form-group" style="display:<?php echo $am001;?>">
  866. <label>EV Battery Max Voltage</label>
  867. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['EvBatteryMaxVoltage'],2);?> volt">
  868. </div>
  869. <div class="form-group" style="display:<?php echo $am001;?>">
  870. <label>EV Battery Target Voltage</label>
  871. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['EvBatterytargetVoltage'],2);?> volt">
  872. </div>
  873. <div class="form-group" style="display:<?php echo $am001;?>">
  874. <label>EV Battery Soc</label>
  875. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['EvBatterySoc'];?>">
  876. </div>
  877. <div class="form-group" style="display:<?php echo $am111;?>">
  878. <label>Totalize Power Consumption</label>
  879. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo1']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  880. </div>
  881. </section>
  882. </article>
  883. <?php }?>
  884. <?php if($obj['DDChargingInfo2']){ $idx++;?>
  885. <!--Charging Information-->
  886. <article class="envor-sorting-item css">
  887. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  888. <section>
  889. <div class="form-group" style="display:<?php echo $am111;?>">
  890. <label>User Id</label>
  891. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo2']['StartUserId'];?>">
  892. </div>
  893. <div class="form-group" style="display:<?php echo $am111;?>">
  894. <label>Start Date Time</label>
  895. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StartDateTime'];?>">
  896. </div>
  897. <div class="form-group" style="display:<?php echo $am111;?>">
  898. <label>Stop Date Time</label>
  899. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StopDateTime'];?>">
  900. </div>
  901. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  902. <label>StartMethod</label>
  903. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StartMethod'];?>">
  904. </div>*/?>
  905. <div class="form-group" style="display:<?php echo $am111;?>">
  906. <label>System Status</label>
  907. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus2;?>">
  908. </div>
  909. <div class="form-group" style="display:<?php echo $am111;?>">
  910. <label>Connector Temperature</label>
  911. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['ConnectorTemp']!=255?$obj['DDChargingInfo2']['ConnectorTemp']." ℃":"not supported";?>">
  912. </div>
  913. <div class="form-group ChillerTemp">
  914. <label>Chiller Temperature</label>
  915. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['ChillerTemp']!=255?$obj['DDChargingInfo2']['ChillerTemp']." ℃":"not supported";?>">
  916. </div>
  917. <div class="form-group" style="display:<?php echo $am001;?>">
  918. <label>Present Charging Voltage</label>
  919. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingVoltage'],2);?> volt">
  920. </div>
  921. <div class="form-group" style="display:<?php echo $am111;?>">
  922. <label>Present Charging Current</label>
  923. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingCurrent'],2);?> amp">
  924. </div>
  925. <div class="form-group" style="display:<?php echo $am111;?>">
  926. <label>Present Charging Power</label>
  927. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingPower'],2);?> kW">
  928. </div>
  929. <div class="form-group" style="display:<?php echo $am111;?>">
  930. <label>Present Charging Energy</label>
  931. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo2']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  932. </div>
  933. <div class="form-group" style="display:<?php echo $am111;?>">
  934. <label>Present Charging Duration</label>
  935. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['PresentChargedDuration'];?> seconds">
  936. </div>
  937. <div class="form-group" style="display:<?php echo $am001;?>">
  938. <label>Remain Charging Time</label>
  939. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['RemainChargingDuration'];?> seconds">
  940. </div>
  941. <div class="form-group" style="display:<?php echo $am001;?>">
  942. <label>EV Battery Max Voltage</label>
  943. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['EvBatteryMaxVoltage'],2);?> volt">
  944. </div>
  945. <div class="form-group" style="display:<?php echo $am001;?>">
  946. <label>EV Battery Target Voltage</label>
  947. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['EvBatterytargetVoltage'],2);?> volt">
  948. </div>
  949. <div class="form-group" style="display:<?php echo $am001;?>">
  950. <label>EV Battery Soc</label>
  951. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['EvBatterySoc'];?>">
  952. </div>
  953. <div class="form-group" style="display:<?php echo $am111;?>">
  954. <label>Totalize Power Consumption</label>
  955. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo2']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  956. </div>
  957. </section>
  958. </article>
  959. <?php }?>
  960. <?php if($obj['DDChargingInfo3']){ $idx++;?>
  961. <!--Charging Information-->
  962. <article class="envor-sorting-item css">
  963. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  964. <section>
  965. <div class="form-group" style="display:<?php echo $am111;?>">
  966. <label>User Id</label>
  967. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo3']['StartUserId'];?>">
  968. </div>
  969. <div class="form-group" style="display:<?php echo $am111;?>">
  970. <label>Start Date Time</label>
  971. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StartDateTime'];?>">
  972. </div>
  973. <div class="form-group" style="display:<?php echo $am111;?>">
  974. <label>Stop Date Time</label>
  975. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StopDateTime'];?>">
  976. </div>
  977. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  978. <label>StartMethod</label>
  979. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StartMethod'];?>">
  980. </div>*/?>
  981. <div class="form-group" style="display:<?php echo $am111;?>">
  982. <label>System Status</label>
  983. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus3;?>">
  984. </div>
  985. <div class="form-group" style="display:<?php echo $am111;?>">
  986. <label>Connector Temperature</label>
  987. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['ConnectorTemp']!=255?$obj['DDChargingInfo3']['ConnectorTemp']." ℃":"not supported";?>">
  988. </div>
  989. <div class="form-group ChillerTemp">
  990. <label>Chiller Temperature</label>
  991. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['ChillerTemp']!=255?$obj['DDChargingInfo3']['ChillerTemp']." ℃":"not supported";?>">
  992. </div>
  993. <div class="form-group" style="display:<?php echo $am001;?>">
  994. <label>Present Charging Voltage</label>
  995. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingVoltage'],2);?> volt">
  996. </div>
  997. <div class="form-group" style="display:<?php echo $am111;?>">
  998. <label>Present Charging Current</label>
  999. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingCurrent'],2);?> amp">
  1000. </div>
  1001. <div class="form-group" style="display:<?php echo $am111;?>">
  1002. <label>Present Charging Power</label>
  1003. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingPower'],2);?> kW">
  1004. </div>
  1005. <div class="form-group" style="display:<?php echo $am111;?>">
  1006. <label>Present Charging Energy</label>
  1007. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo3']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1008. </div>
  1009. <div class="form-group" style="display:<?php echo $am111;?>">
  1010. <label>Present Charging Duration</label>
  1011. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['PresentChargedDuration'];?> seconds">
  1012. </div>
  1013. <div class="form-group" style="display:<?php echo $am001;?>">
  1014. <label>Remain Charging Time</label>
  1015. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['RemainChargingDuration'];?> seconds">
  1016. </div>
  1017. <div class="form-group" style="display:<?php echo $am001;?>">
  1018. <label>EV Battery Max Voltage</label>
  1019. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['EvBatteryMaxVoltage'],2);?> volt">
  1020. </div>
  1021. <div class="form-group" style="display:<?php echo $am001;?>">
  1022. <label>EV Battery Target Voltage</label>
  1023. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['EvBatterytargetVoltage'],2);?> volt">
  1024. </div>
  1025. <div class="form-group" style="display:<?php echo $am001;?>">
  1026. <label>EV Battery Soc</label>
  1027. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['EvBatterySoc'];?>">
  1028. </div>
  1029. <div class="form-group" style="display:<?php echo $am111;?>">
  1030. <label>Totalize Power Consumption</label>
  1031. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo3']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1032. </div>
  1033. </section>
  1034. </article>
  1035. <?php }?>
  1036. <?php if($obj['DDChargingInfo4']){ $idx++;?>
  1037. <!--Charging Information-->
  1038. <article class="envor-sorting-item css">
  1039. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  1040. <section>
  1041. <div class="form-group" style="display:<?php echo $am111;?>">
  1042. <label>User Id</label>
  1043. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo4']['StartUserId'];?>">
  1044. </div>
  1045. <div class="form-group" style="display:<?php echo $am111;?>">
  1046. <label>Start Date Time</label>
  1047. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StartDateTime'];?>">
  1048. </div>
  1049. <div class="form-group" style="display:<?php echo $am111;?>">
  1050. <label>Stop Date Time</label>
  1051. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StopDateTime'];?>">
  1052. </div>
  1053. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1054. <label>StartMethod</label>
  1055. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StartMethod'];?>">
  1056. </div>*/?>
  1057. <div class="form-group" style="display:<?php echo $am111;?>">
  1058. <label>System Status</label>
  1059. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus4;?>">
  1060. </div>
  1061. <div class="form-group" style="display:<?php echo $am111;?>">
  1062. <label>Connector Temperature</label>
  1063. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['ConnectorTemp']!=255?$obj['DDChargingInfo4']['ConnectorTemp']." ℃":"not supported";?>">
  1064. </div>
  1065. <div class="form-group ChillerTemp">
  1066. <label>Chiller Temperature</label>
  1067. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['ChilleTemp']!=255?$obj['DDChargingInfo4']['ChillerTemp']." ℃":"not supported";?>">
  1068. </div>
  1069. <div class="form-group" style="display:<?php echo $am001;?>">
  1070. <label>Present Charging Voltage</label>
  1071. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingVoltage'],2);?> volt">
  1072. </div>
  1073. <div class="form-group" style="display:<?php echo $am111;?>">
  1074. <label>Present Charging Current</label>
  1075. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingCurrent'],2);?> amp">
  1076. </div>
  1077. <div class="form-group" style="display:<?php echo $am111;?>">
  1078. <label>Present Charging Power</label>
  1079. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingPower'],2);?> kW">
  1080. </div>
  1081. <div class="form-group" style="display:<?php echo $am111;?>">
  1082. <label>Present Charging Energy</label>
  1083. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo4']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1084. </div>
  1085. <div class="form-group" style="display:<?php echo $am111;?>">
  1086. <label>Present Charging Duration</label>
  1087. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['PresentChargedDuration'];?> seconds">
  1088. </div>
  1089. <div class="form-group" style="display:<?php echo $am001;?>">
  1090. <label>Remain Charging Time</label>
  1091. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['RemainChargingDuration'];?> seconds">
  1092. </div>
  1093. <div class="form-group" style="display:<?php echo $am001;?>">
  1094. <label>EV Battery Max Voltage</label>
  1095. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['EvBatteryMaxVoltage'],2);?> volt">
  1096. </div>
  1097. <div class="form-group" style="display:<?php echo $am001;?>">
  1098. <label>EV Battery Target Voltage</label>
  1099. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['EvBatterytargetVoltage'],2);?> volt">
  1100. </div>
  1101. <div class="form-group" style="display:<?php echo $am001;?>">
  1102. <label>EV Battery Soc</label>
  1103. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['EvBatterySoc'];?>">
  1104. </div>
  1105. <div class="form-group" style="display:<?php echo $am111;?>">
  1106. <label>Totalize Power Consumption</label>
  1107. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo4']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1108. </div>
  1109. </section>
  1110. </article>
  1111. <?php }?>
  1112. <?php } else { ?>
  1113. <?php if($obj['ChargingInfo1']){ $idx++;?>
  1114. <!--Charging Information-->
  1115. <article class="envor-sorting-item css">
  1116. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType1.")"; ?><i class="fa fa-plus"></i></header>
  1117. <section>
  1118. <div class="form-group" style="display:<?php echo $am111;?>">
  1119. <label>User Id</label>
  1120. <input type="text" readonly class="form-control" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
  1121. <input type="hidden" name="UserId1" id="UserId1" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
  1122. </div>
  1123. <div class="form-group" style="display:<?php echo $am111;?>">
  1124. <label>Start Date Time</label>
  1125. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
  1126. <input type="hidden" name="StartDateTime1" id="StartDateTime1" value="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
  1127. </div>
  1128. <div class="form-group" style="display:<?php echo $am111;?>">
  1129. <label>Stop Date Time</label>
  1130. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StopDateTime'];?>">
  1131. <input type="hidden" name="StopDateTime1" id="StopDateTime1" value="<?php echo $obj['ChargingInfo1']['StopDateTime'];?>">
  1132. </div>
  1133. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1134. <label>StartMethod</label>
  1135. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartMethod'];?>">
  1136. <input type="hidden" name="StartMethod1" id="StartMethod1" value="<?php echo $obj['ChargingInfo1']['StartMethod'];?>">
  1137. </div>*/?>
  1138. <div class="form-group" style="display:<?php echo $am111;?>">
  1139. <label>System Status</label>
  1140. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus1;?>">
  1141. <input type="hidden" name="SystemStatus1" id="SystemStatus1" value="<?php echo $obj['ChargingInfo1']['SystemStatus'];?>">
  1142. </div>
  1143. <div class="form-group" style="display:<?php echo $am111;?>">
  1144. <label>Connector Temperature</label>
  1145. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['ConnectorTemp']!=255?$obj['ChargingInfo1']['ConnectorTemp']." ℃":"not supported";?>">
  1146. <input type="hidden" name="ConnectorTemp1" id="ConnectorTemp1" value="<?php echo $obj['ChargingInfo1']['ConnectorTemp'];?>">
  1147. </div>
  1148. <div class="form-group ChillerTemp1">
  1149. <label>Chiller Temperature</label>
  1150. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['ChillerTemp']!=255?$obj['ChargingInfo1']['ChillerTemp']." ℃":"not supported";?>">
  1151. <input type="hidden" name="ChillerTemp" id="ChillerTemp" value="<?php echo $obj['ChargingInfo1']['ChillerTemp'];?>">
  1152. </div>
  1153. <div class="form-group" style="display:<?php echo $am001;?>">
  1154. <label>Present Charging Voltage</label>
  1155. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingVoltage'],2);?> volt">
  1156. <input type="hidden" name="PresentChargingVoltage1" id="PresentChargingVoltage1" value="<?php echo $obj['ChargingInfo1']['PresentChargingVoltage'];?>">
  1157. </div>
  1158. <div class="form-group" style="display:<?php echo $am111;?>">
  1159. <label>Present Charging Current</label>
  1160. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingCurrent'],2);?> amp">
  1161. <input type="hidden" name="PresentChargingCurrent1" id="PresentChargingCurrent1" value="<?php echo $obj['ChargingInfo1']['PresentChargingCurrent'];?>">
  1162. </div>
  1163. <div class="form-group" style="display:<?php echo $am111;?>">
  1164. <label>Present Charging Power</label>
  1165. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingPower'],2);?> kW">
  1166. <input type="hidden" name="PresentChargingPower1" id="PresentChargingPower1" value="<?php echo $obj['ChargingInfo1']['PresentChargingPower'];?>">
  1167. </div>
  1168. <div class="form-group" style="display:<?php echo $am111;?>">
  1169. <label>Present Charging Energy</label>
  1170. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo1']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1171. <input type="hidden" name="PresentChargedEnergy1" id="PresentChargedEnergy1" value="<?php echo $obj['ChargingInfo1']['PresentChargedEnergy'];?>">
  1172. </div>
  1173. <div class="form-group" style="display:<?php echo $am111;?>">
  1174. <label>Present Charging Duration</label>
  1175. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?> seconds">
  1176. <input type="hidden" name="PresentChargedDuration1" id="PresentChargedDuration1" value="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?>">
  1177. </div>
  1178. <div class="form-group" style="display:<?php echo $am001;?>">
  1179. <label>Remain Charging Time</label>
  1180. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?> seconds">
  1181. <input type="hidden" name="RemainChargingDuration1" id="RemainChargingDuration1" value="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?>">
  1182. </div>
  1183. <div class="form-group" style="display:<?php echo $am001;?>">
  1184. <label>EV Battery Max Voltage</label>
  1185. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['EvBatteryMaxVoltage'],2);?> volt">
  1186. <input type="hidden" name="EvBatteryMaxVoltage1" id="EvBatteryMaxVoltage1" value="<?php echo $obj['ChargingInfo1']['EvBatteryMaxVoltage'];?>">
  1187. </div>
  1188. <div class="form-group" style="display:<?php echo $am001;?>">
  1189. <label>EV Battery Target Voltage</label>
  1190. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['EvBatterytargetVoltage'],2);?> volt">
  1191. <input type="hidden" name="EvBatterytargetVoltage1" id="EvBatterytargetVoltage1" value="<?php echo $obj['ChargingInfo1']['EvBatterytargetVoltage'];?>">
  1192. </div>
  1193. <div class="form-group" style="display:<?php echo $am001;?>">
  1194. <label>EV Battery Soc</label>
  1195. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
  1196. <input type="hidden" name="EvBatterySoc1" id="EvBatterySoc1" value="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
  1197. </div>
  1198. <div class="form-group" style="display:<?php echo $am111;?>">
  1199. <label>Totalize Power Consumption</label>
  1200. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo1']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1201. </div>
  1202. </section>
  1203. </article>
  1204. <?php }?>
  1205. <?php if($obj['ChargingInfo2']){ $idx++;?>
  1206. <!--Charging Information-->
  1207. <article class="envor-sorting-item css">
  1208. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType2.")"; ?><i class="fa fa-plus"></i></header>
  1209. <section>
  1210. <div class="form-group" style="display:<?php echo $am111;?>">
  1211. <label>User Id</label>
  1212. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
  1213. <input type="hidden" name="UserId2" id="UserId2" value="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
  1214. </div>
  1215. <div class="form-group" style="display:<?php echo $am111;?>">
  1216. <label>Start Date Time</label>
  1217. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
  1218. <input type="hidden" name="StartDateTime2" id="StartDateTime2" value="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
  1219. </div>
  1220. <div class="form-group" style="display:<?php echo $am111;?>">
  1221. <label>Stop Date Time</label>
  1222. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StopDateTime'];?>">
  1223. <input type="hidden" name="StopDateTime2" id="StopDateTime2" value="<?php echo $obj['ChargingInfo2']['StopDateTime'];?>">
  1224. </div>
  1225. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1226. <label>StartMethod</label>
  1227. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartMethod'];?>">
  1228. <input type="hidden" name="StartMethod2" id="StartMethod2" value="<?php echo $obj['ChargingInfo2']['StartMethod'];?>">
  1229. </div>*/?>
  1230. <div class="form-group" style="display:<?php echo $am111;?>">
  1231. <label>System Status</label>
  1232. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus2;?>">
  1233. <input type="hidden" name="SystemStatus2" id="SystemStatus2" value="<?php echo $obj['ChargingInfo2']['SystemStatus'];?>">
  1234. </div>
  1235. <div class="form-group" style="display:<?php echo $am111;?>">
  1236. <label>Connector Temperature</label>
  1237. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['ConnectorTemp']!=255?$obj['ChargingInfo2']['ConnectorTemp']." ℃":"not supported";?>">
  1238. <input type="hidden" name="ConnectorTemp2" id="ConnectorTemp2" value="<?php echo $obj['ChargingInfo2']['ConnectorTemp'];?>">
  1239. </div>
  1240. <div class="form-group ChillerTemp2">
  1241. <label>Chiller Temperature</label>
  1242. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['ChillerTemp']!=255?$obj['ChargingInfo2']['ChillerTemp']." ℃":"not supported";?>">
  1243. <input type="hidden" name="ChillerTemp2" id="ChillerTemp2" value="<?php echo $obj['ChargingInfo2']['ChillerTemp'];?>">
  1244. </div>
  1245. <div class="form-group" style="display:<?php echo $am001;?>">
  1246. <label>Present Charging Voltage</label>
  1247. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingVoltage'],2);?> volt">
  1248. <input type="hidden" name="PresentChargingVoltage2" id="PresentChargingVoltage2" value="<?php echo $obj['ChargingInfo2']['PresentChargingVoltage'];?>">
  1249. </div>
  1250. <div class="form-group" style="display:<?php echo $am111;?>">
  1251. <label>Present Charging Current</label>
  1252. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingCurrent'],2);?> amp">
  1253. <input type="hidden" name="PresentChargingCurrent2" id="PresentChargingCurrent2" value="<?php echo $obj['ChargingInfo2']['PresentChargingCurrent'];?>">
  1254. </div>
  1255. <div class="form-group" style="display:<?php echo $am111;?>">
  1256. <label>Present Charging Power</label>
  1257. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingPower'],2);?> kW">
  1258. <input type="hidden" name="PresentChargingPower2" id="PresentChargingPower2" value="<?php echo $obj['ChargingInfo2']['PresentChargingPower'];?>">
  1259. </div>
  1260. <div class="form-group" style="display:<?php echo $am111;?>">
  1261. <label>Present Charging Energy</label>
  1262. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo2']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1263. <input type="hidden" name="PresentChargedEnergy2" id="PresentChargedEnergy2" value="<?php echo $obj['ChargingInfo2']['PresentChargedEnergy'];?>">
  1264. </div>
  1265. <div class="form-group" style="display:<?php echo $am111;?>">
  1266. <label>Present Charging Duration</label>
  1267. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?> seconds">
  1268. <input type="hidden" name="PresentChargedDuration2" id="PresentChargedDuration2" value="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?>">
  1269. </div>
  1270. <div class="form-group" style="display:<?php echo $am001;?>">
  1271. <label>Remain Charging Time</label>
  1272. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?> seconds">
  1273. <input type="hidden" name="RemainChargingDuration2" id="RemainChargingDuration2" value="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?>">
  1274. </div>
  1275. <div class="form-group" style="display:<?php echo $am001;?>">
  1276. <label>EV Battery Max Voltage</label>
  1277. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['EvBatteryMaxVoltage'],2);?> volt">
  1278. <input type="hidden" name="EvBatteryMaxVoltage2" id="EvBatteryMaxVoltage2" value="<?php echo $obj['ChargingInfo2']['EvBatteryMaxVoltage'];?>">
  1279. </div>
  1280. <div class="form-group" style="display:<?php echo $am001;?>">
  1281. <label>EV Battery Target Voltage</label>
  1282. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['EvBatterytargetVoltage'],2);?> volt">
  1283. <input type="hidden" name="EvBatterytargetVoltage2" id="EvBatterytargetVoltage2" value="<?php echo $obj['ChargingInfo2']['EvBatterytargetVoltage'];?>">
  1284. </div>
  1285. <div class="form-group" style="display:<?php echo $am001;?>">
  1286. <label>EV Battery Soc</label>
  1287. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
  1288. <input type="hidden" name="EvBatterySoc2" id="EvBatterySoc2" value="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
  1289. </div>
  1290. <div class="form-group" style="display:<?php echo $am111;?>">
  1291. <label>Totalize Power Consumption</label>
  1292. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo2']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1293. </div>
  1294. </section>
  1295. </article>
  1296. <?php }?>
  1297. <?php if($obj['ChargingInfo3']){ $idx++;?>
  1298. <!--Charging Information-->
  1299. <article class="envor-sorting-item css">
  1300. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType3.")"; ?><i class="fa fa-plus"></i></header>
  1301. <section>
  1302. <div class="form-group" style="display:<?php echo $am111;?>">
  1303. <label>User Id</label>
  1304. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
  1305. <input type="hidden" name="UserId3" id="UserId3" value="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
  1306. </div>
  1307. <div class="form-group" style="display:<?php echo $am111;?>">
  1308. <label>Start Date Time</label>
  1309. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
  1310. <input type="hidden" name="StartDateTime3" id="StartDateTime3" value="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
  1311. </div>
  1312. <div class="form-group" style="display:<?php echo $am111;?>">
  1313. <label>Stop Date Time</label>
  1314. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StopDateTime'];?>">
  1315. <input type="hidden" name="StopDateTime3" id="StopDateTime3" value="<?php echo $obj['ChargingInfo3']['StopDateTime'];?>">
  1316. </div>
  1317. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1318. <label>StartMethod</label>
  1319. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartMethod'];?>">
  1320. <input type="hidden" name="StartMethod3" id="StartMethod3" value="<?php echo $obj['ChargingInfo3']['StartMethod'];?>">
  1321. </div>*/?>
  1322. <div class="form-group" style="display:<?php echo $am111;?>">
  1323. <label>System Status</label>
  1324. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus3;?>">
  1325. <input type="hidden" name="SystemStatus3" id="SystemStatus3" value="<?php echo $obj['ChargingInfo3']['SystemStatus'];?>">
  1326. </div>
  1327. <div class="form-group" style="display:<?php echo $am111;?>">
  1328. <label>Connector Temperature</label>
  1329. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['ConnectorTemp']!=255?$obj['ChargingInfo3']['ConnectorTemp']." ℃":"not supported";?>">
  1330. <input type="hidden" name="ConnectorTemp3" id="ConnectorTemp3" value="<?php echo $obj['ChargingInfo3']['ConnectorTemp'];?>">
  1331. </div>
  1332. <div class="form-group ChillerTemp3">
  1333. <label>Chiller Temperature</label>
  1334. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['ChillerTemp']!=255?$obj['ChargingInfo3']['ChillerTemp']." ℃":"not supported";?>">
  1335. <input type="hidden" name="ChillerTemp3" id="ChillerTemp3" value="<?php echo $obj['ChargingInfo3']['ChillerTemp'];?>">
  1336. </div>
  1337. <div class="form-group" style="display:<?php echo $am001;?>">
  1338. <label>Present Charging Voltage</label>
  1339. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingVoltage'],2);?> volt">
  1340. <input type="hidden" name="PresentChargingVoltage3" id="PresentChargingVoltage3" value="<?php echo $obj['ChargingInfo3']['PresentChargingVoltage'];?>">
  1341. </div>
  1342. <div class="form-group" style="display:<?php echo $am111;?>">
  1343. <label>Present Charging Current</label>
  1344. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingCurrent'],2);?> amp">
  1345. <input type="hidden" name="PresentChargingCurrent3" id="PresentChargingCurrent3" value="<?php echo $obj['ChargingInfo3']['PresentChargingCurrent'];?>">
  1346. </div>
  1347. <div class="form-group" style="display:<?php echo $am111;?>">
  1348. <label>Present Charging Power</label>
  1349. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingPower'],2);?> kW">
  1350. <input type="hidden" name="PresentChargingPower3" id="PresentChargingPower3" value="<?php echo $obj['ChargingInfo3']['PresentChargingPower'];?>">
  1351. </div>
  1352. <div class="form-group" style="display:<?php echo $am111;?>">
  1353. <label>Present Charging Energy</label>
  1354. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo3']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1355. <input type="hidden" name="PresentChargedEnergy3" id="PresentChargedEnergy3" value="<?php echo $obj['ChargingInfo3']['PresentChargedEnergy'];?>">
  1356. </div>
  1357. <div class="form-group" style="display:<?php echo $am111;?>">
  1358. <label>Present Charging Duration</label>
  1359. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?> seconds">
  1360. <input type="hidden" name="PresentChargedDuration3" id="PresentChargedDuration3" value="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?>">
  1361. </div>
  1362. <div class="form-group" style="display:<?php echo $am001;?>">
  1363. <label>Remain Charging Time</label>
  1364. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?> seconds">
  1365. <input type="hidden" name="RemainChargingDuration3" id="RemainChargingDuration3" value="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?>">
  1366. </div>
  1367. <div class="form-group" style="display:<?php echo $am001;?>">
  1368. <label>EV Battery Max Voltage</label>
  1369. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['EvBatteryMaxVoltage'],2);?> volt">
  1370. <input type="hidden" name="EvBatteryMaxVoltage3" id="EvBatteryMaxVoltage3" value="<?php echo $obj['ChargingInfo3']['EvBatteryMaxVoltage'];?>">
  1371. </div>
  1372. <div class="form-group" style="display:<?php echo $am001;?>">
  1373. <label>EV Battery Target Voltage</label>
  1374. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['EvBatterytargetVoltage'],2);?> volt">
  1375. <input type="hidden" name="EvBatterytargetVoltage3" id="EvBatterytargetVoltage3" value="<?php echo $obj['ChargingInfo3']['EvBatterytargetVoltage'];?>">
  1376. </div>
  1377. <div class="form-group" style="display:<?php echo $am001;?>">
  1378. <label>EV Battery Soc</label>
  1379. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
  1380. <input type="hidden" name="EvBatterySoc3" id="EvBatterySoc3" value="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
  1381. </div>
  1382. <div class="form-group" style="display:<?php echo $am111;?>">
  1383. <label>Totalize Power Consumption</label>
  1384. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo3']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1385. </div>
  1386. </section>
  1387. </article>
  1388. <?php }?>
  1389. <?php } ?>
  1390. <article class="envor-sorting-item css">
  1391. <div align="center"><button id="save"><?php echo $lang->showWord("set")?></button></div>
  1392. </article>
  1393. </div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. </div>
  1398. </section>
  1399. </div>
  1400. <?php
  1401. include 'foot.php';
  1402. ?>
  1403. <script type="text/JavaScript">
  1404. $(document).ready(function(){
  1405. if(document.getElementById("MaxChargingEnergy").value=="0" || document.getElementById("MaxChargingEnergy").value==""){
  1406. document.getElementById("MaxChargingEnergyText").style.display="block";
  1407. }
  1408. if(document.getElementById("MaxChargingPower").value=="0" || document.getElementById("MaxChargingPower").value==""){
  1409. document.getElementById("MaxChargingPowerText").style.display="block";
  1410. }
  1411. if(document.getElementById("MaxChargingCurrent").value=="0" || document.getElementById("MaxChargingCurrent").value==""){
  1412. document.getElementById("MaxChargingCurrentText").style.display="block";
  1413. }
  1414. if(document.getElementById("MaxChargingDuration").value=="0" || document.getElementById("MaxChargingDuration").value==""){
  1415. document.getElementById("MaxChargingDurationText").style.display="block";
  1416. }
  1417. if(document.getElementById("ModelName").value.substr(8,1) != "0"){
  1418. document.getElementById("AcMaxChargingCurrentDiv").style.display="block";
  1419. if(document.getElementById("AcMaxChargingCurrent").value=="0" || document.getElementById("AcMaxChargingCurrent").value==""){
  1420. document.getElementById("AcMaxChargingCurrentText").style.display="block";
  1421. }
  1422. document.getElementById("MaxChargingEnergyLbl").innerHTML="DC MaxCharging Energy";
  1423. document.getElementById("MaxChargingPowerLbl").innerHTML="DC MaxCharging Power";
  1424. document.getElementById("MaxChargingCurrentLbl").innerHTML="DC MaxCharging Current";
  1425. document.getElementById("MaxChargingDurationLbl").innerHTML="DC MaxCharging Duration";
  1426. }
  1427. else{
  1428. document.getElementById("AcMaxChargingCurrentDiv").style.display="none";
  1429. }
  1430. isBilling_clicked();
  1431. document.getElementById("MaxChargingEnergy").addEventListener("change", function() {
  1432. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1433. document.getElementById(this.id+"Text").style.display="block";
  1434. }
  1435. else{
  1436. document.getElementById(this.id+"Text").style.display="none";
  1437. }
  1438. });
  1439. document.getElementById("MaxChargingPower").addEventListener("change", function() {
  1440. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1441. document.getElementById(this.id+"Text").style.display="block";
  1442. }
  1443. else{
  1444. document.getElementById(this.id+"Text").style.display="none";
  1445. }
  1446. });
  1447. document.getElementById("MaxChargingCurrent").addEventListener("change", function() {
  1448. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1449. document.getElementById(this.id+"Text").style.display="block";
  1450. }
  1451. else{
  1452. document.getElementById(this.id+"Text").style.display="none";
  1453. }
  1454. });
  1455. document.getElementById("MaxChargingDuration").addEventListener("change", function() {
  1456. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1457. document.getElementById(this.id+"Text").style.display="block";
  1458. }
  1459. else{
  1460. document.getElementById(this.id+"Text").style.display="none";
  1461. }
  1462. });
  1463. document.getElementById("AcMaxChargingCurrent").addEventListener("change", function() {
  1464. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  1465. document.getElementById(this.id+"Text").style.display="block";
  1466. }
  1467. else{
  1468. document.getElementById(this.id+"Text").style.display="none";
  1469. }
  1470. });
  1471. if(document.getElementById("ModelName").value.substr(0,2) == "DO" || document.getElementById("ModelName").value.substr(0,2) == "DK"){
  1472. document.getElementsByClassName("ChillerTemp").style.display="block";
  1473. }
  1474. else{
  1475. document.getElementsByClassName("ChillerTemp").style.display="none";
  1476. }
  1477. if(document.getElementById("ModelName").value.substr(7,1) == "V" || document.getElementById("ModelName").value.substr(7,1) == "F" || document.getElementById("ModelName").value.substr(7,1) == "P" || document.getElementById("ModelName").value.substr(7,1) == "R"){
  1478. document.getElementsByClassName("ChillerTemp1").style.display="block";
  1479. }
  1480. else{
  1481. document.getElementsByClassName("ChillerTemp1").style.display="none";
  1482. }
  1483. if(document.getElementById("ModelName").value.substr(9,1) == "V" || document.getElementById("ModelName").value.substr(9,1) == "F" || document.getElementById("ModelName").value.substr(9,1) == "P" || document.getElementById("ModelName").value.substr(9,1) == "R"){
  1484. document.getElementsByClassName("ChillerTemp2").style.display="block";
  1485. }
  1486. else{
  1487. document.getElementsByClassName("ChillerTemp2").style.display="none";
  1488. }
  1489. if(document.getElementById("ModelName").value.substr(8,1) == "V" || document.getElementById("ModelName").value.substr(8,1) == "F" || document.getElementById("ModelName").value.substr(8,1) == "P" || document.getElementById("ModelName").value.substr(8,1) == "R"){
  1490. document.getElementsByClassName("ChillerTemp3").style.display="block";
  1491. }
  1492. else{
  1493. document.getElementsByClassName("ChillerTemp3").style.display="none";
  1494. }
  1495. });
  1496. document.getElementById("save").onclick = function() {
  1497. if(formCheck())
  1498. {
  1499. window.location="#loadinghref";
  1500. document.getElementById("loading").style.display="block";
  1501. // 發送 Ajax 查詢請求並處理
  1502. var request = new XMLHttpRequest();
  1503. request.open("POST", "set_charging_action.php");
  1504. // POST 參數須使用 send() 發送
  1505. var data = "MaxChargingEnergy=" + document.getElementById("MaxChargingEnergy").value +
  1506. "&MaxChargingPower=" + document.getElementById("MaxChargingPower").value +
  1507. "&MaxChargingCurrent=" + document.getElementById("MaxChargingCurrent").value+
  1508. "&AcMaxChargingCurrent=" + document.getElementById("AcMaxChargingCurrent").value+
  1509. "&MaxChargingDuration=" + document.getElementById("MaxChargingDuration").value+
  1510. "&StopChargingByButton=" + document.getElementById("StopChargingByButton").value+
  1511. "&LocalWhiteCard0=" + document.getElementById("LocalWhiteCard0").value+
  1512. "&LocalWhiteCard1=" + document.getElementById("LocalWhiteCard1").value+
  1513. "&LocalWhiteCard2=" + document.getElementById("LocalWhiteCard2").value+
  1514. "&LocalWhiteCard3=" + document.getElementById("LocalWhiteCard3").value+
  1515. "&LocalWhiteCard4=" + document.getElementById("LocalWhiteCard4").value+
  1516. "&LocalWhiteCard5=" + document.getElementById("LocalWhiteCard5").value+
  1517. "&LocalWhiteCard6=" + document.getElementById("LocalWhiteCard6").value+
  1518. "&LocalWhiteCard7=" + document.getElementById("LocalWhiteCard7").value+
  1519. "&LocalWhiteCard8=" + document.getElementById("LocalWhiteCard8").value+
  1520. "&LocalWhiteCard9=" + document.getElementById("LocalWhiteCard9").value+
  1521. "&isBilling=" + (document.getElementById("isBilling").checked?1:0)+
  1522. "&Currency=" + document.getElementById("Currency").value+
  1523. "&Fee0=" + document.getElementById("Fee0").value+
  1524. "&Fee1=" + document.getElementById("Fee1").value+
  1525. "&Fee2=" + document.getElementById("Fee2").value+
  1526. "&Fee3=" + document.getElementById("Fee3").value+
  1527. "&Fee4=" + document.getElementById("Fee4").value+
  1528. "&Fee5=" + document.getElementById("Fee5").value+
  1529. "&Fee6=" + document.getElementById("Fee6").value+
  1530. "&Fee7=" + document.getElementById("Fee7").value+
  1531. "&Fee8=" + document.getElementById("Fee8").value+
  1532. "&Fee9=" + document.getElementById("Fee9").value+
  1533. "&Fee10=" + document.getElementById("Fee10").value+
  1534. "&Fee11=" + document.getElementById("Fee11").value+
  1535. "&Fee12=" + document.getElementById("Fee12").value+
  1536. "&Fee13=" + document.getElementById("Fee13").value+
  1537. "&Fee14=" + document.getElementById("Fee14").value+
  1538. "&Fee15=" + document.getElementById("Fee15").value+
  1539. "&Fee16=" + document.getElementById("Fee16").value+
  1540. "&Fee17=" + document.getElementById("Fee17").value+
  1541. "&Fee18=" + document.getElementById("Fee18").value+
  1542. "&Fee19=" + document.getElementById("Fee19").value+
  1543. "&Fee20=" + document.getElementById("Fee20").value+
  1544. "&Fee21=" + document.getElementById("Fee21").value+
  1545. "&Fee22=" + document.getElementById("Fee22").value+
  1546. "&Fee23=" + document.getElementById("Fee23").value;
  1547. // POST 請求必須設置表頭在 open() 下面,send() 上面
  1548. request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1549. request.send(data);
  1550. request.onreadystatechange = function() {
  1551. // 伺服器請求完成
  1552. if (request.readyState == 4) {
  1553. document.getElementById("loading").style.display="none";
  1554. // 伺服器回應成功
  1555. if (request.status == 200 && JSON.parse(request.responseText).result=="Success") {
  1556. alert("<?php echo $lang->showWord("done")?>");
  1557. location.href="set_charging.php";
  1558. } else {
  1559. alert(JSON.parse(request.responseText).message);
  1560. }
  1561. request = null;
  1562. }
  1563. }
  1564. }
  1565. }
  1566. function formCheck()
  1567. {
  1568. var LocalWhiteCard0 = document.getElementById("LocalWhiteCard0").value;
  1569. var LocalWhiteCard1 = document.getElementById("LocalWhiteCard1").value;
  1570. var LocalWhiteCard2 = document.getElementById("LocalWhiteCard2").value;
  1571. var LocalWhiteCard3 = document.getElementById("LocalWhiteCard3").value;
  1572. var LocalWhiteCard4 = document.getElementById("LocalWhiteCard4").value;
  1573. var LocalWhiteCard5 = document.getElementById("LocalWhiteCard5").value;
  1574. var LocalWhiteCard6 = document.getElementById("LocalWhiteCard6").value;
  1575. var LocalWhiteCard7 = document.getElementById("LocalWhiteCard7").value;
  1576. var LocalWhiteCard8 = document.getElementById("LocalWhiteCard8").value;
  1577. var LocalWhiteCard9 = document.getElementById("LocalWhiteCard9").value;
  1578. var RatingCurrent = document.getElementById("RatingCurrent").value;
  1579. var RatingPower = document.getElementById("RatingPower").value;
  1580. var MaxChargingEnergy = document.getElementById("MaxChargingEnergy").value;
  1581. var MaxChargingPower = document.getElementById("MaxChargingPower").value;
  1582. var MaxChargingCurrent = document.getElementById("MaxChargingCurrent").value;
  1583. var AcMaxChargingCurrent = document.getElementById("AcMaxChargingCurrent").value;
  1584. var MaxChargingDuration = document.getElementById("MaxChargingDuration").value;
  1585. if(LocalWhiteCard0 != ""){
  1586. if(LocalWhiteCard0.length>32){
  1587. alert("Local White Card0 must be less than 32 bytes!");
  1588. document.getElementById("LocalWhiteCard0").focus();
  1589. return false;
  1590. }
  1591. }
  1592. if(LocalWhiteCard1 != ""){
  1593. if(LocalWhiteCard1.length>32){
  1594. alert("Local White Card1 must be less than 32 bytes!");
  1595. document.getElementById("LocalWhiteCard1").focus();
  1596. return false;
  1597. }
  1598. }
  1599. if(LocalWhiteCard2 != ""){
  1600. if(LocalWhiteCard2.length>32){
  1601. alert("Local White Card2 must be less than 32 bytes!");
  1602. document.getElementById("LocalWhiteCard2").focus();
  1603. return false;
  1604. }
  1605. }
  1606. if(LocalWhiteCard3 != ""){
  1607. if(LocalWhiteCard3.length>32){
  1608. alert("Local White Card3 must be less than 32 bytes!");
  1609. document.getElementById("LocalWhiteCard3").focus();
  1610. return false;
  1611. }
  1612. }
  1613. if(LocalWhiteCard4 != ""){
  1614. if(LocalWhiteCard4.length>32){
  1615. alert("Local White Card4 must be less than 32 bytes!");
  1616. document.getElementById("LocalWhiteCard4").focus();
  1617. return false;
  1618. }
  1619. }
  1620. if(LocalWhiteCard5 != ""){
  1621. if(LocalWhiteCard5.length>32){
  1622. alert("Local White Card5 must be less than 32 bytes!");
  1623. document.getElementById("LocalWhiteCard5").focus();
  1624. return false;
  1625. }
  1626. }
  1627. if(LocalWhiteCard6 != ""){
  1628. if(LocalWhiteCard6.length>32){
  1629. alert("Local White Card6 must be less than 32 bytes!");
  1630. document.getElementById("LocalWhiteCard6").focus();
  1631. return false;
  1632. }
  1633. }
  1634. if(LocalWhiteCard7 != ""){
  1635. if(LocalWhiteCard7.length>32){
  1636. alert("Local White Card7 must be less than 32 bytes!");
  1637. document.getElementById("LocalWhiteCard7").focus();
  1638. return false;
  1639. }
  1640. }
  1641. if(LocalWhiteCard8 != ""){
  1642. if(LocalWhiteCard8.length>32){
  1643. alert("Local White Card8 must be less than 32 bytes!");
  1644. document.getElementById("LocalWhiteCard8").focus();
  1645. return false;
  1646. }
  1647. }
  1648. if(LocalWhiteCard9 != ""){
  1649. if(LocalWhiteCard9.length>32){
  1650. alert("Local White Card9 must be less than 32 bytes!");
  1651. document.getElementById("LocalWhiteCard9").focus();
  1652. return false;
  1653. }
  1654. }
  1655. if(MaxChargingEnergy =="")
  1656. {
  1657. alert("Fill Max Charging Energy !");
  1658. document.getElementById("MaxChargingEnergy").focus();
  1659. return false;
  1660. }
  1661. if(MaxChargingEnergy >65535)
  1662. {
  1663. alert("Max Charging Energy must <= 65535!");
  1664. document.getElementById("MaxChargingEnergy").focus();
  1665. return false;
  1666. }
  1667. if(MaxChargingEnergy < 0)
  1668. {
  1669. alert("Max Charging Energy must >= 0!");
  1670. document.getElementById("MaxChargingEnergy").focus();
  1671. return false;
  1672. }
  1673. if(MaxChargingPower =="")
  1674. {
  1675. alert("Fill Max Charging Power !");
  1676. document.getElementById("MaxChargingPower").focus();
  1677. return false;
  1678. }
  1679. if(RatingPower!="" && RatingPower!=0){
  1680. if(parseFloat(MaxChargingPower) > parseFloat(RatingPower))
  1681. {
  1682. alert("Max Charging Power must be less than RatingPower("+RatingPower+")!");
  1683. document.getElementById("MaxChargingPower").focus();
  1684. return false;
  1685. }
  1686. }
  1687. else{
  1688. if(MaxChargingPower >65535)
  1689. {
  1690. alert("Max Charging Power must <= 65535!");
  1691. document.getElementById("MaxChargingPower").focus();
  1692. return false;
  1693. }
  1694. }
  1695. if(MaxChargingCurrent =="")
  1696. {
  1697. alert("Fill Max Charging Current !");
  1698. document.getElementById("MaxChargingCurrent").focus();
  1699. return false;
  1700. }
  1701. if(RatingCurrent!="" && RatingCurrent!=0){
  1702. if(parseFloat(MaxChargingCurrent) > parseFloat(RatingCurrent))
  1703. {
  1704. alert("Max Charging Current must be less than RatingCurrent("+RatingCurrent+")!");
  1705. document.getElementById("MaxChargingCurrent").focus();
  1706. return false;
  1707. }
  1708. }
  1709. else{
  1710. if(MaxChargingCurrent >65535)
  1711. {
  1712. alert("Max Charging Current must <= 65535!");
  1713. document.getElementById("MaxChargingCurrent").focus();
  1714. return false;
  1715. }
  1716. }
  1717. if(document.getElementById("ModelName").value.substr(8,1)!= "0" && AcMaxChargingCurrent =="")
  1718. {
  1719. alert("Fill AC Max Charging Current !");
  1720. document.getElementById("AcMaxChargingCurrent").focus();
  1721. return false;
  1722. }
  1723. if(AcRatingCurrent!="" && AcRatingCurrent!=0){
  1724. if(parseFloat(AcMaxChargingCurrent) > parseFloat(AcRatingCurrent))
  1725. {
  1726. alert("Ac Max Charging Current must be less than Ac Rating Current("+AcRatingCurrent+")!");
  1727. document.getElementById("AcMaxChargingCurrent").focus();
  1728. return false;
  1729. }
  1730. }
  1731. else{
  1732. if(AcMaxChargingCurrent >65535)
  1733. {
  1734. alert("Ac Max Charging Current must <= 65535!");
  1735. document.getElementById("AcMaxChargingCurrent").focus();
  1736. return false;
  1737. }
  1738. if(AcMaxChargingCurrent < 0)
  1739. {
  1740. alert("Ac Max Charging Current must >= 0!");
  1741. document.getElementById("AcMaxChargingCurrent").focus();
  1742. return false;
  1743. }
  1744. }
  1745. if(MaxChargingCurrent =="")
  1746. {
  1747. alert("Fill Max Charging Current !");
  1748. document.getElementById("MaxChargingCurrent").focus();
  1749. return false;
  1750. }
  1751. if(MaxChargingCurrent < 0)
  1752. {
  1753. alert("MaxChargingCurrent must >= 0!");
  1754. document.getElementById("MaxChargingCurrent").focus();
  1755. return false;
  1756. }
  1757. if(MaxChargingDuration >65535)
  1758. {
  1759. alert("MaxChargingDuration must <= 65535!");
  1760. document.getElementById("MaxChargingDuration").focus();
  1761. return false;
  1762. }
  1763. if(MaxChargingDuration =="")
  1764. {
  1765. alert("Fill Max Charging Duration !");
  1766. document.getElementById("MaxChargingDuration").focus();
  1767. return false;
  1768. }
  1769. if(MaxChargingDuration < 0)
  1770. {
  1771. alert("MaxChargingDuration must >= 0!");
  1772. document.getElementById("MaxChargingDuration").focus();
  1773. return false;
  1774. }
  1775. return true;
  1776. }
  1777. function isBilling_clicked(){
  1778. if(document.getElementById("isBilling").checked){
  1779. document.getElementById("CurrencyDiv").style.display="block";
  1780. document.getElementById("FeeDiv").style.display="block";
  1781. }
  1782. else{
  1783. document.getElementById("CurrencyDiv").style.display="none";
  1784. document.getElementById("FeeDiv").style.display="none";
  1785. }
  1786. }
  1787. function isNumberKey(evt)
  1788. {
  1789. var charCode = (evt.which) ? evt.which : event.keyCode
  1790. if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode != 46))
  1791. return false;
  1792. return true;
  1793. }
  1794. </script>
  1795. </html>