X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_surfbar_urls.php;h=ad6c741db3e5cca74dd3499772ab4aaf79076a66;hb=51ad4dc0ad7540d36b605e5ad958c42b68dced1f;hp=49d6eb6914e3b2c59ed3f5ff3727b4525c4a4de4;hpb=d54624f97b6fbcfc0b9879166af5e6169a5af845;p=mailer.git diff --git a/inc/modules/admin/what-list_surfbar_urls.php b/inc/modules/admin/what-list_surfbar_urls.php index 49d6eb6914..ad6c741db3 100644 --- a/inc/modules/admin/what-list_surfbar_urls.php +++ b/inc/modules/admin/what-list_surfbar_urls.php @@ -1,7 +1,7 @@ 0) && ((!isPostRequestParameterSet('url_id')) || (!is_array(postRequestParameter('url_id'))) || (count(postRequestParameter('url_id')) == 0))) { + // Not found so output message + displayMessage('{--ADMIN_SURFBAR_NO_SELECTIONS--}'); + + // Abort here + return; +} // END - if + +// Edit or delete button hit? +if (isFormSent('edit')) { + // Show entries for editing + showEntriesByXmlCallback('admin_edit_show_surfbar_urls'); + + // Do not show the list of URLs after this template + $show = false; +} elseif (isFormSent('do_edit')) { + // Change data of entries + showEntriesByXmlCallback('admin_edit_do_surfbar_urls'); +} elseif (isFormSent('delete')) { + // Show entries for deletion + showEntriesByXmlCallback('admin_delete_show_surfbar_urls'); + + // Do not show the list of URLs after this template + $show = false; +} elseif (isFormSent('do_delete')) { + // Remove entries from database + showEntriesByXmlCallback('admin_delete_do_surfbar_urls'); +} elseif (isFormSent('lock')) { + // Un-/lock selected URLs. This does not work for pending URLs + showEntriesByXmlCallback('admin_lock_show_surfbar_urls'); + + // Do not show the list of URLs after this template + $show = false; +} elseif (isFormSent('do_lock')) { + // Un-/lock selected URLs. This does not work for pending URLs + showEntriesByXmlCallback('admin_lock_do_surfbar_urls'); +} elseif (isFormSent('undelete')) { + // Undelete selected URLs. This does only work for deleted URLs... ;-) + showEntriesByXmlCallback('admin_undelete_show_surfbar_urls'); + + // Do not show the list of URLs after this template + $show = false; +} elseif (isFormSent('do_undelete')) { + // Undelete selected URLs. This does only work for deleted URLs... ;-) + showEntriesByXmlCallback('admin_undelete_do_surfbar_urls'); +} + +// Show entries? +if ($show === false) { + // No, a form has already been show + return false; +} // END - if -// First list all booked URLs (no bonus!) +// List all URLs +showEntriesByXmlCallback('admin_list_surfbar_urls'); -// +// [EOF] ?>