From: Roland Häder Date: Thu, 27 Jan 2011 03:40:54 +0000 (+0000) Subject: Swapped out a large number of parameters to an XML construct. The previous commit... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ca83b7f5ed2baf36d1355f78a731a21f978de0d;p=mailer.git Swapped out a large number of parameters to an XML construct. The previous commit should not contain this because it is non-functional, so don't use ext-surfbar: work in progress --- diff --git a/.gitattributes b/.gitattributes index b952308b96..fb1bd746f2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1777,6 +1777,9 @@ templates/en/html/register_header.tpl -text svneol=unset#text/plain templates/en/html/welcome.tpl -text svneol=unset#text/plain templates/xml/.htaccess svneol=native#text/plain templates/xml/admin/.htaccess svneol=native#text/plain +templates/xml/admin/admin_del_do_surfbar_urls.xml -text +templates/xml/admin/admin_del_show_surfbar_urls.xml -text +templates/xml/admin/admin_edit_do_surfbar_urls.xml -text templates/xml/admin/admin_edit_show_surfbar_urls.xml -text templates/xml/admin_data_template.xml -text templates/xml/template.xml -text diff --git a/inc/modules/admin/what-list_surfbar_urls.php b/inc/modules/admin/what-list_surfbar_urls.php index d2163ad8f7..0852fc1d5b 100644 --- a/inc/modules/admin/what-list_surfbar_urls.php +++ b/inc/modules/admin/what-list_surfbar_urls.php @@ -64,59 +64,16 @@ if (isFormSent('edit')) { $show = false; } elseif (isFormSent('do_edit')) { // Change data of entries - adminEditEntriesConfirm( - postRequestParameter('url_id'), - 'surfbar_urls', - array(), - array(), - array(), - true, - 'url_id', - 'url_userid', - 'url_userid' - ); + showEntriesByXmlCallback('admin_edit_do_surfbar_urls'); } elseif (isFormSent('delete')) { // Show entries for deletion - adminDeleteEntriesConfirm( - postRequestParameter('url_id'), - 'surfbar_urls', - array( - 'url_id', - 'url_userid', - 'url', - 'url_registered' - ), - array( - 'bigintval', - 'generateUserProfileLink', - 'generateFrametesterUrl', - '' - ), - array( - '', - '', - '', - '' - ), - false, - 'url_id', - 'url_userid', - 'url_userid' - ); + showEntriesByXmlCallback('admin_del_show_surfbar_urls'); // Do not show the list of URLs after this template $show = false; } elseif (isFormSent('do_delete')) { // Remove entries from database - adminDeleteEntriesConfirm( - postRequestParameter('url_id'), - 'surfbar_urls', - array(), - array(), - array(), - true, - 'url_id' - ); + showEntriesByXmlCallback('admin_del_do_surfbar_urls'); } elseif (isFormSent('lock')) { // Un-/lock selected URLs. This does not work for pending URLs adminLockEntriesConfirm( diff --git a/templates/xml/admin/admin_del_do_surfbar_urls.xml b/templates/xml/admin/admin_del_do_surfbar_urls.xml new file mode 100644 index 0000000000..044d5d5c38 --- /dev/null +++ b/templates/xml/admin/admin_del_do_surfbar_urls.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/xml/admin/admin_del_show_surfbar_urls.xml b/templates/xml/admin/admin_del_show_surfbar_urls.xml new file mode 100644 index 0000000000..d413c32efa --- /dev/null +++ b/templates/xml/admin/admin_del_show_surfbar_urls.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/xml/admin/admin_edit_do_surfbar_urls.xml b/templates/xml/admin/admin_edit_do_surfbar_urls.xml new file mode 100644 index 0000000000..368590c0b7 --- /dev/null +++ b/templates/xml/admin/admin_edit_do_surfbar_urls.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/xml/admin/admin_edit_show_surfbar_urls.xml b/templates/xml/admin/admin_edit_show_surfbar_urls.xml index b4230ab3e7..e2d1f7e6de 100644 --- a/templates/xml/admin/admin_edit_show_surfbar_urls.xml +++ b/templates/xml/admin/admin_edit_show_surfbar_urls.xml @@ -51,9 +51,9 @@ MA 02110-1301 USA A column name list entry. The type is always string, or do you have numerical column names? //--> - - - + + + - - - + + + - + - + @@ -95,20 +95,20 @@ MA 02110-1301 USA A bool entry in the 'bar' array, all other types are added in a similar way. //--> - - - + + + - + - + - + - + - + - + + +