inc/modules/admin/what-list_doubler.php -text
inc/modules/admin/what-list_holiday.php -text
inc/modules/admin/what-list_links.php -text
+inc/modules/admin/what-list_network_params.php -text
inc/modules/admin/what-list_network_types.php -text
inc/modules/admin/what-list_networks.php -text
inc/modules/admin/what-list_notifications.php -text
templates/de/html/admin/admin_add_country.tpl -text
templates/de/html/admin/admin_add_max.tpl -text
templates/de/html/admin/admin_add_network.tpl -text
+templates/de/html/admin/admin_add_network_params.tpl -text
templates/de/html/admin/admin_add_network_type.tpl -text
templates/de/html/admin/admin_add_payment.tpl -text
templates/de/html/admin/admin_add_points.tpl -text
// HTTP parameters (names) for URLs
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_request_params`');
addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_request_params` (
-`network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-`request_param_max_reload_time` VARCHAR(10) NOT NULL DEFAULT 'reload',
-`request_param_min_waiting_time` VARCHAR(10) NOT NULL DEFAULT 'ma',
-`request_param_min_remain_clicks` VARCHAR(10) NOT NULL DEFAULT 'uebrig',
-`request_param_min_payment` VARCHAR(10) NOT NULL DEFAULT 'verguetung',
-`request_param_allow_erotic` VARCHAR(10) NOT NULL DEFAULT 'erotik',
-PRIMARY KEY (`network_type_id`)
+`network_param_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`request_param_key` VARCHAR(10) NOT NULL DEFAULT 'invalid',
+`request_param_value` VARCHAR(10) NOT NULL DEFAULT 'invalid',
+UNIQUE `provider_key` (`network_id`, `request_param_key`),
+PRIMARY KEY (`network_param_id`)
) TYPE={?_TABLE_TYPE?} COMMENT='Request parameters for GET/POST request'");
// Error status codes
'ADMIN_NETWORK_NOTHING_FOUND' => "Es wurden keine Daten zum Editieren oder Löschen gefunden.",
'ADMIN_NETWORK_NOTHING_CHANGED' => "Es wurden keine Änderungen an den allgemeinen Daten ausgeführt.",
'ADMIN_NETWORK_NOTHING_REMOVED' => "Es wurden keine allgemeinen Daten gelöscht.",
- 'ADMIN_NETWORK_TYPE_NOTHING_CHANGED' => "Es wurden keine Änderungen an den Werbeart-Handlern ausgeführt.",
- 'ADMIN_NETWORK_TYPE_NOTHING_REMOVED' => "Es wurden keine Werbeart-Handler gelöscht.",
+ 'ADMIN_NETWORK_TYPES_NOTHING_CHANGED' => "Es wurden keine Änderungen an den Werbeart-Handlern ausgeführt.",
+ 'ADMIN_NETWORK_TYPES_NOTHING_REMOVED' => "Es wurden keine Werbeart-Handler gelöscht.",
'ADMIN_NETWORK_ALREADY_ADDED' => "Ein Werbenetzwerk mit dem Kurznamen <span class=\"data\">%s</span> existiert bereits.",
'ADMIN_NETWORK_DATA_NOT_ADDED' => "Das Werbenetzwerk mit dem Kurznamen <span class=\"data\">%s</span> wurde nicht hinzugefügt.",
- 'ADMIN_NETWORK_TYPES_404' => "Es wurden keine Werbearten zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
- 'ADMIN_NETWORK_TYPE_HANDLE_ALREADY_ADDED' => "Ein Werbeart-Handler <span class=\"data\">%s</span> existiert bereits.",
- 'ADMIN_NETWORK_TYPE_NOT_ADDED' => "Der Werbeart-Handler <span class=\"data\">%s</span> wurde nicht hinzugefügt.",
- 'ADMIN_NETWORK_TYPE_NOTHING_FOUND' => "Es wurden keine Werbart-Handler zum Editieren oder Löschen gefunden.",
+ 'ADMIN_NETWORK_TYPES_404' => "Es wurden keine Werbearten-Handler zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
+ 'ADMIN_NETWORK_TYPES_HANDLE_ALREADY_ADDED' => "Ein Werbeart-Handler <span class=\"data\">%s</span> existiert bereits.",
+ 'ADMIN_NETWORK_TYPES_NOT_ADDED' => "Der Werbeart-Handler <span class=\"data\">%s</span> wurde nicht hinzugefügt.",
+ 'ADMIN_NETWORK_TYPES_NOTHING_FOUND' => "Es wurden keine Werbart-Handler zum Editieren oder Löschen gefunden.",
+ 'ADMIN_NETWORK_PARAMS_404' => "Es wurden keine API-Abfrageparameter zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
// - Form titles
'ADMIN_NETWORK_ADD_TITLE' => "Neues Werbenetzwerk hinzufügen - Allgemeine Daten",
'ADMIN_NETWORK_EDIT_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten",
'ADMIN_NETWORK_DELETE_TITLE' => "Werbenetzwerk löschen - Allgemeine Daten",
'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",
+ 'ADMIN_NETWORK_TYPES_ADD_TITLE' => "Werbenetzwerk verwalten - Neue Werbeart hinzufügen",
+ 'ADMIN_NETWORK_TYPES_EDIT_TITLE' => "Werbeart-Handler editieren",
+ 'ADMIN_NETWORK_TYPES_DELETE_TITLE' => "Werbeart-Handle löschen",
+ 'ADMIN_NETWORK_TYPES_LIST_TITLE' => "Werbeart-Handler auflisten und verwalten",
+ 'ADMIN_NETWORK_PARAMS_ADD_TITLE' => "Werbenetzwerk verwalten - Neuen API-Abfrageparameter hinzufügen",
// - Link titles
'ADMIN_NETWORK_LIST_TYPES_LINK_TITLE' => "Weiter zu den Werbearten",
'ADMIN_NETWORK_LIST_PARAMS_LINK_TITLE' => "Weiter zu den Abfrageparametern",
'ADMIN_NETWORK_DELETE' => "Löschen",
'ADMIN_NETWORK_REMOVE' => "Daten entfernen",
'ADMIN_NETWORK_CHOOSE' => "Werbenetzwerk auswählen",
- 'ADMIN_NETWORK_TYPE_ADD' => "Werbeart hinzufügen",
- 'ADMIN_NETWORK_TYPE_EDIT' => "Editieren",
- 'ADMIN_NETWORK_TYPE_DELETE' => "Löschen",
- 'ADMIN_NETWORK_TYPE_CHANGE' => "Handler ändern",
- 'ADMIN_NETWORK_TYPE_REMOVE' => "Handler entfernen",
+ 'ADMIN_NETWORK_TYPES_ADD' => "Werbeart hinzufügen",
+ 'ADMIN_NETWORK_TYPES_EDIT' => "Editieren",
+ 'ADMIN_NETWORK_TYPES_DELETE' => "Löschen",
+ 'ADMIN_NETWORK_TYPES_CHANGE' => "Handler ändern",
+ 'ADMIN_NETWORK_TYPES_REMOVE' => "Handler entfernen",
+ 'ADMIN_NETWORK_PARAMS_ADD' => "Abfrageparameter hinzufügen",
// - Success titles
'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Werbenetzwerkdaten hinzugefügt.",
- 'ADMIN_NETWORK_TYPE_ADDED_TITLE' => "Werbeart-Handler hinzugefügt.",
+ 'ADMIN_NETWORK_TYPES_ADDED_TITLE' => "Werbeart-Handler hinzugefügt.",
// - Success nots
'ADMIN_NETWORK_UPDATED' => "Es wurden <span class=\"data\">%s</span> Einträge in den allgemeinen Daten aktualisiert.",
'ADMIN_NETWORK_REMOVED' => "Es wurden <span class=\"data\">%s</span> Einträge aus den allgemeinen Daten gelöscht.",
- 'ADMIN_NETWORK_TYPE_UPDATED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler aktualisiert.",
- 'ADMIN_NETWORK_TYPE_REMOVED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler gelöscht.",
+ 'ADMIN_NETWORK_TYPES_UPDATED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler aktualisiert.",
+ 'ADMIN_NETWORK_TYPES_REMOVED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler gelöscht.",
// - Form notes
'ADMIN_NETWORK_ADD_NOTE' => "Mehr Datenschutz bei POST-Abfragen bedeutet, dass die von den Internetanbietern betriebenen Caches (Proxy) die POST-Daten nicht mitloggen (so eine Art Kodex). Der Zeichensatz ist meistens ISO-8859-1 oder WINDOWS-1252.",
'ADMIN_NETWORK_LIST_NOTE' => "Seien Sie mit dem Löschen und Editieren von Allgemeine Daten sehr vorsichtig. Sie sollten hierzu Rücksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten.",
- 'ADMIN_NETWORK_TYPE_ADD_NOTE' => "Fügen Sie hier weitere Werbearten dem ausgwählten Werbenetzwerk hinzu. Die Abfrage-, Klick- und Banner-URL müssen dabei Platzhalter enthalten, die Sie der Dokumentation und <a href=\"http://forum.mxchange.org/forum-43.html\" rel=\"external\" title=\"Direkt-Link zur Forumkategorie Werbenetzwerke\" target=\"_blank\">dem Forum</a> entnehmen können.",
- 'ADMIN_NETWORK_TYPE_LIST_NOTE' => "Seien Sie mit dem Löschen und Editieren von Werbeart-Handlern sehr vorsichtig. Sie sollten hierzu Rücksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten. Dokumentation zu den Platzhaltern (%FOO%, %BAR% usw.) finden Sie in der Dokumentation DOCs/de/network/README.txt.",
+ 'ADMIN_NETWORK_TYPES_ADD_NOTE' => "Fügen Sie hier weitere Werbearten dem ausgwählten Werbenetzwerk hinzu. Die Abfrage-, Klick- und Banner-URL müssen dabei Platzhalter enthalten, die Sie der Dokumentation und <a href=\"http://forum.mxchange.org/forum-43.html\" rel=\"external\" title=\"Direkt-Link zur Forumkategorie Werbenetzwerke\" target=\"_blank\">dem Forum</a> entnehmen können.",
+ 'ADMIN_NETWORK_TYPES_LIST_NOTE' => "Seien Sie mit dem Löschen und Editieren von Werbeart-Handlern sehr vorsichtig. Sie sollten hierzu Rücksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten. Dokumentation zu den Platzhaltern (%FOO%, %BAR% usw.) finden Sie in der Dokumentation DOCs/de/network/README.txt.",
+ 'ADMIN_NETWORK_PARAMS_ADD_NOTE' => "Fügen Sie hier weitere Abfrageparameter dem ausgwählten Werbenetzwerk hinzu. Geben Sie keine Werte an, wie z.B. 5 Sekunden oder 30 Mails, geben Sie bei Abfrageparameter den GET- bzw. POST-Parameternamen an.",
// - Advertise types
- 'ADMIN_NETWORK_TYPE_BANNERCLICK' => "Banner-Klick",
- 'ADMIN_NETWORK_TYPE_BANNERVIEW' => "Banner-View",
- 'ADMIN_NETWORK_TYPE_BANNERCLICK_VIEW' => "Banner-Klick/-View",
- 'ADMIN_NETWORK_TYPE_SURFBARCLICK' => "Surfbar-Klick",
- 'ADMIN_NETWORK_TYPE_SURFBARVIEW' => "Surfbar-View",
- 'ADMIN_NETWORK_TYPE_SURFBARCLICK_VIEW' => "Surfbar-Klick/-View",
- 'ADMIN_NETWORK_TYPE_FORCEDBANNER' => "Forced-Banner",
- 'ADMIN_NETWORK_TYPE_TEXTLINKCLICK' => "Textlink-Klick",
- 'ADMIN_NETWORK_TYPE_TEXTLINKVIEW' => "Textlink-View",
- 'ADMIN_NETWORK_TYPE_TEXTLINKCLICK_VIEW' => "Textlink-Klick/-View",
- 'ADMIN_NETWORK_TYPE_LAYERCLICK' => "Layer-Klick",
- 'ADMIN_NETWORK_TYPE_LAYERVIEW' => "Layer-View",
- 'ADMIN_NETWORK_TYPE_LAYERCLICK_VIEW' => "Layer-Klick/-View",
- 'ADMIN_NETWORK_TYPE_POPUP' => "PopUp",
- 'ADMIN_NETWORK_TYPE_POPDOWN' => "PopDown",
- 'ADMIN_NETWORK_TYPE_TEXTMAIL' => "Textmail",
- 'ADMIN_NETWORK_TYPE_HTMLMAIL' => "HTML-Mail",
- 'ADMIN_NETWORK_TYPE_LEAD' => "Lead",
- 'ADMIN_NETWORK_TYPE_SALE' => "Sale",
- 'ADMIN_NETWORK_TYPE_PAYPERACTIVE' => "PayPerAktiv",
- 'ADMIN_NETWORK_TYPE_PAGEPEEL' => "Page-Peel",
+ 'ADMIN_NETWORK_TYPES_BANNERCLICK' => "Banner-Klick",
+ 'ADMIN_NETWORK_TYPES_BANNERVIEW' => "Banner-View",
+ 'ADMIN_NETWORK_TYPES_BANNERCLICK_VIEW' => "Banner-Klick/-View",
+ 'ADMIN_NETWORK_TYPES_SURFBARCLICK' => "Surfbar-Klick",
+ 'ADMIN_NETWORK_TYPES_SURFBARVIEW' => "Surfbar-View",
+ 'ADMIN_NETWORK_TYPES_SURFBARCLICK_VIEW' => "Surfbar-Klick/-View",
+ 'ADMIN_NETWORK_TYPES_FORCEDBANNER' => "Forced-Banner",
+ 'ADMIN_NETWORK_TYPES_TEXTLINKCLICK' => "Textlink-Klick",
+ 'ADMIN_NETWORK_TYPES_TEXTLINKVIEW' => "Textlink-View",
+ 'ADMIN_NETWORK_TYPES_TEXTLINKCLICK_VIEW' => "Textlink-Klick/-View",
+ 'ADMIN_NETWORK_TYPES_LAYERCLICK' => "Layer-Klick",
+ 'ADMIN_NETWORK_TYPES_LAYERVIEW' => "Layer-View",
+ 'ADMIN_NETWORK_TYPES_LAYERCLICK_VIEW' => "Layer-Klick/-View",
+ 'ADMIN_NETWORK_TYPES_POPUP' => "PopUp",
+ 'ADMIN_NETWORK_TYPES_POPDOWN' => "PopDown",
+ 'ADMIN_NETWORK_TYPES_TEXTMAIL' => "Textmail",
+ 'ADMIN_NETWORK_TYPES_HTMLMAIL' => "HTML-Mail",
+ 'ADMIN_NETWORK_TYPES_LEAD' => "Lead",
+ 'ADMIN_NETWORK_TYPES_SALE' => "Sale",
+ 'ADMIN_NETWORK_TYPES_PAYPERACTIVE' => "PayPerAktiv",
+ 'ADMIN_NETWORK_TYPES_PAGEPEEL' => "Page-Peel",
// - Sponsor networks
'ADMIN_NETWORK_NONE_SUPPORTED' => "Es sind noch keine Werbenetzwerke eingerichtet.",
'ADMIN_NETWORK_SHORT_NAME' => "Kurzname",
'ADMIN_NETWORK_DATA_SEPERATOR2' => "Daten",
'ADMIN_NETWORK_ROW_SEPERATOR2' => "Zeilen",
// - Advertise type
- 'ADMIN_NETWORK_TYPE_HANDLE' => "Werbeart-Handler",
- 'ADMIN_NETWORK_TYPE_API_URL' => "API-URL der Werbeart",
- 'ADMIN_NETWORK_TYPE_CLICK_URL' => "Klick-URL der Werbeart",
- 'ADMIN_NETWORK_TYPE_BANNER_URL' => "Banner-URL der Werbeart",
+ 'ADMIN_NETWORK_TYPES_HANDLE' => "Werbeart-Handler",
+ 'ADMIN_NETWORK_TYPES_API_URL' => "API-URL der Werbeart",
+ 'ADMIN_NETWORK_TYPES_CLICK_URL' => "Klick-URL der Werbeart",
+ 'ADMIN_NETWORK_TYPES_BANNER_URL' => "Banner-URL der Werbeart",
+ // - API request parameter
+ 'ADMIN_NETWORK_PARAMS_KEY' => "Abfragename",
+ 'ADMIN_NETWORK_PARAMS_VALUE' => "Abfrageparameter",
+ 'ADMIN_NETWORK_PARAMS_ID' => "Kundennummer (Id)",
+ 'ADMIN_NETWORK_PARAMS_PASSWORD' => "Interface-Kennwort",
+ 'ADMIN_NETWORK_PARAMS_RELOAD' => "Maximale Reloadsperre",
+ 'ADMIN_NETWORK_PARAMS_REMAIN' => "Mindestanzahl der restlichen Klicks",
+ 'ADMIN_NETWORK_PARAMS_REWARD' => "Mindestvergütung",
+ 'ADMIN_NETWORK_PARAMS_EROTIC' => "Erotik erlaubt",
));
// [EOF]
$GLOBALS['network_display'] = false;
} else {
// Nothing selected/found
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPE_NOTHING_FOUND'));
+ loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPES_NOTHING_FOUND'));
}
} // END - if
}
// Is the network type handle already used with given network?
if (isNetworkTypeHandleValid(postRequestElement('network_type_handle'), getRequestElement('network'))) {
// Already added
- loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_HANDLE_ALREADY_ADDED', postRequestElement('network_type_handle')));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_HANDLE_ALREADY_ADDED', postRequestElement('network_type_handle')));
// ... so abort here
return false;
loadTemplate('admin_network_type_added', false, postRequestArray());
} else {
// Not added
- loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_NOT_ADDED', postRequestElement('network_type_handle')));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_NOT_ADDED', postRequestElement('network_type_handle')));
}
}
// Do we have updates?
if ($updated > 0) {
// Updates done
- loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_UPDATED', $updated));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_UPDATED', $updated));
} else {
// Nothing changed
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPE_NOTHING_CHANGED'));
+ loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPES_NOTHING_CHANGED'));
}
} // END - if
}
// Do we have removes?
if ($removed > 0) {
// Removals done
- loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_REMOVED', $removed));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_REMOVED', $removed));
} else {
// Nothing removed
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPE_NOTHING_REMOVED'));
+ loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPES_NOTHING_REMOVED'));
}
} // END - if
}
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 11/26/2009 *
+ * =================== Last change: 11/26/2009 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : what-list_network_params.php *
+ * -------------------------------------------------------------------- *
+ * Short description : List/manage network API query parameters *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Verwaltet API-Abfrageparameter *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * For more information visit: http://www.mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+ die();
+} // END - if
+
+// Add description as navigation point
+addMenuDescription('admin', __FILE__);
+
+// These are expert settings!
+if (doVerifyExpertSettings() != 'agreed') {
+ // Abort here
+ return;
+} // END - if
+
+// By default we should display list/add new forms
+$GLOBALS['network_display'] = true;
+
+// Handle form here
+doNetworkHandleForm();
+
+// Display forms?
+if ($GLOBALS['network_display'] === false) {
+ // Abort here
+ return;
+} // END - if
+
+// Do we have a network selected?
+if (isGetRequestElementSet('network')) {
+ // Get its data for template
+ $networkData = getNetworkDataById(getRequestElement('network'));
+
+ // Load all advert types for given network
+ $result = SQL_QUERY_ESC("SELECT
+ `network_param_id`, `request_param_key`, `request_param_value`
+FROM
+ `{?_MYSQL_PREFIX?}_network_request_params`
+WHERE
+ `network_id`=%s
+ORDER BY
+ `request_param_key` ASC",
+ array(getRequestElement('network')), __FILE__, __LINE__);
+
+ // Do we have entries?
+ if (SQL_NUMROWS($result) > 0) {
+ // List all entries
+ $OUT = ''; $SW = 2;
+ while ($row = SQL_FETCHARRAY($result)) {
+ // Add/translate some data
+ $row['sw'] = $SW;
+
+ // Add row template and switch color
+ $OUT .= loadTemplate('admin_list_network_params_row', true, $row);
+ $SW = 3 - $SW;
+ } // END - while
+
+ // Prepare data for template
+ $content = array(
+ 'rows' => $OUT,
+ 'network_id' => getRequestElement('network'),
+ 'network_title' => $networkData['network_title'],
+ 'network_reflink' => $networkData['network_reflink'],
+ );
+
+ // Load main template
+ loadTemplate('admin_list_network_params', false, $content);
+ } else {
+ // No entries found
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_PARAMS_404', $networkData['network_title']));
+ }
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Add form for adding new params
+ loadTemplate('admin_add_network_params', false, $networkData);
+} else {
+ // Generate network list for this script
+ outputHtml(generateAdminNetworkList());
+}
+
+// [EOF]
+?>
--- /dev/null
+<div align="center">
+<form accept-charset="utf-8" action="{%url=modules.php?module=admin&what=list_network_params&do=addnetworkparam&network=$content[network_id]%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+ <tr>
+ <td class="admin_title bottom" colspan="2" align="center">
+ <strong>{--ADMIN_NETWORK_PARAMS_ADD_TITLE--}</strong>
+ <div class="tiny">
+ (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" width="250">{--ADMIN_NETWORK_PARAMS_KEY--}:</td>
+ <td>
+ <select name="network_param_key" class="admin_select" size="1">
+ <option value="id">{--ADMIN_NETWORK_PARAMS_ID--}</option>
+ <option value="password">{--ADMIN_NETWORK_PARAMS_PASSWORD--}</option>
+ <option value="reload">{--ADMIN_NETWORK_PARAMS_RELOAD--}</option>
+ <option value="remain">{--ADMIN_NETWORK_PARAMS_REMAIN--}</option>
+ <option value="payment">{--ADMIN_NETWORK_PARAMS_REWARD--}</option>
+ <option value="erotic">{--ADMIN_NETWORK_PARAMS_EROTIC--}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_PARAMS_VALUE--}:</td>
+ <td class="bottom">
+ <input type="text" name="network_param_value" class="admin_normal" size="10" maxlength="10" />
+ </td>
+ </tr>
+ <tr>
+ <td class="admin_footer" colspan="2" align="center">
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
+ <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_PARAMS_ADD--}" />
+ </td>
+ </tr>
+</table>
+</form>
+</div>
+
+<div class="admin_note">
+ {--ADMIN_NETWORK_PARAMS_ADD_NOTE--}
+</div>
<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
<tr>
<td class="admin_title bottom" colspan="2" align="center">
- <strong>{--ADMIN_NETWORK_TYPE_ADD_TITLE--}</strong>
+ <strong>{--ADMIN_NETWORK_TYPES_ADD_TITLE--}</strong>
<div class="tiny">
(<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
</div>
</td>
</tr>
<tr>
- <td align="right" width="250">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+ <td align="right" width="250">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
<td>
<select name="network_type_handle" class="admin_select" size="1">
- <option value="banner">{--ADMIN_NETWORK_TYPE_BANNERCLICK_VIEW--}</option>
- <option value="surfbar">{--ADMIN_NETWORK_TYPE_SURFBARCLICK_VIEW--}</option>
- <option value="foredbanner">{--ADMIN_NETWORK_TYPE_FORCEDBANNER--}</option>
- <option value="textlink">{--ADMIN_NETWORK_TYPE_TEXTLINKCLICK_VIEW--}</option>
- <option value="layer">{--ADMIN_NETWORK_TYPE_LAYERCLICK_VIEW--}</option>
- <option value="popup">{--ADMIN_NETWORK_TYPE_POPUP--}</option>
- <option value="popdown">{--ADMIN_NETWORK_TYPE_POPDOWN--}</option>
- <option value="textmail">{--ADMIN_NETWORK_TYPE_TEXTMAIL--}</option>
- <option value="htmlmail">{--ADMIN_NETWORK_TYPE_HTMLMAIL--}</option>
- <option value="lead">{--ADMIN_NETWORK_TYPE_LEAD--}</option>
- <option value="sale">{--ADMIN_NETWORK_TYPE_SALE--}</option>
- <option value="payperactive">{--ADMIN_NETWORK_TYPE_PAYPERACTIVE--}</option>
- <option value="pagepeel">{--ADMIN_NETWORK_TYPE_PAGEPEEL--}</option>
+ <option value="banner">{--ADMIN_NETWORK_TYPES_BANNERCLICK_VIEW--}</option>
+ <option value="surfbar">{--ADMIN_NETWORK_TYPES_SURFBARCLICK_VIEW--}</option>
+ <option value="foredbanner">{--ADMIN_NETWORK_TYPES_FORCEDBANNER--}</option>
+ <option value="textlink">{--ADMIN_NETWORK_TYPES_TEXTLINKCLICK_VIEW--}</option>
+ <option value="layer">{--ADMIN_NETWORK_TYPES_LAYERCLICK_VIEW--}</option>
+ <option value="popup">{--ADMIN_NETWORK_TYPES_POPUP--}</option>
+ <option value="popdown">{--ADMIN_NETWORK_TYPES_POPDOWN--}</option>
+ <option value="textmail">{--ADMIN_NETWORK_TYPES_TEXTMAIL--}</option>
+ <option value="htmlmail">{--ADMIN_NETWORK_TYPES_HTMLMAIL--}</option>
+ <option value="lead">{--ADMIN_NETWORK_TYPES_LEAD--}</option>
+ <option value="sale">{--ADMIN_NETWORK_TYPES_SALE--}</option>
+ <option value="payperactive">{--ADMIN_NETWORK_TYPES_PAYPERACTIVE--}</option>
+ <option value="pagepeel">{--ADMIN_NETWORK_TYPES_PAGEPEEL--}</option>
</select>
</td>
</tr>
<tr>
- <td align="right" width="250">{--ADMIN_NETWORK_TYPE_API_URL--}:</td>
+ <td align="right" width="250">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
<td>
- <input type="text" name="network_type_api_url" class="admin_normal" size="30" maxlength="255" />
+ <input type="text" name="network_type_api_url" class="admin_normal" size="50" maxlength="255" />
</td>
</tr>
<tr>
- <td align="right" width="250">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+ <td align="right" width="250">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
<td>
- <input type="text" name="network_type_click_url" class="admin_normal" size="20" maxlength="255" />
+ <input type="text" name="network_type_click_url" class="admin_normal" size="40" maxlength="255" />
</td>
</tr>
<tr>
- <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+ <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
<td class="bottom">
- <input type="text" name="network_type_banner_url" class="admin_normal" size="20" maxlength="255" />
+ <input type="text" name="network_type_banner_url" class="admin_normal" size="40" maxlength="255" />
</td>
</tr>
<tr>
<td class="admin_footer" colspan="2" align="center">
<input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_ADD--}" />
+ <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_TYPES_ADD--}" />
</td>
</tr>
</table>
</div>
<div class="admin_note">
- {--ADMIN_NETWORK_TYPE_ADD_NOTE--}
+ {--ADMIN_NETWORK_TYPES_ADD_NOTE--}
</div>
<tr>
<td align="center" class="admin_title bottom" height="25" colspan="2">
<div>
- <strong>{--ADMIN_NETWORK_TYPE_DELETE_TITLE--}</strong>
+ <strong>{--ADMIN_NETWORK_TYPES_DELETE_TITLE--}</strong>
</div>
<div class="tiny">
(<a href="$content[network_data][network_reflink]" title="$content[network_data][network_title]" target="_blank">$content[network_data][network_title]</a>)
<tr>
<td colspan="2" class="admin_footer">
<input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="remove" class="admin_delete" value="{--ADMIN_NETWORK_TYPE_REMOVE--}" />
+ <input type="submit" name="remove" class="admin_delete" value="{--ADMIN_NETWORK_TYPES_REMOVE--}" />
</td>
</tr>
</table>
</form>
<div class="admin_note">
- {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+ {--ADMIN_NETWORK_TYPES_LIST_NOTE--}
</div>
</div>
<tr>
- <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+ <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
<td class="switch_sw$content[sw]">
<input type="hidden" name="sel[$content[network_id]]" value="1" />
$content[network_type_handle]
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_API_URL--}:</td>
+ <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
<td class="switch_sw$content[sw]">
$content[network_type_api_url]
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+ <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
<td class="switch_sw$content[sw]">
$content[network_type_click_url]
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+ <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
<td class="switch_sw$content[sw] bottom">
$content[network_type_banner_url]
</td>
<tr>
<td align="center" class="admin_title bottom" height="25" colspan="2">
<div>
- <strong>{--ADMIN_NETWORK_TYPE_EDIT_TITLE--}</strong>
+ <strong>{--ADMIN_NETWORK_TYPES_EDIT_TITLE--}</strong>
</div>
<div class="tiny">
(<a href="$content[network_data][network_reflink]" title="$content[network_data][network_title]" target="_blank">$content[network_data][network_title]</a>)
<tr>
<td colspan="2" class="admin_footer">
<input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="change" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_CHANGE--}" />
+ <input type="submit" name="change" class="admin_submit" value="{--ADMIN_NETWORK_TYPES_CHANGE--}" />
</td>
</tr>
</table>
</form>
<div class="admin_note">
- {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+ {--ADMIN_NETWORK_TYPES_LIST_NOTE--}
</div>
</div>
<tr>
- <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+ <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
<td class="switch_sw$content[sw]">
<input type="hidden" name="sel[$content[network_type_id]]" value="1" />
<input type="text" name="network_type_handle[$content[network_type_id]]" class="admin_normal" size="20" maxlength="255" value="$content[network_type_handle]" />
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_API_URL--}:</td>
+ <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
<td class="switch_sw$content[sw]">
<input type="text" name="network_type_api_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_api_url]" />
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+ <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
<td class="switch_sw$content[sw]">
<input type="text" name="network_type_click_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_click_url]" />
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+ <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
<td class="switch_sw$content[sw] bottom">
<input type="text" name="network_type_banner_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_banner_url]" />
</td>
<tr>
<td colspan="5" align="center" class="admin_title bottom">
<div>
- <strong>{--ADMIN_NETWORK_TYPE_LIST_TITLE--}</strong>
+ <strong>{--ADMIN_NETWORK_TYPES_LIST_TITLE--}</strong>
</div>
<div class="tiny">
(<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
</tr>
<tr>
<td align="center" class="header_column bottom right" height="25"><strong>{--ID_SELECT--}</strong></td>
- <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_HANDLE--}</strong></td>
- <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_API_URL--}</strong></td>
- <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_CLICK_URL--}</strong></td>
- <td align="center" class="header_column bottom"><strong>{--ADMIN_NETWORK_TYPE_BANNER_URL--}</strong></td>
+ <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPES_HANDLE--}</strong></td>
+ <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPES_API_URL--}</strong></td>
+ <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPES_CLICK_URL--}</strong></td>
+ <td align="center" class="header_column bottom"><strong>{--ADMIN_NETWORK_TYPES_BANNER_URL--}</strong></td>
</tr>
$content[rows]
<tr>
<td colspan="5" class="admin_footer">
<input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" />
- <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_EDIT--}" />
- <input type="submit" name="del" class="admin_delete" value="{--ADMIN_NETWORK_TYPE_DELETE--}" />
+ <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_NETWORK_TYPES_EDIT--}" />
+ <input type="submit" name="del" class="admin_delete" value="{--ADMIN_NETWORK_TYPES_DELETE--}" />
</td>
</tr>
</table>
</form>
<div class="admin_note">
- {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+ {--ADMIN_NETWORK_TYPES_LIST_NOTE--}
</div>
</div>
<div style="width:550px" class="admin_table dashed">
<div class="admin_title bottom">
- {--ADMIN_NETWORK_TYPE_ADDED_TITLE--}
+ {--ADMIN_NETWORK_TYPES_ADDED_TITLE--}
</div>
<div class="admin_message">
Der Werbeart-Handler $content[network_type_handle] wurde soeben hinzugefügt.