<?php

/**

* Common Template - tpl_main_page.php

*

* @version $Id: tpl_main_page.php 7085 2007-09-22 04:56:31Z ajeh $

*/

// the following IF statement can be duplicated/modified as needed to set additional flags

if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {

$flag_disable_right = true;

}

$header_template = 'tpl_header.php';

$footer_template = 'tpl_footer.php';

$left_column_file = 'column_left.php';

$right_column_file = 'column_right.php';

$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);

?>

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>><div class="rebaseWrap">

<?php

/**

* prepares and displays header output

*

*/

if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {

$flag_disable_header = true;

}

require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>

<div id="content"><div id="mainWrapper">

<?php

if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {

if ($banner->RecordCount() > 0) {

?>

<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>

<?php

}

}

?>

<!-- bof  breadcrumb -->

<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>

<div id="navBreadCrumb">

<ul><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?><br class="clearBoth" /></ul>

</div>

<?php } ?>

<!-- eof breadcrumb -->

<div class="content_main">

<div id="contentMainWrapper">

<div>

<?php

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'] == ''))) {

// global disable of column_left

$flag_disable_left = true;

}

$display_pages=array("shopping_cart","login","create_account","no_account","checkout","checkout_confirmation","checkout_success","account","account_history","account_history_info","account_edit","address_book","address_book_process","account_password","account_newsletters","wishlist","wishlist_email","wishlist_find","wishlists","wishlist_edit","wishlist_move","checkout_shipping_address","checkout_payment_address");

if(in_array($current_page_base,$display_pages)){

$flag_disable_left = true;

}

if (!isset($flag_disable_left) || !$flag_disable_left) {

?>

<div id="navColumnOne" class="columnLeft fl" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>"><?php

/**

* prepares and displays left column sideboxes

*

*/

?>

<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>">

<?php

$display_pages=array("about_us","privacy","faq","size_chart","site_map","shippinginfo","conditions","contact_us","discount_coupon","unsubscribe");

$column_box_default='tpl_box_default_left.php';

$column_width= '195px';

if(in_array($current_page_base,$display_pages)){

//这里加载边框逻辑,为了具有可控性,可能需要更多的逻辑

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php');

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/information.php');

}

else if($this_is_home_page||$current_page_base=="product_info")

{

switch($current_page_base){

case $this_is_home_page://对首页进行帅选判断

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/live_help.php');

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php');//好屌

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/recently_sold.php');

require(DIR_WS_MODULES . 'sideboxes/banner_box_all.php');

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/news_scroller.php');

break;

case "product_info"://对产品页的性侵害

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php');

//require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/best_sellers.php');

//require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/featured.php');

require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/recently_sold.php');

break;

default:

require(DIR_WS_MODULES . zen_get_module_directory('column_left.php'));

}

}

else

{

require(DIR_WS_MODULES . zen_get_module_directory('column_left.php'));

}

//require(DIR_WS_MODULES . zen_get_module_directory('column_left.php'));

?>

</div></div>

<?php

}

?>

<div class="secCenter clearfix"><?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>

<?php

/**

* prepares and displays center column

*

*/

require($body_code); ?></div>

<?php

//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)) {

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'] == ''))) {

// global disable of column_right

$flag_disable_right = true;

}

if (!isset($flag_disable_right) || !$flag_disable_right) {

?>

<div id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>"><?php

/**

* prepares and displays right column sideboxes

*

*/

?>

<div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>">

<?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?>

</div></div>

<?php

}

?>

</div>

</div>

</div>

</div>

<br class="clearBoth" /></div>

<?php

/**

* prepares and displays footer output

*

*/

if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {

$flag_disable_footer = true;

}

require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');

?>

</div>

<?php

if (DISPLAY_PAGE_PARSE_TIME == 'true') {

?>

<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>

<?php

}

?>

</div>

</body>

