From cbc7ae2b1fe0c4a71e75fcc161d95bea38fcb5e9 Mon Sep 17 00:00:00 2001 From: varun kewlani Date: Wed, 13 May 2026 19:31:47 +0530 Subject: [PATCH] Fixed: Changed the preview image, change class names, and removed unnecessary function calls Co-authored-by: Name --- .../guest_registration/dynamic_tables.tpl | 39 ++- ...estRegistrationIdProof.php => IdProof.php} | 2 +- classes/pdf/HTMLTemplateRegistrationForm.php | 140 ++------ classes/pdf/PDF.php | 3 - classes/pdf/PDFGenerator.php | 13 +- .../AdminGuestRegistrationController.php | 305 ++++++++---------- img/admin/guest_registration_preview.jpg | Bin 547844 -> 520083 bytes pdf/registration-form.tpl | 16 +- 8 files changed, 190 insertions(+), 328 deletions(-) rename classes/{GuestRegistrationIdProof.php => IdProof.php} (98%) diff --git a/admin/themes/default/template/controllers/guest_registration/dynamic_tables.tpl b/admin/themes/default/template/controllers/guest_registration/dynamic_tables.tpl index 2b3d7f7ba..2477460e9 100644 --- a/admin/themes/default/template/controllers/guest_registration/dynamic_tables.tpl +++ b/admin/themes/default/template/controllers/guest_registration/dynamic_tables.tpl @@ -25,6 +25,9 @@

{l s='Purpose of visit'}

{assign var=entity_name value='guest_reg_purpose'} {assign var=entity_rows value=$guest_reg_purpose_rows} + {if isset($smarty.post.$entity_name) && is_array($smarty.post.$entity_name)} + {assign var=entity_rows value=$smarty.post.$entity_name} + {/if}
@@ -36,16 +39,16 @@ - {foreach from=$entity_rows item=row} + {foreach from=$entity_rows key=rowKey item=row}
- + {foreach from=$languages item=language}
- +
{if $languages|count > 1}
@@ -63,7 +66,7 @@ {/foreach}
- + @@ -119,13 +122,16 @@
- +

{l s='Identity proof'}

{assign var=entity_name value='guest_reg_id_proof'} {assign var=entity_rows value=$guest_reg_id_proof_rows} + {if isset($smarty.post.$entity_name) && is_array($smarty.post.$entity_name)} + {assign var=entity_rows value=$smarty.post.$entity_name} + {/if}
@@ -137,16 +143,16 @@ - {foreach from=$entity_rows item=row} + {foreach from=$entity_rows key=rowKey item=row}
- + {foreach from=$languages item=language}
- +
{if $languages|count > 1}
@@ -164,7 +170,7 @@ {/foreach}
- + @@ -220,13 +226,16 @@
- +

{l s='Payment method'}

{assign var=entity_name value='guest_reg_payment_method'} {assign var=entity_rows value=$guest_reg_payment_method_rows} + {if isset($smarty.post.$entity_name) && is_array($smarty.post.$entity_name)} + {assign var=entity_rows value=$smarty.post.$entity_name} + {/if}
@@ -238,16 +247,16 @@ - {foreach from=$entity_rows item=row} + {foreach from=$entity_rows key=rowKey item=row}
- + {foreach from=$languages item=language}
- +
{if $languages|count > 1}
@@ -265,7 +274,7 @@ {/foreach}
- + @@ -321,7 +330,7 @@
- +