Neueste Nachrichten (in Englisch): (am laden..)

3 Beiträge in diesem Thema

Hallo an Alle,

bin jetzt dabei die Newsletter um zu bauen.
https://apps.oscommerce.com/JvOkG&newslettter-products-for-oscommerce-2-3

 

Hierbei funzt alles super bis auf die Dateien:  view_newsletterp.php und die newsletters.php

 Bei der newsletter.php bekomme ich ein update der DB für den status als gesendet. hier der code der ein Fehler haben muss den ich jedoch nicht finde.
 

newsletters.php

<?php
  } elseif ($action == 'confirm_send') {
    $nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

      //newsletter products
    $newsletter_query = tep_db_query("select title, content, module, template from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
    $newsletter = tep_db_fetch_array($newsletter_query);
        $news_products = array();
       $newsletter_products_query = tep_db_query("select products_id from " . TABLE_NEWSLETTERS_TO_PRODUCTS . " where newsletters_id = '" . (int)$nID . "'");
       while($newsletter_products = tep_db_fetch_array($newsletter_products_query)){
          $news_products[] = $newsletter_products['products_id'];
       }
       $newsletter['products'] = $news_products;
       //end newsletter products

    $nInfo = new objectInfo($newsletter);

    include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
    include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
    $module_name = $nInfo->module;
      //newsletter products
       if($nInfo->module == 'newsletter_products') {
           $module = new $module_name($nInfo->title, $nInfo->content . '<br /><br /><a href="' . tep_catalog_href_link('view_newsletter.php', 'nID=' . $nID) . '">' . TEXT_VIEW_HERE . tep_catalog_href_link('view_newsletter.php', 'nID=' . $nID) . "</a>\n", $nInfo->products, $nInfo->template);
       } else {
        $module = new $module_name($nInfo->title, $nInfo->content . TEXT_HTML_VIEW_HERE . tep_catalog_href_link('view_newsletter.php', 'nID=' . $nID) . "\n");
      }
      //end newsletter products
?>

//*********************************

Hier der Originalcode der newsletters.php der funktioniert.

<?php
  } elseif ($action == 'confirm_send') {
    $nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

    $newsletter_query = tep_db_query("select newsletters_id, title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
    $newsletter = tep_db_fetch_array($newsletter_query);

    $nInfo = new objectInfo($newsletter);

    include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
    include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
    $module_name = $nInfo->module;
    $module = new $module_name($nInfo->title, $nInfo->content);
?>

//*********************************

Hier der Code für die view_newsletterp.php

Hier wird der html Newsletter im Shop nicht angezeigt. 

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_VIEWNEWS);

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_VIEWNEWS));

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>

