????

Your IP : 216.73.216.174


Current Path : /home2/morganrand/www/store/includes/
Upload File :
Current File : /home2/morganrand/www/store/includes/header.php

<?php
/*
  $Id$

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

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  if ($messageStack->size('header') > 0) {
    echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';
  }
?>

<div id="header" class="grid_24">
  <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div>


    <div id="headerLinks">
        <?php 
		
		if (tep_session_is_registered('customer_id')) {
		$customer_name_query = tep_db_query("select `customers_firstname` from " . TABLE_CUSTOMERS . " where `customers_id` = ' $customer_id'");
		$customer_name = tep_db_fetch_array($customer_name_query);
		//echo $customer_name['customers_firstname'];	
		$headlinks .= 'Welcome'.' '.'<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . $customer_name['customers_firstname'] . ' </a>|' ;
		  }else{
		  
			$headlinks .= '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"> Login </a> |' .
              '    <a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"> Register </a> |';
		  
		  }
		  $headlinks .=               
              '    <a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '"> Cart' . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : '') . ' </a> |' ;
		if (tep_session_is_registered('customer_id')) {
		  $headlinks .=    '<a href="' . tep_href_link(FILENAME_WISHLIST, '', 'SSL') . '"> Wishlist </a> |';
		  }else{
		  $headlinks .=    '<a href="' . tep_href_link(FILENAME_LOGIN, 'action=wishlist', 'SSL') . '"> Wishlist </a> |';
		  }
          $headlinks .=     '    <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"> Checkout </a>' ;
		  if (tep_session_is_registered('customer_id')) {
			$headlinks .= '|    <a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"> Log Off </a>' ;
		  }
		  $headlinks .= '&nbsp';
		  echo $headlinks;
		?>
		<h1 style="margin-top:3px;">Call 1.888.294.4910 &nbsp</h1>
        Monday to Friday - 10am to 9pm
    </div>

</div>

  <div id="headerShortcuts">
<?php
 /* echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) .
       tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) .
       tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

  if (tep_session_is_registered('customer_id')) {
    echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL'));
  }*/
?>
  </div>

  <!--<script type="text/javascript">
    //$("#headerShortcuts").buttonset();
  </script>-->


<!-- add menu dec 13 -->
<div id="subtopbar">
<div id="listcontainer">

<ul><li><?php echo '<a href="' . tep_href_link('about_product.php') . '">' . 'What Are Wanderfuls?' . '</a>' ; ?></li>
<li><?php echo '<a href="' . tep_href_link('pompoms.php') . '">' . 'Shop By Color' . '</a>' ; ?>

<ul style="display:none;">
		<li style="margin-top:-2px;"><?php echo '<a href="' . tep_href_link('pompoms.php') . '">' . 'See all colors>>' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=69')  . '">' . 'Aqua' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=66')  . '">' . 'Azalea' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=67')  . '">' . 'Baby Blue' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=68')  . '">' . 'Baby Pink' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=56')  . '">' . 'Black' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=70')  . '">' . 'Burgundy' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=78')  . '">' . 'Coral' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=71')  . '">' . 'Cornflower' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=57')  . '">' . 'Gold' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=51')  . '">' . 'Green' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=72')  . '">' . 'Grey' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=73')  . '">' . 'Hot Pink' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=82')  . '">' . 'Iridescent White' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=74')  . '">' . 'Ivory' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=75')  . '">' . 'Lavender' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=77')  . '">' . 'Lime' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=76')  . '">' . 'Navy' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=53')  . '">' . 'Orange' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=55')  . '">' . 'Purple' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=48')  . '">' . 'Red' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=80')  . '">' . 'Royal Blue' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=58')  . '">' . 'Silver' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=79')  . '">' . 'Teal' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=81')  . '">' . 'Turquoise' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=49')  . '">' . 'White' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=52')  . '">' . 'Yellow' . '</a>' ; ?></li>
    </ul>
	
</li>
<li>Shop by Event<ul>
		<li style="margin-top:-2px;"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=61')  . '">' . 'Anniversaries' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=39')  . '">' . 'Baby Showers' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=90')  . '">' . 'Baptism' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=62')  . '">' . 'BarBatMitzvah' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=40')  . '">' . 'Birthdays' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=84')  . '">' . 'Bridal Showers' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=89')  . '">' . 'Christening' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=87')  . '">' . 'Communion' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=88')  . '">' . 'Confirmation' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=83')  . '">' . 'Corporate Events' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=41')  . '">' . 'Graduation' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=64')  . '">' . 'Holidays' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=93')  . '">' . 'Military Events' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=86')  . '">' . 'Quinceanera' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=91')  . '">' . 'Prom' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=85')  . '">' . 'Retirement' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=92')  . '">' . 'School Reunion' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=65')  . '">' . 'Sports' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=63')  . '">' . 'Sweet 16' . '</a>' ; ?></li>
		<li><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=38')  . '">' . 'Weddings' . '</a>' ; ?></li></ul>
</li>
<li><?php echo '<a href="' . tep_href_link('custom_design.php') . '">' . 'Custom Design' . '</a>' ; ?></li>
<li><?php echo '<a href="' . tep_href_link('gallery.php') . '">' . 'Gallery' . '</a>' ; ?></li>
<li><?php echo '<a href="' . tep_href_link('questions.php') . '">' . 'Questions' . '</a>' ; ?></li>
<li style="margin-right:0px;"><?php echo '<a href="' . tep_href_link('testimonial.php') . '">' . 'Why our customers love us' . '</a>' ; ?></li>
</ul>
</div>

</div>
<!-- add menu dec 13 end -->

<div class="grid_24 ui-widget infoBoxContainer">
  <div id="crumbs"><?php echo '&nbsp;&nbsp;' . $breadcrumb->trail(' &raquo; '); ?></div>
</div>
<div id="searchbox">
<?php //echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="100" style="width: ' . (140) . 'px"') . ' ' . tep_hide_session_id() .'<input type="submit" value="" name="button" id="button" class="searchbutton" />' . '</form>';
?>
<font color="CC3366" style="display:none;"><b>New! Use Online only Coupon SAVE10 </b></font>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="100" style="width: ' . (140) . 'px"') . ' ' . tep_hide_session_id() .'<input class="btn_wishlist" style="border:0px solid #8F8C8D !important; padding:3px 5px; border-radius:4px !important; cursor:pointer;" type="submit" name="Submit" value="Search">' . '</form>'; 

?>
</div>

<?php
  if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerError">
    <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
  </tr>
</table>
<?php
  }

  if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerInfo">
    <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
  </tr>
</table>
<?php
  }
?>