]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_notifications.php
'close' not 'Close' and PagePeel added to ext-network
[mailer.git] / inc / modules / admin / what-list_notifications.php
index 18587326391592725bc296399beb223e12eddcdb..220213e51752939e3915e3d4bd8863cd21c1ed9f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/07/2008 *
- * ===============                              Last change: 10/07/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 10/07/2008 *
+ * ===================                          Last change: 10/07/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-list_notifications.php                      *
@@ -49,8 +49,8 @@ $SQL2 = '';
 $result_max = false;
 
 // Set offset an current page to default values
-if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , '1');
-if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('mails_page'));
+if (!isGetRequestElementSet('page'))   setGetRequestElement('page'  , 1);
+if (!isGetRequestElementSet('offset')) setGetRequestElement('offset', getConfig('mails_page'));
 
 if (isExtensionActive('bonus')) {
        // Bonus mails sent by you
@@ -64,7 +64,7 @@ ORDER BY timestamp DESC";
        $result_max = SQL_QUERY($SQL2, __FILE__, __LINE__);
 } else {
        // Bonus extension required!
-       loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED'), 'bonus'));
+       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED', 'bonus'));
 }
 
 // Create limitation line
@@ -91,17 +91,17 @@ if ((isExtensionActive('bonus')) && (SQL_NUMROWS($result_max) > 0) && (!empty($S
                        // Add link?
                        if ($bonus['unconfirmed'] > 0) {
                                // Add link to list_unconfirmed what-file
-                               $bonus['unconfirmed'] = "<strong><a href=\"{?URL?}/modules.php?module=admin&amp;what=list_unconfirmed&amp;bid=".$bonus['id']."\">".$bonus['unconfirmed']."</a></strong>";
+                               $bonus['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&amp;what=list_unconfirmed&amp;bid=" . $bonus['id'] . "%}\">" . $bonus['unconfirmed'] . "</a></strong>";
                        } // END - if
 
                        // Prepare content
                        $content = $bonus;
                        $content['time']        = createFancyTime($content['time']);
                        $content['category']    = getCategory($content['cat_id']);
-                       $content['receivers']   = str_replace(';', ", ", $content['receivers']);
+                       $content['receivers']   = convertReceivers($content['receivers']);
                        $content['type']        = translatePoolType($content['data_type']);
                        $content['frametester'] = generateFrametesterUrl($content['url']);
-                       $content['timestamp']   = generateDateTime($content['timestamp'], '0');
+                       $content['timestamp']   = generateDateTime($content['timestamp'], 0);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_notify_emails_row', true, $content);
@@ -109,7 +109,7 @@ if ((isExtensionActive('bonus')) && (SQL_NUMROWS($result_max) > 0) && (!empty($S
 
                // Add navigation (without change box but with colspan=3)
                $content['nav'] = '';
-               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
 
                // Prepare content
                $content['rows'] = $OUT;