From 842290ba733acf80cd23032cfc88b78800e52bf3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 4 Apr 2018 22:47:48 -0600 Subject: [PATCH] Update registrations.php --- app/registrations/registrations.php | 46 ++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php index 45863c4c97..26e10d30dc 100644 --- a/app/registrations/registrations.php +++ b/app/registrations/registrations.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2017 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): @@ -46,9 +46,17 @@ //get the http values and set them as variables $search = check_str($_GET["search"]); +//set the format + $template = true; + if ($_GET["template"] == "false" && permission_exists('registration_reload')) { + $template = false; + } + //show the header - require_once "resources/header.php"; - $document['title'] = $text['header-registrations']; + if ($template) { + require_once "resources/header.php"; + $document['title'] = $text['header-registrations']; + } //check permissions if (permission_exists("registration_domain") || permission_exists("registration_all") || if_group("superadmin")) { @@ -193,23 +201,31 @@ echo " ".$text['header-registrations']." (".$registration_count.")\n"; echo "\n"; echo ""; - //echo "
\n"; - echo " "; - echo " "; - echo " "; - echo " "; - //echo "
\n"; + if ($template) { + echo " "; + echo " "; + echo " "; + echo " "; + } echo ""; echo ""; if (permission_exists('registration_all')) { - if ($show == "all") { - echo " \n"; + if ($template) { + $location = 'registrations.php'; } else { - echo " \n"; + $location = 'registration_reload.php'; + } + if ($show == "all") { + echo " \n"; + } + else { + echo " \n"; } } - echo " \n"; + if ($template) { + echo " \n"; + } echo "\n"; echo "\n"; echo "\n"; @@ -291,6 +307,8 @@ } //get the footer - require_once "resources/footer.php"; + if ($template) { + require_once "resources/footer.php"; + } ?>