{"id":609,"date":"2025-08-11T11:46:46","date_gmt":"2025-08-11T09:46:46","guid":{"rendered":"http:\/\/localhost\/highlux_test_002\/?page_id=609"},"modified":"2025-08-11T12:18:58","modified_gmt":"2025-08-11T10:18:58","slug":"find-foto","status":"publish","type":"page","link":"https:\/\/highlux.23081964.xyz\/index.php\/find-foto\/","title":{"rendered":"find foto"},"content":{"rendered":"    <form id=\"hl-foto-search\" method=\"get\" action=\"\">\n        <label for=\"shot_date\">Date:<\/label>\n        <input type=\"date\" id=\"shot_date\" name=\"shot_date\" value=\"\" \/>\n        <input type=\"hidden\" id=\"shot_yyyymmdd\" name=\"shot_yyyymmdd\" value=\"\" \/>\n\n        <!-- Checkbox Advanced -->\n        <label for=\"advanced_search\">\n            <input type=\"checkbox\" id=\"advanced_search\" name=\"advanced_search\" value=\"1\"  \/>\n            Advanced\n        <\/label>\n\n        <!-- Campi avanzati -->\n        <div id=\"advanced_fields\" style=\"display: none;\">\n            <label for=\"shot_id\">ID:<\/label>\n            <input type=\"text\" id=\"shot_id\" name=\"shot_id\" value=\"\" \/>\n\n            <label for=\"shot_hlid\">Day:<\/label>\n            <input type=\"number\" id=\"shot_hlid\" name=\"shot_hlid\" value=\"\" \/>\n        <\/div>\n\n        <input type=\"submit\" value=\"Find\">\n    <\/form>\n\n    <script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        const dateInput = document.getElementById(\"shot_date\");\n        const hiddenDateInput = document.getElementById(\"shot_yyyymmdd\");\n\n        \/\/ Sincronizza la data\n        dateInput.addEventListener(\"change\", function() {\n            if (dateInput.value) {\n                const parts = dateInput.value.split(\"-\");\n                if(parts.length === 3) {\n                    hiddenDateInput.value = parts[0] + parts[1] + parts[2];\n                }\n            } else {\n                hiddenDateInput.value = '';\n            }\n        });\n\n        if (dateInput.value && !hiddenDateInput.value) {\n            const parts = dateInput.value.split(\"-\");\n            if(parts.length === 3) {\n                hiddenDateInput.value = parts[0] + parts[1] + parts[2];\n            }\n        }\n\n        \/\/ Mostra\/nascondi campi avanzati\n        const advCheckbox = document.getElementById(\"advanced_search\");\n        const advFields = document.getElementById(\"advanced_fields\");\n\n        advCheckbox.addEventListener(\"change\", function() {\n            advFields.style.display = advCheckbox.checked ? 'block' : 'none';\n        });\n    });\n    <\/script>\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":{"_acf_changed":false,"footnotes":""},"class_list":["post-609","page","type-page","status-publish","hentry"],"acf":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/pages\/609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=609"}],"version-history":[{"count":3,"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/pages\/609\/revisions"}],"predecessor-version":[{"id":612,"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/pages\/609\/revisions\/612"}],"wp:attachment":[{"href":"https:\/\/highlux.23081964.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}