{"id":26377,"date":"2026-08-31T00:08:17","date_gmt":"2026-08-31T00:08:17","guid":{"rendered":"https:\/\/maroczain.com\/?page_id=26377"},"modified":"2026-08-31T00:08:37","modified_gmt":"2026-08-31T00:08:37","slug":"v211","status":"publish","type":"page","link":"https:\/\/maroczain.com\/en\/v211\/","title":{"rendered":"V211"},"content":{"rendered":"\n<!doctype html>\n<html lang=\"fr\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>MZA Amadeus V211<\/title>\n<\/head>\n<body style=\"margin:0;background:#06101d;color:white;font-family:Consolas,monospace\">\n\n<div style=\"width:calc(100% - 20px);max-width:1800px;margin:10px auto;background:#081521;border:2px solid #e9c84a;border-radius:16px;padding:18px;box-sizing:border-box\">\n\n  <div style=\"font-family:Arial,sans-serif;font-size:28px;font-weight:900;margin-bottom:8px\">\n    MZA AMADEUS TRAINING \u2014 V211\n  <\/div>\n\n  <div style=\"font-family:Arial,sans-serif;background:#12324a;color:#fff;padding:10px;border-radius:10px;margin-bottom:12px;font-weight:800\">\n    Le bouton ENVOYER est plac\u00e9 EN HAUT de la page.\n  <\/div>\n\n  <input id=\"cmd\"\n         type=\"text\"\n         placeholder=\"Tapez HE puis cliquez ENVOYER\"\n         style=\"display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:64px!important;margin:0 0 10px 0!important;padding:0 16px!important;box-sizing:border-box!important;background:#0a1826!important;color:#fff!important;border:2px solid #315873!important;border-radius:12px!important;font:18px Consolas,monospace!important\">\n\n  <button id=\"sendTop\"\n          type=\"button\"\n          onclick=\"mzaSend()\"\n          style=\"display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;height:76px!important;margin:0 0 14px 0!important;background:#e9c84a!important;color:#111!important;border:4px solid #fff!important;border-radius:14px!important;font-family:Arial,sans-serif!important;font-size:24px!important;font-weight:900!important;cursor:pointer!important;position:relative!important;z-index:2147483647!important\">\n    \u2708 ENVOYER LA COMMANDE\n  <\/button>\n\n  <pre id=\"screen\"\n       style=\"display:block;width:100%;min-height:430px;max-height:60vh;overflow:auto;white-space:pre-wrap;background:#02070d;color:#dff5ff;border:1px solid #315873;border-radius:12px;padding:16px;box-sizing:border-box;font-size:16px;line-height:1.5\">&gt; JI0001AA\/SU\nSIGN-IN ACCEPTED 0001AA\/SU - TRAINING MODE\nTapez HE pour afficher l\u2019aide.<\/pre>\n\n  <button id=\"sendBottom\"\n          type=\"button\"\n          onclick=\"mzaSend()\"\n          style=\"display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;height:70px!important;margin:14px 0 0 0!important;background:#e9c84a!important;color:#111!important;border:4px solid #fff!important;border-radius:14px!important;font-family:Arial,sans-serif!important;font-size:22px!important;font-weight:900!important;cursor:pointer!important;position:relative!important;z-index:2147483647!important\">\n    \u2708 ENVOYER\n  <\/button>\n\n<\/div>\n\n<script>\nvar state={name:\"\",segments:[],contact:\"\",ticketing:\"\",rf:\"\",tst:null,ticket:\"\",pnr:\"FES7Y5\"};\n\nfunction pnr(){\n  var a=[\"RP\/MZA\/\"+state.pnr];\n  if(state.name)a.push(\"1. \"+state.name);\n  state.segments.forEach(function(x,i){\n    a.push((i+1)+\" \"+x.flight+\" \"+x.cls+\" \"+x.status+\" \"+x.from+x.to+\" \"+x.dep+\" \"+x.arr);\n  });\n  if(state.contact)a.push(\"AP \"+state.contact);\n  if(state.ticketing)a.push(state.ticketing);\n  if(state.rf)a.push(\"RF \"+state.rf);\n  if(state.tst)a.push(\"TST \"+state.tst.currency+\" \"+state.tst.amount);\n  if(state.ticket)a.push(\"FA ETKT\"+state.ticket);\n  return a.join(\"\\n\");\n}\nfunction missing(){\n  if(!state.name)return \"MISSING NAME ELEMENT\";\n  if(!state.segments.length)return \"MISSING ITINERARY ELEMENT\";\n  if(!state.contact)return \"MISSING CONTACT ELEMENT\";\n  if(!state.ticketing)return \"MISSING TICKETING ELEMENT\";\n  if(!state.rf)return \"MISSING RECEIVED FROM ELEMENT\";\n  return \"\";\n}\nfunction execute(raw){\n  var c=String(raw||\"\").trim().toUpperCase().replace(\/\\s+\/g,\" \");\n  var r=\"\",m;\n  if(!c)return \"\";\n  if(c===\"HE\"){\n    r=\"MZA AMADEUS TRAINING V211\\n\\nAN\/SN  Disponibilit\u00e9s\\nSS     Vente segment\\nNM     Nom\\nAP     Contact\\nTKOK   Ticketing\\nRF     Received From\\nER\/ET  Fin transaction\\nRT     Affichage PNR\\nFQD    Tarifs\\nFXP    Pricing\/TST\\nTQT    TST\\nTTP    Emission billet\\n\\nTRAINING MODE - DONN\u00c9ES SYNTH\u00c9TIQUES\";\n  } else if(\/^(SN|AN)\/.test(c)){\n    r=\"1 AT760 J4 C4 D4 I4 Y9 B9 M9 K9 CMN CDG 06:30 10:35\\n2 AT772 J4 C4 D4 I4 Y9 B9 M9 K9 CMN ORY 08:15 12:10\\n3 AT770 J4 C4 D4 I4 Y9 B9 M9 K9 CMN CDG 18:20 22:25\";\n  } else if((m=c.match(\/^SS1([A-Z])1$\/))){\n    state.segments=[{flight:\"AT760\",cls:m[1],status:\"HK1\",from:\"CMN\",to:\"CDG\",dep:\"06:30\",arr:\"10:35\"}];\n    r=\"AT760 \"+m[1]+\" HK1 CMN-CDG\";\n  } else if(\/^NM1\/.test(c)){\n    state.name=c.replace(\/^NM1\/,\"\"); r=\"NAME ELEMENT ACCEPTED\";\n  } else if(\/^AP\/.test(c)){\n    state.contact=c.replace(\/^AP\\s*\/,\"\")||\"KIA\"; r=\"CONTACT ELEMENT ACCEPTED\";\n  } else if(c===\"TKOK\"){\n    state.ticketing=\"TKOK\"; r=\"TICKETING ELEMENT ACCEPTED - TRAINING MODE\";\n  } else if(\/^RF\/.test(c)){\n    state.rf=c.replace(\/^RF\\s*\/,\"\")||\"KI\"; r=\"RECEIVED FROM ACCEPTED\";\n  } else if(c===\"ER\"){\n    r=missing()||(\"PNR STORED - TRAINING MODE\\nRECORD LOCATOR \"+state.pnr);\n  } else if(c===\"ET\"){\n    r=missing()||(\"END OF TRANSACTION COMPLETE\\n\"+pnr());\n  } else if(\/^RT\/.test(c)){\n    r=pnr();\n  } else if(\/^FQD\/.test(c)){\n    r=\"FARE DISPLAY - TRAINING MODE\\n1 YLOWMA MAD 2450.00\\n2 YSMART MAD 2310.00\\n3 JFLEX MAD 6840.00\";\n  } else if(c===\"FXP\"){\n    if(!state.segments.length) r=\"NO ITINERARY\";\n    else {\n      state.tst={currency:\"MAD\",amount:\"2450.00\",fareBasis:\"YLOWMA\"};\n      r=\"ITINERARY PRICED - TST CREATED\\nFARE MAD 2450.00\\nFARE BASIS YLOWMA\";\n    }\n  } else if(c===\"TQT\"){\n    r=state.tst?(\"TST DISPLAY\\nTOTAL \"+state.tst.currency+\" \"+state.tst.amount+\"\\nFARE BASIS \"+state.tst.fareBasis):\"NO TST FOUND\";\n  } else if(c===\"TTP\"){\n    var x=missing();\n    if(x) r=x;\n    else if(!state.tst) r=\"NO VALID TST - USE FXP\";\n    else {\n      if(!state.ticket) state.ticket=\"800\"+String(Date.now()).slice(-10);\n      r=\"OK ETICKET\\nFA ETKT\"+state.ticket+\"\\nTOTAL \"+state.tst.currency+\" \"+state.tst.amount+\"\\nELECTRONIC TICKET ISSUED - TRAINING MODE\";\n    }\n  } else {\n    r=\"TRANSACTION NOT YET ENABLED\\nCOMMAND: \"+c+\"\\nUSE HE\";\n  }\n  return r;\n}\n\nfunction mzaSend(){\n  var input=document.getElementById(\"cmd\");\n  var screen=document.getElementById(\"screen\");\n  var c=input.value.trim();\n  if(!c){ input.focus(); return; }\n  screen.textContent += \"\\n\\n> \"+c+\"\\n\"+execute(c);\n  screen.scrollTop=screen.scrollHeight;\n  input.value=\"\";\n  input.focus();\n}\ndocument.getElementById(\"cmd\").addEventListener(\"keydown\",function(e){\n  if(e.key===\"Enter\"){e.preventDefault();mzaSend();}\n});\n<\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>MZA Amadeus V211 MZA AMADEUS TRAINING \u2014 V211 Le bouton ENVOYER est plac\u00e9 EN HAUT de la page. \u2708 ENVOYER LA COMMANDE &gt; JI0001AA\/SU SIGN-IN ACCEPTED 0001AA\/SU &#8211; TRAINING MODE Tapez HE pour afficher l\u2019aide. \u2708 ENVOYER<\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-26377","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/pages\/26377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/comments?post=26377"}],"version-history":[{"count":1,"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/pages\/26377\/revisions"}],"predecessor-version":[{"id":26380,"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/pages\/26377\/revisions\/26380"}],"wp:attachment":[{"href":"https:\/\/maroczain.com\/en\/wp-json\/wp\/v2\/media?parent=26377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}