<div class="contentContainer">
  <div class="contentText">
    <?php
  $nID = (isset($HTTP_GET_VARS['nID']) ? tep_db_prepare_input($HTTP_GET_VARS['nID']) : 0);
  //newsletter products
  $newsletter_query = tep_db_query("select title, content, module, template from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
    if (tep_db_num_rows($newsletter_query) == 1) {
    $newsletter = tep_db_fetch_array($newsletter_query);
    $newsletter_products_query = tep_db_query("select products_id from " . TABLE_NEWSLETTERS_TO_PRODUCTS . " where newsletters_id = '" . (int)$nID . "'");
    while ($newsletter_products = tep_db_fetch_array($newsletter_products_query)) {
        $news_products[] = $newsletter_products['products_id'];
    }      
    $newsletter['products'] = $news_products;
      if ($newsletter['module'] == 'newsletter_products') {
          include('catalog/admin/includes/modules/newsletters/newsletter_products.php');
      include('catalog/admin/includes/languages/english/modules/newsletters/newsletter_products.php');
      $module = new newsletter_products($newsletter['title'], $newsletter['content'], $newsletter['products'], $newsletter['template']);
      echo $module->html_content();
      } else {
      echo nl2br($newsletter['content']);
      }    
      //end newsletter products
    } else {
        echo TEXT_NOT_FOUND;
    }
    echo "\n";
        ?>
  </div>

  <div class="buttonSet">
    <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
  </div>
</div>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

//*********************************

 

Hierbei hab ich die url zum Modul und die Sprachdatei umgeändert

$newsletter['products'] = $news_products;
      if ($newsletter['module'] == 'newsletter_products') {
//      include('catalog/admin/includes/modules/newsletters/newsletter_products.php');
//      include('catalog/admin/includes/languages/english/modules/newsletters/newsletter_products.php');
      include(DIR_FS_CATALOG . 'admin/includes/modules/newsletters/newsletter_products.php');
      include(DIR_FS_CATALOG . 'admin/includes/languages/english/modules/newsletters/newsletter_products.php');
      $module = new newsletter_products($newsletter['title'], $newsletter['content'], $newsletter['products'], $newsletter['template']);
      echo $module->html_content();
      } else {
      echo nl2br($newsletter['content']);
      }

//*********************************

dieser code ist für die Ausgabe der html-Newsletter zuständig es tut sich aber leider nichts.

echo $module->html_content();

für etwas Hilfe wäre ich sehr dankbar.

Diesen Beitrag teilen


Link zum Beitrag
Auf anderen Seiten teilen

Ok. Part 1 gelöst. update vom status funzt wieder.

 

<?php
  } elseif ($action == 'confirm_send') {
    $nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

    //newsletter products
    $newsletter_query = tep_db_query("select newsletters_id, title, content, module, template from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
    $newsletter_products_query = tep_db_query("select products_id from " . TABLE_NEWSLETTERS_TO_PRODUCTS . " where newsletters_id = '" . (int)$nID . "'");
    while($newsletter_products = tep_db_fetch_array($newsletter_products_query)){
           $news_products[] = $newsletter_products['products_id'];
    }
    $newsletter = tep_db_fetch_array($newsletter_query);
    $newsletter['products'] = $news_products;
    //end newsletter products

    $nInfo = new objectInfo($newsletter);

    include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
    include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
    $module_name = $nInfo->module;
      //newsletter products
       if($nInfo->module == 'newsletter_products') {
           $module = new $module_name($nInfo->title, $nInfo->content . '<br /><br /><a href="' . tep_catalog_href_link('view_newsletter.php', 'nID=' . $nID) . '">' . TEXT_VIEW_HERE . tep_catalog_href_link('view_newsletter.php', 'nID=' . $nID) . "</a>\n", $nInfo->products, $nInfo->template);
       } else {
        $module = new $module_name($nInfo->title, $nInfo->content . TEXT_HTML_VIEW_HERE . tep_catalog_href_link('view_newsletter.php', 'nID=' . $nID) . "\n");
      }
      //end newsletter products
?>

Diesen Beitrag teilen


Link zum Beitrag
Auf anderen Seiten teilen

hier das Modul:

<?php
/*
  $Id: newsletter_products.php,v 2.0 2007/05/17 scottyb Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerce

  Released under the GNU General Public License
  //newsletter products
*/

  class newsletter_products {

    function newsletter_products($title, $content, $products, $template) {
      $this->title = $title;
      $this->content = $content;
      $this->products = $products;
      $this->template = $template;
    }
    
    function choose_products() {
      global $HTTP_GET_VARS, $languages_id;
        
      //first let's get the products that have been added to newsletter
      if ($HTTP_GET_VARS['nID']) {
          $newsletter_products_query = tep_db_query("select products_id from " . TABLE_NEWSLETTERS_TO_PRODUCTS . " where newsletters_id ='" . (int)$HTTP_GET_VARS['nID'] . "'");
          $newsletter_products_string = '';
          while($newsletter_products = tep_db_fetch_array($newsletter_products_query)){
              $newsletter_products_string .= $newsletter_products['products_id'] . ', ';
          }
          $newsletter_products_string = trim($newsletter_products_string, ', ');

      //$newsletter_products_string = tep_db_result($newsletter_products_query, 0, $newsletter_products_query['products']);
          $current_products_query = "select pd.products_id, pd.products_name, p.products_model from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.language_id = '" . (int)$languages_id . "' and pd.products_id = p.products_id and p.products_status = '1'";
          if($newsletter_products_string) $current_products_query .= " and pd.products_id in (" . $newsletter_products_string . ")";
        $current_products_query .= " order by pd.products_name";
        $current_products_query = tep_db_query($current_products_query);
      }   
      
      if($newsletter_products_string){
          $current_products_array = array();
          while ($current_products = tep_db_fetch_array($current_products_query)){
              $current_products_array[] = array('id' => $current_products['products_id'],
                                                'text' => $current_products['products_name'] . ' - ' . $current_products['products_model']);
          }
      }
      
      $products_query = "select pd.products_id, pd.products_name, p.products_model from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.language_id = '" . (int)$languages_id . "' and pd.products_id = p.products_id and p.products_status = '1'";
      if ($newsletter_products_string) $products_query .= " and pd.products_id not in(" . $newsletter_products_string . ")";
      $products_query .= " order by pd.products_name";
      
      $products_array = array();
      $products_query = tep_db_query($products_query);
      
      while ($products = tep_db_fetch_array($products_query)) {
        $products_array[] = array('id' => $products['products_id'],
                                  'text' => $products['products_name'] . ' - ' . $products['products_model']);
      }

$choose_products_string = '<script language="javascript"><!--
function mover(move) {
  if (move == \'remove\') {
    for (x=0; x<(document.newsletter.products.length); x++) {
      if (document.newsletter.products.options[x].selected) {
        with(document.newsletter.elements[\'chosen[]\']) {
          options[options.length] = new Option(document.newsletter.products.options[x].text,document.newsletter.products.options[x].value);
        }
        document.newsletter.products.options[x] = null;
        x = -1;
      }
    }
  }
  if (move == \'add\') {
    for (x=0; x<(document.newsletter.elements[\'chosen[]\'].length); x++) {
      if (document.newsletter.elements[\'chosen[]\'].options[x].selected) {
        with(document.newsletter.products) {
          options[options.length] = new Option(document.newsletter.elements[\'chosen[]\'].options[x].text,document.newsletter.elements[\'chosen[]\'].options[x].value);
        }
        document.newsletter.elements[\'chosen[]\'].options[x] = null;
        x = -1;
      }
    }
  }
  return true;
}

function selectAll(FormName, SelectBox) {
  temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";
  Source = eval(temp);

  for (x=0; x<(Source.length); x++) {
    Source.options[x].selected = "true";
  }
}
//--></script>';

      $choose_products_string .= '<table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" .
                                 '  <tr>' . "\n" .
                                 '    <td align="center" class="main"><strong>' . TEXT_PRODUCTS . '</strong><br />' . tep_draw_pull_down_menu('products', $products_array, '', 'size="20" style="width: 32em;" multiple') . '</td>' . "\n" .
                                 '    <td align="center" class="main">&nbsp;<br /><br /><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onClick="mover(\'remove\');"><br /><br /><input type="button" value="' . BUTTON_UNSELECT . '" style="width: 8em;" onClick="mover(\'add\');"></td>' . "\n" .
                                 '    <td align="center" class="main"><strong>' . TEXT_SELECTED_PRODUCTS . '</strong><br />' . tep_draw_pull_down_menu('chosen[]', $current_products_array, '', 'size="20" style="width: 25em;" multiple') . '</td>' . "\n" .
                                 '  </tr>' . "\n" .
                                 '</table>';

      return $choose_products_string;
    }
    
    function productInfo(){
        global $languages_id;
        $this->productInfo = array();
        $p_string = '';
        for($i=0, $n=sizeof($this->products); $i<$n; $i++){
            $p_string .= $this->products[$i] . ', ';
        }
        $p_string = trim($p_string, ', ');
        
        $product_query = tep_db_query("select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, if(s.status, s.specials_new_products_price, NULL) as specials_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join (select * from (select products_id, specials_new_products_price, expires_date, status from " . TABLE_SPECIALS . " where status = 1 order by products_id, specials_new_products_price, expires_date) as t group by products_id) as s on pd.products_id = s.products_id where pd.products_id = p.products_id and p.products_id in(" . $p_string . ") and pd.language_id=" . (int)$languages_id . " order by products_name");
        
        //$this->productsInfo = array();
        while($product = tep_db_fetch_array($product_query)){
            $this->productsInfo[] = array('products_id' => $product['products_id'],
                                          'products_name' => $product['products_name'],
                                          'products_image' => $product['products_image'],
                                          'products_price' => $product['products_price'],
                                          'specials_price' => $product['specials_price'],
                                          'products_tax_class_id' => $product['products_tax_class_id']);
        }
    }    

    function html_content() {    
        global $currencies, $languages_id;        
        //create HTML string containing links & pics
        
        //define product columns here
        define('COLS', 2);
        $width = intval(100/COLS);
        $html_content = '<table border="0" width="100%" cellpadding="" cellspacing="3"><tr>';
        
        $col = 0;        
        $this->productInfo();
        
        //change html body styles here
        $cssPrice = 'color: #000000;';
        $cssSale = 'color: #ff0000;';
        $cssMarkdown = 'color: #000000; text-decoration: line-through';
        $cssLink = 'color: #ff0000; text-decoration: none';
        
        for ($i=0, $n=sizeof($this->productsInfo); $i<$n; $i++) {
            if ($col > COLS-1) {
                $html_content .= '</tr><tr><td align="center" width="' . $width . '%"><a href="' . tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->productsInfo[$i]['products_id']) . '" target="_blank" style="' . $cssLink . '">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $this->productsInfo[$i]['products_image'], $this->productsInfo[$i]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $this->productsInfo[$i]['products_name'] . '</a><br />';
                $price = ($this->productsInfo[$i]['specials_price']) ? '<span style="'. $cssMarkdown . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>&nbsp;&nbsp;<span style="' . $cssSale . '">' . $currencies->display_price($this->productsInfo[$i]['specials_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>' : '<span style="' . $cssPrice . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>';
                $html_content .= $price . '</td>';
                $col = 0;
            } else {
                $html_content .= '<td align="center" width="' . $width . '%"><a href="' . tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->productsInfo[$i]['products_id']) . '" target="_blank" style="' . $cssLink . '">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $this->productsInfo[$i]['products_image'], $this->productsInfo[$i]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $this->productsInfo[$i]['products_name'] . '</a><br />';
                $price = ($this->productsInfo[$i]['specials_price']) ? '<span style="' . $cssMarkdown . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>&nbsp;&nbsp;<span style="' . $cssSale . '">' . $currencies->display_price($this->productsInfo[$i]['specials_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>' : '<span style="' . $cssPrice . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>';
                $html_content .= $price . '</td>';
            }
            $col++;
        }
        
        //uncomment & create your unsubscribe link in your includes/languages/YOUR LANGUAGE/modules/newsletters/newsletter_products.php
        $html_content .= '</tr><tr><td colspan="' . COLS . '">' . TEXT_UNSUBSCRIBE . '</td></tr></table>';
        
        if(tep_not_null($this->template)){
            //HTML page from template
            //$content = join('', file(DIR_WS_TEMPLATES . $this->template));
            $content = file_get_contents(DIR_WS_TEMPLATES . $this->template);
            //remove all line breaks and spaces in template to ensure no spaces resulting from email class
            $content = str_replace("\n", '', $content);
            $content = str_replace("\r", '', $content);
            //$content = str_replace('> ', '>', $content);
            $content = addslashes($content);
            $email_title = $this->title;
            $email_message = nl2br($this->content);
            $text_content = $this->content;
            eval ("\$content = \"$content\";");
            $html_content = $content;
        }
        
        return $html_content;
    }
    
    function text_content(){
        global $currencies, $languages_id;
    
        $text_content = $this->content . "\r\n\r\n";

        //var_dump($this->productsInfo);
        for($i=0, $n=sizeof($this->productsInfo); $i<$n; $i++){
            $text_content .= $this->productsInfo[$i]['products_name'] . ' ';
            $price = ($this->productsInfo[$i]['specials_price']) ? 'Sale Price: ' . $currencies->display_price($this->productsInfo[$i]['specials_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . ' Down from: ' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) : $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id']));
            $text_content .= $price . "\n";
            $text_content .= tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->productsInfo[$i]['products_id']) . "\r\r";
        }
        
        //uncomment & create your unsubscribe link in your includes/languages/YOUR LANGUAGE/modules/newsletters/newsletter_products.php
        $text_content .= "\r\r" . TEXT_UNSUBSCRIBE;
        
        return strip_tags(str_replace(array('<p>', '</p>', '<br>', '<br />', '<br/>', '<ul>', '<li>', '</ul>'), "\n", $text_content));
    }
    
    function confirm() {
      global $HTTP_GET_VARS;

      $mail_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
      $mail = tep_db_fetch_array($mail_query);

      $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td class="main" style="font-weight: bold; color: red">' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td class="main" style="font-weight: bold">' . $this->title . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                          '  <tr>' . "\n" .
                        '    <td class="main">' . $this->text_content() . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td class="main">' . $this->html_content() . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '  <tr>' . "\n" .
                        '    <td class="smallText" align="right">' . tep_draw_button(IMAGE_SEND, 'mail-closed', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm_send'), 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'])) . '</td>' . "\n" .
                        '  </tr>' . "\n" .
                        '</table>';

      return $confirm_string;
    }
    
    function send($newsletter_id) {
      $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
      //create id for current mailing
      $messageId = "Message-Id: <" . time() . "@" . $_SERVER['SERVER_NAME'] . ">";
      
      $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer', $messageId));
      
      //$mimemessage->add_text($this->content);
      //$text = $this->text_content();
      
      $mimemessage->add_html($this->html_content(), $this->text_content(), HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES);
      $mimemessage->build_message();

      while ($mail = tep_db_fetch_array($mail_query)) {
       $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title, 'Return-Path: ' . EMAIL_FROM);
      }

      $newsletter_id = tep_db_prepare_input($newsletter_id);
      tep_db_query("update " . TABLE_NEWSLETTERS . " set date_sent = now(), status = '1' where newsletters_id = '" . tep_db_input($newsletter_id) . "'");
    }
  }
?>
 

Diesen Beitrag teilen


Link zum Beitrag
Auf anderen Seiten teilen

Erstelle ein Benutzerkonto oder melde dich an um zu kommentieren

Du musst ein Benutzerkonto haben um einen Kommentar hinterlassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Geht einfach!


Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.


Jetzt anmelden