<?php
/**
  \licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
  \portion code Copyright (c) 2002 osCommerce
  \package osCSS-2 <www http://www.oscss.org>
  \version 2.1.0
  \date  03/12/10, 21:53
  \author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  \encode UTF-8
  \ingroup content
  \brief display form for choose neswletters and subscribe
*/
$account = $page->_call('customer','the_customer');
?>
<div id="accountNewsLetters">

  <h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_4; ?></h2>

  <?php echo tep_draw_form('account_newsletter', tep_href_link(FILENAME_ACCOUNT, 'action=newsletters', 'SSL')); ?>

    <fieldset class="account">
      <legend><?php echo MY_NEWSLETTERS_TITLE; ?></legend>

      <p>
      <?php echo tep_draw_hidden_field('action', 'process'); ?>
        <label for="newsletter_general" title="<?php echo MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION; ?>"><?php echo MY_NEWSLETTERS_GENERAL_NEWSLETTER; ?></label>
            <?php echo tep_draw_checkbox_field('newsletter_general', 'newsletter_general', '1', $account['customers_newsletter'], 'onclick="checkBox(\'newsletter_general\')"'); ?>
      </p>

      <br />

      <p>
        <label for="newsletter_product_notification" title="<?php echo MY_NEWSLETTERS_GENERAL_P_NOTIFICATION_DESCRIPTION; ?>"><?php echo MY_NEWSLETTERS_GENERAL_P_NOTOFICATIONS; ?></label>
          <?php echo tep_draw_checkbox_field('newsletter_product_notification', 'newsletter_product_notification', '1', $account['global_product_notifications'], 'onclick="checkBox(\'newsletter_general\')"'); ?>
      </p>

      <br />

      <p><?php echo MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION; ?></p>
      <p class="formBt"><input type="submit" class="submitBt" value="Mise &agrave; jour"  /></p>
    </fieldset>

    </form>

    <div class="navBt">
     <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' .IMAGE_BUTTON_BACK. '</a>'; ?>
    </div>

</div>