{"id":24,"date":"2025-12-20T14:37:13","date_gmt":"2025-12-20T11:07:13","guid":{"rendered":"https:\/\/test.saoi.ir\/?page_id=24"},"modified":"2025-12-20T15:50:21","modified_gmt":"2025-12-20T12:20:21","slug":"%d8%ab%d8%a8%d8%aa-%d9%86%d8%a7%d9%85","status":"publish","type":"page","link":"https:\/\/test.saoi.ir\/?page_id=24","title":{"rendered":"\u062b\u0628\u062a \u0646\u0627\u0645"},"content":{"rendered":"    <div class=\"shahkar-box\" style=\"max-width:400px; margin:20px auto; padding:25px; background:#f0f0f1; border:2px solid #0073aa; font-family:tahoma; direction:rtl;\">\n        <h3 style=\"text-align:center;\">\u062b\u0628\u062a\u200c\u0646\u0627\u0645 \u0648 \u0627\u06cc\u062c\u0627\u062f \u0645\u0631\u062c\u0639<\/h3>\n        \n        <div id=\"sk_result_box\" style=\"padding:10px; margin-bottom:10px; display:none; text-align:center; font-weight:bold;\"><\/div>\n\n        <form id=\"pure_form\" onsubmit=\"return false;\">\n            <div style=\"margin-bottom:10px;\">\n                <input type=\"text\" id=\"p_fname\" placeholder=\"\u0646\u0627\u0645\" style=\"width:48%; padding:8px;\">\n                <input type=\"text\" id=\"p_lname\" placeholder=\"\u0646\u0627\u0645 \u062e\u0627\u0646\u0648\u0627\u062f\u06af\u06cc\" style=\"width:48%; padding:8px;\">\n            <\/div>\n            <div style=\"margin-bottom:15px;\">\n                <input type=\"text\" id=\"p_nid\" value=\"1111111111\" placeholder=\"\u06a9\u062f \u0645\u0644\u06cc\" style=\"width:100%; padding:8px;\">\n            <\/div>\n            <div style=\"margin-bottom:15px;\">\n                <input type=\"text\" id=\"p_mob\" value=\"09324664234\" placeholder=\"\u0645\u0648\u0628\u0627\u06cc\u0644\" style=\"width:100%; padding:8px;\">\n            <\/div>\n            <button type=\"button\" id=\"p_btn\" style=\"width:100%; padding:10px; background:#0073aa; color:#white; cursor:pointer;\">\u062b\u0628\u062a\u200c\u0646\u0627\u0645<\/button>\n        <\/form>\n    <\/div>\n\n    <script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        var btn = document.getElementById(\"p_btn\");\n        var resultBox = document.getElementById(\"sk_result_box\");\n        \n        btn.addEventListener(\"click\", function() {\n            btn.disabled = true; btn.innerText = \"\u062f\u0631 \u062d\u0627\u0644 \u0630\u062e\u06cc\u0631\u0647...\";\n            resultBox.style.display = \"none\";\n\n            var fd = new FormData();\n            fd.append(\"action\", \"shahkar_register_pure\");\n            fd.append(\"nid\", document.getElementById(\"p_nid\").value);\n            fd.append(\"mob\", document.getElementById(\"p_mob\").value);\n            fd.append(\"fname\", document.getElementById(\"p_fname\").value);\n            fd.append(\"lname\", document.getElementById(\"p_lname\").value);\n\n            fetch(\"https:\/\/test.saoi.ir\/wp-admin\/admin-ajax.php\", { method: \"POST\", body: fd })\n            .then(r => r.json())\n            .then(d => {\n                if (d.success) {\n                    resultBox.style.display = \"block\"; resultBox.style.backgroundColor = \"#d4edda\"; resultBox.style.color = \"green\";\n                    resultBox.innerText = \"\u2705 \" + d.data.msg;\n                    btn.innerText = \"\u0627\u0646\u062c\u0627\u0645 \u0634\u062f\";\n                } else {\n                    resultBox.style.display = \"block\"; resultBox.style.backgroundColor = \"#f8d7da\"; resultBox.style.color = \"red\";\n                    resultBox.innerText = \"\u274c \" + d.data.msg;\n                    btn.disabled = false; btn.innerText = \"\u062a\u0644\u0627\u0634 \u0645\u062c\u062f\u062f\";\n                }\n            });\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":{"footnotes":""},"class_list":["post-24","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/test.saoi.ir\/index.php?rest_route=\/wp\/v2\/pages\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.saoi.ir\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.saoi.ir\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.saoi.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.saoi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":3,"href":"https:\/\/test.saoi.ir\/index.php?rest_route=\/wp\/v2\/pages\/24\/revisions"}],"predecessor-version":[{"id":27,"href":"https:\/\/test.saoi.ir\/index.php?rest_route=\/wp\/v2\/pages\/24\/revisions\/27"}],"wp:attachment":[{"href":"https:\/\/test.saoi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}