]> git.mxchange.org Git - mailer.git/commitdiff
Added missing admin templates for ext-forced, some other things improved
authorRoland Häder <roland@mxchange.org>
Sat, 20 Oct 2012 21:01:16 +0000 (21:01 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 20 Oct 2012 21:01:16 +0000 (21:01 +0000)
.gitattributes
inc/callback-functions.php
inc/language/forced_de.php
inc/libs/forced_functions.php
inc/modules/admin/admin-inc.php
inc/mysql-manager.php
templates/de/emails/admin/admin_add_forced_ads.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_add_forced_campaigns.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_add_forced_costs.tpl [new file with mode: 0644]
templates/de/html/select/select_forced_ads_id_textlink_box.tpl [new file with mode: 0644]

index 02f544e0e139a74e42f843b040d25bc26af00e03..ad4cc977ea277af2ec9252601913ae96ff23a759 100644 (file)
@@ -881,6 +881,9 @@ templates/de/emails/.htaccess svneol=native#text/plain
 templates/de/emails/add-points.tpl svneol=native#text/plain
 templates/de/emails/admin-del_links.tpl svneol=native#text/plain
 templates/de/emails/admin/.htaccess svneol=native#text/plain
+templates/de/emails/admin/admin_add_forced_ads.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_add_forced_campaigns.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_add_forced_costs.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_add_user_subids.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_admin_add_all_direct.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_admin_add_all_ref_referral.tpl svneol=native#text/plain
@@ -2162,6 +2165,7 @@ templates/de/html/select/select_admins_box.tpl svneol=native#text/plain
 templates/de/html/select/select_admins_option.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_id_popup_box.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_id_popup_option.tpl svneol=native#text/plain
+templates/de/html/select/select_forced_ads_id_textlink_box.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_id_textlink_option.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_type_box.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_type_option.tpl svneol=native#text/plain
index 4b9c5c8b59d3e47075661a435bab603662f1215e..4e45cb03e1c27c0259dbdb22767da6ee4f72799c 100644 (file)
@@ -1294,7 +1294,7 @@ function doXmlCallbackFunctionExecute ($callbackName, $args, $columnIndex) {
        } // END - if
 
        // Just call it
-       //* DEBUG: */ die('callbackFunction=' . $callbackName . ',columnIndex=' . $columnIndex . ',args=<pre>'.print_r($args, TRUE).'</pre>');
+       //* DEBUG: */ die(__FUNCTION__.':callbackFunction=' . $callbackName . ',columnIndex=' . $columnIndex . ',args=<pre>'.print_r($args, TRUE).'</pre>');
        call_user_func_array($callbackName, $args);
 }
 
