set_charging.php 121 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491
  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" && substr($ModelName,0,2)!="DB"){
  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" || $connector == "B" || $connector == "H" || $connector == "A"){
  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. <?php if(substr($ModelName,0,2)=="AX"){?>
  519. /* Colors: Default (blue) */
  520. .toggle-switchy {color:#fff;}
  521. .toggle-switchy > input + .toggle:before {content:'Calibrated';}
  522. .toggle-switchy > input + .toggle:after {content:'Default';}
  523. .toggle-switchy > input + .toggle > .switch {background:#fff;}
  524. .toggle-switchy > input + .toggle + .label {color:#000;}
  525. .toggle-switchy > input:checked + .toggle {background:#3498db;}
  526. .toggle-switchy > input:not(:checked) + .toggle {background:#ccc;}
  527. .toggle-switchy > input:checked + .toggle > .switch {border:3px solid #3498db;}
  528. .toggle-switchy > input:not(:checked) + .toggle > .switch {border:3px solid #ccc;}
  529. .toggle-switchy > input:focus + .toggle,
  530. .toggle-switchy > input:active + .toggle {box-shadow:0 0 5px 3px rgba(0, 119, 200, 0.50);}
  531. /* Rounded switch corners */
  532. .toggle-switchy > input + .toggle {border-radius:4px;}
  533. .toggle-switchy > input + .toggle .switch {border-radius:6px;}
  534. /* //////////////////////////
  535. CORE STYLES BELOW - NO TOUCHY
  536. ////////////////////////// */
  537. .toggle-switchy {display:inline-flex; align-items:center; user-select:none; position:relative;}
  538. .toggle-switchy:hover {cursor:pointer;}
  539. .toggle-switchy > input {position:absolute; opacity:0;}
  540. .toggle-switchy > input + .toggle {align-items:center; position:relative;}
  541. .toggle-switchy > input + .toggle {overflow:hidden; position:relative; flex-shrink:0;}
  542. .toggle-switchy > input[disabled] + .toggle {opacity:0.5;}
  543. .toggle-switchy > input[disabled] + .toggle:hover {cursor:not-allowed;}
  544. .toggle-switchy > input + .toggle {width:100%; height:100%; margin:0; cursor:pointer;}
  545. .toggle-switchy > input + .toggle > .switch {display:block; height:100%; position:absolute; right:0; z-index:3;}
  546. /* Labels */
  547. .toggle-switchy > input + .toggle:before,
  548. .toggle-switchy > input + .toggle:after {display:flex; align-items:center; position:absolute; z-index:2; height:100%;}
  549. .toggle-switchy > input + .toggle:before {right:55%;}
  550. .toggle-switchy > input + .toggle:after {left:50%;}
  551. .toggle-switchy > input + .toggle + .label {margin-left:10px;}
  552. .toggle-switchy[data-label='left'] > input + .toggle {order:2;}
  553. .toggle-switchy[data-label='left'] > input + .toggle + .label {order:1; margin-left:0; margin-right:10px;}
  554. /* Show / Hide */
  555. .toggle-switchy > input + .toggle:before {opacity:0;}
  556. .toggle-switchy > input:checked + .toggle:before {opacity:1;}
  557. .toggle-switchy > input:checked + .toggle:after {opacity:0;}
  558. /* Transitions */
  559. .toggle-switchy > input + .toggle {transition:background 200ms linear, box-shadow 200ms linear;}
  560. .toggle-switchy > input + .toggle:before,
  561. .toggle-switchy > input + .toggle:after {transition:all 200ms linear;}
  562. .toggle-switchy > input + .toggle > .switch {transition:right 200ms linear, border-color 200ms linear;}
  563. /* //////////////////////////
  564. CORE STYLES ABOVE - NO TOUCHY
  565. ////////////////////////// */
  566. /* Size: Extra Large */
  567. .toggle-switchy[data-size='xl'] > input + .toggle {width:85px; height:40px;}
  568. .toggle-switchy[data-size='xl'] > input + .toggle > .switch {width:40px;}
  569. .toggle-switchy[data-size='xl'] > input + .toggle:before,
  570. .toggle-switchy[data-size='xl'] > input + .toggle:after {font-size:1.2rem;}
  571. .toggle-switchy[data-size='xl'] > input:not(:checked) + .toggle > .switch {right:calc(100% - 40px);}
  572. /* Size: Large */
  573. .toggle-switchy[data-size='lg'] > input + .toggle {width:75px; height:35px;}
  574. .toggle-switchy[data-size='lg'] > input + .toggle > .switch {width:35px;}
  575. .toggle-switchy[data-size='lg'] > input + .toggle:before,
  576. .toggle-switchy[data-size='lg'] > input + .toggle:after {font-size:1rem;}
  577. .toggle-switchy[data-size='lg'] > input:not(:checked) + .toggle > .switch {right:calc(100% - 35px);}
  578. /* Size: Default (Medium) */
  579. .toggle-switchy > input + .toggle {width:100px; height:30px;}
  580. .toggle-switchy > input + .toggle > .switch {width:30px;}
  581. .toggle-switchy > input + .toggle:before,
  582. .toggle-switchy > input + .toggle:after {font-size:0.8rem;}
  583. .toggle-switchy > input:not(:checked) + .toggle > .switch {right:calc(100% - 30px);}
  584. /* Size: Small */
  585. .toggle-switchy[data-size='sm'] > input + .toggle {width:55px; height:25px;}
  586. .toggle-switchy[data-size='sm'] > input + .toggle > .switch {width:25px;}
  587. .toggle-switchy[data-size='sm'] > input + .toggle:before,
  588. .toggle-switchy[data-size='sm'] > input + .toggle:after {font-size:0.7rem;}
  589. .toggle-switchy[data-size='sm'] > input:not(:checked) + .toggle > .switch {right:calc(100% - 25px);}
  590. /* Size: Extra Small */
  591. .toggle-switchy[data-size='xs'] > input + .toggle {width:45px; height:20px;}
  592. .toggle-switchy[data-size='xs'] > input + .toggle > .switch {width:20px;}
  593. .toggle-switchy[data-size='xs'] > input + .toggle:before,
  594. .toggle-switchy[data-size='xs'] > input + .toggle:after {font-size:0.5rem;}
  595. .toggle-switchy[data-size='xs'] > input:not(:checked) + .toggle > .switch {right:calc(100% - 20px);}
  596. /* Style: Rounded */
  597. .toggle-switchy[data-style='rounded'] > input + .toggle,
  598. .toggle-switchy[data-style='rounded'] > input + .toggle > .switch {border-radius:50px;}
  599. .toggle-switchy[data-style='rounded'] > input + .toggle:before {right:30%;}
  600. .toggle-switchy[data-style='rounded'] > input + .toggle:after {left:40%;}
  601. /* Style: Square */
  602. .toggle-switchy[data-style='square'] > input + .toggle {border-radius:0;}
  603. .toggle-switchy[data-style='square'] > input + .toggle .switch {border-radius:0;}
  604. /* Text: Off */
  605. .toggle-switchy[data-text='false'] > input + .toggle:before,
  606. .toggle-switchy[data-text='false'] > input + .toggle:after {content:'';}
  607. .toggle-switchy[data-text='false'][data-size='xl'] > input + .toggle {width:80px;}
  608. .toggle-switchy[data-text='false'][data-size='lg'] > input + .toggle {width:70px;}
  609. .toggle-switchy[data-text='false'] > input + .toggle {width:60px;}
  610. .toggle-switchy[data-text='false'][data-size='sm'] > input + .toggle {width:50px;}
  611. .toggle-switchy[data-text='false'][data-size='xs'] > input + .toggle {width:40px;}
  612. /* Color: Red */
  613. .toggle-switchy[data-color='red'] > input:checked + .toggle {background:#e74c3c;}
  614. .toggle-switchy[data-color='red'] > input:checked + .toggle > .switch {border-color:#e74c3c;}
  615. /* Color: Orange */
  616. .toggle-switchy[data-color='orange'] > input:checked + .toggle {background:#e67e22;}
  617. .toggle-switchy[data-color='orange'] > input:checked + .toggle > .switch {border-color:#e67e22;}
  618. /* Color: Yellow */
  619. .toggle-switchy[data-color='yellow'] > input:checked + .toggle {background:#f1c40f;}
  620. .toggle-switchy[data-color='yellow'] > input:checked + .toggle > .switch {border-color:#f1c40f;}
  621. /* Color: Green */
  622. .toggle-switchy[data-color='green'] > input:checked + .toggle {background:#2ecc71;}
  623. .toggle-switchy[data-color='green'] > input:checked + .toggle > .switch {border-color:#2ecc71;}
  624. /* Color: Blue */
  625. .toggle-switchy[data-color='blue'] > input:checked + .toggle {background:#3498db;}
  626. .toggle-switchy[data-color='blue'] > input:checked + .toggle > .switch {border-color:#3498db;}
  627. /* Color: Purple */
  628. .toggle-switchy[data-color='purple'] > input:checked + .toggle {background:#9b59b6;}
  629. .toggle-switchy[data-color='purple'] > input:checked + .toggle > .switch {border-color:#9b59b6;}
  630. /* Color: Gray */
  631. .toggle-switchy[data-color='gray'] > input:checked + .toggle {background:#555;}
  632. .toggle-switchy[data-color='gray'] > input:checked + .toggle > .switch {border-color:#555;}
  633. <?php } ?>
  634. </style>
  635. <div class="envor-content">
  636. <!--
  637. Page Title start
  638. //-->
  639. <section class="envor-page-title-1" data-stellar-background-ratio="0.5">
  640. <div class="container">
  641. <div class="row">
  642. <div class="col-lg-9 col-md-9 col-sm-9">
  643. <h1><?php echo $lang->showWord("charging"); ?></h1>
  644. </div>
  645. </div>
  646. </div>
  647. <!--
  648. Page Title end
  649. //-->
  650. </section>
  651. <!--
  652. Main Content start
  653. //-->
  654. <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>
  655. <section class="envor-section">
  656. <div class="container">
  657. <div class="row">
  658. <div class="col-lg-12">
  659. <div class="envor-sorting" id="faq-sorting">
  660. <div class="envor-toggle">
  661. <!--Charging relevant parameters-->
  662. <article class="envor-sorting-item css">
  663. <header><?php echo $lang->showWord("charging_relevant_parameters"); ?><i class="fa fa-plus"></i></header>
  664. <section>
  665. <div class="form-group" style="display:<?php echo $am111;?>">
  666. <label id="MaxChargingEnergyLbl">Max Charging Energy</label>
  667. <small class="form-text text-muted-red">kWh</small>
  668. <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">
  669. <small class="form-text text-muted-red"><label id="MaxChargingEnergyText" style="display:none;">'0' means unlimit</label></small>
  670. </div>
  671. <div class="form-group" style="display:<?php echo $am001;?>">
  672. <label id="MaxChargingPowerLbl">Max Charging Power</label>
  673. <small class="form-text text-muted-red">kW</small>
  674. <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">
  675. <input type="hidden" name="RatingPower" id="RatingPower" value="<?php echo $RatingPower;?>">
  676. <small class="form-text text-muted-red"><label id="MaxChargingPowerText" style="display:none;">'0' means unlimit</label></small>
  677. </div>
  678. <div class="form-group" style="display:<?php echo $am111;?>">
  679. <label id="MaxChargingCurrentLbl">Max Charging Current</label>
  680. <small class="form-text text-muted-red">amp</small>
  681. <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">
  682. <input type="hidden" name="RatingCurrent" id="RatingCurrent" value="<?php echo $RatingCurrent;?>">
  683. <small class="form-text text-muted-red"><label id="MaxChargingCurrentText" style="display:none;">'0' means unlimit</label></small>
  684. </div>
  685. <div class="form-group" style="display:<?php echo $am111;?>">
  686. <label id="MaxChargingDurationLbl">Max Charging Duration</label>
  687. <small class="form-text text-muted-red">minutes</small>
  688. <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">
  689. <small class="form-text text-muted-red"><label id="MaxChargingDurationText" style="display:none;">'0' means unlimit</label></small>
  690. </div>
  691. <div class="form-group" style="display:<?php echo $am001;?>">
  692. <label>Stop Charging By Button</label>
  693. <select class="form-control" id="StopChargingByButton" name="StopChargingByButton">
  694. <option value="0" <?php echo $obj['StopChargingByButton']=="0"?"selected":""?>>Disable</option>
  695. <option value="1" <?php echo $obj['StopChargingByButton']=="1"?"selected":""?>>Enable</option>
  696. </select>
  697. </div>
  698. <div class="form-group" id="AcMaxChargingCurrentDiv">
  699. <label>AC Max Charging Current</label>
  700. <small class="form-text text-muted-red">amp</small>
  701. <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">
  702. <input type="hidden" name="AcRatingCurrent" id="AcRatingCurrent" value="<?php echo $AcRatingCurrent;?>">
  703. <small class="form-text text-muted-red"><label id="AcMaxChargingCurrentText" style="display:none;">'0' means unlimit</label></small>
  704. </div>
  705. <div class="form-group" style="display:<?php echo $am111;?>">
  706. <label>Local White Card0</label>
  707. <input type="text" name="LocalWhiteCard0" id="LocalWhiteCard0" class="form-control" value="<?php echo $obj['LocalWhiteCard'][0];?>">
  708. </div>
  709. <div class="form-group" style="display:<?php echo $am111;?>">
  710. <label>Local White Card1</label>
  711. <input type="text" name="LocalWhiteCard1" id="LocalWhiteCard1" class="form-control" value="<?php echo $obj['LocalWhiteCard'][1];?>">
  712. </div>
  713. <div class="form-group" style="display:<?php echo $am111;?>">
  714. <label>Local White Card2</label>
  715. <input type="text" name="LocalWhiteCard2" id="LocalWhiteCard2" class="form-control" value="<?php echo $obj['LocalWhiteCard'][2];?>">
  716. </div>
  717. <div class="form-group" style="display:<?php echo $am111;?>">
  718. <label>Local White Card3</label>
  719. <input type="text" name="LocalWhiteCard3" id="LocalWhiteCard3" class="form-control" value="<?php echo $obj['LocalWhiteCard'][3];?>">
  720. </div>
  721. <div class="form-group" style="display:<?php echo $am111;?>">
  722. <label>Local White Card4</label>
  723. <input type="text" name="LocalWhiteCard4" id="LocalWhiteCard4" class="form-control" value="<?php echo $obj['LocalWhiteCard'][4];?>">
  724. </div>
  725. <div class="form-group" style="display:<?php echo $am111;?>">
  726. <label>Local White Card5</label>
  727. <input type="text" name="LocalWhiteCard5" id="LocalWhiteCard5" class="form-control" value="<?php echo $obj['LocalWhiteCard'][5];?>">
  728. </div>
  729. <div class="form-group" style="display:<?php echo $am111;?>">
  730. <label>Local White Card6</label>
  731. <input type="text" name="LocalWhiteCard6" id="LocalWhiteCard6" class="form-control" value="<?php echo $obj['LocalWhiteCard'][6];?>">
  732. </div>
  733. <div class="form-group" style="display:<?php echo $am111;?>">
  734. <label>Local White Card7</label>
  735. <input type="text" name="LocalWhiteCard7" id="LocalWhiteCard7" class="form-control" value="<?php echo $obj['LocalWhiteCard'][7];?>">
  736. </div>
  737. <div class="form-group" style="display:<?php echo $am111;?>">
  738. <label>Local White Card8</label>
  739. <input type="text" name="LocalWhiteCard8" id="LocalWhiteCard8" class="form-control" value="<?php echo $obj['LocalWhiteCard'][8];?>">
  740. </div>
  741. <div class="form-group" style="display:<?php echo $am111;?>">
  742. <label>Local White Card9</label>
  743. <input type="text" name="LocalWhiteCard9" id="LocalWhiteCard9" class="form-control" value="<?php echo $obj['LocalWhiteCard'][9];?>">
  744. </div>
  745. <div class="form-group" id="isBillingDiv">
  746. <label>
  747. <input type="checkbox" id="isBilling" name="isBilling" <?php echo $obj['isBilling']==1?"checked":"";?> onclick="isBilling_clicked()">
  748. Billing</label>
  749. </div>
  750. <div class="form-group" id="CurrencyDiv">
  751. <label>Currency</label>
  752. <select class="form-control" id="Currency" name="Currency">
  753. <option value="0" <?php echo $obj['Currency']=="0"?"selected":""?>>AED - Emirati Dirham</option>
  754. <option value="1" <?php echo $obj['Currency']=="1"?"selected":""?>>ARS - Argentine Peso</option>
  755. <option value="2" <?php echo $obj['Currency']=="2"?"selected":""?>>AUD - Australian Dollar</option>
  756. <option value="3" <?php echo $obj['Currency']=="3"?"selected":""?>>BGN - Bulgarian Lev</option>
  757. <option value="4" <?php echo $obj['Currency']=="4"?"selected":""?>>BHD - Bahraini Dinar</option>
  758. <option value="5" <?php echo $obj['Currency']=="5"?"selected":""?>>BND - Bruneian Dollar</option>
  759. <option value="6" <?php echo $obj['Currency']=="6"?"selected":""?>>BRL - Brazilian Real</option>
  760. <option value="7" <?php echo $obj['Currency']=="7"?"selected":""?>>BWP - Botswana Pula</option>
  761. <option value="8" <?php echo $obj['Currency']=="8"?"selected":""?>>CAD - Canadian Dollar</option>
  762. <option value="9" <?php echo $obj['Currency']=="9"?"selected":""?>>CHF - Swiss Franc</option>
  763. <option value="10" <?php echo $obj['Currency']=="10"?"selected":""?>>CLP - Chilean Peso</option>
  764. <option value="11" <?php echo $obj['Currency']=="11"?"selected":""?>>CNY - Chinese Yuan Renminbi</option>
  765. <option value="12" <?php echo $obj['Currency']=="12"?"selected":""?>>COP - Colombian Peso</option>
  766. <option value="13" <?php echo $obj['Currency']=="13"?"selected":""?>>CZK - Czech Koruna</option>
  767. <option value="14" <?php echo $obj['Currency']=="14"?"selected":""?>>DKK - Danish Krone</option>
  768. <option value="15" <?php echo $obj['Currency']=="15"?"selected":""?>>EUR - Euro</option>
  769. <option value="16" <?php echo $obj['Currency']=="16"?"selected":""?>>GBP - British Pound</option>
  770. <option value="17" <?php echo $obj['Currency']=="17"?"selected":""?>>HKD - Hong Kong Dollar</option>
  771. <option value="18" <?php echo $obj['Currency']=="18"?"selected":""?>>HRK - Croatian Kuna</option>
  772. <option value="19" <?php echo $obj['Currency']=="19"?"selected":""?>>HUF - Hungarian Forint</option>
  773. <option value="20" <?php echo $obj['Currency']=="20"?"selected":""?>>IDR - Indonesian Rupiah</option>
  774. <option value="21" <?php echo $obj['Currency']=="21"?"selected":""?>>ILS - Israeli Shekel</option>
  775. <option value="22" <?php echo $obj['Currency']=="22"?"selected":""?>>INR - Indian Rupee</option>
  776. <option value="23" <?php echo $obj['Currency']=="23"?"selected":""?>>IRR - Iranian Rial</option>
  777. <option value="24" <?php echo $obj['Currency']=="24"?"selected":""?>>ISK - Icelandic Krona</option>
  778. <option value="25" <?php echo $obj['Currency']=="25"?"selected":""?>>JPY - Japanese Yen</option>
  779. <option value="26" <?php echo $obj['Currency']=="26"?"selected":""?>>KRW - South Korean Won</option>
  780. <option value="27" <?php echo $obj['Currency']=="27"?"selected":""?>>KWD - Kuwaiti Dinar</option>
  781. <option value="28" <?php echo $obj['Currency']=="28"?"selected":""?>>KZT - Kazakhstani Tenge</option>
  782. <option value="29" <?php echo $obj['Currency']=="29"?"selected":""?>>LKR - Sri Lankan Rupee</option>
  783. <option value="30" <?php echo $obj['Currency']=="30"?"selected":""?>>LYD - Libyan Dinar</option>
  784. <option value="31" <?php echo $obj['Currency']=="31"?"selected":""?>>MUR - Mauritian Rupee</option>
  785. <option value="32" <?php echo $obj['Currency']=="32"?"selected":""?>>MXN - Mexican Peso</option>
  786. <option value="33" <?php echo $obj['Currency']=="33"?"selected":""?>>MYR - Malaysian Ringgit</option>
  787. <option value="34" <?php echo $obj['Currency']=="34"?"selected":""?>>NOK - Norwegian Krone</option>
  788. <option value="35" <?php echo $obj['Currency']=="35"?"selected":""?>>NPR - Nepalese Rupee</option>
  789. <option value="36" <?php echo $obj['Currency']=="36"?"selected":""?>>NZD - New Zealand Dollar</option>
  790. <option value="37" <?php echo $obj['Currency']=="37"?"selected":""?>>OMR - Omani Rial</option>
  791. <option value="38" <?php echo $obj['Currency']=="38"?"selected":""?>>PHP - Philippine Peso</option>
  792. <option value="39" <?php echo $obj['Currency']=="39"?"selected":""?>>PKR - Pakistani Rupee</option>
  793. <option value="40" <?php echo $obj['Currency']=="40"?"selected":""?>>PLN - Polish Zloty</option>
  794. <option value="41" <?php echo $obj['Currency']=="41"?"selected":""?>>QAR - Qatari Riyal</option>
  795. <option value="42" <?php echo $obj['Currency']=="42"?"selected":""?>>RON - Romanian New Leu</option>
  796. <option value="43" <?php echo $obj['Currency']=="43"?"selected":""?>>RUB - Russian Ruble</option>
  797. <option value="44" <?php echo $obj['Currency']=="44"?"selected":""?>>SAR - Saudi Arabian Riyal</option>
  798. <option value="45" <?php echo $obj['Currency']=="45"?"selected":""?>>SEK - Swedish Krona</option>
  799. <option value="46" <?php echo $obj['Currency']=="46"?"selected":""?>>SGD - Singapore Dollar</option>
  800. <option value="47" <?php echo $obj['Currency']=="47"?"selected":""?>>THB - Thai Baht</option>
  801. <option value="48" <?php echo $obj['Currency']=="48"?"selected":""?>>TRY - Turkish Lira</option>
  802. <option value="49" <?php echo $obj['Currency']=="49"?"selected":""?>>TTD - Trinidadian Dollar</option>
  803. <option value="50" <?php echo $obj['Currency']=="50"?"selected":""?>>TWD - Taiwan New Dollar</option>
  804. <option value="51" <?php echo $obj['Currency']=="51"?"selected":""?>>USD - US Dollar</option>
  805. <option value="52" <?php echo $obj['Currency']=="52"?"selected":""?>>VEF - Venezuelan Bolivar</option>
  806. <option value="53" <?php echo $obj['Currency']=="53"?"selected":""?>>ZAR - South African Rand</option>
  807. </select>
  808. </div>
  809. <div class="form-group" id="FeeDiv">
  810. <div class="form-group">
  811. <label>Fee 00:00~00:59</label>
  812. <input type="text" name="Fee0" id="Fee0" class="form-control" value="<?php echo round($obj['Fee'][0],2);?>">
  813. </div>
  814. <div class="form-group">
  815. <label>Fee 01:00~01:59</label>
  816. <input type="text" name="Fee0" id="Fee1" class="form-control" value="<?php echo round($obj['Fee'][1],2);?>">
  817. </div>
  818. <div class="form-group">
  819. <label>Fee 02:00~02:59</label>
  820. <input type="text" name="Fee2" id="Fee2" class="form-control" value="<?php echo round($obj['Fee'][2],2);?>">
  821. </div>
  822. <div class="form-group">
  823. <label>Fee 03:00~03:59</label>
  824. <input type="text" name="Fee3" id="Fee3" class="form-control" value="<?php echo round($obj['Fee'][3],2);?>">
  825. </div>
  826. <div class="form-group">
  827. <label>Fee 04:00~04:59</label>
  828. <input type="text" name="Fee4" id="Fee4" class="form-control" value="<?php echo round($obj['Fee'][4],2);?>">
  829. </div>
  830. <div class="form-group">
  831. <label>Fee 05:00~05:59</label>
  832. <input type="text" name="Fee5" id="Fee5" class="form-control" value="<?php echo round($obj['Fee'][5],2);?>">
  833. </div>
  834. <div class="form-group">
  835. <label>Fee 06:00~06:59</label>
  836. <input type="text" name="Fee6" id="Fee6" class="form-control" value="<?php echo round($obj['Fee'][6],2);?>">
  837. </div>
  838. <div class="form-group">
  839. <label>Fee 07:00~07:59</label>
  840. <input type="text" name="Fee7" id="Fee7" class="form-control" value="<?php echo round($obj['Fee'][7],2);?>">
  841. </div>
  842. <div class="form-group">
  843. <label>Fee 08:00~08:59</label>
  844. <input type="text" name="Fee8" id="Fee8" class="form-control" value="<?php echo round($obj['Fee'][8],2);?>">
  845. </div>
  846. <div class="form-group">
  847. <label>Fee 09:00~09:59</label>
  848. <input type="text" name="Fee9" id="Fee9" class="form-control" value="<?php echo round($obj['Fee'][9],2);?>">
  849. </div>
  850. <div class="form-group">
  851. <label>Fee 10:00~10:59</label>
  852. <input type="text" name="Fee10" id="Fee10" class="form-control" value="<?php echo round($obj['Fee'][10],2);?>">
  853. </div>
  854. <div class="form-group">
  855. <label>Fee 11:00~11:59</label>
  856. <input type="text" name="Fee11" id="Fee11" class="form-control" value="<?php echo round($obj['Fee'][11],2);?>">
  857. </div>
  858. <div class="form-group">
  859. <label>Fee 12:00~12:59</label>
  860. <input type="text" name="Fee12" id="Fee12" class="form-control" value="<?php echo round($obj['Fee'][12],2);?>">
  861. </div>
  862. <div class="form-group">
  863. <label>Fee 13:00~13:59</label>
  864. <input type="text" name="Fee13" id="Fee13" class="form-control" value="<?php echo round($obj['Fee'][13],2);?>">
  865. </div>
  866. <div class="form-group">
  867. <label>Fee 14:00~14:59</label>
  868. <input type="text" name="Fee14" id="Fee14" class="form-control" value="<?php echo round($obj['Fee'][14],2);?>">
  869. </div>
  870. <div class="form-group">
  871. <label>Fee 15:00~15:59</label>
  872. <input type="text" name="Fee15" id="Fee15" class="form-control" value="<?php echo round($obj['Fee'][15],2);?>">
  873. </div>
  874. <div class="form-group">
  875. <label>Fee 16:00~16:59</label>
  876. <input type="text" name="Fee16" id="Fee16" class="form-control" value="<?php echo round($obj['Fee'][16],2);?>">
  877. </div>
  878. <div class="form-group">
  879. <label>Fee 17:00~17:59</label>
  880. <input type="text" name="Fee17" id="Fee17" class="form-control" value="<?php echo round($obj['Fee'][17],2);?>">
  881. </div>
  882. <div class="form-group">
  883. <label>Fee 18:00~18:59</label>
  884. <input type="text" name="Fee18" id="Fee18" class="form-control" value="<?php echo round($obj['Fee'][18],2);?>">
  885. </div>
  886. <div class="form-group">
  887. <label>Fee 19:00~19:59</label>
  888. <input type="text" name="Fee19" id="Fee19" class="form-control" value="<?php echo round($obj['Fee'][19],2);?>">
  889. </div>
  890. <div class="form-group">
  891. <label>Fee 20:00~20:59</label>
  892. <input type="text" name="Fee20" id="Fee20" class="form-control" value="<?php echo round($obj['Fee'][20],2);?>">
  893. </div>
  894. <div class="form-group">
  895. <label>Fee 21:00~21:59</label>
  896. <input type="text" name="Fee21" id="Fee21" class="form-control" value="<?php echo round($obj['Fee'][21],2);?>">
  897. </div>
  898. <div class="form-group">
  899. <label>Fee 22:00~22:59</label>
  900. <input type="text" name="Fee22" id="Fee22" class="form-control" value="<?php echo round($obj['Fee'][22],2);?>">
  901. </div>
  902. <div class="form-group">
  903. <label>Fee 23:00~23:59</label>
  904. <input type="text" name="Fee23" id="Fee23" class="form-control" value="<?php echo round($obj['Fee'][23],2);?>">
  905. </div>
  906. </div>
  907. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  908. <label>CcsAuthentication</label>
  909. <select class="form-control" id="CcsAuthentication" name="CcsAuthentication">
  910. <option value="0" <?php echo $obj['CcsAuthentication']==0?"selected":""?>>EIM</option>
  911. <option value="1" <?php echo $obj['CcsAuthentication']==1?"selected":""?>>EIM&PnC mixed</option>
  912. </select>
  913. </div>
  914. <div class="form-group" style="display:<?php echo $am111;?>">
  915. <label>AcCcsChargingModel</label>
  916. <select class="form-control" id="AcCcsChargingModel" name="AcCcsChargingModel">
  917. <option value="0" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC (PWM) only</option>
  918. <option value="1" <?php echo $obj['AcCcsChargingModel']==0?"selected":""?>>BC&PLC mixed</option>
  919. </select>
  920. </div>*/?>
  921. </section>
  922. </article>
  923. <?php if(substr($ModelName,0,2)=="DO" || substr($ModelName,0,2)=="DK" || substr($ModelName,0,2)=="DB"){?>
  924. <?php if($obj['DDChargingInfo1']){ $idx++;?>
  925. <!--Charging Information-->
  926. <article class="envor-sorting-item css">
  927. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  928. <section>
  929. <div class="form-group" style="display:<?php echo $am111;?>">
  930. <label>User Id</label>
  931. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo1']['StartUserId'];?>">
  932. </div>
  933. <div class="form-group" style="display:<?php echo $am111;?>">
  934. <label>Start Date Time</label>
  935. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StartDateTime'];?>">
  936. </div>
  937. <div class="form-group" style="display:<?php echo $am111;?>">
  938. <label>Stop Date Time</label>
  939. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StopDateTime'];?>">
  940. </div>
  941. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  942. <label>StartMethod</label>
  943. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['StartMethod'];?>">
  944. </div>*/?>
  945. <div class="form-group" style="display:<?php echo $am111;?>">
  946. <label>System Status</label>
  947. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus1;?>">
  948. </div>
  949. <div class="form-group" style="display:<?php echo $am111;?>">
  950. <label>Connector Temperature</label>
  951. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['ConnectorTemp']!=255?$obj['DDChargingInfo1']['ConnectorTemp']." ℃":"not supported";?>">
  952. </div>
  953. <div class="form-group ChillerTemp">
  954. <label>Chiller Temperature</label>
  955. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['ChillerrTemp']!=255?$obj['DDChargingInfo1']['ChillerTemp']." ℃":"not supported";?>">
  956. </div>
  957. <div class="form-group" style="display:<?php echo $am001;?>">
  958. <label>Present Charging Voltage</label>
  959. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingVoltage'],2);?> volt">
  960. </div>
  961. <div class="form-group" style="display:<?php echo $am111;?>">
  962. <label>Present Charging Current</label>
  963. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingCurrent'],2);?> amp">
  964. </div>
  965. <div class="form-group" style="display:<?php echo $am111;?>">
  966. <label>Present Charging Power</label>
  967. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['PresentChargingPower'],2);?> kW">
  968. </div>
  969. <div class="form-group" style="display:<?php echo $am111;?>">
  970. <label>Present Charging Energy</label>
  971. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo1']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  972. </div>
  973. <div class="form-group" style="display:<?php echo $am111;?>">
  974. <label>Present Charging Duration</label>
  975. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['PresentChargedDuration'];?> seconds">
  976. </div>
  977. <div class="form-group" style="display:<?php echo $am001;?>">
  978. <label>Remain Charging Time</label>
  979. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['RemainChargingDuration'];?> seconds">
  980. </div>
  981. <div class="form-group" style="display:<?php echo $am001;?>">
  982. <label>EV Battery Max Voltage</label>
  983. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['EvBatteryMaxVoltage'],2);?> volt">
  984. </div>
  985. <div class="form-group" style="display:<?php echo $am001;?>">
  986. <label>EV Battery Target Voltage</label>
  987. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo1']['EvBatterytargetVoltage'],2);?> volt">
  988. </div>
  989. <div class="form-group" style="display:<?php echo $am001;?>">
  990. <label>EV Battery Soc</label>
  991. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo1']['EvBatterySoc'];?>">
  992. </div>
  993. <div class="form-group" style="display:<?php echo $am111;?>">
  994. <label>Totalize Power Consumption</label>
  995. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo1']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  996. </div>
  997. </section>
  998. </article>
  999. <?php }?>
  1000. <?php if($obj['DDChargingInfo2']){ $idx++;?>
  1001. <!--Charging Information-->
  1002. <article class="envor-sorting-item css">
  1003. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  1004. <section>
  1005. <div class="form-group" style="display:<?php echo $am111;?>">
  1006. <label>User Id</label>
  1007. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo2']['StartUserId'];?>">
  1008. </div>
  1009. <div class="form-group" style="display:<?php echo $am111;?>">
  1010. <label>Start Date Time</label>
  1011. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StartDateTime'];?>">
  1012. </div>
  1013. <div class="form-group" style="display:<?php echo $am111;?>">
  1014. <label>Stop Date Time</label>
  1015. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StopDateTime'];?>">
  1016. </div>
  1017. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1018. <label>StartMethod</label>
  1019. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['StartMethod'];?>">
  1020. </div>*/?>
  1021. <div class="form-group" style="display:<?php echo $am111;?>">
  1022. <label>System Status</label>
  1023. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus2;?>">
  1024. </div>
  1025. <div class="form-group" style="display:<?php echo $am111;?>">
  1026. <label>Connector Temperature</label>
  1027. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['ConnectorTemp']!=255?$obj['DDChargingInfo2']['ConnectorTemp']." ℃":"not supported";?>">
  1028. </div>
  1029. <div class="form-group ChillerTemp">
  1030. <label>Chiller Temperature</label>
  1031. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['ChillerTemp']!=255?$obj['DDChargingInfo2']['ChillerTemp']." ℃":"not supported";?>">
  1032. </div>
  1033. <div class="form-group" style="display:<?php echo $am001;?>">
  1034. <label>Present Charging Voltage</label>
  1035. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingVoltage'],2);?> volt">
  1036. </div>
  1037. <div class="form-group" style="display:<?php echo $am111;?>">
  1038. <label>Present Charging Current</label>
  1039. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingCurrent'],2);?> amp">
  1040. </div>
  1041. <div class="form-group" style="display:<?php echo $am111;?>">
  1042. <label>Present Charging Power</label>
  1043. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['PresentChargingPower'],2);?> kW">
  1044. </div>
  1045. <div class="form-group" style="display:<?php echo $am111;?>">
  1046. <label>Present Charging Energy</label>
  1047. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo2']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1048. </div>
  1049. <div class="form-group" style="display:<?php echo $am111;?>">
  1050. <label>Present Charging Duration</label>
  1051. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['PresentChargedDuration'];?> seconds">
  1052. </div>
  1053. <div class="form-group" style="display:<?php echo $am001;?>">
  1054. <label>Remain Charging Time</label>
  1055. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['RemainChargingDuration'];?> seconds">
  1056. </div>
  1057. <div class="form-group" style="display:<?php echo $am001;?>">
  1058. <label>EV Battery Max Voltage</label>
  1059. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['EvBatteryMaxVoltage'],2);?> volt">
  1060. </div>
  1061. <div class="form-group" style="display:<?php echo $am001;?>">
  1062. <label>EV Battery Target Voltage</label>
  1063. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo2']['EvBatterytargetVoltage'],2);?> volt">
  1064. </div>
  1065. <div class="form-group" style="display:<?php echo $am001;?>">
  1066. <label>EV Battery Soc</label>
  1067. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo2']['EvBatterySoc'];?>">
  1068. </div>
  1069. <div class="form-group" style="display:<?php echo $am111;?>">
  1070. <label>Totalize Power Consumption</label>
  1071. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo2']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1072. </div>
  1073. </section>
  1074. </article>
  1075. <?php }?>
  1076. <?php if($obj['DDChargingInfo3']){ $idx++;?>
  1077. <!--Charging Information-->
  1078. <article class="envor-sorting-item css">
  1079. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  1080. <section>
  1081. <div class="form-group" style="display:<?php echo $am111;?>">
  1082. <label>User Id</label>
  1083. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo3']['StartUserId'];?>">
  1084. </div>
  1085. <div class="form-group" style="display:<?php echo $am111;?>">
  1086. <label>Start Date Time</label>
  1087. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StartDateTime'];?>">
  1088. </div>
  1089. <div class="form-group" style="display:<?php echo $am111;?>">
  1090. <label>Stop Date Time</label>
  1091. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StopDateTime'];?>">
  1092. </div>
  1093. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1094. <label>StartMethod</label>
  1095. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['StartMethod'];?>">
  1096. </div>*/?>
  1097. <div class="form-group" style="display:<?php echo $am111;?>">
  1098. <label>System Status</label>
  1099. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus3;?>">
  1100. </div>
  1101. <div class="form-group" style="display:<?php echo $am111;?>">
  1102. <label>Connector Temperature</label>
  1103. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['ConnectorTemp']!=255?$obj['DDChargingInfo3']['ConnectorTemp']." ℃":"not supported";?>">
  1104. </div>
  1105. <div class="form-group ChillerTemp">
  1106. <label>Chiller Temperature</label>
  1107. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['ChillerTemp']!=255?$obj['DDChargingInfo3']['ChillerTemp']." ℃":"not supported";?>">
  1108. </div>
  1109. <div class="form-group" style="display:<?php echo $am001;?>">
  1110. <label>Present Charging Voltage</label>
  1111. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingVoltage'],2);?> volt">
  1112. </div>
  1113. <div class="form-group" style="display:<?php echo $am111;?>">
  1114. <label>Present Charging Current</label>
  1115. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingCurrent'],2);?> amp">
  1116. </div>
  1117. <div class="form-group" style="display:<?php echo $am111;?>">
  1118. <label>Present Charging Power</label>
  1119. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['PresentChargingPower'],2);?> kW">
  1120. </div>
  1121. <div class="form-group" style="display:<?php echo $am111;?>">
  1122. <label>Present Charging Energy</label>
  1123. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo3']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1124. </div>
  1125. <div class="form-group" style="display:<?php echo $am111;?>">
  1126. <label>Present Charging Duration</label>
  1127. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['PresentChargedDuration'];?> seconds">
  1128. </div>
  1129. <div class="form-group" style="display:<?php echo $am001;?>">
  1130. <label>Remain Charging Time</label>
  1131. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['RemainChargingDuration'];?> seconds">
  1132. </div>
  1133. <div class="form-group" style="display:<?php echo $am001;?>">
  1134. <label>EV Battery Max Voltage</label>
  1135. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['EvBatteryMaxVoltage'],2);?> volt">
  1136. </div>
  1137. <div class="form-group" style="display:<?php echo $am001;?>">
  1138. <label>EV Battery Target Voltage</label>
  1139. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo3']['EvBatterytargetVoltage'],2);?> volt">
  1140. </div>
  1141. <div class="form-group" style="display:<?php echo $am001;?>">
  1142. <label>EV Battery Soc</label>
  1143. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo3']['EvBatterySoc'];?>">
  1144. </div>
  1145. <div class="form-group" style="display:<?php echo $am111;?>">
  1146. <label>Totalize Power Consumption</label>
  1147. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo3']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1148. </div>
  1149. </section>
  1150. </article>
  1151. <?php }?>
  1152. <?php if($obj['DDChargingInfo4']){ $idx++;?>
  1153. <!--Charging Information-->
  1154. <article class="envor-sorting-item css">
  1155. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information"); ?><i class="fa fa-plus"></i></header>
  1156. <section>
  1157. <div class="form-group" style="display:<?php echo $am111;?>">
  1158. <label>User Id</label>
  1159. <input type="text" readonly class="form-control" value="<?php echo $obj['DDChargingInfo4']['StartUserId'];?>">
  1160. </div>
  1161. <div class="form-group" style="display:<?php echo $am111;?>">
  1162. <label>Start Date Time</label>
  1163. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StartDateTime'];?>">
  1164. </div>
  1165. <div class="form-group" style="display:<?php echo $am111;?>">
  1166. <label>Stop Date Time</label>
  1167. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StopDateTime'];?>">
  1168. </div>
  1169. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1170. <label>StartMethod</label>
  1171. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['StartMethod'];?>">
  1172. </div>*/?>
  1173. <div class="form-group" style="display:<?php echo $am111;?>">
  1174. <label>System Status</label>
  1175. <input type="text" readonly class="form-control" placeholder="<?php echo $DDSystemStatus4;?>">
  1176. </div>
  1177. <div class="form-group" style="display:<?php echo $am111;?>">
  1178. <label>Connector Temperature</label>
  1179. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['ConnectorTemp']!=255?$obj['DDChargingInfo4']['ConnectorTemp']." ℃":"not supported";?>">
  1180. </div>
  1181. <div class="form-group ChillerTemp">
  1182. <label>Chiller Temperature</label>
  1183. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['ChilleTemp']!=255?$obj['DDChargingInfo4']['ChillerTemp']." ℃":"not supported";?>">
  1184. </div>
  1185. <div class="form-group" style="display:<?php echo $am001;?>">
  1186. <label>Present Charging Voltage</label>
  1187. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingVoltage'],2);?> volt">
  1188. </div>
  1189. <div class="form-group" style="display:<?php echo $am111;?>">
  1190. <label>Present Charging Current</label>
  1191. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingCurrent'],2);?> amp">
  1192. </div>
  1193. <div class="form-group" style="display:<?php echo $am111;?>">
  1194. <label>Present Charging Power</label>
  1195. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['PresentChargingPower'],2);?> kW">
  1196. </div>
  1197. <div class="form-group" style="display:<?php echo $am111;?>">
  1198. <label>Present Charging Energy</label>
  1199. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo4']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1200. </div>
  1201. <div class="form-group" style="display:<?php echo $am111;?>">
  1202. <label>Present Charging Duration</label>
  1203. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['PresentChargedDuration'];?> seconds">
  1204. </div>
  1205. <div class="form-group" style="display:<?php echo $am001;?>">
  1206. <label>Remain Charging Time</label>
  1207. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['RemainChargingDuration'];?> seconds">
  1208. </div>
  1209. <div class="form-group" style="display:<?php echo $am001;?>">
  1210. <label>EV Battery Max Voltage</label>
  1211. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['EvBatteryMaxVoltage'],2);?> volt">
  1212. </div>
  1213. <div class="form-group" style="display:<?php echo $am001;?>">
  1214. <label>EV Battery Target Voltage</label>
  1215. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['DDChargingInfo4']['EvBatterytargetVoltage'],2);?> volt">
  1216. </div>
  1217. <div class="form-group" style="display:<?php echo $am001;?>">
  1218. <label>EV Battery Soc</label>
  1219. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['DDChargingInfo4']['EvBatterySoc'];?>">
  1220. </div>
  1221. <div class="form-group" style="display:<?php echo $am111;?>">
  1222. <label>Totalize Power Consumption</label>
  1223. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['DDChargingInfo4']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1224. </div>
  1225. </section>
  1226. </article>
  1227. <?php }?>
  1228. <?php } else { ?>
  1229. <?php if($obj['ChargingInfo1']){ $idx++;?>
  1230. <!--Charging Information-->
  1231. <article class="envor-sorting-item css">
  1232. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType1.")"; ?><i class="fa fa-plus"></i></header>
  1233. <section>
  1234. <div class="form-group" style="display:<?php echo $am111;?>">
  1235. <label>User Id</label>
  1236. <input type="text" readonly class="form-control" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
  1237. <input type="hidden" name="UserId1" id="UserId1" value="<?php echo $obj['ChargingInfo1']['StartUserId'];?>">
  1238. </div>
  1239. <div class="form-group" style="display:<?php echo $am111;?>">
  1240. <label>Start Date Time</label>
  1241. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
  1242. <input type="hidden" name="StartDateTime1" id="StartDateTime1" value="<?php echo $obj['ChargingInfo1']['StartDateTime'];?>">
  1243. </div>
  1244. <div class="form-group" style="display:<?php echo $am111;?>">
  1245. <label>Stop Date Time</label>
  1246. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StopDateTime'];?>">
  1247. <input type="hidden" name="StopDateTime1" id="StopDateTime1" value="<?php echo $obj['ChargingInfo1']['StopDateTime'];?>">
  1248. </div>
  1249. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1250. <label>StartMethod</label>
  1251. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['StartMethod'];?>">
  1252. <input type="hidden" name="StartMethod1" id="StartMethod1" value="<?php echo $obj['ChargingInfo1']['StartMethod'];?>">
  1253. </div>*/?>
  1254. <div class="form-group" style="display:<?php echo $am111;?>">
  1255. <label>System Status</label>
  1256. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus1;?>">
  1257. <input type="hidden" name="SystemStatus1" id="SystemStatus1" value="<?php echo $obj['ChargingInfo1']['SystemStatus'];?>">
  1258. </div>
  1259. <div class="form-group" style="display:<?php echo $am111;?>">
  1260. <label>Connector Temperature</label>
  1261. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['ConnectorTemp']!=255?$obj['ChargingInfo1']['ConnectorTemp']." ℃":"not supported";?>">
  1262. <input type="hidden" name="ConnectorTemp1" id="ConnectorTemp1" value="<?php echo $obj['ChargingInfo1']['ConnectorTemp'];?>">
  1263. </div>
  1264. <div class="form-group" id="ChillerTemp1">
  1265. <label>Chiller Temperature</label>
  1266. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['ChillerTemp']!=255?$obj['ChargingInfo1']['ChillerTemp']." ℃":"not supported";?>">
  1267. </div>
  1268. <div class="form-group" style="display:<?php echo $am001;?>">
  1269. <label>Present Charging Voltage</label>
  1270. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingVoltage'],2);?> volt">
  1271. <input type="hidden" name="PresentChargingVoltage1" id="PresentChargingVoltage1" value="<?php echo $obj['ChargingInfo1']['PresentChargingVoltage'];?>">
  1272. </div>
  1273. <div class="form-group" style="display:<?php echo $am111;?>">
  1274. <label>Present Charging Current</label>
  1275. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingCurrent'],2);?> amp">
  1276. <input type="hidden" name="PresentChargingCurrent1" id="PresentChargingCurrent1" value="<?php echo $obj['ChargingInfo1']['PresentChargingCurrent'];?>">
  1277. </div>
  1278. <div class="form-group" style="display:<?php echo $am111;?>">
  1279. <label>Present Charging Power</label>
  1280. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['PresentChargingPower'],2);?> kW">
  1281. <input type="hidden" name="PresentChargingPower1" id="PresentChargingPower1" value="<?php echo $obj['ChargingInfo1']['PresentChargingPower'];?>">
  1282. </div>
  1283. <div class="form-group" style="display:<?php echo $am111;?>">
  1284. <label>Present Charging Energy</label>
  1285. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo1']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1286. <input type="hidden" name="PresentChargedEnergy1" id="PresentChargedEnergy1" value="<?php echo $obj['ChargingInfo1']['PresentChargedEnergy'];?>">
  1287. </div>
  1288. <div class="form-group" style="display:<?php echo $am111;?>">
  1289. <label>Present Charging Duration</label>
  1290. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?> seconds">
  1291. <input type="hidden" name="PresentChargedDuration1" id="PresentChargedDuration1" value="<?php echo $obj['ChargingInfo1']['PresentChargedDuration'];?>">
  1292. </div>
  1293. <div class="form-group" style="display:<?php echo $am001;?>">
  1294. <label>Remain Charging Time</label>
  1295. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?> seconds">
  1296. <input type="hidden" name="RemainChargingDuration1" id="RemainChargingDuration1" value="<?php echo $obj['ChargingInfo1']['RemainChargingDuration'];?>">
  1297. </div>
  1298. <div class="form-group" style="display:<?php echo $am001;?>">
  1299. <label>EV Battery Max Voltage</label>
  1300. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['EvBatteryMaxVoltage'],2);?> volt">
  1301. <input type="hidden" name="EvBatteryMaxVoltage1" id="EvBatteryMaxVoltage1" value="<?php echo $obj['ChargingInfo1']['EvBatteryMaxVoltage'];?>">
  1302. </div>
  1303. <div class="form-group" style="display:<?php echo $am001;?>">
  1304. <label>EV Battery Target Voltage</label>
  1305. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo1']['EvBatterytargetVoltage'],2);?> volt">
  1306. <input type="hidden" name="EvBatterytargetVoltage1" id="EvBatterytargetVoltage1" value="<?php echo $obj['ChargingInfo1']['EvBatterytargetVoltage'];?>">
  1307. </div>
  1308. <div class="form-group" style="display:<?php echo $am001;?>">
  1309. <label>EV Battery Soc</label>
  1310. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
  1311. <input type="hidden" name="EvBatterySoc1" id="EvBatterySoc1" value="<?php echo $obj['ChargingInfo1']['EvBatterySoc'];?>">
  1312. </div>
  1313. <div class="form-group" style="display:<?php echo $am111;?>">
  1314. <label>Totalize Power Consumption</label>
  1315. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo1']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1316. </div>
  1317. <?php if(substr($ModelName,0,2)=="AX"){?>
  1318. <div class="form-group" style="display:block">
  1319. <label>Meter IC Calibration Status</label>
  1320. <span style="display:block">
  1321. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1322. <label>VaGain</label>
  1323. </span>
  1324. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1325. <label class="toggle-switchy" for="VaGain" data-size="" data-style="rounded">
  1326. <input disabled type="checkbox" id="VaGain" <?php echo $obj['ChargingInfo1']['isCalibratedVaGain']==1?"checked":"";?>>
  1327. <span class="toggle">
  1328. <span class="switch"></span>
  1329. </span>
  1330. </label>
  1331. </span>
  1332. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1333. <label>VbGain</label>
  1334. </span>
  1335. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1336. <label class="toggle-switchy" for="VbGain" data-size="" data-style="rounded">
  1337. <input disabled type="checkbox" id="VbGain" <?php echo $obj['ChargingInfo1']['isCalibratedVbGain']==1?"checked":"";?>>
  1338. <span class="toggle">
  1339. <span class="switch"></span>
  1340. </span>
  1341. </label>
  1342. </span>
  1343. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1344. <label>VcGain</label>
  1345. </span>
  1346. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1347. <label class="toggle-switchy" for="VcGain" data-size="" data-style="rounded">
  1348. <input disabled type="checkbox" id="VcGain" <?php echo $obj['ChargingInfo1']['isCalibratedVcGain']==1?"checked":"";?>>
  1349. <span class="toggle">
  1350. <span class="switch"></span>
  1351. </span>
  1352. </label>
  1353. </span>
  1354. </span>
  1355. <span class="" style="display:block">
  1356. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1357. <label>VaOffset</label>
  1358. </span>
  1359. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1360. <label class="toggle-switchy" for="VaOffset" data-size="" data-style="rounded">
  1361. <input disabled type="checkbox" id="VaOffset" <?php echo $obj['ChargingInfo1']['isCalibratedVaOffset']==1?"checked":"";?>>
  1362. <span class="toggle">
  1363. <span class="switch"></span>
  1364. </span>
  1365. </label>
  1366. </span>
  1367. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1368. <label>VbOffset</label>
  1369. </span>
  1370. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1371. <label class="toggle-switchy" for="VbOffset" data-size="" data-style="rounded">
  1372. <input disabled type="checkbox" id="VbOffset" <?php echo $obj['ChargingInfo1']['isCalibratedVbOffset']==1?"checked":"";?>>
  1373. <span class="toggle">
  1374. <span class="switch"></span>
  1375. </span>
  1376. </label>
  1377. </span>
  1378. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1379. <label>VcOffset</label>
  1380. </span>
  1381. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1382. <label class="toggle-switchy" for="VcOffset" data-size="" data-style="rounded">
  1383. <input disabled type="checkbox" id="VcOffset" <?php echo $obj['ChargingInfo1']['isCalibratedVcOffset']==1?"checked":"";?>>
  1384. <span class="toggle">
  1385. <span class="switch"></span>
  1386. </span>
  1387. </label>
  1388. </span>
  1389. </span>
  1390. <span class="" style="display:block">
  1391. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1392. <label>CaGain</label>
  1393. </span>
  1394. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1395. <label class="toggle-switchy" for="CaGain" data-size="" data-style="rounded">
  1396. <input disabled type="checkbox" id="CaGain" <?php echo $obj['ChargingInfo1']['isCalibratedCaGain']==1?"checked":"";?>>
  1397. <span class="toggle">
  1398. <span class="switch"></span>
  1399. </span>
  1400. </label>
  1401. </span>
  1402. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1403. <label>CbGain</label>
  1404. </span>
  1405. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1406. <label class="toggle-switchy" for="CbGain" data-size="" data-style="rounded">
  1407. <input disabled type="checkbox" id="CbGain" <?php echo $obj['ChargingInfo1']['isCalibratedCbGain']==1?"checked":"";?>>
  1408. <span class="toggle">
  1409. <span class="switch"></span>
  1410. </span>
  1411. </label>
  1412. </span>
  1413. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1414. <label>CcGain</label>
  1415. </span>
  1416. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1417. <label class="toggle-switchy" for="CcGain" data-size="" data-style="rounded">
  1418. <input disabled type="checkbox" id="CcGain" <?php echo $obj['ChargingInfo1']['isCalibratedCcGain']==1?"checked":"";?>>
  1419. <span class="toggle">
  1420. <span class="switch"></span>
  1421. </span>
  1422. </label>
  1423. </span>
  1424. </span>
  1425. <span class="" style="display:block">
  1426. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1427. <label>CaOffset</label>
  1428. </span>
  1429. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1430. <label class="toggle-switchy" for="CaOffset" data-size="" data-style="rounded">
  1431. <input disabled type="checkbox" id="CaOffset" <?php echo $obj['ChargingInfo1']['isCalibratedCaOffset']==1?"checked":"";?>>
  1432. <span class="toggle">
  1433. <span class="switch"></span>
  1434. </span>
  1435. </label>
  1436. </span>
  1437. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1438. <label>CbOffset</label>
  1439. </span>
  1440. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1441. <label class="toggle-switchy" for="CbOffset" data-size="" data-style="rounded">
  1442. <input disabled type="checkbox" id="CbOffset" <?php echo $obj['ChargingInfo1']['isCalibratedCbOffset']==1?"checked":"";?>>
  1443. <span class="toggle">
  1444. <span class="switch"></span>
  1445. </span>
  1446. </label>
  1447. </span>
  1448. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1449. <label>CcOffset</label>
  1450. </span>
  1451. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1452. <label class="toggle-switchy" for="CcOffset" data-size="" data-style="rounded">
  1453. <input disabled type="checkbox" id="CcOffset" <?php echo $obj['ChargingInfo1']['isCalibratedCcOffset']==1?"checked":"";?>>
  1454. <span class="toggle">
  1455. <span class="switch"></span>
  1456. </span>
  1457. </label>
  1458. </span>
  1459. </span>
  1460. <span class="" style="display:block">
  1461. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1462. <label>Pa</label>
  1463. </span>
  1464. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1465. <label class="toggle-switchy" for="Pa" data-size="" data-style="rounded">
  1466. <input disabled type="checkbox" id="Pa" <?php echo $obj['ChargingInfo1']['isCalibratedPa']==1?"checked":"";?>>
  1467. <span class="toggle">
  1468. <span class="switch"></span>
  1469. </span>
  1470. </label>
  1471. </span>
  1472. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1473. <label>Pb</label>
  1474. </span>
  1475. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1476. <label class="toggle-switchy" for="Pb" data-size="" data-style="rounded">
  1477. <input disabled type="checkbox" id="Pb" <?php echo $obj['ChargingInfo1']['isCalibratedPb']==1?"checked":"";?>>
  1478. <span class="toggle">
  1479. <span class="switch"></span>
  1480. </span>
  1481. </label>
  1482. </span>
  1483. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1484. <label>Pc</label>
  1485. </span>
  1486. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1487. <label class="toggle-switchy" for="Pc" data-size="" data-style="rounded">
  1488. <input disabled type="checkbox" id="Pc" <?php echo $obj['ChargingInfo1']['isCalibratedPc']==1?"checked":"";?>>
  1489. <span class="toggle">
  1490. <span class="switch"></span>
  1491. </span>
  1492. </label>
  1493. </span>
  1494. </span>
  1495. </div>
  1496. <?php } ?>
  1497. </section>
  1498. </article>
  1499. <?php }?>
  1500. <?php if($obj['ChargingInfo2']){ $idx++;?>
  1501. <!--Charging Information-->
  1502. <article class="envor-sorting-item css">
  1503. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType2.")"; ?><i class="fa fa-plus"></i></header>
  1504. <section>
  1505. <div class="form-group" style="display:<?php echo $am111;?>">
  1506. <label>User Id</label>
  1507. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
  1508. <input type="hidden" name="UserId2" id="UserId2" value="<?php echo $obj['ChargingInfo2']['StartUserId'];?>">
  1509. </div>
  1510. <div class="form-group" style="display:<?php echo $am111;?>">
  1511. <label>Start Date Time</label>
  1512. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
  1513. <input type="hidden" name="StartDateTime2" id="StartDateTime2" value="<?php echo $obj['ChargingInfo2']['StartDateTime'];?>">
  1514. </div>
  1515. <div class="form-group" style="display:<?php echo $am111;?>">
  1516. <label>Stop Date Time</label>
  1517. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StopDateTime'];?>">
  1518. <input type="hidden" name="StopDateTime2" id="StopDateTime2" value="<?php echo $obj['ChargingInfo2']['StopDateTime'];?>">
  1519. </div>
  1520. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1521. <label>StartMethod</label>
  1522. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['StartMethod'];?>">
  1523. <input type="hidden" name="StartMethod2" id="StartMethod2" value="<?php echo $obj['ChargingInfo2']['StartMethod'];?>">
  1524. </div>*/?>
  1525. <div class="form-group" style="display:<?php echo $am111;?>">
  1526. <label>System Status</label>
  1527. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus2;?>">
  1528. <input type="hidden" name="SystemStatus2" id="SystemStatus2" value="<?php echo $obj['ChargingInfo2']['SystemStatus'];?>">
  1529. </div>
  1530. <div class="form-group" style="display:<?php echo $am111;?>">
  1531. <label>Connector Temperature</label>
  1532. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['ConnectorTemp']!=255?$obj['ChargingInfo2']['ConnectorTemp']." ℃":"not supported";?>">
  1533. <input type="hidden" name="ConnectorTemp2" id="ConnectorTemp2" value="<?php echo $obj['ChargingInfo2']['ConnectorTemp'];?>">
  1534. </div>
  1535. <div class="form-group" id="ChillerTemp2">
  1536. <label>Chiller Temperature</label>
  1537. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['ChillerTemp']!=255?$obj['ChargingInfo2']['ChillerTemp']." ℃":"not supported";?>">
  1538. </div>
  1539. <div class="form-group" style="display:<?php echo $am001;?>">
  1540. <label>Present Charging Voltage</label>
  1541. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingVoltage'],2);?> volt">
  1542. <input type="hidden" name="PresentChargingVoltage2" id="PresentChargingVoltage2" value="<?php echo $obj['ChargingInfo2']['PresentChargingVoltage'];?>">
  1543. </div>
  1544. <div class="form-group" style="display:<?php echo $am111;?>">
  1545. <label>Present Charging Current</label>
  1546. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingCurrent'],2);?> amp">
  1547. <input type="hidden" name="PresentChargingCurrent2" id="PresentChargingCurrent2" value="<?php echo $obj['ChargingInfo2']['PresentChargingCurrent'];?>">
  1548. </div>
  1549. <div class="form-group" style="display:<?php echo $am111;?>">
  1550. <label>Present Charging Power</label>
  1551. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['PresentChargingPower'],2);?> kW">
  1552. <input type="hidden" name="PresentChargingPower2" id="PresentChargingPower2" value="<?php echo $obj['ChargingInfo2']['PresentChargingPower'];?>">
  1553. </div>
  1554. <div class="form-group" style="display:<?php echo $am111;?>">
  1555. <label>Present Charging Energy</label>
  1556. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo2']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1557. <input type="hidden" name="PresentChargedEnergy2" id="PresentChargedEnergy2" value="<?php echo $obj['ChargingInfo2']['PresentChargedEnergy'];?>">
  1558. </div>
  1559. <div class="form-group" style="display:<?php echo $am111;?>">
  1560. <label>Present Charging Duration</label>
  1561. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?> seconds">
  1562. <input type="hidden" name="PresentChargedDuration2" id="PresentChargedDuration2" value="<?php echo $obj['ChargingInfo2']['PresentChargedDuration'];?>">
  1563. </div>
  1564. <div class="form-group" style="display:<?php echo $am001;?>">
  1565. <label>Remain Charging Time</label>
  1566. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?> seconds">
  1567. <input type="hidden" name="RemainChargingDuration2" id="RemainChargingDuration2" value="<?php echo $obj['ChargingInfo2']['RemainChargingDuration'];?>">
  1568. </div>
  1569. <div class="form-group" style="display:<?php echo $am001;?>">
  1570. <label>EV Battery Max Voltage</label>
  1571. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['EvBatteryMaxVoltage'],2);?> volt">
  1572. <input type="hidden" name="EvBatteryMaxVoltage2" id="EvBatteryMaxVoltage2" value="<?php echo $obj['ChargingInfo2']['EvBatteryMaxVoltage'];?>">
  1573. </div>
  1574. <div class="form-group" style="display:<?php echo $am001;?>">
  1575. <label>EV Battery Target Voltage</label>
  1576. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo2']['EvBatterytargetVoltage'],2);?> volt">
  1577. <input type="hidden" name="EvBatterytargetVoltage2" id="EvBatterytargetVoltage2" value="<?php echo $obj['ChargingInfo2']['EvBatterytargetVoltage'];?>">
  1578. </div>
  1579. <div class="form-group" style="display:<?php echo $am001;?>">
  1580. <label>EV Battery Soc</label>
  1581. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
  1582. <input type="hidden" name="EvBatterySoc2" id="EvBatterySoc2" value="<?php echo $obj['ChargingInfo2']['EvBatterySoc'];?>">
  1583. </div>
  1584. <div class="form-group" style="display:<?php echo $am111;?>">
  1585. <label>Totalize Power Consumption</label>
  1586. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo2']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1587. </div>
  1588. <?php if(substr($ModelName,0,2)=="AX"){?>
  1589. <div class="form-group" style="display:block">
  1590. <label>Meter IC Calibration Status</label>
  1591. <span style="display:block">
  1592. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1593. <label>VaGain</label>
  1594. </span>
  1595. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1596. <label class="toggle-switchy" for="VaGain" data-size="" data-style="rounded">
  1597. <input disabled type="checkbox" id="VaGain" <?php echo $obj['ChargingInfo2']['isCalibratedVaGain']==1?"checked":"";?>>
  1598. <span class="toggle">
  1599. <span class="switch"></span>
  1600. </span>
  1601. </label>
  1602. </span>
  1603. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1604. <label>VbGain</label>
  1605. </span>
  1606. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1607. <label class="toggle-switchy" for="VbGain" data-size="" data-style="rounded">
  1608. <input disabled type="checkbox" id="VbGain" <?php echo $obj['ChargingInfo2']['isCalibratedVbGain']==1?"checked":"";?>>
  1609. <span class="toggle">
  1610. <span class="switch"></span>
  1611. </span>
  1612. </label>
  1613. </span>
  1614. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1615. <label>VcGain</label>
  1616. </span>
  1617. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1618. <label class="toggle-switchy" for="VcGain" data-size="" data-style="rounded">
  1619. <input disabled type="checkbox" id="VcGain" <?php echo $obj['ChargingInfo2']['isCalibratedVcGain']==1?"checked":"";?>>
  1620. <span class="toggle">
  1621. <span class="switch"></span>
  1622. </span>
  1623. </label>
  1624. </span>
  1625. </span>
  1626. <span class="" style="display:block">
  1627. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1628. <label>VaOffset</label>
  1629. </span>
  1630. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1631. <label class="toggle-switchy" for="VaOffset" data-size="" data-style="rounded">
  1632. <input disabled type="checkbox" id="VaOffset" <?php echo $obj['ChargingInfo2']['isCalibratedVaOffset']==1?"checked":"";?>>
  1633. <span class="toggle">
  1634. <span class="switch"></span>
  1635. </span>
  1636. </label>
  1637. </span>
  1638. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1639. <label>VbOffset</label>
  1640. </span>
  1641. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1642. <label class="toggle-switchy" for="VbOffset" data-size="" data-style="rounded">
  1643. <input disabled type="checkbox" id="VbOffset" <?php echo $obj['ChargingInfo2']['isCalibratedVbOffset']==1?"checked":"";?>>
  1644. <span class="toggle">
  1645. <span class="switch"></span>
  1646. </span>
  1647. </label>
  1648. </span>
  1649. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1650. <label>VcOffset</label>
  1651. </span>
  1652. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1653. <label class="toggle-switchy" for="VcOffset" data-size="" data-style="rounded">
  1654. <input disabled type="checkbox" id="VcOffset" <?php echo $obj['ChargingInfo2']['isCalibratedVcOffset']==1?"checked":"";?>>
  1655. <span class="toggle">
  1656. <span class="switch"></span>
  1657. </span>
  1658. </label>
  1659. </span>
  1660. </span>
  1661. <span class="" style="display:block">
  1662. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1663. <label>CaGain</label>
  1664. </span>
  1665. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1666. <label class="toggle-switchy" for="CaGain" data-size="" data-style="rounded">
  1667. <input disabled type="checkbox" id="CaGain" <?php echo $obj['ChargingInfo2']['isCalibratedCaGain']==1?"checked":"";?>>
  1668. <span class="toggle">
  1669. <span class="switch"></span>
  1670. </span>
  1671. </label>
  1672. </span>
  1673. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1674. <label>CbGain</label>
  1675. </span>
  1676. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1677. <label class="toggle-switchy" for="CbGain" data-size="" data-style="rounded">
  1678. <input disabled type="checkbox" id="CbGain" <?php echo $obj['ChargingInfo2']['isCalibratedCbGain']==1?"checked":"";?>>
  1679. <span class="toggle">
  1680. <span class="switch"></span>
  1681. </span>
  1682. </label>
  1683. </span>
  1684. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1685. <label>CcGain</label>
  1686. </span>
  1687. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1688. <label class="toggle-switchy" for="CcGain" data-size="" data-style="rounded">
  1689. <input disabled type="checkbox" id="CcGain" <?php echo $obj['ChargingInfo2']['isCalibratedCcGain']==1?"checked":"";?>>
  1690. <span class="toggle">
  1691. <span class="switch"></span>
  1692. </span>
  1693. </label>
  1694. </span>
  1695. </span>
  1696. <span class="" style="display:block">
  1697. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1698. <label>CaOffset</label>
  1699. </span>
  1700. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1701. <label class="toggle-switchy" for="CaOffset" data-size="" data-style="rounded">
  1702. <input disabled type="checkbox" id="CaOffset" <?php echo $obj['ChargingInfo2']['isCalibratedCaOffset']==1?"checked":"";?>>
  1703. <span class="toggle">
  1704. <span class="switch"></span>
  1705. </span>
  1706. </label>
  1707. </span>
  1708. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1709. <label>CbOffset</label>
  1710. </span>
  1711. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1712. <label class="toggle-switchy" for="CbOffset" data-size="" data-style="rounded">
  1713. <input disabled type="checkbox" id="CbOffset" <?php echo $obj['ChargingInfo2']['isCalibratedCbOffset']==1?"checked":"";?>>
  1714. <span class="toggle">
  1715. <span class="switch"></span>
  1716. </span>
  1717. </label>
  1718. </span>
  1719. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1720. <label>CcOffset</label>
  1721. </span>
  1722. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1723. <label class="toggle-switchy" for="CcOffset" data-size="" data-style="rounded">
  1724. <input disabled type="checkbox" id="CcOffset" <?php echo $obj['ChargingInfo2']['isCalibratedCcOffset']==1?"checked":"";?>>
  1725. <span class="toggle">
  1726. <span class="switch"></span>
  1727. </span>
  1728. </label>
  1729. </span>
  1730. </span>
  1731. <span class="" style="display:block">
  1732. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1733. <label>Pa</label>
  1734. </span>
  1735. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1736. <label class="toggle-switchy" for="Pa" data-size="" data-style="rounded">
  1737. <input disabled type="checkbox" id="Pa" <?php echo $obj['ChargingInfo2']['isCalibratedPa']==1?"checked":"";?>>
  1738. <span class="toggle">
  1739. <span class="switch"></span>
  1740. </span>
  1741. </label>
  1742. </span>
  1743. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1744. <label>Pb</label>
  1745. </span>
  1746. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1747. <label class="toggle-switchy" for="Pb" data-size="" data-style="rounded">
  1748. <input disabled type="checkbox" id="Pb" <?php echo $obj['ChargingInfo2']['isCalibratedPb']==1?"checked":"";?>>
  1749. <span class="toggle">
  1750. <span class="switch"></span>
  1751. </span>
  1752. </label>
  1753. </span>
  1754. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1755. <label>Pc</label>
  1756. </span>
  1757. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1758. <label class="toggle-switchy" for="Pc" data-size="" data-style="rounded">
  1759. <input disabled type="checkbox" id="Pc" <?php echo $obj['ChargingInfo2']['isCalibratedPc']==1?"checked":"";?>>
  1760. <span class="toggle">
  1761. <span class="switch"></span>
  1762. </span>
  1763. </label>
  1764. </span>
  1765. </span>
  1766. </div>
  1767. <?php } ?>
  1768. </section>
  1769. </article>
  1770. <?php }?>
  1771. <?php if($obj['ChargingInfo3']){ $idx++;?>
  1772. <!--Charging Information-->
  1773. <article class="envor-sorting-item css">
  1774. <header><?php echo "connector".$idx." ".$lang->showWord("charging_information")."(".$connectorType3.")"; ?><i class="fa fa-plus"></i></header>
  1775. <section>
  1776. <div class="form-group" style="display:<?php echo $am111;?>">
  1777. <label>User Id</label>
  1778. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
  1779. <input type="hidden" name="UserId3" id="UserId3" value="<?php echo $obj['ChargingInfo3']['StartUserId'];?>">
  1780. </div>
  1781. <div class="form-group" style="display:<?php echo $am111;?>">
  1782. <label>Start Date Time</label>
  1783. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
  1784. <input type="hidden" name="StartDateTime3" id="StartDateTime3" value="<?php echo $obj['ChargingInfo3']['StartDateTime'];?>">
  1785. </div>
  1786. <div class="form-group" style="display:<?php echo $am111;?>">
  1787. <label>Stop Date Time</label>
  1788. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StopDateTime'];?>">
  1789. <input type="hidden" name="StopDateTime3" id="StopDateTime3" value="<?php echo $obj['ChargingInfo3']['StopDateTime'];?>">
  1790. </div>
  1791. <?php /* <div class="form-group" style="display:<?php echo $am111;?>">
  1792. <label>StartMethod</label>
  1793. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['StartMethod'];?>">
  1794. <input type="hidden" name="StartMethod3" id="StartMethod3" value="<?php echo $obj['ChargingInfo3']['StartMethod'];?>">
  1795. </div>*/?>
  1796. <div class="form-group" style="display:<?php echo $am111;?>">
  1797. <label>System Status</label>
  1798. <input type="text" readonly class="form-control" placeholder="<?php echo $SystemStatus3;?>">
  1799. <input type="hidden" name="SystemStatus3" id="SystemStatus3" value="<?php echo $obj['ChargingInfo3']['SystemStatus'];?>">
  1800. </div>
  1801. <div class="form-group" style="display:<?php echo $am111;?>">
  1802. <label>Connector Temperature</label>
  1803. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['ConnectorTemp']!=255?$obj['ChargingInfo3']['ConnectorTemp']." ℃":"not supported";?>">
  1804. <input type="hidden" name="ConnectorTemp3" id="ConnectorTemp3" value="<?php echo $obj['ChargingInfo3']['ConnectorTemp'];?>">
  1805. </div>
  1806. <div class="form-group" id="ChillerTemp3">
  1807. <label>Chiller Temperature</label>
  1808. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['ChillerTemp']!=255?$obj['ChargingInfo3']['ChillerTemp']." ℃":"not supported";?>">
  1809. </div>
  1810. <div class="form-group" style="display:<?php echo $am001;?>">
  1811. <label>Present Charging Voltage</label>
  1812. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingVoltage'],2);?> volt">
  1813. <input type="hidden" name="PresentChargingVoltage3" id="PresentChargingVoltage3" value="<?php echo $obj['ChargingInfo3']['PresentChargingVoltage'];?>">
  1814. </div>
  1815. <div class="form-group" style="display:<?php echo $am111;?>">
  1816. <label>Present Charging Current</label>
  1817. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingCurrent'],2);?> amp">
  1818. <input type="hidden" name="PresentChargingCurrent3" id="PresentChargingCurrent3" value="<?php echo $obj['ChargingInfo3']['PresentChargingCurrent'];?>">
  1819. </div>
  1820. <div class="form-group" style="display:<?php echo $am111;?>">
  1821. <label>Present Charging Power</label>
  1822. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['PresentChargingPower'],2);?> kW">
  1823. <input type="hidden" name="PresentChargingPower3" id="PresentChargingPower3" value="<?php echo $obj['ChargingInfo3']['PresentChargingPower'];?>">
  1824. </div>
  1825. <div class="form-group" style="display:<?php echo $am111;?>">
  1826. <label>Present Charging Energy</label>
  1827. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo3']['PresentChargedEnergy'],4), 4, ".", " ");?> kWh">
  1828. <input type="hidden" name="PresentChargedEnergy3" id="PresentChargedEnergy3" value="<?php echo $obj['ChargingInfo3']['PresentChargedEnergy'];?>">
  1829. </div>
  1830. <div class="form-group" style="display:<?php echo $am111;?>">
  1831. <label>Present Charging Duration</label>
  1832. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?> seconds">
  1833. <input type="hidden" name="PresentChargedDuration3" id="PresentChargedDuration3" value="<?php echo $obj['ChargingInfo3']['PresentChargedDuration'];?>">
  1834. </div>
  1835. <div class="form-group" style="display:<?php echo $am001;?>">
  1836. <label>Remain Charging Time</label>
  1837. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?> seconds">
  1838. <input type="hidden" name="RemainChargingDuration3" id="RemainChargingDuration3" value="<?php echo $obj['ChargingInfo3']['RemainChargingDuration'];?>">
  1839. </div>
  1840. <div class="form-group" style="display:<?php echo $am001;?>">
  1841. <label>EV Battery Max Voltage</label>
  1842. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['EvBatteryMaxVoltage'],2);?> volt">
  1843. <input type="hidden" name="EvBatteryMaxVoltage3" id="EvBatteryMaxVoltage3" value="<?php echo $obj['ChargingInfo3']['EvBatteryMaxVoltage'];?>">
  1844. </div>
  1845. <div class="form-group" style="display:<?php echo $am001;?>">
  1846. <label>EV Battery Target Voltage</label>
  1847. <input type="text" readonly class="form-control" placeholder="<?php echo round($obj['ChargingInfo3']['EvBatterytargetVoltage'],2);?> volt">
  1848. <input type="hidden" name="EvBatterytargetVoltage3" id="EvBatterytargetVoltage3" value="<?php echo $obj['ChargingInfo3']['EvBatterytargetVoltage'];?>">
  1849. </div>
  1850. <div class="form-group" style="display:<?php echo $am001;?>">
  1851. <label>EV Battery Soc</label>
  1852. <input type="text" readonly class="form-control" placeholder="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
  1853. <input type="hidden" name="EvBatterySoc3" id="EvBatterySoc3" value="<?php echo $obj['ChargingInfo3']['EvBatterySoc'];?>">
  1854. </div>
  1855. <div class="form-group" style="display:<?php echo $am111;?>">
  1856. <label>Totalize Power Consumption</label>
  1857. <input type="text" readonly class="form-control" placeholder="<?php echo number_format(round($obj['ChargingInfo3']['PowerConsumption'],4), 4, ".", " ");?> kWh">
  1858. </div>
  1859. <?php if(substr($ModelName,0,2)=="AX"){?>
  1860. <div class="form-group" style="display:block">
  1861. <label>Meter IC Calibration Status</label>
  1862. <span style="display:block">
  1863. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1864. <label>VaGain</label>
  1865. </span>
  1866. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1867. <label class="toggle-switchy" for="VaGain" data-size="" data-style="rounded">
  1868. <input disabled type="checkbox" id="VaGain" <?php echo $obj['ChargingInfo3']['isCalibratedVaGain']==1?"checked":"";?>>
  1869. <span class="toggle">
  1870. <span class="switch"></span>
  1871. </span>
  1872. </label>
  1873. </span>
  1874. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1875. <label>VbGain</label>
  1876. </span>
  1877. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1878. <label class="toggle-switchy" for="VbGain" data-size="" data-style="rounded">
  1879. <input disabled type="checkbox" id="VbGain" <?php echo $obj['ChargingInfo3']['isCalibratedVbGain']==1?"checked":"";?>>
  1880. <span class="toggle">
  1881. <span class="switch"></span>
  1882. </span>
  1883. </label>
  1884. </span>
  1885. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1886. <label>VcGain</label>
  1887. </span>
  1888. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1889. <label class="toggle-switchy" for="VcGain" data-size="" data-style="rounded">
  1890. <input disabled type="checkbox" id="VcGain" <?php echo $obj['ChargingInfo3']['isCalibratedVcGain']==1?"checked":"";?>>
  1891. <span class="toggle">
  1892. <span class="switch"></span>
  1893. </span>
  1894. </label>
  1895. </span>
  1896. </span>
  1897. <span class="" style="display:block">
  1898. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1899. <label>VaOffset</label>
  1900. </span>
  1901. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1902. <label class="toggle-switchy" for="VaOffset" data-size="" data-style="rounded">
  1903. <input disabled type="checkbox" id="VaOffset" <?php echo $obj['ChargingInfo3']['isCalibratedVaOffset']==1?"checked":"";?>>
  1904. <span class="toggle">
  1905. <span class="switch"></span>
  1906. </span>
  1907. </label>
  1908. </span>
  1909. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1910. <label>VbOffset</label>
  1911. </span>
  1912. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1913. <label class="toggle-switchy" for="VbOffset" data-size="" data-style="rounded">
  1914. <input disabled type="checkbox" id="VbOffset" <?php echo $obj['ChargingInfo3']['isCalibratedVbOffset']==1?"checked":"";?>>
  1915. <span class="toggle">
  1916. <span class="switch"></span>
  1917. </span>
  1918. </label>
  1919. </span>
  1920. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1921. <label>VcOffset</label>
  1922. </span>
  1923. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1924. <label class="toggle-switchy" for="VcOffset" data-size="" data-style="rounded">
  1925. <input disabled type="checkbox" id="VcOffset" <?php echo $obj['ChargingInfo3']['isCalibratedVcOffset']==1?"checked":"";?>>
  1926. <span class="toggle">
  1927. <span class="switch"></span>
  1928. </span>
  1929. </label>
  1930. </span>
  1931. </span>
  1932. <span class="" style="display:block">
  1933. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1934. <label>CaGain</label>
  1935. </span>
  1936. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1937. <label class="toggle-switchy" for="CaGain" data-size="" data-style="rounded">
  1938. <input disabled type="checkbox" id="CaGain" <?php echo $obj['ChargingInfo3']['isCalibratedCaGain']==1?"checked":"";?>>
  1939. <span class="toggle">
  1940. <span class="switch"></span>
  1941. </span>
  1942. </label>
  1943. </span>
  1944. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1945. <label>CbGain</label>
  1946. </span>
  1947. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1948. <label class="toggle-switchy" for="CbGain" data-size="" data-style="rounded">
  1949. <input disabled type="checkbox" id="CbGain" <?php echo $obj['ChargingInfo3']['isCalibratedCbGain']==1?"checked":"";?>>
  1950. <span class="toggle">
  1951. <span class="switch"></span>
  1952. </span>
  1953. </label>
  1954. </span>
  1955. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1956. <label>CcGain</label>
  1957. </span>
  1958. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1959. <label class="toggle-switchy" for="CcGain" data-size="" data-style="rounded">
  1960. <input disabled type="checkbox" id="CcGain" <?php echo $obj['ChargingInfo3']['isCalibratedCcGain']==1?"checked":"";?>>
  1961. <span class="toggle">
  1962. <span class="switch"></span>
  1963. </span>
  1964. </label>
  1965. </span>
  1966. </span>
  1967. <span class="" style="display:block">
  1968. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1969. <label>CaOffset</label>
  1970. </span>
  1971. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1972. <label class="toggle-switchy" for="CaOffset" data-size="" data-style="rounded">
  1973. <input disabled type="checkbox" id="CaOffset" <?php echo $obj['ChargingInfo3']['isCalibratedCaOffset']==1?"checked":"";?>>
  1974. <span class="toggle">
  1975. <span class="switch"></span>
  1976. </span>
  1977. </label>
  1978. </span>
  1979. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1980. <label>CbOffset</label>
  1981. </span>
  1982. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1983. <label class="toggle-switchy" for="CbOffset" data-size="" data-style="rounded">
  1984. <input disabled type="checkbox" id="CbOffset" <?php echo $obj['ChargingInfo3']['isCalibratedCbOffset']==1?"checked":"";?>>
  1985. <span class="toggle">
  1986. <span class="switch"></span>
  1987. </span>
  1988. </label>
  1989. </span>
  1990. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1991. <label>CcOffset</label>
  1992. </span>
  1993. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  1994. <label class="toggle-switchy" for="CcOffset" data-size="" data-style="rounded">
  1995. <input disabled type="checkbox" id="CcOffset" <?php echo $obj['ChargingInfo3']['isCalibratedCcOffset']==1?"checked":"";?>>
  1996. <span class="toggle">
  1997. <span class="switch"></span>
  1998. </span>
  1999. </label>
  2000. </span>
  2001. </span>
  2002. <span class="" style="display:block">
  2003. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  2004. <label>Pa</label>
  2005. </span>
  2006. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  2007. <label class="toggle-switchy" for="Pa" data-size="" data-style="rounded">
  2008. <input disabled type="checkbox" id="Pa" <?php echo $obj['ChargingInfo3']['isCalibratedPa']==1?"checked":"";?>>
  2009. <span class="toggle">
  2010. <span class="switch"></span>
  2011. </span>
  2012. </label>
  2013. </span>
  2014. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  2015. <label>Pb</label>
  2016. </span>
  2017. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  2018. <label class="toggle-switchy" for="Pb" data-size="" data-style="rounded">
  2019. <input disabled type="checkbox" id="Pb" <?php echo $obj['ChargingInfo3']['isCalibratedPb']==1?"checked":"";?>>
  2020. <span class="toggle">
  2021. <span class="switch"></span>
  2022. </span>
  2023. </label>
  2024. </span>
  2025. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  2026. <label>Pc</label>
  2027. </span>
  2028. <span class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
  2029. <label class="toggle-switchy" for="Pc" data-size="" data-style="rounded">
  2030. <input disabled type="checkbox" id="Pc" <?php echo $obj['ChargingInfo3']['isCalibratedPc']==1?"checked":"";?>>
  2031. <span class="toggle">
  2032. <span class="switch"></span>
  2033. </span>
  2034. </label>
  2035. </span>
  2036. </span>
  2037. </div>
  2038. <?php } ?>
  2039. </section>
  2040. </article>
  2041. <?php }?>
  2042. <?php } ?>
  2043. <article class="envor-sorting-item css">
  2044. <div align="center"><button id="save"><?php echo $lang->showWord("set")?></button></div>
  2045. </article>
  2046. </div>
  2047. </div>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </section>
  2052. </div>
  2053. <?php
  2054. include 'foot.php';
  2055. ?>
  2056. <script type="text/JavaScript">
  2057. $(document).ready(function(){
  2058. if(document.getElementById("MaxChargingEnergy").value=="0" || document.getElementById("MaxChargingEnergy").value==""){
  2059. document.getElementById("MaxChargingEnergyText").style.display="block";
  2060. }
  2061. if(document.getElementById("MaxChargingPower").value=="0" || document.getElementById("MaxChargingPower").value==""){
  2062. document.getElementById("MaxChargingPowerText").style.display="block";
  2063. }
  2064. if(document.getElementById("MaxChargingCurrent").value=="0" || document.getElementById("MaxChargingCurrent").value==""){
  2065. document.getElementById("MaxChargingCurrentText").style.display="block";
  2066. }
  2067. if(document.getElementById("MaxChargingDuration").value=="0" || document.getElementById("MaxChargingDuration").value==""){
  2068. document.getElementById("MaxChargingDurationText").style.display="block";
  2069. }
  2070. if(document.getElementById("ModelName").value.substr(8,1) != "0"){
  2071. document.getElementById("AcMaxChargingCurrentDiv").style.display="block";
  2072. if(document.getElementById("AcMaxChargingCurrent").value=="0" || document.getElementById("AcMaxChargingCurrent").value==""){
  2073. document.getElementById("AcMaxChargingCurrentText").style.display="block";
  2074. }
  2075. document.getElementById("MaxChargingEnergyLbl").innerHTML="DC MaxCharging Energy";
  2076. document.getElementById("MaxChargingPowerLbl").innerHTML="DC MaxCharging Power";
  2077. document.getElementById("MaxChargingCurrentLbl").innerHTML="DC MaxCharging Current";
  2078. document.getElementById("MaxChargingDurationLbl").innerHTML="DC MaxCharging Duration";
  2079. }
  2080. else{
  2081. document.getElementById("AcMaxChargingCurrentDiv").style.display="none";
  2082. }
  2083. isBilling_clicked();
  2084. document.getElementById("MaxChargingEnergy").addEventListener("change", function() {
  2085. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  2086. document.getElementById(this.id+"Text").style.display="block";
  2087. }
  2088. else{
  2089. document.getElementById(this.id+"Text").style.display="none";
  2090. }
  2091. });
  2092. document.getElementById("MaxChargingPower").addEventListener("change", function() {
  2093. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  2094. document.getElementById(this.id+"Text").style.display="block";
  2095. }
  2096. else{
  2097. document.getElementById(this.id+"Text").style.display="none";
  2098. }
  2099. });
  2100. document.getElementById("MaxChargingCurrent").addEventListener("change", function() {
  2101. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  2102. document.getElementById(this.id+"Text").style.display="block";
  2103. }
  2104. else{
  2105. document.getElementById(this.id+"Text").style.display="none";
  2106. }
  2107. });
  2108. document.getElementById("MaxChargingDuration").addEventListener("change", function() {
  2109. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  2110. document.getElementById(this.id+"Text").style.display="block";
  2111. }
  2112. else{
  2113. document.getElementById(this.id+"Text").style.display="none";
  2114. }
  2115. });
  2116. document.getElementById("AcMaxChargingCurrent").addEventListener("change", function() {
  2117. if(document.getElementById(this.id).value == "0" || document.getElementById(this.id).value == ""){
  2118. document.getElementById(this.id+"Text").style.display="block";
  2119. }
  2120. else{
  2121. document.getElementById(this.id+"Text").style.display="none";
  2122. }
  2123. });
  2124. if(document.getElementById("ModelName").value.substr(7,1)!=0){
  2125. 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"){
  2126. document.getElementById("ChillerTemp1").style.display="block";
  2127. }
  2128. else{
  2129. document.getElementById("ChillerTemp1").style.display="none";
  2130. }
  2131. }
  2132. if(document.getElementById("ModelName").value.substr(9,1)!=0){
  2133. 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"){
  2134. document.getElementById("ChillerTemp2").style.display="block";
  2135. }
  2136. else{
  2137. document.getElementById("ChillerTemp2").style.display="none";
  2138. }
  2139. }
  2140. if(document.getElementById("ModelName").value.substr(8,1)!=0){
  2141. 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"){
  2142. document.getElementById("ChillerTemp3").style.display="block";
  2143. }
  2144. else{
  2145. document.getElementById("ChillerTemp3").style.display="none";
  2146. }
  2147. }
  2148. });
  2149. document.getElementById("save").onclick = function() {
  2150. if(formCheck())
  2151. {
  2152. window.location="#loadinghref";
  2153. document.getElementById("loading").style.display="block";
  2154. // 發送 Ajax 查詢請求並處理
  2155. var request = new XMLHttpRequest();
  2156. request.open("POST", "set_charging_action.php");
  2157. // POST 參數須使用 send() 發送
  2158. var data = "MaxChargingEnergy=" + document.getElementById("MaxChargingEnergy").value +
  2159. "&MaxChargingPower=" + document.getElementById("MaxChargingPower").value +
  2160. "&MaxChargingCurrent=" + document.getElementById("MaxChargingCurrent").value+
  2161. "&AcMaxChargingCurrent=" + document.getElementById("AcMaxChargingCurrent").value+
  2162. "&MaxChargingDuration=" + document.getElementById("MaxChargingDuration").value+
  2163. "&StopChargingByButton=" + document.getElementById("StopChargingByButton").value+
  2164. "&LocalWhiteCard0=" + document.getElementById("LocalWhiteCard0").value+
  2165. "&LocalWhiteCard1=" + document.getElementById("LocalWhiteCard1").value+
  2166. "&LocalWhiteCard2=" + document.getElementById("LocalWhiteCard2").value+
  2167. "&LocalWhiteCard3=" + document.getElementById("LocalWhiteCard3").value+
  2168. "&LocalWhiteCard4=" + document.getElementById("LocalWhiteCard4").value+
  2169. "&LocalWhiteCard5=" + document.getElementById("LocalWhiteCard5").value+
  2170. "&LocalWhiteCard6=" + document.getElementById("LocalWhiteCard6").value+
  2171. "&LocalWhiteCard7=" + document.getElementById("LocalWhiteCard7").value+
  2172. "&LocalWhiteCard8=" + document.getElementById("LocalWhiteCard8").value+
  2173. "&LocalWhiteCard9=" + document.getElementById("LocalWhiteCard9").value+
  2174. "&isBilling=" + (document.getElementById("isBilling").checked?1:0)+
  2175. "&Currency=" + document.getElementById("Currency").value+
  2176. "&Fee0=" + document.getElementById("Fee0").value+
  2177. "&Fee1=" + document.getElementById("Fee1").value+
  2178. "&Fee2=" + document.getElementById("Fee2").value+
  2179. "&Fee3=" + document.getElementById("Fee3").value+
  2180. "&Fee4=" + document.getElementById("Fee4").value+
  2181. "&Fee5=" + document.getElementById("Fee5").value+
  2182. "&Fee6=" + document.getElementById("Fee6").value+
  2183. "&Fee7=" + document.getElementById("Fee7").value+
  2184. "&Fee8=" + document.getElementById("Fee8").value+
  2185. "&Fee9=" + document.getElementById("Fee9").value+
  2186. "&Fee10=" + document.getElementById("Fee10").value+
  2187. "&Fee11=" + document.getElementById("Fee11").value+
  2188. "&Fee12=" + document.getElementById("Fee12").value+
  2189. "&Fee13=" + document.getElementById("Fee13").value+
  2190. "&Fee14=" + document.getElementById("Fee14").value+
  2191. "&Fee15=" + document.getElementById("Fee15").value+
  2192. "&Fee16=" + document.getElementById("Fee16").value+
  2193. "&Fee17=" + document.getElementById("Fee17").value+
  2194. "&Fee18=" + document.getElementById("Fee18").value+
  2195. "&Fee19=" + document.getElementById("Fee19").value+
  2196. "&Fee20=" + document.getElementById("Fee20").value+
  2197. "&Fee21=" + document.getElementById("Fee21").value+
  2198. "&Fee22=" + document.getElementById("Fee22").value+
  2199. "&Fee23=" + document.getElementById("Fee23").value;
  2200. // POST 請求必須設置表頭在 open() 下面,send() 上面
  2201. request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2202. request.send(data);
  2203. request.onreadystatechange = function() {
  2204. // 伺服器請求完成
  2205. if (request.readyState == 4) {
  2206. document.getElementById("loading").style.display="none";
  2207. // 伺服器回應成功
  2208. if (request.status == 200 && JSON.parse(request.responseText).result=="Success") {
  2209. alert("<?php echo $lang->showWord("done")?>");
  2210. location.href="set_charging.php";
  2211. } else {
  2212. alert(JSON.parse(request.responseText).message);
  2213. }
  2214. request = null;
  2215. }
  2216. }
  2217. }
  2218. }
  2219. function formCheck()
  2220. {
  2221. var LocalWhiteCard0 = document.getElementById("LocalWhiteCard0").value;
  2222. var LocalWhiteCard1 = document.getElementById("LocalWhiteCard1").value;
  2223. var LocalWhiteCard2 = document.getElementById("LocalWhiteCard2").value;
  2224. var LocalWhiteCard3 = document.getElementById("LocalWhiteCard3").value;
  2225. var LocalWhiteCard4 = document.getElementById("LocalWhiteCard4").value;
  2226. var LocalWhiteCard5 = document.getElementById("LocalWhiteCard5").value;
  2227. var LocalWhiteCard6 = document.getElementById("LocalWhiteCard6").value;
  2228. var LocalWhiteCard7 = document.getElementById("LocalWhiteCard7").value;
  2229. var LocalWhiteCard8 = document.getElementById("LocalWhiteCard8").value;
  2230. var LocalWhiteCard9 = document.getElementById("LocalWhiteCard9").value;
  2231. var RatingCurrent = document.getElementById("RatingCurrent").value;
  2232. var RatingPower = document.getElementById("RatingPower").value;
  2233. var MaxChargingEnergy = document.getElementById("MaxChargingEnergy").value;
  2234. var MaxChargingPower = document.getElementById("MaxChargingPower").value;
  2235. var MaxChargingCurrent = document.getElementById("MaxChargingCurrent").value;
  2236. var AcMaxChargingCurrent = document.getElementById("AcMaxChargingCurrent").value;
  2237. var MaxChargingDuration = document.getElementById("MaxChargingDuration").value;
  2238. if(LocalWhiteCard0 != ""){
  2239. if(LocalWhiteCard0.length>32){
  2240. alert("Local White Card0 must be less than 32 bytes!");
  2241. document.getElementById("LocalWhiteCard0").focus();
  2242. return false;
  2243. }
  2244. }
  2245. if(LocalWhiteCard1 != ""){
  2246. if(LocalWhiteCard1.length>32){
  2247. alert("Local White Card1 must be less than 32 bytes!");
  2248. document.getElementById("LocalWhiteCard1").focus();
  2249. return false;
  2250. }
  2251. }
  2252. if(LocalWhiteCard2 != ""){
  2253. if(LocalWhiteCard2.length>32){
  2254. alert("Local White Card2 must be less than 32 bytes!");
  2255. document.getElementById("LocalWhiteCard2").focus();
  2256. return false;
  2257. }
  2258. }
  2259. if(LocalWhiteCard3 != ""){
  2260. if(LocalWhiteCard3.length>32){
  2261. alert("Local White Card3 must be less than 32 bytes!");
  2262. document.getElementById("LocalWhiteCard3").focus();
  2263. return false;
  2264. }
  2265. }
  2266. if(LocalWhiteCard4 != ""){
  2267. if(LocalWhiteCard4.length>32){
  2268. alert("Local White Card4 must be less than 32 bytes!");
  2269. document.getElementById("LocalWhiteCard4").focus();
  2270. return false;
  2271. }
  2272. }
  2273. if(LocalWhiteCard5 != ""){
  2274. if(LocalWhiteCard5.length>32){
  2275. alert("Local White Card5 must be less than 32 bytes!");
  2276. document.getElementById("LocalWhiteCard5").focus();
  2277. return false;
  2278. }
  2279. }
  2280. if(LocalWhiteCard6 != ""){
  2281. if(LocalWhiteCard6.length>32){
  2282. alert("Local White Card6 must be less than 32 bytes!");
  2283. document.getElementById("LocalWhiteCard6").focus();
  2284. return false;
  2285. }
  2286. }
  2287. if(LocalWhiteCard7 != ""){
  2288. if(LocalWhiteCard7.length>32){
  2289. alert("Local White Card7 must be less than 32 bytes!");
  2290. document.getElementById("LocalWhiteCard7").focus();
  2291. return false;
  2292. }
  2293. }
  2294. if(LocalWhiteCard8 != ""){
  2295. if(LocalWhiteCard8.length>32){
  2296. alert("Local White Card8 must be less than 32 bytes!");
  2297. document.getElementById("LocalWhiteCard8").focus();
  2298. return false;
  2299. }
  2300. }
  2301. if(LocalWhiteCard9 != ""){
  2302. if(LocalWhiteCard9.length>32){
  2303. alert("Local White Card9 must be less than 32 bytes!");
  2304. document.getElementById("LocalWhiteCard9").focus();
  2305. return false;
  2306. }
  2307. }
  2308. if(MaxChargingEnergy =="")
  2309. {
  2310. alert("Fill Max Charging Energy !");
  2311. document.getElementById("MaxChargingEnergy").focus();
  2312. return false;
  2313. }
  2314. if(MaxChargingEnergy >65535)
  2315. {
  2316. alert("Max Charging Energy must <= 65535!");
  2317. document.getElementById("MaxChargingEnergy").focus();
  2318. return false;
  2319. }
  2320. if(MaxChargingEnergy < 0)
  2321. {
  2322. alert("Max Charging Energy must >= 0!");
  2323. document.getElementById("MaxChargingEnergy").focus();
  2324. return false;
  2325. }
  2326. if(MaxChargingPower =="")
  2327. {
  2328. alert("Fill Max Charging Power !");
  2329. document.getElementById("MaxChargingPower").focus();
  2330. return false;
  2331. }
  2332. if(RatingPower!="" && RatingPower!=0){
  2333. if(parseFloat(MaxChargingPower) > parseFloat(RatingPower))
  2334. {
  2335. alert("Max Charging Power must be less than RatingPower("+RatingPower+")!");
  2336. document.getElementById("MaxChargingPower").focus();
  2337. return false;
  2338. }
  2339. }
  2340. else{
  2341. if(MaxChargingPower >65535)
  2342. {
  2343. alert("Max Charging Power must <= 65535!");
  2344. document.getElementById("MaxChargingPower").focus();
  2345. return false;
  2346. }
  2347. }
  2348. if(MaxChargingCurrent =="")
  2349. {
  2350. alert("Fill Max Charging Current !");
  2351. document.getElementById("MaxChargingCurrent").focus();
  2352. return false;
  2353. }
  2354. if(RatingCurrent!="" && RatingCurrent!=0){
  2355. if(parseFloat(MaxChargingCurrent) > parseFloat(RatingCurrent))
  2356. {
  2357. alert("Max Charging Current must be less than RatingCurrent("+RatingCurrent+")!");
  2358. document.getElementById("MaxChargingCurrent").focus();
  2359. return false;
  2360. }
  2361. }
  2362. else{
  2363. if(MaxChargingCurrent >65535)
  2364. {
  2365. alert("Max Charging Current must <= 65535!");
  2366. document.getElementById("MaxChargingCurrent").focus();
  2367. return false;
  2368. }
  2369. }
  2370. if(document.getElementById("ModelName").value.substr(8,1)!= "0" && AcMaxChargingCurrent =="")
  2371. {
  2372. alert("Fill AC Max Charging Current !");
  2373. document.getElementById("AcMaxChargingCurrent").focus();
  2374. return false;
  2375. }
  2376. if(AcRatingCurrent!="" && AcRatingCurrent!=0){
  2377. if(parseFloat(AcMaxChargingCurrent) > parseFloat(AcRatingCurrent))
  2378. {
  2379. alert("Ac Max Charging Current must be less than Ac Rating Current("+AcRatingCurrent+")!");
  2380. document.getElementById("AcMaxChargingCurrent").focus();
  2381. return false;
  2382. }
  2383. }
  2384. else{
  2385. if(AcMaxChargingCurrent >65535)
  2386. {
  2387. alert("Ac Max Charging Current must <= 65535!");
  2388. document.getElementById("AcMaxChargingCurrent").focus();
  2389. return false;
  2390. }
  2391. if(AcMaxChargingCurrent < 0)
  2392. {
  2393. alert("Ac Max Charging Current must >= 0!");
  2394. document.getElementById("AcMaxChargingCurrent").focus();
  2395. return false;
  2396. }
  2397. }
  2398. if(MaxChargingCurrent =="")
  2399. {
  2400. alert("Fill Max Charging Current !");
  2401. document.getElementById("MaxChargingCurrent").focus();
  2402. return false;
  2403. }
  2404. if(MaxChargingCurrent < 0)
  2405. {
  2406. alert("MaxChargingCurrent must >= 0!");
  2407. document.getElementById("MaxChargingCurrent").focus();
  2408. return false;
  2409. }
  2410. if(MaxChargingDuration >65535)
  2411. {
  2412. alert("MaxChargingDuration must <= 65535!");
  2413. document.getElementById("MaxChargingDuration").focus();
  2414. return false;
  2415. }
  2416. if(MaxChargingDuration =="")
  2417. {
  2418. alert("Fill Max Charging Duration !");
  2419. document.getElementById("MaxChargingDuration").focus();
  2420. return false;
  2421. }
  2422. if(MaxChargingDuration < 0)
  2423. {
  2424. alert("MaxChargingDuration must >= 0!");
  2425. document.getElementById("MaxChargingDuration").focus();
  2426. return false;
  2427. }
  2428. if(document.getElementById("ModelName").value.substr(0,1)=="A" && MaxChargingCurrent < 6)
  2429. {
  2430. alert("MaxChargingCurrent must > 6!");
  2431. document.getElementById("MaxChargingCurrent").focus();
  2432. return false;
  2433. }
  2434. return true;
  2435. }
  2436. function isBilling_clicked(){
  2437. if(document.getElementById("isBilling").checked){
  2438. document.getElementById("CurrencyDiv").style.display="block";
  2439. document.getElementById("FeeDiv").style.display="block";
  2440. }
  2441. else{
  2442. document.getElementById("CurrencyDiv").style.display="none";
  2443. document.getElementById("FeeDiv").style.display="none";
  2444. }
  2445. }
  2446. function isNumberKey(evt)
  2447. {
  2448. var charCode = (evt.which) ? evt.which : event.keyCode
  2449. if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode != 46))
  2450. return false;
  2451. return true;
  2452. }
  2453. </script>
  2454. </html>