[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/templates/aabox/ -> 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  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  14  <?php require (DIR_WS_INCLUDES . 'meta_tags.php'); ?>
  15  <title><?php echo META_TAG_TITLE; ?></title>
  16  <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  17  <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
  18  <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
  19  <?php if (bts_select('stylesheets', $PHP_SELF)) { // if a specific stylesheet exists for this page it will be loaded ?>
  20  <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheets', $PHP_SELF)); // BTSv1.5 ?>">

  21  
  22  <?php } ?>
  23  <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>">

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

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

  26  
  27  <link rel="stylesheet" type="text/css" href="<?php echo DIR_WS_TEMPLATES; ?>coolmenu.css">
  28  <script language="javascript" type="text/javascript">
  29  function CVVPopUpWindow(url) {
  30      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')
  31  }
  32  </script>
  33  <?php require ('includes/javascript/form_check.js.php'); ?>
  34  <?php if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) { require(DIR_WS_JAVASCRIPT . basename($javascript)); } ?>
  35   <!-- coolMenu //-->
  36   <?php
  37   if (DISPLAY_DHTML_MENU == 'CoolMenu') {
  38       echo '<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/coolMenu.js"></SCRIPT>';
  39   }
  40   ?>
  41   <!-- coolMenu_eof //-->
  42  <?php
  43      //// BEGIN:  Added for Dynamic MoPics v3.000

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

  46  
  47  <script language="javascript" type="text/javascript"><!--
  48  	function popupImage(url, imageHeight, imageWidth) {
  49          var newImageHeight = (parseInt(imageHeight) + 40);
  50          var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
  51          var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));
  52  
  53          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);
  54  
  55          imageWindow.moveTo(xPos, yPos);
  56          imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));
  57  
  58          if (window.focus) {
  59              imageWindow.focus();
  60          }
  61      }
  62  //--></script>

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

  65  ?>
  66  </head>
  67  <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
  68   <!-- coolMenu //-->
  69   <?php
  70   if (DISPLAY_DHTML_MENU == 'CoolMenu') {
  71       require (DIR_WS_INCLUDES . 'coolmenu.php');
  72   }
  73   ?>
  74   <!-- coolMenu_eof //-->
  75  <!-- All TS references added by TemplateShopper.com November 2003
  76  TS: 750 pixel centered table for all pages of store -->
  77  <table align="center" width="750" border="0"  cellpadding="0" cellspacing="0">
  78  
  79    <tr>
  80      <td>
  81  <!-- TS Remove 3 lines above and three closing tags at end to have 100% width store but watch graphics! Also remove center table -->
  82  <!-- warnings //-->
  83  <?php require (DIR_WS_INCLUDES . 'warnings.php'); ?>
  84  <!-- warning_eof //-->
  85  <?php
  86  // include i.e. template switcher in every template

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

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

  90  if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {
  91  ?>
  92  <!-- header //-->
  93  <table border="0" width="100%" cellspacing="0" cellpadding="0">
  94    <tr class="header">
  95      <td width="750"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'OSCMAX_top.jpg', 'osCommerce taken to the max!') . '</a>'; ?></td>
  96      </tr>
  97  </table>
  98  <table border="0" width="100%" cellspacing="0" cellpadding="0">
  99    <tr class="headerNavigation">
 100      <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
 101      <td  align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>
 102    </tr>
 103    <!-- TS added lower header cell -->
 104    <tr class="headerNavigation">
 105      <td colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'OSCMAX_top_low.jpg', 'osCMax v1.8 - Power e-commerce') . '</a>'; ?></td>
 106      </tr>
 107      <!-- TSend of lower header cell remove above <tr> to </tr> to remove this section -->
 108  </table>
 109  <!-- header_eof //-->
 110  <?php
 111  }
 112  ?>
 113  <!-- body //-->
 114  <table background="images/OSCMAX_box_bg.jpg" border="0" width="100%" cellspacing="0" cellpadding="2">
 115    <tr>
 116      <td width="<?php echo BOX_WIDTH; ?>" valign="top">
 117              <table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
 118                          
 119  <?php
 120  // Hide column_left.php if not to show

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

 125            <!-- left_navigation_eof //-->
 126  <?php
 127  }
 128  ?>
 129                  </table>
 130      </td>
 131  <!-- content //-->
 132      <td width="100%" valign="top">
 133                  <!-- TS table added to restrict content in center box  -->
 134                      <table width="480" border="0" align="center" cellpadding="0" cellspacing="0">
 135                            <tr>
 136                                      <td align="center">
 137                                      <?php
 138       require (bts_select ('content')); // BTSv1.5

 139                                      ?>
 140                                      </td>
 141                            </tr>
 142                      </table>
 143                      <!-- TS end table for center box area -->
 144     </td>
 145  <!-- content_eof //-->
 146     <td width="<?php echo BOX_WIDTH; ?>" valign="top">
 147                 <table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
 148  <?php
 149  // Hide column_left.php if not to show

 150    if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF =='false') {
 151  ?>                                
 152  <!-- right_navigation //-->
 153    <?php require(bts_select('column', 'column_right.php')); // BTSv1.5 ?>

 154  <!-- right_navigation_eof //-->
 155  <?php
 156  }
 157  ?>           
 158              </table>
 159     </td>
 160   </tr>
 161  </table>
 162  <!-- body_eof //-->
 163  
 164  <?php
 165  // BOF Added: Down for Maintenance Hide footer.php if not to show

 166  if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_FOOTER_OFF =='false') {
 167  ?>
 168  <!-- footer //-->
 169    <?php require (DIR_WS_INCLUDES . 'counter.php'); ?>
 170  <table border="0" width="100%" cellspacing="0" cellpadding="0">
 171    <tr class="footer">
 172      <td class="footer">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>
 173      <td align="right" class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</td>
 174    </tr>
 175  </table>
 176  <table border="0" width="100%" cellspacing="0" cellpadding="0">
 177    <tr>
 178      <td align="center" background="images/OSCMAX_footer.jpg" class="smallText">
 179  <?php
 180  /*

 181    The following copyright announcement can only be

 182    appropriately modified or removed if the layout of

 183    the site theme has been modified to distinguish

 184    itself from the default osCommerce-copyrighted

 185    theme or the default osCMax copyrighted theme.

 186  

 187    Please leave this comment intact together with the

 188    following copyright announcement.

 189  */
 190  
 191    echo FOOTER_TEXT_BODY
 192  ?>
 193  
 194      <p>&nbsp;</p></td>
 195    </tr>
 196  </table>
 197  <?php
 198    if ($banner = tep_banner_exists('dynamic', 'footer')) {
 199  ?>
 200  
 201  <table border="0" width="100%" cellspacing="0" cellpadding="0">
 202    <tr>
 203      <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
 204    </tr>
 205  </table>
 206  <?php
 207    }
 208  ?>
 209  <!-- footer_eof //-->
 210  <?php
 211  }
 212  ?>
 213  <!-- TS closing tags of 750 pixel table -->
 214  </td>
 215    </tr>
 216  </table>
 217  </body>
 218  </html>


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