`Permission is hereby given for the erection of ${totalPoles} number(s) of temporary flagpoles for the event from ${eventDateText} at the following location(s).`,
left, y, rightWidth
);
y += paragraphGap;
doc.setFont("times", "bold");
doc.text("Location(s):", left, y);
y += lineGap;
doc.setFont("times", "normal");
y = addParagraph(locationText.trim(), left + 3, y, rightWidth - 3);
doc.setFontSize(11); // Slightly smaller for terms
if (isPermanent) {
// SECTION 1: STATUES
if (y > 270) { doc.addPage(); y = 20; }
doc.setFont("times", "bold");
doc.text("1. Procedure For Installation of New Statues In Private Land:-", left, y);
y += lineGap;
doc.setFont("times", "normal");
const statueConditions = [
"1. No statues shall be permitted on public roads, pavements, sidewalks, or other public utility places.",
"2. Encroachments along water bodies in any form of statues, flagpoles, or other structures shall not be allowed.",
"3. No statues shall be erected on Panchayat Union Roads, Panchayat Union Tank Bunds, or in public places in rural areas.",
"4. The statues/flagpoles, etc., should be erected only at unobjectionable locations in private lands.",
"5. There is no ban on installing new statues in private lands. However, the proposals in a complete shape has to be routed through Collectors for approval of the Government.",
"6. Statues shall be preferably made of bronze metal.",
"7. The safety of all new statues including the upkeep and maintenance cost shall be borne by those who installed it.",
"8. In sensitive law and order prone areas, in order to avoid damages by miscreants, the new statue may be covered by fiberglass enclosure / non destructible cover.",
"9. In wooded areas (with many trees), forests and lands classified as social forest shall be strictly avoided for the Installation of statues.",
"10. The Government may fix the minimum distance that shall be adhered to when there is an another statue is situated nearby.",
"11. Closed-Circuit Television (CCTV) Coverage should be available round the clock in sensitive areas; and it has to be ensured by local Police with the support of sponsors of the statue."
];
statueConditions.forEach(c => {
if (y > 270) { doc.addPage(); y = 20; }
y = addParagraph(c, left, y, rightWidth);
y += 2;
});
y += sectionGap;
// SECTION 2: FLAGPOLES
if (y > 270) { doc.addPage(); y = 20; }
doc.setFont("times", "bold");
doc.text("2. Procedure for Installation of New Flagpoles in Private Land:-", left, y);
y += lineGap;
doc.setFont("times", "normal");
const flagpoleConditions = [
"1. No Permission shall be granted for erection of permanent flagpoles within the Right of Way (ROW) of the any road maintained by Tamil Nadu State Highways Department.",
"2. No permission shall be granted for the erection of new flagpoles in or on water bodies, supply channels, surplus course, surplus weir, water spread area of reservoirs, tanks, tank bunds and sluices and water course set back lands as of Water Resources Department.",
"3. The Flagpole shall be installed at the cost of the sponsor/requisitioning body.",
"4. The political parties and other organizations are permitted to erect their permanent flagpoles in their own land after obtaining necessary permission from the authority concerned. (District level Committee / State Government).",
"5. Material strength, height, location, safe digging, secured foundation have to be ensured to avoid damage to property and life and prevent damage to underground and over ground infrastructure while erecting flagpoles.",
"6. In wooded areas (with many trees), forests and lands classified as social forest shall be strictly avoided for the Installation of flagpoles.",
"7. In case, if the Flagpole is installed in a residential area, it shall be of maximum 15 feet tall.",
"8. Wall-mounted flag pole shall be fixed vertically.",
"9. Aluminium flagpoles are preferred for their strength and resistance to corrosion.",
"10. Sectional flagpoles are suggested as they are convenient and easy to assemble.",
"11. A Stability Certificate must be obtained from Public Works Department (PWD) authorities.",
"12. Responsibility for regular maintenance and monitoring the safety of the flagpoles shall be the responsibility of the owners / installers."
];
flagpoleConditions.forEach(c => {
if (y > 270) { doc.addPage(); y = 20; }
y = addParagraph(c, left, y, rightWidth);
y += 2;
});
y += sectionGap;
// SECTION 3: REPLACEMENT / SHIFTING
if (y > 270) { doc.addPage(); y = 20; }
doc.setFont("times", "bold");
doc.text("3. Procedure for Replacement / Shifting of existing statues and flagpoles:-", left, y);
y += lineGap;
doc.setFont("times", "normal");
const shiftingConditions = [
"1. If the statue is to be shifted due to construction of flyover or laying or widening of roads, the cost of shifting the existing statue shall be included in the Project Cost.",
"2. In any case as per s.c orders, H.c orders statues , Flagpoles, memorials etc.. cannot be relocated in a public place.",
"3. DLC can accord permission if the condition (for old) remains the same & also there is no local objection.",
"4. If there is any change in feature/ height/ relocation is proposed then government permission is required (only in patta lands).",
"5. To Prevent damage to the existing statue, if the concerned person/organization consider that they should be kept in safe custody & installed later, they can do so after obtaining the orders from the Government.",
"6. In sensitive areas prone to law-and-order, already installed statue may be covered by fiberglass enclosures to non-destructible cover in order to avoid damages by miscreants. The cost of such protection shall be borne by the person or organization that installed the statue."
];
shiftingConditions.forEach(c => {
if (y > 270) { doc.addPage(); y = 20; }
y = addParagraph(c, left, y, rightWidth);
y += 2;
});
} else {
// TEMPORARY CONDITIONS (Existing)
let conditions = [
"1. The applicant shall comply with all applicable laws, rules, guidelines, and safety norms relating to pole erection.",
"2. Applicants are advised to retain the application ID for future reference.",
"3. Temporary flagpoles shall be allowed for a period not exceeding three days (before / on / after the event).",
"4. In case of religious events,maximum period of 7 days may be allowed for installing flagpoles",
"5. Temporary flagpoles shall not be erected on bituminous road surfaces.",
"6. Flagpoles may be erected only on earthen surfaces and not within three meters of the bituminous surface.",
"7. No flagpoles shall be erected on medians, footpaths, drains, bridges, or road furniture within the ROW.",
"8. Maximum height of the flagpole shall be 3.50 m above ground level with a minimum depth of 1.00 m below ground.",
"9. Flagpoles shall not interfere with electric lines and shall be properly insulated.",
"10. The applicant shall be fully responsible for any accidents or damages caused.",
"11. Any damage to public infrastructure shall be restored at the applicant’s cost.",
"12. Flagpoles shall be removed immediately after the permission period at the applicant’s expense.",
"13. If the flagpole is not removed within the stipulatedtime, the poles will be removed by the authorities and the cost shall be borne by the applicant.",
"14. The fee amount once paid will not be refunded on any account."
];
conditions.forEach(c => {
// Check page break
if (y > 270) {
doc.addPage();
y = 20;
}
y = addParagraph(c, left, y, rightWidth);
y += 2;
});
}
y += sectionGap;
/* ---------- FOOTER ---------- */
if (y > 270) {
doc.addPage();
y = 20;
}
doc.text("Authorized Signatory", 145, y);
doc.save(`OrderCopy_${refid}.pdf`);
}
// $(document).on("click", ".ack-btn", function () {
@ -885,179 +1151,177 @@
// });
// }
function cancelEvent(refId, eventDate) {
Swal.fire({
title: "Confirm Cancellation",
text: "Are you sure you want to cancel this event?",
icon: "warning",
showCancelButton: true,
confirmButtonText: "Yes, Cancel"
}).then(result => {
if (!result.isConfirmed) return;
// 🔹 STEP 1: Cancel event
$.post("/flagpolesregistration/api/cancelEvent", { refId }, function (res) {
// function cancelEvent(refId, eventDate) {
if (res.status === "CANCELLED") {
// Swal.fire({
// title: "Confirm Cancellation",
// text: "Are you sure you want to cancel this event?",