zencart 掉炸天的tpl_main_page.php的更多相关文章

  1. 凹凸曼的修改zencart 程序(经典!)

    ==================================================================================================== ...

  2. 把Wordpress集成到zen-cart里方法 各种修改 经典机制

    作者: 闻庭牛 | 分类: zen cart插件精解 | 浏览: 4 | 评论: 暂时没有评论 如果你的Zen-cart需要一个Blog来发布一些你的最新动态,可以试试Wordpress,并且用WOZ ...

  3. XidianOJ 1044 炸金花

    题目描述 炸金花是一个风靡全球的扑克游戏,不少人因为这个游戏发了家,而更多的人则输得倾家荡产.为了帮助赌徒们戒掉它,现在决定派你去写一个程序,帮助赌徒们更好的认识这个游戏. 炸金花在这里被简化成这样一 ...

  4. 把ZenCart在线商店搭建到本地

    前些日子,要给在线的zencart商店做一些小改动,需要安装一个插件.大家都知道,zencart有很多插件选用,兼容性也好坏不一,直接在正在运营的网站程序上修改,难免会影响到客户体验,出什么差错了代价 ...

  5. Zencart先生成订单后付款,类似淘宝后台修改订单价格

    Zencart 使用 Paypal 付款,会出现漏单的情况,即 paypal 已经收到客户的付款,但是网站后台没有客户的订单.导致 paypal 漏单的原因大致会是当客户跳转到Paypal 网站付款完 ...

  6. 优化のzencart URL &zenid=.....

    zencart URL后面带有一串&zenid=.....解决方案 发布时间:2013年3月16日 次浏览:106 经木木测试,此方法可用. ================= 最近一个客户的 ...

  7. zencart 具体页面调用规则: $body_code变量解析

    zencart $body_code变量解析 修改centerColumn 可以修改中间产品方框的大小 2.2.5 .BODY文件在这个文件生效 require($body_code) include ...

  8. zencart目录结构

    zencart目录结构 文件路径 注释 index.php 主文件 includes/templates/[custom template folder]/common/html_header.php ...

  9. 程序员肺被切掉一块还得去加班... 再谈“工作996,生病ICU”

    如题,为什么要说再谈“工作996,生病ICU”,因为996问题早已不是一个新问题,在我最近刚出版的新书<SOD框架“企业级”应用数据架构实战>写作期间,爆发了一次程序员“起义”,出现了一个 ...

随机推荐

  1. find文件后cp、rm

    复制: find <src-path> -name 'some names' -exec cp {} <dest-path> \; find <src-path> ...

  2. KMP算法类习题——字符串匹配

    Description For each prefix with length P of a given string S,if S[i]=S[i+P] for i in [0..SIZE(S)-p- ...

  3. 【转】PHP android ios相互兼容的AES加密算法

    APP项目用户密码传输一直没有用HTTPS,考虑到用户的隐私暂时先用AES对密码加密,以后也可以用于手机端与服务端加密交互. PHP的免费版phpAES项目,手机端解码各种不对. 好不容易找了PHP ...

  4. Docker学习笔记 — Docker私有仓库搭建【转载】

    标签: Docker 2015-03-10 21:08 24190人阅读 评论(0) 收藏 举报  分类: Docker(26)    目录(?)[+]   和Mavan的管理一样,Dockers不仅 ...

  5. QML之使用Loader加载QML组件

    呵呵,今晚是边看<裸婚时代>边敲代码,那电影看得...!钱真他妈不是个东西. 盼望Meego火起来. QML的Loader元素经常备用来动态加载QML组件.可以使用source属性或者so ...

  6. CLR 无法从 COM

    上下文 0x50ece80 转换为 COM 上下文 0x50ecf38,这种状态已持续 60 秒.拥有目标上下文/单元的线程很有可能执行的是非泵式等待或者在不发送 Windows 消息的情况下处理一个 ...

  7. 更改 android realtek的系统权限

    由于在 在删除系统的文件时候出现 Read-only file system,所以要获取权限. 推出shell adb mount mount -o rw,remount /system 就可以了

  8. css(非表格变成表格用)

    父元素:display:table: 子元素:display:table-cell:vertical-align:middle:

  9. 【dp】 比较经典的dp poj 1160

    转自http://blog.sina.com.cn/s/blog_5dd8fece0100rq7d.html [题目大意]:用数轴描述一条高速公路,有V个村庄,每一个村庄坐落在数轴的某个点上,需要选择 ...

  10. selenium2(WebDriver) API

    selenium2(WebDriver) API 作者:Glen.He出处:http://www.cnblogs.com/puresoul/  1.1  下载selenium2.0的包 官方downl ...