[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/templates/fallback/ -> main_page.tpl.php (source)

   1  <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
   2  <html <?php echo HTML_PARAMS;
   3    // BOF Separate Pricing Per Customer

   4      if(!tep_session_is_registered('sppc_customer_group_id')) {
   5      $customer_group_id = '0';
   6      } else {
   7       $customer_group_id = $sppc_customer_group_id;
   8      }
   9    // EOF Separate Pricing Per Customer

  10  ?>>
  11  
  12  <head>
  13  <script language="javascript" type="text/javascript">
  14  /********************************

  15  *  Addition for Authorize.net Consolidated

  16  *  by Austin519 - CVV PopUp Window

  17  *  If using a custom checkout_payment.php

  18  *  paste the following lines into your file

  19  ********************************/
  20  function CVVPopUpWindow(url) {
  21      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,left=150')
  22  }
  23  </script>
  24  
  25  <?php require (DIR_WS_INCLUDES . 'meta_tags.php'); ?>
  26  <title><?php echo META_TAG_TITLE; ?></title>
  27  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  28  <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>">
  29  <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>">
  30  <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  31  <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>">

  32  <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet-new.css')); // BTSv1.5 ?>">

  33  <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','print.css')); // BTSv1.5 ?>" media="print">

  34  <link rel="stylesheet" type="text/css" href="<?php echo DIR_WS_TEMPLATES; ?>coolmenu.css">
  35  <?php require ('includes/javascript/form_check.js.php'); ?>
  36  <?php if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) { require(DIR_WS_JAVASCRIPT . basename($javascript)); } ?>
  37   <!-- coolMenu //-->
  38   <?php
  39   if (DISPLAY_DHTML_MENU == 'CoolMenu') {
  40       echo '<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/coolMenu.js"></SCRIPT>';
  41   }
  42   ?>
  43   <!-- coolMenu_eof //-->
  44  <?php
  45      //// BEGIN:  Added for Dynamic MoPics v3.000

  46  ?>
  47  <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','dynamic_mopics.css')); // BTSv1.5 ?>">

  48  <script language="javascript" type="text/javascript"><!--
  49  	function popupImage(url, imageHeight, imageWidth) {
  50          var newImageHeight = (parseInt(imageHeight) + 40);
  51          var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
  52          var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));
  53  
  54          imageWindow = window.open(url,'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + imageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);
  55  
  56          imageWindow.moveTo(xPos, yPos);
  57          imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));
  58  
  59          if (window.focus) {
  60              imageWindow.focus();
  61          }
  62      }
  63  //--></script>

  64  <?php
  65      //// END:  Added for Dynamic MoPics v3.000

  66  ?>
  67  
  68  </head>
  69  <body>
  70   <!-- coolMenu //-->
  71   <?php
  72   if (DISPLAY_DHTML_MENU == 'CoolMenu') {
  73       require (DIR_WS_INCLUDES . 'coolmenu.php');
  74   }
  75   ?>
  76  <!-- coolMenu_eof //-->
  77  <!-- warnings //-->
  78  <?php require (DIR_WS_INCLUDES . 'warnings.php'); ?>
  79  <!-- warning_eof //-->
  80  <?php
  81  // include i.e. template switcher in every template

  82  if(bts_select('common', 'common_top.php')) include (bts_select('common', 'common_top.php')); // BTSv1.5

  83  // BOF Added: Down for Maintenance Hide header if not to show

  84  if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {
  85  ?>
  86  <!-- header //-->
  87  <table border="0" width="100%" cellspacing="0" cellpadding="0">
  88    <tr class="header">
  89      <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.gif', STORE_NAME) . '</a>'; ?></td>
  90      <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>&nbsp;&nbsp;</td>
  91    </tr>
  92  </table>
  93  <table border="0" width="100%" cellspacing="0" cellpadding="1">
  94    <tr class="headerNavigation">
  95      <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
  96      <td align="right" class="headerNavigation">&nbsp;|&nbsp;
  97        <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers
  98        { ?>
  99            <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?>
 100        </a> &nbsp;|&nbsp;
 101        <?php } ?>
 102  
 103        <?php if (!tep_session_is_registered('noaccount')) // DDB - PWA - 040622 - no display of account for PWA customers
 104        { ?>
 105            <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, 'my_account_f=1', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?>                        </a> &nbsp;|&nbsp;
 106        <?php } ?>
 107  
 108          <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
 109        &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?>&nbsp;|&nbsp;</a><a href="<?php echo tep_href_link(FILENAME_WISHLIST, '', 'SSL'); ?>" class="headerNavigation"><?php echo BOX_HEADING_CUSTOMER_WISHLIST; ?></a>&nbsp;</td>
 110    </tr>
 111  </table>
 112  <!-- header_eof //-->
 113  <?php
 114  }
 115  ?>
 116  <!-- body //-->
 117  <table border="0" width="100%" cellspacing="3" cellpadding="3">
 118    <tr>
 119      <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
 120  <?php
 121  // Hide Left Column if not to show

 122  if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_LEFT_OFF =='false') {
 123  ?>
 124  <!-- left_navigation //-->
 125  <?php require(bts_select('column', 'column_left.php')); // BTSv1.5 ?>

 126  <!-- left_navigation_eof //-->
 127  <?php
 128  }
 129  ?>
 130      </table></td>
 131  <!-- content //-->
 132      <td width="100%" valign="top"><?php
 133       require (bts_select ('content')); // BTSv1.5

 134    ?></td>
 135  <!-- content_eof //-->
 136      <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
 137  <?php
 138  // Hide column_left.php if not to show

 139  if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF =='false') {
 140  ?>                                
 141  <!-- right_navigation //-->
 142    <?php require(bts_select('column', 'column_right.php')); // BTSv1.5 ?>

 143  <!-- right_navigation_eof //-->
 144  <?php
 145  }
 146  ?>           
 147      </table></td>
 148    </tr>
 149  </table>
 150  <!-- body_eof //-->
 151  
 152  <?php
 153  // BOF Added: Down for Maintenance Hide footer.php if not to show

 154  if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_FOOTER_OFF =='false') {
 155  ?>
 156  <!-- footer //-->
 157    <?php require (DIR_WS_INCLUDES . 'counter.php'); ?>
 158  <table border="0" width="100%" cellspacing="0" cellpadding="1">
 159    <tr class="footer">
 160      <td class="footer">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>
 161      <td align="right" class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</td>
 162    </tr>
 163  </table>
 164  <br>
 165  <table border="0" width="100%" cellspacing="0" cellpadding="0">
 166    <tr>
 167      <td align="center" class="smallText">
 168  <?php
 169  /*

 170    The following copyright announcement can only be

 171    appropriately modified or removed if the layout of

 172    the site theme has been modified to distinguish

 173    itself from the default osCommerce-copyrighted

 174    theme.

 175  

 176    For more information please read the following

 177    Frequently Asked Questions entry on the osCommerce

 178    support site:

 179  

 180    http://oscdox.com/community.php/faq,26/q,50

 181  

 182    Please leave this comment intact together with the

 183    following copyright announcement.

 184  */
 185  
 186    echo FOOTER_TEXT_BODY
 187  ?>
 188      </td>
 189    </tr>
 190  </table>
 191  <?php
 192    if ($banner = tep_banner_exists('dynamic', '468x50')) {
 193  ?>
 194  <br>
 195  <table border="0" width="100%" cellspacing="0" cellpadding="0">
 196    <tr>
 197      <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
 198    </tr>
 199  </table>
 200  <?php
 201    }
 202  ?>
 203  <!-- footer_eof //-->
 204  <?php
 205  }
 206  ?>
 207  </body>
 208  </html>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7