./inc/language/de.php:810:// @TODO Are these constants longer used?
./inc/language-functions.php:234: // @TODO These are all valid languages, again hard-coded
./inc/language-functions.php:46:// @TODO Rewrite all language constants to this function.
+./inc/language/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no *
./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings *
./inc/language/refback_de.php:46:// @TODO Rewrite these constants to one
./inc/language/sponsor_de.php:119:// @TODO Rewrite these four constants to one and use sprintf()
// Get its data for template
$networkData = getNetworkDataById(getRequestParameter('network'));
- // Is a network type selected?
- if (!isGetRequestParameterSet('network_type')) {
- // Then present a new selection form
- outputHtml(generateAdminNetworkTypeList(getRequestParameter('network'), getRequestParameter('network_type')));
+ // Init disabled list
+ $GLOBALS['network_translation_disabled'] = array();
+
+ // Only show params from given type handler if choosen
+ $ADD = '';
+ if ((isPostRequestParameterSet('network_type_id')) && (!is_array(postRequestParameter('network_type_id')))) {
+ // Only show from current type handler
+ $ADD = sprintf(" AND p.`network_type_id`=%s", bigintval(postRequestParameter('network_type_id')));
- // Abort any other processing
- return;
+ // Display message
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_API_TRANSLATION_LIST_LIMITED_TO_TYPE--}');
} // END - if
- // Init disabled list
- $GLOBALS['network_translation_disabled'] = array();
// Load all advert codes for given network
$result = SQL_QUERY_ESC("SELECT
ON
p.`network_type_id`=t.`network_type_id`
WHERE
- p.`network_id`=%s AND
- p.`network_type_id`=%s
+ p.`network_id`=%s
+ ".$ADD."
ORDER BY
t.`network_type_handle` ASC,
p.`network_api_id` ASC",
array(
- bigintval(getRequestParameter('network')),
- bigintval(getRequestParameter('network_type'))
+ bigintval(getRequestParameter('network'))
), __FILE__, __LINE__);
// Do we have entries?