X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_forced_costs.php;h=a687179bd40a09ed453941133e49c7f436607546;hb=3879d3c60f562c3f904a025e5fc7cf5a6920b0e3;hp=81c683069e2b9a9fa44cf1221e7a85e58f0ac312;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341;p=mailer.git diff --git a/inc/modules/admin/what-list_forced_costs.php b/inc/modules/admin/what-list_forced_costs.php index 81c683069e..a687179bd4 100644 --- a/inc/modules/admin/what-list_forced_costs.php +++ b/inc/modules/admin/what-list_forced_costs.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // By default show the list... -$show = true; +$show = TRUE; // Check for 'url_id' element if ((!isFormSent('add')) && (countRequestPost() > 0) && (!ifPostContainsSelections('forced_costs_id'))) { @@ -58,35 +58,35 @@ if ((!isFormSent('add')) && (countRequestPost() > 0) && (!ifPostContainsSelectio // Edit or delete button hit? if (isFormSent('add')) { // Add new forced ad - showEntriesByXmlCallback('admin_add_do_forced_costs'); + doGenericXmlTemplateCallback('admin_add_do_forced_costs'); } elseif (isFormSent('edit')) { // Show entries for editing - showEntriesByXmlCallback('admin_edit_show_forced_costs'); + doGenericXmlTemplateCallback('admin_edit_show_forced_costs'); // Do not show the list of URLs after this template - $show = false; + $show = FALSE; } elseif (isFormSent('do_edit')) { // Change data of entries - showEntriesByXmlCallback('admin_edit_do_forced_costs'); + doGenericXmlTemplateCallback('admin_edit_do_forced_costs'); } elseif (isFormSent('delete')) { // Show entries for deletion - showEntriesByXmlCallback('admin_delete_show_forced_costs'); + doGenericXmlTemplateCallback('admin_delete_show_forced_costs'); // Do not show the list of URLs after this template - $show = false; + $show = FALSE; } elseif (isFormSent('do_delete')) { // Remove entries from database - showEntriesByXmlCallback('admin_delete_do_forced_costs'); + doGenericXmlTemplateCallback('admin_delete_do_forced_costs'); } // Show entries? -if ($show === false) { +if ($show === FALSE) { // No, a form has already been show - return false; + return FALSE; } // END - if // List all URLs -showEntriesByXmlCallback('admin_list_forced_costs'); +doGenericXmlTemplateCallback('admin_list_forced_costs'); // Display form for adding a forced-ad loadTemplate('admin_add_forced_costs');