{"id":156,"date":"2026-04-07T21:08:03","date_gmt":"2026-04-07T21:08:03","guid":{"rendered":"https:\/\/baytina.net\/tt\/?page_id=156"},"modified":"2026-04-09T12:26:58","modified_gmt":"2026-04-09T12:26:58","slug":"sdh_operational_user_register","status":"publish","type":"page","link":"https:\/\/baytina.net\/tt\/sdh_operational_user_register\/","title":{"rendered":"\u202b\u062a\u0633\u062c\u064a\u0644 \u0645\u0633\u062a\u062e\u062f\u0645 \u062c\u062f\u064a\u062f"},"content":{"rendered":"[mhc_section admin_label=&#8221;section&#8221;][mhc_row admin_label=&#8221;row&#8221; gradient_background=&#8221;off&#8221; gradient_style=&#8221;horizontal&#8221; remove_padding=&#8221;on&#8221; remove_padding_mobile=&#8221;off&#8221; background_image_size=&#8221;cover&#8221; background_image_repeat=&#8221;no-repeat&#8221; background_image_position_x=&#8221;center&#8221; background_image_position_y=&#8221;center&#8221; mobile_2_pr_row=&#8221;off&#8221; mobile_reverse=&#8221;off&#8221;][mhc_column type=&#8221;4_4&#8243;][mhc_code admin_label=&#8221;\u0643\u0648\u062f&#8221;]    <style>\n        .sdh-opreg-shell{max-width:1200px;margin:24px auto;padding:0 14px;direction:rtl}\n        .sdh-opreg-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px;box-shadow:0 4px 18px rgba(0,0,0,.05)}\n        .sdh-opreg-card h2{margin:0 0 8px;font-size:28px}\n        .sdh-opreg-card .sdh-opreg-subtitle{margin:0 0 18px;color:#6b7280;line-height:1.9}\n        .sdh-opreg-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}\n        .sdh-opreg-col-4{grid-column:span 4}\n        .sdh-opreg-col-6{grid-column:span 6}\n        .sdh-opreg-col-12{grid-column:span 12}\n        .sdh-opreg-field{display:flex;flex-direction:column;gap:6px}\n        .sdh-opreg-field label{font-size:14px;font-weight:700;color:#374151}\n        .sdh-opreg-field input,.sdh-opreg-field select{\n            width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;background:#fff;font-size:15px;box-sizing:border-box\n        }\n        .sdh-opreg-field input:focus,.sdh-opreg-field select:focus{\n            outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12)\n        }\n        .sdh-opreg-note{\n            margin:0 0 18px;\n            padding:12px 14px;\n            border-radius:12px;\n            background:#f8fafc;\n            border:1px solid #e5e7eb;\n            color:#334155;\n            line-height:1.9;\n        }\n        .sdh-opreg-actions{margin-top:24px;display:flex}\n        .sdh-btn-full{width:100%;justify-content:center;text-align:center;padding:14px 18px;font-size:16px}\n        .sdh-alert{margin-bottom:14px;padding:12px 14px;border-radius:12px;background:#fff3cd;border:1px solid #ffe69c;color:#7a5a00}\n        .sdh-success{margin-bottom:14px;padding:12px 14px;border-radius:12px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}\n        @media (max-width:900px){\n            .sdh-opreg-col-4,.sdh-opreg-col-6,.sdh-opreg-col-12{grid-column:span 12}\n        }\n    <\/style>\n\n    <div class=\"sdh-opreg-shell\">\n        \n        \n        <div class=\"sdh-opreg-card\">\n            <h2>\u0641\u062a\u062d \u062d\u0633\u0627\u0628 \u062a\u0634\u063a\u064a\u0644\u064a<\/h2>\n            <p class=\"sdh-opreg-subtitle\">\u064a\u0645\u0643\u0646 \u0644\u0645\u0633\u0624\u0648\u0644 \u0627\u0644\u0648\u0644\u0627\u064a\u0629 \u0648\u0623\u0645\u064a\u0631 \u0627\u0644\u0641\u0648\u062c \u0641\u062a\u062d \u062d\u0633\u0627\u0628\u0627\u062a\u0647\u0645 \u0645\u0646 \u0647\u0646\u0627. \u0628\u0639\u062f \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u064a\u0643\u0648\u0646 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0635\u0644\u0627\u062d\u064a\u0627\u062a \u0645\u062d\u062f\u062f\u0629 \u0625\u0644\u0649 \u062d\u064a\u0646 \u0627\u0639\u062a\u0645\u0627\u062f\u0647 \u0645\u0646 \u0645\u062f\u064a\u0631 \u0627\u0644\u0645\u0646\u0635\u0629 \u0648\u062a\u0641\u0639\u064a\u0644\u0647.<\/p>\n\n            <div class=\"sdh-opreg-note\">\n                \u0628\u0639\u062f \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0637\u0644\u0628:\n                <br>\u2022 \u0627\u0644\u062d\u0633\u0627\u0628 \u064a\u064f\u0646\u0634\u0623 \u0645\u0628\u062f\u0626\u064a\u064b\u0627 \u0628\u0635\u0644\u0627\u062d\u064a\u0627\u062a \u0645\u062d\u062f\u062f\u0629\n                <br>\u2022 \u0628\u0639\u062f \u0627\u0644\u0627\u0639\u062a\u0645\u0627\u062f \u062a\u064f\u0645\u0646\u062d \u0627\u0644\u0635\u0644\u0627\u062d\u064a\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644\u064a\u0629 \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629\n            <\/div>\n\n            <form method=\"post\">\n                <input type=\"hidden\" id=\"sdh_operational_register_nonce\" name=\"sdh_operational_register_nonce\" value=\"5cf65c7166\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/tt\/wp-json\/wp\/v2\/pages\/156\" \/>\n                <div class=\"sdh-opreg-grid\">\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\">\n                        <label>\u0627\u0644\u0627\u0633\u0645<\/label>\n                        <input type=\"text\" name=\"display_name\" required>\n                    <\/div>\n\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\">\n                        <label>\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a<\/label>\n                        <input type=\"email\" name=\"email\" required>\n                    <\/div>\n\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\">\n                        <label>\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645<\/label>\n                        <input type=\"text\" name=\"username\" required>\n                    <\/div>\n\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\">\n                        <label>\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631<\/label>\n                        <input type=\"text\" name=\"password\" required>\n                    <\/div>\n\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\">\n                        <label>\u0646\u0648\u0639 \u0627\u0644\u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0637\u0644\u0648\u0628<\/label>\n                        <select name=\"target_role\" id=\"sdh_target_role\" required>\n                            <option value=\"\">\u2014 \u0627\u062e\u062a\u0631 \u0627\u0644\u0646\u0648\u0639 \u2014<\/option>\n                            <option value=\"sdh_group_leader\">\u0623\u0645\u064a\u0631 \u0641\u0648\u062c<\/option>\n                            <option value=\"sdh_state_manager\">\u0645\u0633\u0624\u0648\u0644 \u0648\u0644\u0627\u064a\u0629<\/option>\n                        <\/select>\n                    <\/div>\n\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\" id=\"sdh_state_field\">\n                        <label>\u0627\u0644\u0648\u0644\u0627\u064a\u0629<\/label>\n                        <select name=\"state_id\" id=\"sdh_state_id\">\n                            <option value=\"\">\u2014 \u0627\u062e\u062a\u0631 \u0627\u0644\u0648\u0644\u0627\u064a\u0629 \u2014<\/option>\n                                                            <option value=\"302\">\u0627\u0644\u0646\u064a\u0644 \u0627\u0644\u0623\u0628\u064a\u0636<\/option>\n                                                            <option value=\"317\">\u0627\u0644\u0646\u064a\u0644 \u0627\u0644\u0623\u0632\u0631\u0642<\/option>\n                                                            <option value=\"211\">\u0648\u0644\u0627\u064a\u0629 \u0627\u0644\u062c\u0632\u064a\u0631\u0629<\/option>\n                                                            <option value=\"210\">\u0648\u0644\u0627\u064a\u0629 \u0627\u0644\u062e\u0631\u0637\u0648\u0645<\/option>\n                                                            <option value=\"308\">\u0648\u0644\u0627\u064a\u0629 \u0627\u0644\u0642\u0636\u0627\u0631\u0641<\/option>\n                                                    <\/select>\n                    <\/div>\n\n                    <div class=\"sdh-opreg-field sdh-opreg-col-4\" id=\"sdh_group_field\">\n                        <label>\u0627\u0644\u0641\u0648\u062c<\/label>\n                        <select name=\"group_id\" id=\"sdh_group_id\">\n                            <option value=\"\">\u2014 \u0627\u062e\u062a\u0631 \u0627\u0644\u0641\u0648\u062c \u2014<\/option>\n                        <\/select>\n                    <\/div>\n                <\/div>\n\n                <div class=\"sdh-opreg-actions\">\n                    <button type=\"submit\" name=\"sdh_operational_register_submit\" class=\"sdh-btn sdh-btn-primary sdh-btn-full\">\u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628 \u0641\u062a\u062d \u0627\u0644\u062d\u0633\u0627\u0628<\/button>\n                <\/div>\n            <\/form>\n        <\/div>\n    <\/div>\n\n    <script>\n    (function(){\n        const roleSelect = document.getElementById('sdh_target_role');\n        const stateField = document.getElementById('sdh_state_field');\n        const groupField = document.getElementById('sdh_group_field');\n        const stateSelect = document.getElementById('sdh_state_id');\n        const groupSelect = document.getElementById('sdh_group_id');\n\n        const allGroups = [{\"id\":232,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u0623\\u0648\\u0644\",\"state_id\":211},{\"id\":234,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u0623\\u0648\\u0644\",\"state_id\":210},{\"id\":303,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u0623\\u0648\\u0644\",\"state_id\":302},{\"id\":238,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u062b\\u0627\\u0644\\u062b\",\"state_id\":210},{\"id\":297,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u062b\\u0627\\u0644\\u062b\",\"state_id\":211},{\"id\":236,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u062b\\u0627\\u0646\\u064a\",\"state_id\":211},{\"id\":237,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u062b\\u0627\\u0646\\u064a\",\"state_id\":210},{\"id\":314,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u062e\\u0627\\u0645\\u0633\",\"state_id\":211},{\"id\":304,\"title\":\"\\u0627\\u0644\\u0641\\u0648\\u062c \\u0627\\u0644\\u0631\\u0627\\u0628\\u0639\",\"state_id\":211},{\"id\":250,\"title\":\"\\u0641\\u0648\\u062c \\u0631\\u062c\\u0627\\u0644 \\u0627\\u0644\\u0623\\u0639\\u0645\\u0627\\u0644\",\"state_id\":210}];\n\n        function syncRoleFields() {\n            const role = roleSelect.value;\n\n            if (stateField) stateField.style.display = 'none';\n            if (groupField) groupField.style.display = 'none';\n\n            if (role === 'sdh_state_manager') {\n                stateField.style.display = 'flex';\n            } else if (role === 'sdh_group_leader') {\n                stateField.style.display = 'flex';\n                groupField.style.display = 'flex';\n            }\n        }\n\n        function refillGroups() {\n            const selectedState = stateSelect ? stateSelect.value : '';\n            groupSelect.innerHTML = '<option value=\"\">\u2014 \u0627\u062e\u062a\u0631 \u0627\u0644\u0641\u0648\u062c \u2014<\/option>';\n\n            allGroups.forEach(group => {\n                if (!selectedState || String(group.state_id) === String(selectedState)) {\n                    const opt = document.createElement('option');\n                    opt.value = group.id;\n                    opt.textContent = group.title;\n                    groupSelect.appendChild(opt);\n                }\n            });\n        }\n\n        if (roleSelect) roleSelect.addEventListener('change', syncRoleFields);\n        if (stateSelect) stateSelect.addEventListener('change', refillGroups);\n\n        syncRoleFields();\n        refillGroups();\n    })();\n    <\/script>\n    [\/mhc_code][\/mhc_column][\/mhc_row][\/mhc_section]\n","protected":false},"excerpt":{"rendered":"<p>[mhc_section admin_label=&#8221;section&#8221;][mhc_row admin_label=&#8221;row&#8221; gradient_background=&#8221;off&#8221; gradient_style=&#8221;horizontal&#8221; remove_padding=&#8221;on&#8221; remove_padding_mobile=&#8221;off&#8221; background_image_size=&#8221;cover&#8221; background_image_repeat=&#8221;no-repeat&#8221; background_image_position_x=&#8221;center&#8221; background_image_position_y=&#8221;center&#8221; mobile_2_pr_row=&#8221;off&#8221; mobile_reverse=&#8221;off&#8221;][mhc_column type=&#8221;4_4&#8243;][mhc_code admin_label=&#8221;\u0643\u0648\u062f&#8221;][\/mhc_code][\/mhc_column][\/mhc_row][\/mhc_section]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-156","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/pages\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":3,"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/pages\/156\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/pages\/156\/revisions\/271"}],"wp:attachment":[{"href":"https:\/\/baytina.net\/tt\/wp-json\/wp\/v2\/media?parent=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}