index 48d9f5e400e1421de58245bd853c56719040f6d7..3200142cf7c07107ff66f4ccc15c1d2593996d86 100644 (file)
@@ -83,6 +83,9 @@ addMessages(array(
        'ADMIN_SELECT_FORCED_AD' => "Forced-Werbemittel ausw&auml;hlen:",
        'ADMIN_SELECT_FORCED_CAMPAIGN_USERID' => "Mitgliedsaccount ausw&auml;hlen, dass dieser Kampagne zugewiesen werden soll:",
        'ADMIN_SELECT_FORCED_COSTS' => "Forced-Preis ausw&auml;hlen:",
+       'ADMIN_FORCED_CAMPAIGN_ADS_ID' => "Verkn&uuml;pftes Forced-Werbemittel:",
+       'ADMIN_FORCED_CAMPAIGN_USERID' => "Verkn&uuml;pftes Mitgliedsaccount:",
+       'ADMIN_FORCED_CAMPAIGN_COSTS_ID' => "Verkn&uuml;pfte Forced-Kosten:",
        'ADMIN_FORCED_CAMPAIGN_STATUS' => "Kampagnen-Status",
        'ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS' => "Klicks &uuml;brig",
        'ADMIN_FORCED_CAMPAIGN_PAYMENT_API' => "Verg&uuml;tung von API",
@@ -169,8 +172,11 @@ addMessages(array(
        'ADMIN_FORCED_CAMPAIGNS_ACTIVATED_FAILED' => "Bei der Aktivierung von Forced-Kampagnen ist ein Fehler unterlaufen, haben Sie auch nur Kampagnen mit dem Status <u>{--ADMIN_FORCED_CAMPAIGN_TYPE_PENDING--}</u> ausgew&auml;hlt?",
 
        // Admin - subject lines
+       'ADMIN_ADD_FORCED_ADS_SUBJECT' => "Forced-Werbemittel hinzugef&uuml;gt",
        'ADMIN_EDIT_FORCED_ADS_SUBJECT' => "&Auml;nderungen an Forced-Werbemitteln",
+       'ADMIN_ADD_FORCED_COSTS_SUBJECT' => "Forced-Preis hinzugef&uuml;gt",
        'ADMIN_EDIT_FORCED_COSTS_SUBJECT' => "&Auml;nderung an Forced-Preisen",
+       'ADMIN_ADD_FORCED_CAMPAIGNS_SUBJECT' => "Forced-Kampagne erstellt",
        'ADMIN_FORCED_NOTIFY_CAMPAIGN_PENDING_ACTIVE_SUBJECT' => "Eine Forced-Kampagne wurde freigeschaltet",
 
        // Member - subject lines
index e596264e3cb0aa44c7cf537c3504d5a2d53d197c..21a7327a31b94b939ccf91502d38b03e34b9a30b 100644 (file)
@@ -121,9 +121,9 @@ function translateForcedCostsVisibility ($visibility) {
        return $return;
 }
 
-// "Getter" for an array of data from all Forced-PopUps except user's
+// "Getter" for an array of data from all forced-popups except user's own
 function getForcedPopupDataByEarningArray ($content) {
-       die('content=<pre>' . print_r($content, TRUE) . '</pre>' . debug_get_printable_backtrace());
+       die(__FUNCTION__.':content=<pre>' . print_r($content, TRUE) . '</pre>' . debug_get_printable_backtrace());
 
        // Finally return the content
        return $content;
@@ -537,7 +537,6 @@ function doTemplateForcedCampaignUseridSelectionBox ($templateName, $clear, $def
 function addXmlSpecialAdminAddDoForcedAds () {
        // So set it all here
        $GLOBALS['__COLUMN_INDEX']['doXmlCallbackFunction']  = 'column';
-       $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_values'] = array();
        $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['column_index'] = 'column';
 }
 
@@ -552,7 +551,6 @@ function addXmlSpecialAdminAddDoForcedCampaigns () {
 function addXmlSpecialAdminAddDoForcedCosts () {
        // So set it all here
        $GLOBALS['__COLUMN_INDEX']['doXmlCallbackFunction']  = 'column';
-       $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_values'] = array();
        $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['column_index'] = 'column';
 }
 
index 86c378e821b6e9723b28531ab24459336ea6e689..8e3bd823adae8b7b4f1937b30d7d6d4f9603d80e 100644 (file)
@@ -1067,6 +1067,12 @@ function adminUndeleteEntriesConfirm ($tableName, $columns = array(), $filterFun
 
 // Adds a given entry to the database
 function adminAddEntries ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $timeColumns = array(), $columnIndex = NULL) {
+       // Is the userid set?
+       if (!isPostRequestElementSet('userid')) {
+               // Then set NULL here
+               setPostRequestElement('userid', NULL);
+       } // END - if
+
        // Call inner function
        doGenericAddEntries($tableName, $columns, $filterFunctions, $extraValues, $timeColumns, $columnIndex);
 
index bcf674209b87f802cd4e703dbe1d55a1c3e02a60..d0ec3ca7942f3e651d9ed2a2e9b7175c9151ab22 100644 (file)
@@ -1982,7 +1982,7 @@ function doListEntries ($sql, $tableTemplate, $noEntryMessageId, $rowTemplate, $
 
 // Adds a given entry to the database
 function doGenericAddEntries ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $timeColumns = array(), $columnIndex = NULL) {
-       //* DEBUG: */ die('columns=<pre>'.print_r($columns,TRUE).'</pre>,filterFunctions=<pre>'.print_r($filterFunctions,TRUE).'</pre>,extraValues=<pre>'.print_r($extraValues,TRUE).'</pre>,POST=<pre>'.print_r($_POST,TRUE).'</pre>');
+       //* DEBUG: */ die(__FUNCTION__.':columns=<pre>'.print_r($columns,TRUE).'</pre>,filterFunctions=<pre>'.print_r($filterFunctions,TRUE).'</pre>,extraValues=<pre>'.print_r($extraValues,TRUE).'</pre>,timeColumns=<pre>'.print_r($timeColumns,TRUE).'</pre>,columnIndex=<pre>'.print_r($columnIndex,TRUE).'</pre>,POST=<pre>'.print_r($_POST,TRUE).'</pre>');
        // Verify that tableName and columns are not empty
        if ((!is_array($tableName)) || (count($tableName) != 1)) {
                // No tableName specified
@@ -2031,14 +2031,14 @@ function doGenericAddEntries ($tableName, $columns = array(), $filterFunctions =
                // Send data through the filter function if found
                if ((isset($filterFunctions[$key])) && (isset($extraValues[$key . '_list']))) {
                        // Filter function set!
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
                        $sqlValues[$key] = call_user_func_array($filterFunctions[$key], merge_array(array($columnName), $extraValues[$key . '_list']));
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
-               } elseif ((isset($filterFunctions[$key])) && (!empty($filterFunctions[$key]))) {
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
+               } elseif ((isset($filterFunctions[$key])) && (!empty($filterFunctions[$key])) && (!empty($sqlValues[$key]))) {
                        // Run through an extra filter
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
+                       /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
                        $sqlValues[$key] = handleExtraValues($filterFunctions[$key], $sqlValues[$key], NULL);
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
+                       /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
                }
 
                // Is the value not a number?
diff --git a/templates/de/emails/admin/admin_add_forced_ads.tpl b/templates/de/emails/admin/admin_add_forced_ads.tpl
new file mode 100644 (file)
index 0000000..78cbc44
--- /dev/null
@@ -0,0 +1,29 @@
+Hallo Administrator,
+
+Es wurde soeben Forced-Werbemittel hinzugef&uuml;gt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Forced-Werbemittel-Id: $content[id]
+------------------------------------------
+{--ADMIN_FORCED_ADS_AD_URL--}: $content[forced_ads_ad_url]
+------------------------------------------
+{--ADMIN_FORCED_ADS_ALTERNATE_TEXT--}: $content[forced_ads_alt_text]
+------------------------------------------
+{--ADMIN_FORCED_ADS_CLICK_URL--}: $content[forced_ads_click_url]
+------------------------------------------
+{--ADMIN_FORCED_ADS_WIDTH--}: {%pipe,translateComma=$content[forced_ads_width]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_HEIGHT--}: {%pipe,translateComma=$content[forced_ads_height]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_USERID--}: {%pipe,fixEmptyContentToDashes=$content[userid]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_TYPE--}: {%pipe,translateForcedAdsType=$content[forced_ads_type]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_HAS_FRAMEBREAKER--}: {%pipe,translateYesNo=$content[forced_ads_framebreaker]%}
+------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
diff --git a/templates/de/emails/admin/admin_add_forced_campaigns.tpl b/templates/de/emails/admin/admin_add_forced_campaigns.tpl
new file mode 100644 (file)
index 0000000..2834725
--- /dev/null
@@ -0,0 +1,25 @@
+Hallo Administrator,
+
+Es wurde soeben Forced-Kampagne hinzugef&uuml;gt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Forced-Kampagnen-Id: $content[id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS--}: {%pipe,translateComma=$content[forced_campaign_ordered_clicks]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_MINIMUM_STAY--}: {%pipe,createFancyTime=$content[forced_campaign_minimum_stay]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ADS_ID--} $content[forced_ads_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_USERID--} {%pipe,fixEmptyContentToDashes=$content[forced_campaign_userid]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_COSTS_ID--} $content[forced_costs_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_RELOAD_LOCK--}: {%pipe,createFancyTime=$content[forced_campaign_reload_lock]%}
+------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
diff --git a/templates/de/emails/admin/admin_add_forced_costs.tpl b/templates/de/emails/admin/admin_add_forced_costs.tpl
new file mode 100644 (file)
index 0000000..cf73fd9
--- /dev/null
@@ -0,0 +1,19 @@
+Hallo Administrator,
+
+Es wurde soeben Forced-Preise hinzugef&uuml;gt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Forced-Preis-Id: $content[id]
+------------------------------------------
+{--ADMIN_FORCED_COSTS_PRICE_CLICK--}: {%pipe,translateComma=$content[forced_costs_price_click]%}
+------------------------------------------
+{--ADMIN_FORCED_COSTS_PAYMENT_CLICK--}: {%pipe,translateComma=$content[forced_costs_payment_click]%}
+------------------------------------------
+{--ADMIN_FORCED_COSTS_VISIBILITY--}: {%pipe,translateForcedCostsVisibility=$content[forced_costs_visibility]%}
+------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
diff --git a/templates/de/html/select/select_forced_ads_id_textlink_box.tpl b/templates/de/html/select/select_forced_ads_id_textlink_box.tpl
new file mode 100644 (file)
index 0000000..1abcfa7
--- /dev/null
@@ -0,0 +1,3 @@
+<div>
+       $content[selection_box]
+</div>