[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_whats_new.php

Zen Cart 源代码 tpl_whats_new.php




下载文件

文件名: tpl_whats_new.php
文件类型: PHP文件
文件大小: 1.45 KiB
MD5: 578b79916d0309e1d17bb7a4e5622a21

tpl_whats_new.php - 关闭高亮
  1. <?php
  2. /**
  3.  * Side Box Template
  4.  *
  5.  * @package templateSystem
  6.  * @copyright Copyright 2003-2011 Zen Cart Development Team
  7.  * @copyright Portions Copyright 2003 osCommerce
  8.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  9.  * @version $Id: tpl_whats_new.php 18698 2011-05-04 14:50:06Z wilt $
  10.  */
  11.   $content = "";
  12.   $content .= '<div class="sideBoxContent centeredContent">';
  13.   $whats_new_box_counter = 0;
  14.   while (!$random_whats_new_sidebox_product->EOF) {
  15.     $whats_new_box_counter++;
  16.     $whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']);
  17.     $content .= "\n" . '  <div class="sideBoxContentItem">';
  18.     $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
  19.     $content .= '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a>';
  20.     $content .= '<div>' . $whats_new_price . '</div>';
  21.     $content .= '</div>';
  22.     $random_whats_new_sidebox_product->MoveNextRandom();
  23.   }
  24.   $content .= '</div>' . "\n";
  25.  


cron