From: Roland Häder Date: Thu, 26 Nov 2009 18:58:42 +0000 (+0000) Subject: Deleting of network type handler partialy finished X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=05c5310de0991ba52c441670a315b89ee4f9db12;p=mailer.git Deleting of network type handler partialy finished --- diff --git a/.gitattributes b/.gitattributes index f359a01835..383737c2e4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -982,6 +982,8 @@ templates/de/html/admin/admin_del_cats_row.tpl -text templates/de/html/admin/admin_del_email_bonus.tpl -text templates/de/html/admin/admin_del_email_normal.tpl -text templates/de/html/admin/admin_del_email_notify.tpl -text +templates/de/html/admin/admin_del_network_types.tpl -text +templates/de/html/admin/admin_del_network_types_row.tpl -text templates/de/html/admin/admin_del_networks.tpl -text templates/de/html/admin/admin_del_networks_row.tpl -text templates/de/html/admin/admin_del_payments.tpl -text diff --git a/inc/language/network_de.php b/inc/language/network_de.php index b84fc4f72e..b898a2e1da 100644 --- a/inc/language/network_de.php +++ b/inc/language/network_de.php @@ -63,14 +63,13 @@ addMessages(array( 'ADMIN_NETWORK_SELECT_TITLE' => "Werbenetzwerk auswählen", 'ADMIN_NETWORK_TYPE_ADD_TITLE' => "Werbenetzwerk verwalten - Neue Werbeart hinzufügen", 'ADMIN_NETWORK_TYPE_EDIT_TITLE' => "Werbeart-Handler editieren", + 'ADMIN_NETWORK_TYPE_DELETE_TITLE' => "Werbeart-Handle löschen", + 'ADMIN_NETWORK_TYPE_LIST_TITLE' => "Werbeart-Handler auflisten und verwalten", // - Link titles 'ADMIN_NETWORK_LIST_TYPES_LINK_TITLE' => "Weiter zu den Werbearten", 'ADMIN_NETWORK_LIST_PARAMS_LINK_TITLE' => "Weiter zu den Abfrageparametern", 'ADMIN_NETWORK_LIST_CODE_TYPES_LINK_TITLE' => "Weiter zu den Rückgabewerten", 'ADMIN_NETWORK_LIST_CODES_LINK_TITLE' => "Weiter zu den Fehlercodes", - 'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Werbenetzwerkdaten hinzugefügt.", - 'ADMIN_NETWORK_TYPE_ADDED_TITLE' => "Werbeart-Handler hinzugefügt.", - 'ADMIN_NETWORK_TYPE_LIST_TITLE' => "Werbeart-Handler auflisten und verwalten", // - Buttons 'ADMIN_NETWORK_ADD' => "Allgemeine Daten anlegen", 'ADMIN_NETWORK_EDIT' => "Editieren", @@ -82,6 +81,10 @@ addMessages(array( 'ADMIN_NETWORK_TYPE_EDIT' => "Editieren", 'ADMIN_NETWORK_TYPE_DELETE' => "Löschen", 'ADMIN_NETWORK_TYPE_CHANGE' => "Handler ändern", + 'ADMIN_NETWORK_TYPE_REMOVE' => "Handler entfernen", + // - Success titles + 'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Werbenetzwerkdaten hinzugefügt.", + 'ADMIN_NETWORK_TYPE_ADDED_TITLE' => "Werbeart-Handler hinzugefügt.", // - Success nots 'ADMIN_NETWORK_UPDATED' => "Es wurden %s Einträge in den allgemeinen Daten aktualisiert.", 'ADMIN_NETWORK_REMOVED' => "Es wurden %s Einträge aus den allgemeinen Dateen gelöscht.", diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index b19a5ede3d..b97060e9d4 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -371,6 +371,9 @@ function doAdminNetworkProcessHandlenetworktypeForm () { // Add row template for deleting $OUT .= loadTemplate('admin_edit_network_types_row', true, $networkTypeData); } elseif (isPostRequestElementSet('del')) { + // Fix empty banner URL + if (trim($networkTypeData['network_type_banner_url']) == '') $networkTypeData['network_type_banner_url'] = '---'; + // Add row template for deleting $OUT .= loadTemplate('admin_del_network_types_row', true, $networkTypeData); } else { diff --git a/templates/de/html/admin/admin_del_network_types.tpl b/templates/de/html/admin/admin_del_network_types.tpl new file mode 100644 index 0000000000..cb30e90a27 --- /dev/null +++ b/templates/de/html/admin/admin_del_network_types.tpl @@ -0,0 +1,27 @@ +
+
+ + + + + $content[rows] + + + +
+
+ {--ADMIN_NETWORK_TYPE_DELETE_TITLE--} +
+ +
+
+ +
+ {--ADMIN_NETWORK_TYPE_LIST_NOTE--} +
+
diff --git a/templates/de/html/admin/admin_del_network_types_row.tpl b/templates/de/html/admin/admin_del_network_types_row.tpl new file mode 100644 index 0000000000..e4e15785c4 --- /dev/null +++ b/templates/de/html/admin/admin_del_network_types_row.tpl @@ -0,0 +1,25 @@ + + {--ADMIN_NETWORK_TYPE_HANDLE--}: + + + $content[network_type_handle] + + + + {--ADMIN_NETWORK_TYPE_API_URL--}: + + $content[network_type_api_url] + + + + {--ADMIN_NETWORK_TYPE_CLICK_URL--}: + + $content[network_type_click_url] + + + + {--ADMIN_NETWORK_TYPE_BANNER_URL--}: + + $content[network_type_banner_url] + + diff --git a/templates/de/html/admin/admin_del_networks_row.tpl b/templates/de/html/admin/admin_del_networks_row.tpl index a456914323..2222e1295d 100644 --- a/templates/de/html/admin/admin_del_networks_row.tpl +++ b/templates/de/html/admin/admin_del_networks_row.tpl @@ -1,4 +1,3 @@ -  {--ADMIN_NETWORK_TITLE--}: @@ -10,7 +9,6 @@ $content[network_short_name] -  {--ADMIN_NETWORK_REFLINK--}: @@ -21,7 +19,6 @@ $content[network_data_seperator] -  {--ADMIN_NETWORK_REQUEST_TYPE--}: @@ -32,12 +29,10 @@ $content[network_row_seperator] -  - {--ADMIN_NETWORK_CHARSET--}: - + {--ADMIN_NETWORK_CHARSET--}: + $content[network_charset] -   +   -  diff --git a/templates/de/html/admin/admin_edit_network_types.tpl b/templates/de/html/admin/admin_edit_network_types.tpl index 023d068c52..f0bdc6be6a 100644 --- a/templates/de/html/admin/admin_edit_network_types.tpl +++ b/templates/de/html/admin/admin_edit_network_types.tpl @@ -1,5 +1,5 @@
-
+ - - - - - + - + -
diff --git a/templates/de/html/admin/admin_edit_networks_row.tpl b/templates/de/html/admin/admin_edit_networks_row.tpl index cf4da8d962..112153658b 100644 --- a/templates/de/html/admin/admin_edit_networks_row.tpl +++ b/templates/de/html/admin/admin_edit_networks_row.tpl @@ -1,4 +1,3 @@ -
 
{--ADMIN_NETWORK_TITLE--}: @@ -10,7 +9,6 @@
 
{--ADMIN_NETWORK_REFLINK--}: @@ -21,7 +19,6 @@
 
{--ADMIN_NETWORK_REQUEST_TYPE--}: @@ -34,12 +31,10 @@
 
{--ADMIN_NETWORK_CHARSET--}: + {--ADMIN_NETWORK_CHARSET--}: