本文整理汇总了PHP中get_categories_tree_pro函数的典型用法代码示例。如果您正苦于以下问题:PHP get_categories_tree_pro函数的具体用法?PHP get_categories_tree_pro怎么用?PHP get_categories_tree_pro使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_categories_tree_pro函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: define
* 特产专区文件,与首页更多特产链接
* ============================================================================
* * 版权所有 2005-2014 广州新泛联数码有限公司,并保留所有权利。
* 网站地址: http://www..com;
* ----------------------------------------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
* 使用;不允许对程序代码以任何形式任何目的的再发布。
* ============================================================================
* $Author: liubo $
* $Id: auction.php 17217 2011-01-19 06:29:08Z liubo $
*/
define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
include dirname(__FILE__) . '/includes/cls_json.php';
$json = new JSON();
$smarty->assign('categories_pro', get_categories_tree_pro());
// 分类树加强版/* 周改 */
$smarty->assign('navigator_list', get_navigator($ctype, $catlist));
//自定义导航栏
$smarty->assign('helps', get_shop_help());
// 网店帮助
$act = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : '';
//echo 'bbb'.$act;
//echo ROOT_PATH;
/*------------------------------------------------------ */
//-- 初始化special_product.dwt页面
/*------------------------------------------------------ */
$page_items = 3;
//每页需要显示的数据题目数量
if ($act == '') {
//get_special_goods(6);
开发者ID:dlpc,项目名称:ecshop,代码行数:31,代码来源:special_product.php
示例2: build_uri
$arr[$goods_id]['goods_id'] = $goods_id;
$arr[$goods_id]['url'] = build_uri('goods', array('gid' => $goods_id), $row['goods_name']);
$arr[$goods_id]['goods_name'] = $row['goods_name'];
$arr[$goods_id]['comments_number'] = $row['comments_number'];
$arr[$goods_id]['sales_volume'] = $row['sales_volume'];
/* 折扣节省计算 by ecmoban start */
if ($row['market_price'] > 0) {
$discount_arr = get_discount($row['goods_id']);
//函数get_discount参数goods_id
}
$arr[$goods_id]['zhekou'] = $discount_arr['discount'];
//zhekou
$arr[$goods_id]['jiesheng'] = $discount_arr['jiesheng'];
//jiesheng
/* 折扣节省计算 by ecmoban end */
$GLOBALS['smarty']->assign('categories_pro', get_categories_tree_pro());
// 分类树加强版/* 周改 */
$arr[$goods_id]['shop_price'] = price_format($row['shop_price']);
$arr[$goods_id]['rank_price'] = price_format($row['rank_price']);
$arr[$goods_id]['goods_weight'] = intval($row['goods_weight']) > 0 ? ceil($row['goods_weight']) . $_LANG['kilogram'] : ceil($row['goods_weight'] * 1000) . $_LANG['gram'];
$arr[$goods_id]['goods_thumb'] = get_image_path($row['goods_id'], $row['goods_thumb'], true);
$arr[$goods_id]['goods_brief'] = $row['goods_brief'];
$arr[$goods_id]['brand_name'] = $row['brand_name'];
$arr[$goods_id]['properties'][$row['attr_id']]['name'] = $row['attr_name'];
if (!empty($arr[$goods_id]['properties'][$row['attr_id']]['value'])) {
$arr[$goods_id]['properties'][$row['attr_id']]['value'] .= ',' . $row['attr_value'];
} else {
$arr[$goods_id]['properties'][$row['attr_id']]['value'] = $row['attr_value'];
}
if (!isset($arr[$goods_id]['comment_rank'])) {
$arr[$goods_id]['comment_rank'] = isset($cmt[$goods_id]) ? ceil($cmt[$goods_id]['cmt_rank']) : 0;
开发者ID:GYWang1983,项目名称:fruit,代码行数:31,代码来源:compare.php
示例3: htmlspecialchars
$smarty->assign('ur_here', $position['ur_here']);
// 当前位置
/* meta information */
$smarty->assign('keywords', htmlspecialchars($_CFG['shop_keywords']));
$smarty->assign('description', htmlspecialchars($_CFG['shop_desc']));
$smarty->assign('flash_theme', $_CFG['flash_theme']);
// Flash轮播图片模板
$smarty->assign('feed_url', $_CFG['rewrite'] == 1 ? 'feed.xml' : 'feed.php');
// RSS URL
$smarty->assign('categories', get_categories_tree());
// 分类树
/* 限制五个 */
//if(agency_id() != 190) 内网测试用的190这个账号
//if(agency_id() != 345 ) //大学城代理商
//{
$cate = get_categories_tree_pro();
$i = 1;
foreach ($cate as $k => $v) {
if ($i <= 6) {
$cate_arr[$k] = $cate[$k];
}
$i++;
}
$smarty->assign('categories_pro', $cate_arr);
// 分类树加强版
//}
//dump(count($cate_arr));
/**小图 start**/
/*打开页面即可执行,仅执行一次,随即删掉*/
for ($i = 1; $i <= $_CFG['auction_ad']; $i++) {
$ad_arr .= "'c" . $i . ",";
开发者ID:dlpc,项目名称:ecshop,代码行数:31,代码来源:index.php
示例4: show_message
/**
* 显示一个提示信息
*
* @access public
* @param string $content
* @param string $link
* @param string $href
* @param string $type 信息类型:warning, error, info
* @param string $auto_redirect 是否自动跳转
* @return void
*/
function show_message($content, $links = '', $hrefs = '', $type = 'info', $auto_redirect = true)
{
assign_template();
$msg['content'] = $content;
if (is_array($links) && is_array($hrefs)) {
if (!empty($links) && count($links) == count($hrefs)) {
foreach ($links as $key => $val) {
$msg['url_info'][$val] = $hrefs[$key];
}
$msg['back_url'] = $hrefs['0'];
}
} else {
$link = empty($links) ? $GLOBALS['_LANG']['back_up_page'] : $links;
$href = empty($hrefs) ? 'javascript:history.back()' : $hrefs;
$msg['url_info'][$link] = $href;
$msg['back_url'] = $href;
}
$GLOBALS['smarty']->assign('categories_pro', get_categories_tree_pro());
// 分类树加强版/* 周改 */
$msg['type'] = $type;
$position = assign_ur_here(0, $GLOBALS['_LANG']['sys_msg']);
$GLOBALS['smarty']->assign('page_title', $position['title']);
// 页面标题
$GLOBALS['smarty']->assign('ur_here', $position['ur_here']);
// 当前位置
if (is_null($GLOBALS['smarty']->get_template_vars('helps'))) {
$GLOBALS['smarty']->assign('helps', get_shop_help());
// 网店帮助
}
$GLOBALS['smarty']->assign('auto_redirect', $auto_redirect);
$GLOBALS['smarty']->assign('message', $msg);
$GLOBALS['smarty']->display('message.dwt');
exit;
}
开发者ID:GYWang1983,项目名称:fruit,代码行数:45,代码来源:lib_main.php
示例5: assign_template
function assign_template($ctype = '', $catlist = array())
{
global $smarty;
$smarty->assign('image_width', $GLOBALS['_CFG']['image_width']);
$smarty->assign('image_height', $GLOBALS['_CFG']['image_height']);
$smarty->assign('points_name', $GLOBALS['_CFG']['integral_name']);
$smarty->assign('qq', explode(',', $GLOBALS['_CFG']['qq']));
$smarty->assign('ww', explode(',', $GLOBALS['_CFG']['ww']));
$smarty->assign('ym', explode(',', $GLOBALS['_CFG']['ym']));
$smarty->assign('msn', explode(',', $GLOBALS['_CFG']['msn']));
$smarty->assign('skype', explode(',', $GLOBALS['_CFG']['skype']));
$smarty->assign('stats_code', $GLOBALS['_CFG']['stats_code']);
$smarty->assign('copyright', sprintf($GLOBALS['_LANG']['copyright'], date('Y'), $GLOBALS['_CFG']['shop_name']));
$smarty->assign('shop_name', $GLOBALS['_CFG']['shop_name']);
$smarty->assign('service_email', $GLOBALS['_CFG']['service_email']);
$smarty->assign('service_phone', $GLOBALS['_CFG']['service_phone']);
$smarty->assign('shop_address', $GLOBALS['_CFG']['shop_address']);
$smarty->assign('subscribe_url', $GLOBALS['_CFG']['subscribe_url']);
$smarty->assign('licensed', license_info());
$smarty->assign('hhs_version', VERSION);
$smarty->assign('icp_number', $GLOBALS['_CFG']['icp_number']);
$smarty->assign('username', !empty($_SESSION['user_name']) ? $_SESSION['user_name'] : '');
$smarty->assign('category_list', cat_list(0, 0, true, 2, false));
$smarty->assign('catalog_list', cat_list(0, 0, false, 1, false));
$smarty->assign('navigator_list', get_navigator($ctype, $catlist));
//自定义导航栏
$smarty->assign('categories_pro', get_categories_tree_pro());
$smarty->assign('helps', get_shop_help());
$smarty->assign('abouts', get_shop_about());
$smarty->assign('subscribe_url', $GLOBALS['_CFG']['subscribe_url']);
$smarty->assign('qr_code', $GLOBALS['_CFG']['qr_code']);
if (!empty($GLOBALS['_CFG']['search_keywords'])) {
$searchkeywords = explode(',', trim($GLOBALS['_CFG']['search_keywords']));
} else {
$searchkeywords = array();
}
$smarty->assign('searchkeywords', $searchkeywords);
}
开发者ID:shiruolin,项目名称:hzzshop,代码行数:38,代码来源:lib_main.php
注:本文中的get_categories_tree_pro函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论