{"id":3850,"date":"2025-10-15T13:44:31","date_gmt":"2025-10-15T13:44:31","guid":{"rendered":"https:\/\/teamphotosa.co.za\/?page_id=3850"},"modified":"2025-10-15T13:44:33","modified_gmt":"2025-10-15T13:44:33","slug":"manager-info","status":"publish","type":"page","link":"https:\/\/teamphotosa.co.za\/?page_id=3850","title":{"rendered":"Manager Info"},"content":{"rendered":"    <div style=\"font-family:sans-serif; max-width:550px; margin:auto;\">\r\n        <form method=\"post\" id=\"tic_main_form\" style=\"padding:20px; border:1px solid #ccc; background:#fff; border-radius:8px; margin-bottom:20px;\">\r\n            <h3 style=\"margin-top:0;\">Manager Registration<\/h3>\r\n                        <select name=\"eid\" id=\"tic_eid\" required style=\"width:100%; margin-bottom:15px; padding:10px; border:1px solid #ddd;\">\r\n                <option value=\"\">-- Choose Event --<\/option>\r\n                <option value='26' >Willie le Roux 2026<\/option>            <\/select>\r\n            <select name=\"tn\" id=\"tic_tn\" required disabled style=\"width:100%; margin-bottom:15px; padding:10px; border:1px solid #ddd;\"><option>Loading...<\/option><\/select>\r\n            <input type=\"text\" name=\"mn\" placeholder=\"Manager Name\" required style=\"width:100%; margin-bottom:10px; padding:10px; border:1px solid #ddd;\">\r\n            <input type=\"text\" name=\"cp\" placeholder=\"Cell Number\" required style=\"width:100%; margin-bottom:10px; padding:10px; border:1px solid #ddd;\">\r\n            <input type=\"email\" name=\"em\" placeholder=\"Email Address\" required style=\"width:100%; margin-bottom:15px; padding:10px; border:1px solid #ddd;\">\r\n            <p><b>Photo Station:<\/b> <label><input type=\"radio\" name=\"station\" value=\"1\" required> 1<\/label> <label><input type=\"radio\" name=\"station\" value=\"2\"> 2<\/label> <label><input type=\"radio\" name=\"station\" value=\"3\"> 3<\/label><\/p>\r\n            <input type=\"submit\" name=\"tic_sub\" id=\"tic_submit_btn\" value=\"Confirm Registration\" style=\"width:100%; background:#0073aa; color:#fff; border:none; padding:15px; font-weight:bold; cursor:pointer; border-radius:5px;\">\r\n        <\/form>\r\n\r\n        \r\n        <div style=\"background:#fffbe6; padding:15px; border:1px solid #ffe58f; border-radius:8px; margin-bottom:20px;\">\r\n            <h4 style=\"margin:0 0 10px 0; color:#856404; border-bottom:2px solid #856404; display:inline-block;\">Outstanding: 0<\/h4>\r\n            <div style=\"max-height:150px; overflow-y:auto; font-size:13px; line-height:1.6;\">\r\n                All teams captured! \ud83c\udf89            <\/div>\r\n        <\/div>\r\n\r\n        <div style=\"background:#f9f9f9; padding:15px; border:1px solid #eee; border-radius:8px;\">\r\n            <h4 style=\"margin:0 0 10px 0; border-bottom:2px solid #0073aa; display:inline-block;\">Captured: 0<\/h4>\r\n            <table style=\"width:100%; border-collapse:collapse; font-size:14px;\">\r\n                <tbody>\r\n                <tr><td>No teams registered yet.<\/td><\/tr>                <\/tbody>\r\n            <\/table>\r\n        <\/div>\r\n    <\/div>\r\n    <script>\r\n    document.getElementById('tic_eid').addEventListener('change', function() {\r\n        var eid = this.value; if(eid) window.location.href = window.location.pathname + '?eid=' + eid;\r\n    });\r\n    window.addEventListener('load', function() {\r\n        var eid = document.getElementById('tic_eid').value;\r\n        var tsel = document.getElementById('tic_tn');\r\n        if(eid) {\r\n            fetch('https:\/\/teamphotosa.co.za\/wp-admin\/admin-ajax.php?action=tic_get_teams_v14&eid=' + eid)\r\n            .then(r => r.json()).then(res => {\r\n                tsel.innerHTML = '<option value=\"\">-- Select Team --<\/option>';\r\n                if(res.success && res.data.length > 0) {\r\n                    res.data.forEach(t => { tsel.innerHTML += '<option value=\"'+t.team_name+'\">'+t.team_name+'<\/option>'; });\r\n                    tsel.disabled = false;\r\n                } else { tsel.innerHTML = '<option>All Teams Captured<\/option>'; }\r\n            });\r\n        }\r\n    });\r\n    <\/script>\r\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3850","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=\/wp\/v2\/pages\/3850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3850"}],"version-history":[{"count":1,"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=\/wp\/v2\/pages\/3850\/revisions"}],"predecessor-version":[{"id":3851,"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=\/wp\/v2\/pages\/3850\/revisions\/3851"}],"wp:attachment":[{"href":"https:\/\/teamphotosa.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}