
<?php
//
// +----------------------------------------------------------------------+
// |zen Open Source E-commerce                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen developers                          |
// |                                                                      |
// | http://www.zen-cart.com/index.php                              |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt. If you did            |
// | not receive a copy of the zen-cart license and are unable      |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.    |
// +----------------------------------------------------------------------+
// : $tpl_page_default.php
//
?>

<br><br>

<div class="centerColumn" id="contactUsDefault">
<style> .storeblock {background-color:white; .inputLabel:140px;} </style>
<?php echo zen_draw_form('contact_us', zen_href_link('mailinglist', 'action=send')); ?>

<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
<?php } ?>

<?php
  if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
?>

<div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>

<div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

<?php
  } else {
?>

<?php if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
<div id="contactUsNoticeContent" class="content">
<?php
/**
 * require html_define for the contact_us page
 */
 require($define_mailinglist);
?>
</div>
<?php } ?>

<?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>
adfasdfasdf

<?php /*
<fieldset id="contactUsForm">
<div class="cAlert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br class="clearBoth" />



<label style="width:130px" class="inputLabel" for="contactname"><?php echo 'Name'; ?></label>
<?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="cAlert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />

<label style="width:130px" class="inputLabel" for="email-address"><?php echo 'Email'; ?></label>
<?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="cAlert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />

<label style="width:130px" class="inputLabel" for="citystate"><?php echo 'City/State'; ?></label>
<?php echo zen_draw_input_field('citystate', '', ' size="40" id="citystate"') . '<span class="cAlert">'. '</span>'; ?>
<br class="clearBoth" />

<label style="width:130px" class="inputLabel" for="organization"><?php echo 'Band/Organization'; ?></label>
<?php echo zen_draw_input_field('organization', '', ' size="40" id="organization"') . '<span class="cAlert">' . '</span>'; ?>
<br class="clearBoth" />

<label style="width:160px" class="inputLabel" for="howdid"><?php echo 'How did you hear about us?'; ?></label>
<?php echo zen_draw_input_field('howdid', '', ' size="34"  id="howdid"') . '<span class="cAlert">' . '</span>'; ?>
<br class="clearBoth" />

<label for="enquiry"><?php echo 'Comments' . '<span class="cAlert">'  . '</span>'; ?></label>
<?php echo zen_draw_textarea_field('enquiry', '30', '7', '', 'id="enquiry"'); ?>

</fieldset>

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

*/ ?>

<?php
  }
?>
</form>
</div>