{"id":378,"date":"2024-02-29T10:55:11","date_gmt":"2024-02-29T10:55:11","guid":{"rendered":"https:\/\/vavuniyanorth.ps.gov.lk\/?page_id=378"},"modified":"2025-11-20T10:42:27","modified_gmt":"2025-11-20T10:42:27","slug":"%e0%ae%95%e0%ae%9f%e0%af%8d%e0%ae%9f%e0%ae%9f-%e0%ae%b5%e0%ae%bf%e0%ae%a3%e0%af%8d%e0%ae%a3%e0%ae%aa%e0%af%8d%e0%ae%aa%e0%ae%a4%e0%af%8d%e0%ae%a4%e0%ae%bf%e0%ae%a9%e0%af%8d-%e0%ae%a4%e0%ae%b1%e0%af%8d","status":"publish","type":"page","link":"https:\/\/vavuniyanps2025.cendri.org\/?page_id=378","title":{"rendered":"\u0b95\u0b9f\u0bcd\u0b9f\u0b9f \u0bb5\u0bbf\u0ba3\u0bcd\u0ba3\u0baa\u0bcd\u0baa\u0ba4\u0bcd\u0ba4\u0bbf\u0ba9\u0bcd \u0ba4\u0bb1\u0bcd\u0baa\u0bcb\u0ba4\u0bc8\u0baf \u0ba8\u0bbf\u0bb2\u0bc8\u0bae\u0bc8"},"content":{"rendered":"\n\n\n<h2 style=\"color: #a10000;\">\u0bb5\u0bbf\u0ba3\u0bcd\u0ba3\u0baa\u0bcd\u0baa\u0b99\u0bcd\u0b95\u0bb3\u0bbf\u0ba9\u0bcd \u0ba4\u0bb1\u0bcd\u0baa\u0bcb\u0ba4\u0bc8\u0baf \u0ba8\u0bbf\u0bb2\u0bc8\u0bae\u0bc8<\/h2>\n\n\n\n\n<h4 style=\"color: #9933ff;\">\u0b95\u0b9f\u0bcd\u0b9f\u0b9f \u0b85\u0ba9\u0bc1\u0bae\u0ba4\u0bbf \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd \u0b85\u0ba4\u0ba9\u0bcb\u0b9f\u0bc1 \u0b87\u0ba3\u0bc8\u0ba8\u0bcd\u0ba4 \u0b9a\u0bc7\u0bb5\u0bc8\u0b95\u0bb3\u0bcd \n\u0ba4\u0bca\u0b9f\u0bb0\u0bcd\u0baa\u0bbe\u0ba9 \u0ba4\u0bb1\u0bcd\u0b95\u0bcb\u0ba4\u0bc8\u0baf \u0ba8\u0bbf\u0bb2\u0bc8\u0bae\u0bc8\u0baf\u0bc8 \u0b85\u0bb1\u0bbf\u0baf \u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0ba4\u0bc1 \u0ba4\u0bc7\u0b9a\u0bbf\u0baf \u0b85\u0b9f\u0bc8\u0baf\u0bbe\u0bb3 \u0b85\u0b9f\u0bcd\u0b9f\u0bc8 \u0b87\u0bb2\u0b95\u0bcd\u0b95\u0ba4\u0bcd\u0ba4\u0bbf\u0ba9\u0bc8 \n\u0baa\u0ba4\u0bbf\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bc1 \u0ba4\u0bc7\u0b9f\u0bb5\u0bc1\u0bae\u0bcd<\/h4>\n\n\n\n\n<h2><\/h2><h4><strong style=\"color: #000000;\">To View the Status of your Application Please Enter your NIC and click Search Button.<\/strong><\/h4>\n\n\n\n\n<div>\n    <input type=\"text\" id=\"searchInput\" placeholder=\"Enter NICNo\">\n    <button onclick=\"searchNIC()\">Search<\/button>\n<\/div>\n\n<div id=\"resultTable\" style=\"margin-top:20px;\"><\/div>\n\n<script>\nfunction searchNIC() {\n    let nic = document.getElementById('searchInput').value.trim();\n    if (!nic) return;\n\n    document.getElementById(\"resultTable\").innerHTML = \"<p>Searching...<\/p>\";\n\n    \/\/ GViz URLs\n    let sheet1 = \"https:\/\/docs.google.com\/spreadsheets\/d\/1_DCuVMnINqmJaW677llebdOy03T1yRbjFVUy5JVCSqU\/gviz\/tq?tqx=out:json&tq=SELECT%20*%20WHERE%20D='\" + nic + \"'\";\n    let sheet2 = \"https:\/\/docs.google.com\/spreadsheets\/d\/12PboBca7cX8qmdEGmrb0T7MoOTVnwoKVNkCZE0DjVvM\/gviz\/tq?tqx=out:json&tq=SELECT%20*%20WHERE%20D='\" + nic + \"'\";\n\n    checkSheet(sheet1, function(found, tableHTML) {\n        if (found) {\n            document.getElementById(\"resultTable\").innerHTML = tableHTML;\n        } else {\n            checkSheet(sheet2, function(found2, tableHTML2) {\n                if (found2) {\n                    document.getElementById(\"resultTable\").innerHTML = tableHTML2;\n                } else {\n                    document.getElementById(\"resultTable\").innerHTML = \"<p>No records found for NIC: \" + nic + \"<\/p>\";\n                }\n            });\n        }\n    });\n}\n\nfunction checkSheet(url, callback) {\n    fetch(url)\n        .then(response => response.text())\n        .then(text => {\n            \/\/ Extract the JSON from Google\u2019s weird GViz response\n            let jsonText = text.substring(text.indexOf(\"(\") + 1, text.lastIndexOf(\")\"));\n            let data = JSON.parse(jsonText);\n\n            if (!data.table.rows.length) {\n                callback(false, \"\");\n                return;\n            }\n\n            \/\/ Build HTML table\n            let tableHTML = \"<table border='1' cellpadding='5' style='border-collapse:collapse;width:100%'>\";\n\n            \/\/ Headers\n            tableHTML += \"<tr>\";\n            data.table.cols.forEach(col => {\n                tableHTML += \"<th>\" + (col.label || \"\") + \"<\/th>\";\n            });\n            tableHTML += \"<\/tr>\";\n\n            \/\/ Rows\n            data.table.rows.forEach(row => {\n                tableHTML += \"<tr>\";\n                row.c.forEach(cell => {\n                    tableHTML += \"<td>\" + (cell ? cell.v : \"\") + \"<\/td>\";\n                });\n                tableHTML += \"<\/tr>\";\n            });\n\n            tableHTML += \"<\/table>\";\n\n            callback(true, tableHTML);\n        })\n        .catch(err => {\n            console.log(\"Error:\", err);\n            callback(false, \"\");\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":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"webadmin","author_link":"https:\/\/vavuniyanps2025.cendri.org\/?author=1"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":null,"_links":{"self":[{"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=\/wp\/v2\/pages\/378"}],"collection":[{"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":6,"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=\/wp\/v2\/pages\/378\/revisions"}],"predecessor-version":[{"id":510,"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=\/wp\/v2\/pages\/378\/revisions\/510"}],"wp:attachment":[{"href":"https:\/\/vavuniyanps2025.cendri.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}