<?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  16/09/10, 21:57
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
*/
?>
<div id="tellAfriend">
  <?php $page->messageStack->_draw('friend');?>

  <h2 class="content title <?php echo $language ;?>"><?php echo sprintf(HEADING_TITLE, tep_get_products_name($_GET['products_id'], $languages_id)); ?></h2>


  <p class="notice"><?php echo FORM_REQUIRED_INFORMATION; ?></p>

  <?php echo tep_draw_form('email_friend', tep_href_link(FILENAME_TELL_A_FRIEND, 'action=process&amp;products_id=' . $_GET['products_id'])); ?>

    <fieldset class="tellaFriend">
      <legend><?php echo FORM_TITLE_CUSTOMER_DETAILS; ?></legend>

      <p>
        <label for="tellafriendUrname"><?php echo FORM_FIELD_CUSTOMER_NAME; ?></label>
        <?php echo tep_draw_input_field('from_name','tellafriendUrname'); ?>
      </p>

      <p>
        <label for="tellafriendUremail"><?php echo FORM_FIELD_CUSTOMER_EMAIL; ?></label>
        <?php echo tep_draw_input_field('from_email_address','tellafriendUremail'); ?>
      </p>

    </fieldset>

    <fieldset class="tellaFriend">
      <legend><?php echo FORM_TITLE_FRIEND_DETAILS; ?></legend>

      <p>
        <label for="name"><?php echo FORM_FIELD_FRIEND_NAME; ?></label>
        <?php echo tep_draw_input_field('to_name','name') . '&nbsp;<span class="notice">' . ENTRY_FIRST_NAME_TEXT . '</span>'; ?>
      </p>

      <p>
        <label for="mail"><?php echo FORM_FIELD_FRIEND_EMAIL; ?></label>
        <?php echo tep_draw_input_field('to_email_address','mail') . '&nbsp;<span class="notice">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>'; ?>
      </p>

      <p>
        <label for="tellafriendMessage"><?php echo FORM_TITLE_FRIEND_MESSAGE; ?></label>
        <?php echo tep_draw_textarea_field('message', 'tellafriendMessage', 40, 8); ?>
      </p>

    </fieldset>

    <p class="submitBt ieExtractFieldset">
      <input class="submitBt" type="submit" value="<?php echo IMAGE_BUTTON_CONTINUE; ?>"  />
    </p>
  </form>

  <div class="navBt">
    <?php echo '<a class="navBt" href="javascript: history.go(-1)">' . IMAGE_BUTTON_BACK . '</a>'; ?>
  </div>

</div>