{"id":22054,"date":"2026-04-22T09:48:41","date_gmt":"2026-04-22T08:48:41","guid":{"rendered":"https:\/\/marinaport.hu\/app\/?page_id=22054"},"modified":"2026-04-22T09:48:42","modified_gmt":"2026-04-22T08:48:42","slug":"invalidcard","status":"publish","type":"page","link":"https:\/\/marinaport.hu\/app\/invalidcard\/","title":{"rendered":"invalidcard"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"hu\">\n<head>\n    <meta charset=\"UTF-8\">\n    <title>\u00c9rv\u00e9nytelen Pr\u00f3b\u00e1lkoz\u00e1sok<\/title>\n    <style>\n        body { font-family: sans-serif; padding: 20px; background: #f4f7f6; }\n        .card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 800px; margin: auto; }\n        table { width: 100%; border-collapse: collapse; margin-top: 20px; }\n        th, td { border: 1px solid #ddd; padding: 12px; text-align: left; }\n        th { background-color: #3f51b5; color: white; }\n        tr:nth-child(even) { background-color: #f2f2f2; }\n        .controls { margin-bottom: 20px; }\n    <\/style>\n<\/head>\n<body>\n\n<div class=\"card\">\n    <h2>\u00c9rv\u00e9nytelen k\u00e1rtyahaszn\u00e1lat ellen\u0151rz\u00e9se<\/h2>\n    \n    <div class=\"controls\">\n        V\u00e1lassz napot: <input type=\"date\" id=\"datePicker\">\n        <button onclick=\"loadAttempts()\">Lek\u00e9rdez\u00e9s<\/button>\n    <\/div>\n\n    <table id=\"resultTable\">\n        <thead>\n            <tr>\n                <th>Id\u0151pont<\/th>\n                <th>UID<\/th>\n                <th>Felhaszn\u00e1l\u00f3 Neve (WinAccess)<\/th>\n            <\/tr>\n        <\/thead>\n        <tbody id=\"resultBody\">\n            <\/tbody>\n    <\/table>\n<\/div>\n\n<script>\nasync def loadAttempts() {\n    const date = document.getElementById('datePicker').value;\n    if(!date) return alert(\"V\u00e1lassz d\u00e1tumot!\");\n    \n    const body = document.getElementById('resultBody');\n    body.innerHTML = \"<tr><td colspan='3'>Lek\u00e9rdez\u00e9s folyamatban...<\/td><\/tr>\";\n\n    const formData = new FormData();\n    formData.append('date', date);\n\n    const response = await fetch('\/get_attempts', { method: 'POST', body: formData });\n    const data = await response.json();\n\n    body.innerHTML = \"\";\n    if(data.length === 0) {\n        body.innerHTML = \"<tr><td colspan='3'>Ezen a napon nem volt r\u00f6gz\u00edtett pr\u00f3b\u00e1lkoz\u00e1s.<\/td><\/tr>\";\n    } else {\n        data.forEach(item => {\n            body.innerHTML += `<tr>\n                <td>${item.time}<\/td>\n                <td>${item.uid}<\/td>\n                <td><strong>${item.name}<\/strong><\/td>\n            <\/tr>`;\n        });\n    }\n}\n<\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u00c9rv\u00e9nytelen Pr\u00f3b\u00e1lkoz\u00e1sok \u00c9rv\u00e9nytelen k\u00e1rtyahaszn\u00e1lat ellen\u0151rz\u00e9se V\u00e1lassz napot: Lek\u00e9rdez\u00e9s Id\u0151pont UID Felhaszn\u00e1l\u00f3 Neve (WinAccess)<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-22054","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages\/22054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/comments?post=22054"}],"version-history":[{"count":1,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages\/22054\/revisions"}],"predecessor-version":[{"id":22055,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages\/22054\/revisions\/22055"}],"wp:attachment":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/media?parent=22054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}