


{"id":677,"date":"2024-07-23T13:03:40","date_gmt":"2024-07-23T13:03:40","guid":{"rendered":"https:\/\/yoavwp.mly.co.il\/index.php\/register\/"},"modified":"2024-07-28T12:48:07","modified_gmt":"2024-07-28T12:48:07","slug":"register","status":"publish","type":"page","link":"https:\/\/yoavwp.mly.co.il\/index.php\/register\/","title":{"rendered":"\u05d4\u05d9\u05e8\u05e9\u05dd"},"content":{"rendered":"\n    <form action=\"\/index.php\/wp-json\/wp\/v2\/pages\/677\" method=\"POST\">\n        <style>\n            .content {\n                display: none;\n                margin-top: 10px;\n            }\n        <\/style>\n\n        <p>\n            <label for=\"user_login\">Username<br \/>\n                <input type=\"text\" name=\"user_login\" id=\"user_login\" class=\"input\" size=\"25\" \/><\/label>\n        <\/p>\n        <p>\n            <label for=\"user_email\">Email<br \/>\n                <input type=\"text\" name=\"user_email\" id=\"user_email\" class=\"input\" size=\"25\" \/><\/label>\n        <\/p>\n\n        <p>\n            <label for=\"user_password\">Password<br \/>\n                <input type=\"password\" name=\"user_password\" id=\"user_password\" class=\"input\" size=\"25\" \/><\/label>\n        <\/p>\n        <p>\n            <label for=\"first_name\">First Name<br \/>\n                <input type=\"text\" name=\"first_name\" id=\"first_name\" class=\"input\" size=\"25\" \/><\/label>\n        <\/p>\n        <p>\n            <label for=\"last_name\">Last Name<br \/>\n                <input type=\"text\" name=\"last_name\" id=\"last_name\" class=\"input\" size=\"25\" \/><\/label>\n        <\/p>\n\n        <label for=\"role\">Choose a Role:<\/label>\n        <select name=\"role\" id=\"role\" onchange=\"showContent('role', 'content')\">\n            <option value=\"\">--Select an option--<\/option>\n            <option value=\"player\">Player<\/option>\n            <option value=\"coach\">Coach<\/option>\n            <option value=\"agent\">Agent<\/option>\n        <\/select>\n\n        <div class=\"content\" id=\"content-player\">\n            <p>\n                <label for=\"position\">Position<br \/>\n                    <select id=\"position\" name=\"position\">\n                        <option value=\"GK\">GK (Goalkeeper)<\/option>\n                        <option value=\"CB\">CB (Center Back)<\/option>\n                        <option value=\"LB\">LB (Left Back)<\/option>\n                        <option value=\"RB\">RB (Right Back)<\/option>\n                        <option value=\"RWB\">RWB (Right Wing Back)<\/option>\n                        <option value=\"LWB\">LWB (Left Wing Back)<\/option>\n                        <option value=\"CM\">CM (Central Midfielder)<\/option>\n                        <option value=\"CDM\">CDM (Central Defensive Midfielder)<\/option>\n                        <option value=\"CAM\">CAM (Central Attacking Midfielder)<\/option>\n                        <option value=\"RM\">RM (Right Midfielder)<\/option>\n                        <option value=\"LM\">LM (Left Midfielder)<\/option>\n                        <option value=\"RW\">RW (Right Winger)<\/option>\n                        <option value=\"LW\">LW (Left Winger)<\/option>\n                        <option value=\"CF\">CF (Center Forward)<\/option>\n                        <option value=\"ST\">ST (Striker)<\/option>\n                    <\/select><\/label>\n            <\/p>\n            <p>\n                <label for=\"strong_foot\">Strong Foot<br \/>\n                    <select name=\"strong_foot\" id=\"strong_foot\">\n                        <option value=\"Right\">Right<\/option>\n                        <option value=\"Left\">Left<\/option>\n                    <\/select> <\/label>\n            <\/p>\n            <p>\n                <label for=\"birth_date\">Birth Date<br \/>\n                    <input type=\"date\" name=\"birth_date\" id=\"birth_date\" class=\"input\" value=\"\" size=\"25\" \/><\/label>\n            <\/p>\n            <p>\n                <label for=\"height\">Height(cm)<br \/>\n                    <input type=\"number\" name=\"player_height\" id=\"player_height\" class=\"input\" value=\"\" size=\"25\" \/><\/label>\n            <\/p>\n            <p>\n                <label for=\"weight\">Weight(kg)<br \/>\n                    <input type=\"number\" name=\"player_weight\" id=\"player_weight\" class=\"input\" value=\"\" size=\"25\" \/><\/label>\n            <\/p>\n            <p>\n                <label for=\"number\">Number<br \/>\n                    <input type=\"number\" name=\"player_number\" id=\"player_number\" class=\"input\" value=\"\" size=\"25\" \/><\/label>\n            <\/p>\n\n            <p>\n                <label for=\"player_club\">Select Your Club<br\/>\n                    <select name=\"player_club\" id=\"player_club\">\n                        <option value=\"\">Select Club<\/option>\n                        Real MadridMaccabi Petah-Tikva<option value=\"914\">Real Madrid<\/option><option value=\"846\">Maccabi Petah-Tikva<\/option>                    <\/select>\n                <\/label>\n            <\/p>\n        <\/div>\n\n        <div class=\"content\" id=\"content-coach\">\n            <p>\n                <label for=\"coach_club\">Select Your Club<br\/>\n                    <select name=\"coach_club\" id=\"coach_club\">\n                        <option value=\"\">Select Club<\/option>\n                        Real MadridMaccabi Petah-Tikva<option value=\"914\">Real Madrid<\/option><option value=\"846\">Maccabi Petah-Tikva<\/option>                    <\/select>\n                <\/label>\n            <\/p>\n        <\/div>\n\n        <div class=\"content\" id=\"content-agent\">\n\n        <\/div>\n\n        <p>\n            <input type=\"submit\" value=\"Register\" \/>\n        <\/p>\n\n        <script>\n            function showContent(selectId, contentPrefix) {\n                \/\/ Hide all content for this select\n                document.querySelectorAll(`div[id^='${contentPrefix}']`).forEach(function(div) {\n                    div.style.display = 'none';\n                });\n\n                \/\/ Get the selected value\n                var selectedValue = document.getElementById(selectId).value;\n\n                \/\/ Show the corresponding content\n                if (selectedValue) {\n                    document.getElementById(`${contentPrefix}-${selectedValue}`).style.display = 'block';\n                }\n            }\n        <\/script>\n    <\/form>\n\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kadence_starter_templates_imported_post":false,"footnotes":""},"class_list":["post-677","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/pages\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":1,"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/pages\/677\/revisions"}],"predecessor-version":[{"id":709,"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/pages\/677\/revisions\/709"}],"wp:attachment":[{"href":"https:\/\/yoavwp.mly.co.il\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}