[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 tpl_main_page.php

Zen Cart 源代码 tpl_main_page.php




下载文件

文件名: tpl_main_page.php
文件类型: PHP文件
文件大小: 5.36 KiB
MD5: e93220db9363ddcdfc03cf2ed8dda6c9

tpl_main_page.php - 关闭高亮
  1. <?php
  2. /**
  3. * Template designed by 12leaves.com
  4. * 12leaves.com - Free ecommerce templates and design services
  5. *
  6. * Common Template
  7. *
  8. * @package languageDefines
  9. * @copyright Copyright 2009-2010 12leaves.com
  10. * @copyright Copyright 2003-2007 Zen Cart Development Team
  11. * @copyright Portions Copyright 2003 osCommerce
  12. * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  13. * @version $Id: tpl_main_page.php 7085 2007-09-22 04:56:31Z ajeh $
  14. */
  15.  
  16. // the following IF statement can be duplicated/modified as needed to set additional flags
  17.   if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
  18.     $flag_disable_right = true;
  19.   }
  20.  
  21.  
  22.   $header_template = 'tpl_header.php';
  23.   $footer_template = 'tpl_footer.php';
  24.   $left_column_file = 'column_left.php';
  25.   $right_column_file = 'column_right.php';
  26.   $body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
  27. ?>
  28. <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
  29. <div id="mainWrapper">
  30. <?php
  31.  /**
  32.   * prepares and displays header output
  33.   *
  34.   */
  35.   if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
  36.     $flag_disable_header = true;
  37.   }
  38.   require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
  39.  
  40. <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
  41.   <tr>
  42. <?php
  43. if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  44.   // global disable of column_left
  45.   $flag_disable_left = true;
  46. }
  47. if (!isset($flag_disable_left) || !$flag_disable_left) {
  48. ?>
  49.  
  50.  <td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
  51. <?php
  52.  /**
  53.   * prepares and displays left column sideboxes
  54.   *
  55.   */
  56. ?>
  57. <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>
  58. <?php
  59. }
  60. ?>
  61.     <td id="columnCenter" valign="top">
  62. <!-- bof  breadcrumb -->
  63. <?php
  64.     if ((DEFINE_BREADCRUMB_STATUS == '1' || DEFINE_BREADCRUMB_STATUS == '2') && ($this_is_home_page != '1')) { ?>
  65.     <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
  66. <?php } ?>
  67. <!-- eof breadcrumb -->
  68.  
  69. <?php
  70.   if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
  71.     if ($banner->RecordCount() > 0) {
  72. ?>
  73. <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
  74. <?php
  75.     }
  76.   }
  77. ?>
  78.  
  79. <!-- bof upload alerts -->
  80. <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
  81. <!-- eof upload alerts -->
  82.  
  83. <?php
  84.  /**
  85.   * prepares and displays center column
  86.   *
  87.   */
  88.  require($body_code); ?>
  89.  
  90. <?php
  91.   if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
  92.     if ($banner->RecordCount() > 0) {
  93. ?>
  94. <div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
  95. <?php
  96.     }
  97.   }
  98. ?></td>
  99.  
  100. <?php
  101. //if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' && $_SESSION['customers_authorization'] != 0)) {
  102. if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  103.   // global disable of column_right
  104.   $flag_disable_right = true;
  105. }
  106. if (!isset($flag_disable_right) || !$flag_disable_right) {
  107. ?>
  108. <td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">
  109. <?php
  110.  /**
  111.   * prepares and displays right column sideboxes
  112.   *
  113.   */
  114. ?>
  115. <div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td>
  116. <?php
  117. }
  118. ?>
  119.   </tr>
  120. </table>
  121.  
  122. <?php
  123.  /**
  124.   * prepares and displays footer output
  125.   *
  126.   */
  127.   if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
  128.     $flag_disable_footer = true;
  129.   }
  130.   require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
  131. ?>
  132.  
  133. </div>
  134. <!--bof- parse time display -->
  135. <?php
  136.   if (DISPLAY_PAGE_PARSE_TIME == 'true') {
  137. ?>
  138. <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
  139. <?php
  140.   }
  141. ?>
  142. <!--eof- parse time display -->
  143. <!--bof- banner #6 display -->
  144. <?php
  145.   if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
  146.     if ($banner->RecordCount() > 0) {
  147. ?>
  148. <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
  149. <?php
  150.     }
  151.   }
  152. ?>
  153. <!--eof- banner #6 display -->
  154. </body>


cron