• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_promotion_info函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_promotion_info函数的典型用法代码示例。如果您正苦于以下问题:PHP get_promotion_info函数的具体用法?PHP get_promotion_info怎么用?PHP get_promotion_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_promotion_info函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: index

 public function index()
 {
     /*$ZhixiaCityTwoList=M('common_district')->where(array('level'=>2,'upid in (1,2,9,22)'))->select();
       foreach($ZhixiaCityTwoList as $k=>$v){
           $CIDList[]=$v['id'];
       }
       $CityThreeList=M('common_district')->where(array('level'=>3,'upid not in ('.implode(',',$CIDList).')'))->select();
       set_time_limit(0);
       foreach($CityThreeList as $k=>$v){
           //$name=str_replace(array('区','县'),'',$v['name']);
           $name=$v['name'];
           $KeyInfo=M('common_district')->where(array('`id` = '.$v['upid'].''))->find();
           $keyname=str_replace(array('区','县','省','市'),'',$KeyInfo['name']);
           $Url='http://localhost/'.U('Mongo/Index/Index').'&name='.urlencode($name).'&keyname='.urlencode($keyname);
           //echo file_get_contents($Url,);die;
           //header('Location:'.$Url);die;
           if(function_exists('file_get_contents')){
               $content=file_get_contents($Url);
           }else if(function_exists('curl_init')){
               $ch = curl_init();
               $timeout = 5;
               curl_setopt($ch, CURLOPT_URL, $Url);
               curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
               curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
               $content=curl_exec($ch);
               curl_close($ch);
           }else{
               $this->get_admin_msg($_SERVER['HTTP_REFERER'],"请开启CURL模块或者file_get_contents函数");
           }
           //echo $content;die;
       }die;*/
     $categories_tree = $this->get_categories_tree();
     $this->assign('categories', $categories_tree);
     // 分类树
     $navigator_list = $this->get_navigator($ctype, $catlist);
     $this->assign('navigator_list', $navigator_list);
     $category_list = $this->cat_list(0, 0, true, 2, false);
     $this->assign('category_list', $category_list);
     $promotion_info = get_promotion_info();
     $this->assign('promotion_info', $promotion_info);
     $this->assign('shop_notice', C('shop_notice'));
     $new_articles = index_get_new_articles();
     $this->assign('new_articles', $new_articles);
     // 最新文章
     $brand_list = get_brands();
     $this->assign('brand_list', $brand_list);
     $this->display();
 }
开发者ID:highestgoodlikewater,项目名称:ecshoptk,代码行数:48,代码来源:IndexController.class.php


示例2: get_shop_help

