set_charging.php 138 KB

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