{"id":1734,"date":"2025-11-09T20:29:27","date_gmt":"2025-11-09T16:59:27","guid":{"rendered":"https:\/\/emif.ir\/?page_id=1734"},"modified":"2025-11-09T20:29:33","modified_gmt":"2025-11-09T16:59:33","slug":"%d8%a8%d8%b1%da%af-%d8%b1%db%8c%d8%b2%d9%86%d9%85%d8%b1%d8%a7%d8%aa-%d8%af%d8%a8%db%8c%d8%b1","status":"publish","type":"page","link":"https:\/\/emif.ir\/?page_id=1734","title":{"rendered":"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631"},"content":{"rendered":"    \n    <style>\n    .teacher-select-wrapper { max-width:480px; margin:20px auto; font-family:'Tahoma'; direction:rtl; }\n    .teacher-select-wrapper label { display:block; font-weight:bold; margin-bottom:8px; }\n    .teacher-select { width:100%; padding:10px; border:1px solid #ccc; border-radius:8px; background:#f9f9f9; }\n    .teacher-info { background:#f1f9ff; padding:15px; margin:20px auto; border-radius:10px; border:1px solid #cce5ff; max-width:900px; display:none; direction:rtl; }\n    .teacher-info table { width:100%; border-collapse: collapse; font-size:14px; }\n    .teacher-info th, .teacher-info td { padding:8px; border:1px solid #bbb; text-align:center; }\n    .score-table { width:100%; border-collapse: collapse; margin-top:20px; }\n    .score-table th, .score-table td { border:1px solid #ccc; padding:8px; text-align:center; }\n    .score-table th { background:#0073aa; color:#fff; }\n    .score-table input { width:90%; padding:4px; border:1px solid #ccc; border-radius:5px; text-align:center; }\n    .save-scores, .print-report { display:inline-block; padding:10px 18px; margin:20px 10px; border:none; border-radius:8px; cursor:pointer; font-size:14px; color:#fff; }\n    .save-scores { background:#28a745; }\n    .print-report { background:#0073aa; }\n    .signature { text-align:left; margin-top:60px; margin-left:40px; font-weight:bold; }\n\n    @media print {\n        body * { visibility:hidden; }\n        #teacher_info, #teacher_info * { visibility:visible; }\n        #teacher_info { position:absolute; top:0; right:0; width:100%; background:#fff; }\n        .save-scores, .print-report { display:none !important; }\n        .print-header h2, .print-header h3 { text-align:center; margin:0; }\n        .print-date { position:absolute; top:0; left:0; font-weight:bold; }\n    }\n    <\/style>\n    \n    <div class=\"teacher-select-wrapper\">\n        <label for=\"teacher_select\">\u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0639\u0644\u0645<\/label>\n        <select id=\"teacher_select\" class=\"teacher-select\">\n            <option value=\"\">-- \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0639\u0644\u0645 --<\/option>\n                            <option value=\"11\">\n                    \u062d\u0633\u06cc\u0646 \u0627\u0633\u0644\u0627\u0645\u06cc - \u0646\u0642\u0627\u0634 \u0631\u0646\u06af \u0648 \u0631\u0648\u063a\u0646 (2025-11-15 \u062a\u0627 2025-11-22)                <\/option>\n                            <option value=\"15\">\n                    \u062d\u0633\u06cc\u0646 \u0627\u06a9\u0628\u0631\u06cc - \u0633\u0631\u067e\u0631\u0633\u062a \u062f\u0628\u06cc\u0631\u062e\u0627\u0646\u0647 (2025-11-22 \u062a\u0627 2025-11-29)                <\/option>\n                            <option value=\"16\">\n                    \u0641\u0627\u0637\u0645\u0647 \u0633\u0631\u062f\u0627\u0631\u06cc - \u06a9\u0627\u0631\u0648\u0631 AutoCad (2025-11-20 \u062a\u0627 2025-11-30)                <\/option>\n                            <option value=\"14\">\n                    \u0645\u062c\u06cc\u062f \u0633\u0647\u06cc\u0644\u06cc - \u062a\u0639\u0645\u06cc\u0631\u06a9\u0627\u0631 \u0645\u0627\u0634\u06cc\u0646 \u0647\u0627\u06cc \u0627\u0644\u06a9\u062a\u0631\u06cc\u06a9\u06cc \u062f\u0631\u062c\u0647 1 (2025-11-22 \u062a\u0627 2025-11-29)                <\/option>\n                            <option value=\"9\">\n                    \u0645\u0648\u0633\u06cc \u0627\u06cc\u0631\u0627\u0646\u06cc - ICDL \u062f\u0631\u062c\u0647 2 (2025-11-15 \u062a\u0627 2025-11-20)                <\/option>\n                            <option value=\"13\">\n                    \u0645\u0648\u0633\u06cc \u0627\u06cc\u0631\u0627\u0646\u06cc - \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627\u06cc\u0627\u0646\u0647 (2025-11-01 \u062a\u0627 2025-11-30)                <\/option>\n                    <\/select>\n    <\/div>\n\n    <div id=\"teacher_info\" class=\"teacher-info\"><\/div>\n\n    <script>\n    const ajaxurl = \"https:\/\/emif.ir\/wp-admin\/admin-ajax.php\";\n    document.addEventListener('DOMContentLoaded', () => {\n        const teacherSelect = document.getElementById('teacher_select');\n        const infoDiv = document.getElementById('teacher_info');\n        \n        teacherSelect.addEventListener('change', () => {\n            const teacherId = teacherSelect.value;\n            infoDiv.style.display = 'none';\n            infoDiv.innerHTML = '';\n            if (!teacherId) return;\n            infoDiv.innerHTML = '<p style=\"text-align:center;\">\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u06a9\u0644\u0627\u0633 \u0648 \u062f\u0627\u0646\u0634\u200c\u0622\u0645\u0648\u0632\u0627\u0646...<\/p>';\n            \n            fetch(ajaxurl + '?action=get_teacher_scores&teacher_id=' + teacherId)\n            .then(r => r.text())\n            .then(html => {\n                infoDiv.innerHTML = html;\n                infoDiv.style.display = 'block';\n\n                const forms = infoDiv.querySelectorAll('#score_form');\n                forms.forEach(form => {\n                    form.addEventListener('submit', function(e){\n                        e.preventDefault();\n                        const formData = new FormData(form);\n                        formData.append('action', 'save_scores');\n                        fetch(ajaxurl, { method:'POST', body:formData })\n                        .then(res => res.json())\n                        .then(data => { alert(data.message); })\n                        .catch(err => alert('\u26a0 \u062e\u0637\u0627 \u062f\u0631 \u0630\u062e\u06cc\u0631\u0647 \u0646\u0645\u0631\u0627\u062a'));\n                    });\n                });\n            });\n        });\n    });\n    <\/script>\n\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-1734","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631 -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/emif.ir\/?page_id=1734\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631 -\" \/>\n<meta property=\"og:url\" content=\"https:\/\/emif.ir\/?page_id=1734\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-09T16:59:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/emif.ir\/?page_id=1734\",\"url\":\"https:\/\/emif.ir\/?page_id=1734\",\"name\":\"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631 -\",\"isPartOf\":{\"@id\":\"https:\/\/emif.ir\/#website\"},\"datePublished\":\"2025-11-09T16:59:27+00:00\",\"dateModified\":\"2025-11-09T16:59:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/emif.ir\/?page_id=1734#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/emif.ir\/?page_id=1734\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/emif.ir\/?page_id=1734#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/emif.ir\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/emif.ir\/#website\",\"url\":\"https:\/\/emif.ir\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/emif.ir\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631 -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/emif.ir\/?page_id=1734","og_locale":"fa_IR","og_type":"article","og_title":"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631 -","og_url":"https:\/\/emif.ir\/?page_id=1734","article_modified_time":"2025-11-09T16:59:33+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"1 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/emif.ir\/?page_id=1734","url":"https:\/\/emif.ir\/?page_id=1734","name":"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631 -","isPartOf":{"@id":"https:\/\/emif.ir\/#website"},"datePublished":"2025-11-09T16:59:27+00:00","dateModified":"2025-11-09T16:59:33+00:00","breadcrumb":{"@id":"https:\/\/emif.ir\/?page_id=1734#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/emif.ir\/?page_id=1734"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/emif.ir\/?page_id=1734#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/emif.ir\/"},{"@type":"ListItem","position":2,"name":"\u0628\u0631\u06af \u0631\u06cc\u0632\u0646\u0645\u0631\u0627\u062a \u062f\u0628\u06cc\u0631"}]},{"@type":"WebSite","@id":"https:\/\/emif.ir\/#website","url":"https:\/\/emif.ir\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/emif.ir\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"}]}},"_links":{"self":[{"href":"https:\/\/emif.ir\/index.php?rest_route=\/wp\/v2\/pages\/1734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emif.ir\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/emif.ir\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/emif.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emif.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1734"}],"version-history":[{"count":1,"href":"https:\/\/emif.ir\/index.php?rest_route=\/wp\/v2\/pages\/1734\/revisions"}],"predecessor-version":[{"id":1735,"href":"https:\/\/emif.ir\/index.php?rest_route=\/wp\/v2\/pages\/1734\/revisions\/1735"}],"wp:attachment":[{"href":"https:\/\/emif.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}