{"id":2049,"date":"2025-08-30T23:06:01","date_gmt":"2025-08-30T21:06:01","guid":{"rendered":"https:\/\/yaqeen.ly\/?page_id=2049"},"modified":"2025-08-30T23:17:24","modified_gmt":"2025-08-30T21:17:24","slug":"result-2","status":"publish","type":"page","link":"https:\/\/yaqeen.ly\/en\/result-2\/","title":{"rendered":"\u0646\u062a\u064a\u062c\u0629 \u0627\u0644\u0643\u062a\u0631\u0648\u0646\u064a\u0629"},"content":{"rendered":"<style>\n        .excel-search-form { margin-bottom: 20px; }\n        .excel-search-form input[type=\"text\"], .excel-search-form input[type=\"number\"] {\n            padding: 8px; font-size: 16px; margin-left:6px;\n        }\n        .excel-search-form button { padding: 8px 12px; font-size: 16px; cursor: pointer; background-color: #009688 !important; color:#fff; border:none; border-radius:4px; }\n        .pdf-button { margin-bottom: 15px; background-color: #607d8b; color: white; padding: 8px 14px; border: none; border-radius: 4px; cursor: pointer; font-size: 15px; }\n\n        .excel-search-results h3 { font-size: 20px; margin-bottom: 10px; }\n        .match-ok { background:#e8f5e9; color:#2e7d32; padding:10px; border-radius:6px; margin-bottom:12px; font-weight:700; }\n        .match-diff { background:#fff3e0; color:#ef6c00; padding:10px; border-radius:6px; margin-bottom:12px; font-weight:700; }\n        .excel-search-record { width:100%; max-width:900px; margin-bottom:18px; border:1px solid #e0e0e0; border-radius:6px; overflow:hidden; background:#fff; }\n        .excel-search-record table { width:100%; border-collapse:collapse; font-size:16px; }\n        .excel-search-record td { padding:10px; border-bottom:1px solid #f0f0f0; vertical-align:top; }\n        .label-col { width:30%; font-weight:700; color:#009688; text-align:right; padding-right:14px; }\n        .value-col { text-align:right; }\n\n        .sub-table { width: 100%; border-collapse: collapse; }\n        .sub-table td { border: 1px solid #ccc; padding: 6px; }\n        .sub-table tr:nth-child(even) { background-color: #f9f9f9; }\n        .no-results { font-size: 16px; color: red; }\n\n        @media (max-width: 768px) {\n            .label-col { display:block; width:100%; padding-right:0; text-align:right; }\n            .value-col { display:block; width:100%; text-align:right; }\n            .excel-search-record { border:none; background:transparent; }\n            .excel-search-record td { border:none; border-bottom:1px solid #eee; }\n        }\n    <\/style>\n\n    \n    <form method=\"get\" action=\"\" class=\"excel-search-form\" novalidate data-trp-original-action=\"\">\n        <input type=\"number\" name=\"excel_col2\" placeholder=\"\u0627\u062f\u062e\u0644 \u0631\u0642\u0645 \u0627\u0644\u0642\u064a\u062f ...\" value=\"\" required \/>\n        <input type=\"text\"   name=\"excel_col3\" placeholder=\"\u0627\u062f\u062e\u0644 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631...\" value=\"\" required \/>\n        <button type=\"submit\">\u0628\u062d\u062b<\/button>\n    <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n\n    <script>\n    (function(){\n        const form = document.querySelector('.excel-search-form');\n        if(!form) return;\n        form.addEventListener('submit', function(e){\n            const col2 = form.querySelector('input[name=\"excel_col2\"]');\n            const col3 = form.querySelector('input[name=\"excel_col3\"]');\n            if(!col2.value || !col3.value) {\n                e.preventDefault();\n                alert('\u0627\u0644\u0631\u062c\u0627\u0621 \u062a\u0639\u0628\u0626\u0629 \u0627\u0644\u062d\u0642\u0644\u064a\u0646: \u0631\u0642\u0645 \u0627\u0644\u0642\u064a\u062f \u0648\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631.');\n                return false;\n            }\n        });\n    })();\n    <\/script>\n\n    <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js\"><\/script>\n    <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/html2canvas\/1.4.1\/html2canvas.min.js\"><\/script>\n\n    <script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        const cells = document.querySelectorAll('.excel-search-record td.value-col');\n        cells.forEach(cell => {\n            const originalText = cell.innerText;\n            if(!originalText) return;\n            const lines = originalText.split(\/ ?[-\u060c] ?\/);\n            let tableHTML = '<table class=\"sub-table\">';\n            lines.forEach(line => {\n                const parts = line.split(\/ ?: ?\/);\n                if (parts.length === 2) {\n                    tableHTML += `<tr><td>${parts[0]}<\/td><td>${parts[1]}<\/td><\/tr>`;\n                } else {\n                    tableHTML += `<tr><td colspan=\"2\">${line}<\/td><\/tr>`;\n                }\n            });\n            tableHTML += '<\/table>';\n            cell.innerHTML = tableHTML;\n        });\n\n        const btn = document.getElementById(\"download-pdf\");\n        if (btn) {\n            btn.addEventListener(\"click\", function () {\n                const element = document.querySelector(\".excel-search-results\");\n                html2canvas(element).then(canvas => {\n                    const imgData = canvas.toDataURL(\"image\/png\");\n                    const { jsPDF } = window.jspdf;\n                    const pdf = new jsPDF('p', 'mm', 'a4');\n                    const imgProps = pdf.getImageProperties(imgData);\n                    const pdfWidth = pdf.internal.pageSize.getWidth();\n                    const pdfHeight = (imgProps.height * pdfWidth) \/ imgProps.width;\n                    pdf.addImage(imgData, 'PNG', 0, 10, pdfWidth, pdfHeight);\n                    pdf.save(\"\u0627\u0644\u0646\u062a\u064a\u062c\u0629_\u0627\u0644\u0627\u0644\u0643\u062a\u0631\u0648\u0646\u064a\u0629.pdf\");\n                });\n            });\n        }\n    });\n    <\/script>\n\n    <p class='no-results'>\u064a\u062c\u0628 \u062a\u0639\u0628\u0626\u0629 \u0627\u0644\u062d\u0642\u0644\u064a\u0646 \u0645\u0639\u0627\u064b \u0644\u0644\u0628\u062d\u062b.<\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"class_list":["post-2049","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/pages\/2049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/comments?post=2049"}],"version-history":[{"count":3,"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/pages\/2049\/revisions"}],"predecessor-version":[{"id":2052,"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/pages\/2049\/revisions\/2052"}],"wp:attachment":[{"href":"https:\/\/yaqeen.ly\/en\/wp-json\/wp\/v2\/media?parent=2049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}