set_charging.php 130 KB

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