/*------------------------------------------------------ */
//$cache_id = $goods_id . '-' . $_SESSION['user_rank'].'-'.$_CFG['lang'];
//$cache_id = sprintf('%X', crc32($cache_id));
if (!$smarty->is_cached('goods.dwt', $cache_id)) {
    $smarty->assign('image_width', $_CFG['image_width']);
    $smarty->assign('image_height', $_CFG['image_height']);
    $smarty->assign('helps', get_shop_help());
    // 网店帮助
    $smarty->assign('id', $goods_id);
    $smarty->assign('type', 0);
    $smarty->assign('cfg', $_CFG);
    $smarty->assign('promotion', get_promotion_info($goods_id));
    //促销信息
    $smarty->assign('comment_percent', comment_percent($goods_id));
    //获取评分
    $smarty->assign('promotion_info', get_promotion_info());
    $goods = get_goods_info($goods_id);
    //获得商品的信息
    $bidrecord = get_goods_bid($goods_id);
    //获得投标记录
    //$repayrecord = get_goods_repay($goods_id);	//获得还款记录
    /* 获取所属大类的名称 */
    /*$sql = 'select a.cat_name from'.$ecs->table("category").' as a,'.$ecs->table("category").' as b where a.cat_id = b.parent_id and b.cat_id='.$goods["cat_id"];
      $goods_row = $db->getRow($sql);
      $goods_row_catname = $goods_row['cat_name'];*/
    if ($goods === false) {
        /* 如果没有找到任何记录则跳回到首页 */
        ecs_header("Location: ./\n");
        exit;
    } else {
        if ($goods['brand_id'] > 0) {
开发者ID:blowfishJ,项目名称:galaxyCode,代码行数:31,代码来源:goods.php


示例3: get_user_info

require_once QISHI_ROOT_PATH . 'include/fun_personal.php';
$user = get_user_info($_SESSION['uid']);
if ($user['status'] == "2") {
    exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall">
		    <tr>
				<td width="20" align="right"></td>
				<td class="ajax_app">
					您的账号处于暂停状态,请联系管理员设为正常后进行操作!
				</td>
		    </tr>
		</table>');
}
if ($act == "app") {
    $id = isset($_GET['id']) ? $_GET['id'] : exit("id 丢失");
    $jobs = app_get_jobs($id);
    $promotion = get_promotion_info($id, 5);
    $json = json_array($promotion["cp_json"]);
    if (empty($jobs) || empty($promotion)) {
        exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall">
			    <tr>
					<td width="20" align="right"></td>
					<td class="ajax_app">
						简历已失效!
					</td>
			    </tr>
			</table>');
    }
    $detail[] = "面试人数:" . $json["num"] . "<br>";
    $detail[] = "面试成功金额:" . $json["amount"] . "<br>";
    $detail[] = "招聘人数:" . $json["success_num"] . "<br>";
    $detail[] = "招聘成功金额:" . $json["success_amount"] . "<br>";
开发者ID:winiceo,项目名称:job,代码行数:31,代码来源:user_clue_jobs.php


示例4: get_promotion_info

             $properties['spe'][$skey_ecshop68]['values'][$sskey_ecshop68]['goods_attr_thumb'] = $db->getOne($sql_qq_qq87139667);
         }
     }
     if ($hahaha_zhyh) {
         $selected_first[$skey_ecshop68] = $hahaha_zhyh;
     }
     if ($sskey_www_ecshop68_com != '-1') {
         $properties['spe'][$skey_ecshop68]['values'][$sskey_www_ecshop68_com]['selected_key_ecshop68'] = "1";
     }
 }
 $smarty->assign('is_goods_page', 1);
 //echo '<pre>';
 //print_r($properties['spe']);
 //echo '</pre>';
 /* 代码增加_end  By  www.ecshop68.com */
 $smarty->assign('promotion', get_promotion_info($goods_id, $goods['supplier_id']));
 //促销信息
 $smarty->assign('specification', $properties['spe']);
 // 商品规格
 $smarty->assign('attribute_linked', get_same_attribute_goods($properties));
 // 相同属性的关联商品
 $smarty->assign('related_goods', $linked_goods);
 // 关联商品
 $smarty->assign('goods_article_list', get_linked_articles($goods_id));
 // 关联文章
 $smarty->assign('fittings', get_goods_fittings(array($goods_id)));
 // 配件
 $smarty->assign('rank_prices', get_user_rank_prices($goods_id, $shop_price));
 // 会员等级价格
 $smarty->assign('pictures', get_goods_gallery_attr_www_ecshop68_com($goods_id, $goods_attr_id));
 // 商品相册_修改 By www.ecshop68.com
开发者ID:firsteam,项目名称:falcons,代码行数:31,代码来源:goods.php


示例5: htmlspecialchars

    $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()); // 分类树
    $smarty->assign('helps',           get_shop_help());       // 网店帮助
    $smarty->assign('top_goods',       get_top10());           // 销售排行

    $smarty->assign('best_goods',      get_recommend_goods('best'));    // 推荐商品
    $smarty->assign('new_goods',       get_recommend_goods('new'));     // 最新商品
    $smarty->assign('hot_goods',       get_recommend_goods('hot'));     // 热点文章
    $smarty->assign('promotion_goods', get_promote_goods()); // 特价商品
    $smarty->assign('brand_list',      get_brands());
    $smarty->assign('promotion_info',  get_promotion_info()); // 增加一个动态显示所有促销信息的标签栏

    $smarty->assign('invoice_list',    index_get_invoice_query());  // 发货查询
    $smarty->assign('new_articles',    index_get_new_articles());   // 最新文章
    $smarty->assign('group_buy_goods', index_get_group_buy());      // 团购商品
    $smarty->assign('auction_list',    index_get_auction());        // 拍卖活动
    $smarty->assign('shop_notice',     $_CFG['shop_notice']);       // 商店公告

    /* 首页主广告设置 */
    $smarty->assign('index_ad',     $_CFG['index_ad']);
    if ($_CFG['index_ad'] == 'cus')
    {
        $sql = 'SELECT ad_type, content, url FROM ' . $ecs->table("ad_custom") . ' WHERE ad_status = 1';
        $ad = $db->getRow($sql, true);
        $smarty->assign('ad', $ad);
    }
开发者ID:sayi21cn,项目名称:ecshopAndEctouch,代码行数:31,代码来源:index.php


