<?php
/**
  @licence GPL 2005-2011  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  13/02/11, 11:14
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
*/
?>
<div id="contactUs">
  <?php $page->messageStack->_draw('contact');?>

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

  <?php  if (isset($_GET['action']) && ($_GET['action'] == 'success')) : ?>
    <div class="infoText"> <?php  tep_draw_txt_block('page_contact_us_success')  ?></div>

    <div class="navBt">
      <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_DEFAULT) . '">' .  IMAGE_BUTTON_CONTINUE . '</a>'; ?>
    </div>

  <?php else :?>
    <?php  tep_draw_txt_block('Page_contact_us')  ?>

    <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

    <fieldset>
      <?php if (!tep_session_is_registered('customer_id')):  ?>
        <p>
          <label for="name"><?php echo ENTRY_NAME; ?></label>
          <?php echo tep_draw_input_field('name','name'); ?>
        </p>

        <p>
          <label for="email"><?php echo ENTRY_EMAIL; ?></label>
          <?php echo tep_draw_input_field('email','email'); ?>
        </p>
      <?php endif; ?>
        <p>
          <label for="enquiry"><?php echo ENTRY_ENQUIRY; ?></label>
          <?php echo tep_draw_textarea_field('enquiry', 'enquiry', '48', '15'); ?>
        </p>

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

    </fieldset>

    </form>
  <?php endif; ?>

</div>