示例6: die

    }
    die($json->encode($res));
}
/*------------------------------------------------------ */
//-- PROCESSOR
/*------------------------------------------------------ */
$cache_id = $goods_id . '-' . $_SESSION['user_rank'] . '-' . $_CFG['lang'];
$cache_id = sprintf('%X', crc32($cache_id));
if (!$smarty->is_cached('goods.dwt', $cache_id)) {
    $smarty->assign('image_width', $_CFG['image_width']);
    $smarty->assign('image_height', $_CFG['image_height']);
    //$smarty->assign('helps',        get_shop_help()); // 网店帮助
    $smarty->assign('id', $goods_id);
    $smarty->assign('type', 0);
    $smarty->assign('cfg', $_CFG);
    $smarty->assign('promotion', get_promotion_info($goods_id));
    //促销信息
    //$smarty->assign('promotion_info', get_promotion_info());
    /* 获得商品的信息 */
    $goods = get_goods_info($goods_id);
    if ($goods === false) {
        /* 如果没有找到任何记录则跳回到首页 */
        ecs_header("Location: ./\n");
        exit;
    } else {
        if ($goods['brand_id'] > 0) {
            $goods['goods_brand_url'] = build_uri('brand', array('bid' => $goods['brand_id']), $goods['goods_brand']);
        }
        $shop_price = $goods['shop_price'];
        $linked_goods = get_linked_goods($goods_id);
        $goods['goods_style_name'] = add_style($goods['goods_name'], $goods['goods_name_style']);
开发者ID:GYWang1983,项目名称:fruit,代码行数:31,代码来源:goods.php


示例7: action_view

function action_view()
{
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    /* 取得参数:预售活动id */
    $pre_sale_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
    if ($pre_sale_id <= 0) {
        ecs_header("Location: pre_sale.php\n");
        exit;
    }
    /* 取得预售活动信息 */
    $pre_sale = pre_sale_info($pre_sale_id);
    if (empty($pre_sale)) {
        ecs_header("Location: pre_sale.php\n");
        exit;
    }
    // elseif ($pre_sale['is_on_sale'] == 0 || $pre_sale['is_alone_sale'] == 0)
    // {
    // header("Location: ./\n");
    // exit;
    // }
    /* 评价数量 */
    $pre_sale['comment_count'] = goods_comment_count($pre_sale['goods_id']);
    /* 累计销量 */
    $pre_sale['sale_count'] = goods_sale_count($pre_sale['goods_id']);
    /* 赠送积分 */
    $pre_sale['give_integral'] = $pre_sale['gift_integral'];
    /* 缓存id:语言,预售活动id,状态,(如果是进行中)当前数量和是否登录 */
    $cache_id = $_CFG['lang'] . '-' . $pre_sale_id . '-' . $pre_sale['status'];
    // 活动进行中
    if ($pre_sale['status'] == PSS_UNDER_WAY) {
        $cache_id = $cache_id . '-' . $pre_sale['valid_goods'] . '-' . intval($_SESSION['user_id'] > 0);
    }
    $cache_id = sprintf('%X', crc32($cache_id));
    /* 如果没有缓存,生成缓存 */
    if (!$smarty->is_cached('pre_sale_goods.dwt', $cache_id) || true) {
        $pre_sale['gmt_end_date'] = $pre_sale['end_date'];
        $smarty->assign('pre_sale', $pre_sale);
        /* 取得预售商品信息 */
        $goods_id = $pre_sale['goods_id'];
        $goods = get_goods_info($goods_id);
        if (empty($goods)) {
            ecs_header("Location: pre_sale.php\n");
            exit;
        }
        $goods['url'] = build_uri('goods', array('gid' => $goods_id), $goods['goods_name']);
        $goods = array_merge($goods, $pre_sale);
        $gift_integral = $pre_sale['gift_integral'];
        $goods['give_integral'] = $pre_sale['gift_integral'];
        // $parent_cat_id = get_parent_cat_id($goods['cat_id']);
        // $goods['child_cat'] = get_child_cat($parent_cat_id); // 相关分类
        // $goods['get_cat_brands'] = get_cat_brands($parent_cat_id);; // 同类品牌
        $smarty->assign('url', $_SERVER["REQUEST_URI"]);
        $smarty->assign('volume_price', $goods_volume_price);
        $smarty->assign('goods_id', $goods['goods_id']);
        $smarty->assign('promote_end_time', $goods['gmt_end_time']);
        $smarty->assign('helps', get_shop_help());
        // 网店帮助
        $smarty->assign('top_goods', get_top10());
        // 销售排行
        $smarty->assign('promotion_info', get_promotion_info());
        // yyy添加start
        $count1 = $GLOBALS['db']->getOne("SELECT COUNT(*) FROM " . $GLOBALS['ecs']->table('comment') . " where comment_type=0 and id_value ='{$goods_id}' and status=1");
        $smarty->assign('review_count', $count1);
        // 评论数
        // 评价晒单 增加 by www.68ecshop.com
        $rank_num['rank_a'] = $GLOBALS['db']->getOne("SELECT COUNT(*) AS num FROM " . $GLOBALS['ecs']->table('comment') . " WHERE id_value = '{$goods_id}' AND status = 1 AND comment_rank in (5,4)");
        $rank_num['rank_b'] = $GLOBALS['db']->getOne("SELECT COUNT(*) AS num FROM " . $GLOBALS['ecs']->table('comment') . " WHERE id_value = '{$goods_id}' AND status = 1 AND comment_rank in (3,2)");
        $rank_num['rank_c'] = $GLOBALS['db']->getOne("SELECT COUNT(*) AS num FROM " . $GLOBALS['ecs']->table('comment') . " WHERE id_value = '{$goods_id}' AND status = 1 AND comment_rank = 1");
        $rank_num['rank_total'] = $rank_num['rank_a'] + $rank_num['rank_b'] + $rank_num['rank_c'];
        $rank_num['rank_pa'] = $rank_num['rank_a'] > 0 ? round($rank_num['rank_a'] / $rank_num['rank_total'] * 100, 1) : 0;
        $rank_num['rank_pb'] = $rank_num['rank_b'] > 0 ? round($rank_num['rank_b'] / $rank_num['rank_total'] * 100, 1) : 0;
        $rank_num['rank_pc'] = $rank_num['rank_c'] > 0 ? round($rank_num['rank_c'] / $rank_num['rank_total'] * 100, 1) : 0;
        $rank_num['shaidan_num'] = $GLOBALS['db']->getOne("SELECT COUNT(*) AS num FROM " . $GLOBALS['ecs']->table('shaidan') . " WHERE goods_id = '{$goods_id}' AND status = 1");
        $smarty->assign('rank_num', $rank_num);
        $res = $GLOBALS['db']->getAll("SELECT * FROM " . $GLOBALS['ecs']->table('goods_tag') . " WHERE goods_id = '{$goods_id}' AND state = 1");
        foreach ($res as $v) {
            $v['tag_num'] = $GLOBALS['db']->getOne("SELECT COUNT(*) AS num FROM " . $GLOBALS['ecs']->table('comment') . " WHERE id_value = '{$goods_id}' AND status = 1 AND FIND_IN_SET({$v['tag_id']},comment_tag)");
            $tag_arr[] = $v;
        }
        require_once 'includes/lib_comment.php';
        $tag_arr = array_sort($tag_arr, 'tag_num', 'desc');
        if ($tag_arr) {
            foreach ($tag_arr as $key => $val) {
                if ($_CFG['tag_show_num'] > 0) {
                    if ($key + 1 <= $_CFG['tag_show_num']) {
                        $comment_tags[] = $val;
                    }
                } else {
                    $comment_tags[] = $val;
                }
            }
        }
        $smarty->assign('comment_tags', $comment_tags);
        /* meta */
        $smarty->assign('keywords', htmlspecialchars($goods['keywords']));
        $smarty->assign('description', htmlspecialchars($goods['goods_brief']));
        $goods['goods_style_name'] = add_style($goods['goods_name'], $goods['goods_name_style']);
        $smarty->assign('goods', $goods);
//.........这里部分代码省略.........
开发者ID:seanguo166,项目名称:yinoos,代码行数:101,代码来源:pre_sale.php


示例8: get_clue_check_list

    $member = get_clue_check_list($offset, $perpage, $wheresql . $oederbysql);
    $admin = $db->getall("select * from " . table("admin") . " where admin_id!=1 order by admin_id");
    $smarty->assign('admin', $admin);
    $smarty->assign('pageheader', "人才线索");
    $smarty->assign('member', $member);
    $smarty->assign('page', $page->show(3));
    $smarty->assign("assign", $assign);
    $smarty->display('company/admin_company_user_clue_list.htm');
} elseif ($act == 'clue_detail') {
    get_token();
    require_once ADMIN_ROOT_PATH . 'include/admin_user_fun.php';
    $id = !empty($_REQUEST['cid']) ? $_REQUEST['cid'] : adminmsg("参数有误!", 1);
    $clue = get_clue_one($id);
    $company_profile = get_company_one_id($clue["company_id"]);
    $clue_log = get_clue_log_list($id);
    $promotion = get_promotion_info($clue["job_id"], 5);
    if ($promotion) {
        $json = str_replace('&quot;', '"', trim($promotion["cp_json"]));
        $json = json_decode($json);
        $promotion = array_merge($promotion, (array) $json);
    }
    $member = get_member_info($clue["uid"]);
    if ($clue["member_id"]) {
        $resume["uid"] = $clue["member_id"];
        $resume["list"] = get_resume_uid($clue["member_id"]);
        $smarty->assign('resume', $resume);
        //dump($resume);
    }
    $smarty->assign('clue', $clue);
    $smarty->assign('company_profile', $company_profile);
    $smarty->assign('promotion', $promotion);
开发者ID:winiceo,项目名称:job,代码行数:31,代码来源:admin_company.php



注:本文中的get_promotion_info函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_promptmsg函数代码示例发布时间:2022-05-15
下一篇:
PHP get_promote_goods函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap