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

PHP uk86_urlShop函数代码示例

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

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



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

示例1: profile_menu

 /**
  * 用户中心右边,小导航
  *
  * @param string 	$menu_key	当前导航的menu_key
  * @return
  */
 private function profile_menu($menu_key = '')
 {
     $menu_array = array();
     $menu_array[] = array('menu_key' => 'cost_list', 'menu_name' => '消费列表', 'menu_url' => uk86_urlShop('store_cost', 'cost_list'));
     Tpl::output('member_menu', $menu_array);
     Tpl::output('menu_key', $menu_key);
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:13,代码来源:store_cost.php


示例2: getMansongRuleListByID

 /**
  * 读取满即送规则列表
  * @param array $mansong_id 查询条件
  * @param int $page 分页数
  * @param string $order 排序
  * @param string $field 所需字段
  * @return array 满即送套餐列表
  *
  */
 public function getMansongRuleListByID($mansong_id)
 {
     $condition = array();
     $condition['mansong_id'] = $mansong_id;
     $mansong_rule_list = $this->where($condition)->order('price desc')->select();
     if (!empty($mansong_rule_list)) {
         $model_goods = Model('goods');
         for ($i = 0, $j = count($mansong_rule_list); $i < $j; $i++) {
             $goods_id = intval($mansong_rule_list[$i]['goods_id']);
             if (!empty($goods_id)) {
                 $goods_info = $model_goods->getGoodsOnlineInfoByID($goods_id);
                 if (!empty($goods_info)) {
                     if (empty($mansong_rule_list[$i]['mansong_goods_name'])) {
                         $mansong_rule_list[$i]['mansong_goods_name'] = $goods_info['goods_name'];
                     }
                     $mansong_rule_list[$i]['goods_image'] = $goods_info['goods_image'];
                     $mansong_rule_list[$i]['goods_image_url'] = uk86_cthumb($goods_info['goods_image'], $goods_info['store_id']);
                     $mansong_rule_list[$i]['goods_storage'] = $goods_info['goods_storage'];
                     $mansong_rule_list[$i]['goods_id'] = $goods_id;
                     $mansong_rule_list[$i]['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $goods_id));
                 }
             }
         }
     }
     return $mansong_rule_list;
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:35,代码来源:p_mansong_rule.model.php


示例3: __construct

 public function __construct()
 {
     parent::__construct();
     Uk86Language::uk86_read('member_layout,member_voucher,home_pointprod');
     //判断系统是否开启代金券功能
     if (intval(C('voucher_allow')) !== 1) {
         uk86_showMessage(Uk86Language::uk86_get('member_voucher_unavailable'), uk86_urlShop('member', 'home'), 'html', 'error');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:9,代码来源:member_voucher.php


示例4: __construct

 public function __construct()
 {
     parent::__construct();
     //读取语言包
     Uk86Language::uk86_read('member_member_points,member_pointorder');
     //判断系统是否开启U币和U币兑换功能
     if (C('points_isuse') != 1 || C('pointprod_isuse') != 1) {
         showDialog(L('member_pointorder_unavailable'), uk86_urlShop('member', 'home'), 'error');
     }
     $this->_getCommonOperationsAndNavLink('member_points');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:11,代码来源:member_pointorder.php


示例5: mb_qrOp

 /**
  * 生成二维码
  */
 public function mb_qrOp()
 {
     $url = uk86_urlShop('mb_app', 'index');
     $mobile_app = 'mb_app.png';
     require_once BASE_RESOURCE_PATH . DS . 'phpqrcode' . DS . 'index.php';
     $PhpQRCode = new PhpQRCode();
     $PhpQRCode->set('pngTempDir', BASE_UPLOAD_PATH . DS . ATTACH_COMMON . DS);
     $PhpQRCode->set('date', $url);
     $PhpQRCode->set('pngTempName', $mobile_app);
     $PhpQRCode->init();
     $this->log('生成手机端二维码');
     uk86_showMessage('生成二维码成功', 'index.php?act=mb_app&op=mb_app');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:16,代码来源:mb_app.php


示例6: __construct

 public function __construct()
 {
     parent::__construct();
     /**
      * 读取语言包
      */
     Uk86Language::uk86_read('member_member_points,member_pointorder');
     /**
      * 判断系统是否开启U币功能
      */
     if (C('points_isuse') != 1) {
         uk86_showMessage(Uk86Language::uk86_get('points_unavailable'), uk86_urlShop('member', 'home'), 'html', 'error');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:14,代码来源:member_points.php


示例7: get_channel_xmlOp

 /**
  * 输出频道列表XML数据
  */
 public function get_channel_xmlOp()
 {
     $model_channel = Model('web_channel');
     $model_web_config = Model('web_con');
     $style_array = $model_web_config->getStyleList();
     //板块样式数组
     $page = intval($_POST['rp']);
     if ($page < 1) {
         $page = 15;
     }
     $condition = array();
     if ($_POST['qtype'] == 'channel_name') {
         $condition[$_POST['qtype']] = array('like', '%' . trim($_POST['query']) . '%');
     }
     $list = $model_channel->getChannelList($condition, $page);
     $out_list = array();
     if (!empty($list) && is_array($list)) {
         $fields_array = array('channel_name', 'channel_style', 'gc_name', 'channel_show');
         foreach ($list as $k => $v) {
             $out_array = getFlexigridArray(array(), $fields_array, $v, $format_array = '');
             $out_array['channel_style'] = $style_array[$v['channel_style']];
             if ($v['gc_id'] == 0) {
                 $out_array['gc_name'] = '无';
             }
             if ($v['channel_show'] == 1) {
                 $out_array['channel_show'] = '<span class="yes"><i class="fa fa-check-circle"></i>是</span>';
             } else {
                 $out_array['channel_show'] = '<span class="no"><i class="fa fa-ban"></i>否</span>';
             }
             $operation = '';
             if ($v['channel_show'] == 1) {
                 $operation .= '<a class="btn green" href="' . uk86_urlShop('channel', 'index', array('id' => $v['channel_id'])) . '" target="_blank"><i class="fa fa-list-alt"></i>查看</a>';
             } else {
                 $operation .= '<a class="btn red" href="javascript:fg_operation_del(' . $v['channel_id'] . ');"><i class="fa fa-trash-o"></i>删除</a>';
             }
             $operation .= '<span class="btn"><em><i class="fa fa-cog"></i>设置<i class="arrow"></i></em><ul>';
             $operation .= '<li><a href="index.php?act=web_channel&op=edit_channel&channel_id=' . $v['channel_id'] . '">基本设置</a></li>';
             $operation .= '<li><a href="index.php?act=web_channel&op=set_channel&channel_id=' . $v['channel_id'] . '">编辑模块</a></li>';
             $operation .= '</ul></span>';
             $out_array['operation'] = $operation;
             $out_list[$v['channel_id']] = $out_array;
         }
     }
     $data = array();
     $data['now_page'] = $model_channel->gettotalpage();
     $data['total_num'] = $model_channel->gettotalnum();
     $data['list'] = $out_list;
     echo Tpl::flexigridXML($data);
     exit;
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:53,代码来源:web_channel.php


示例8: indexOp

 /**
  * 通知
  */
 public function indexOp()
 {
     $strat_time = strtotime("-30 day");
     // 只通知最近30天的记录
     $model_arrtivalnotice = Model('arrival_notice');
     $count = $model_arrtivalnotice->getArrivalNoticeCount(array());
     $times = ceil($count / $this->_num);
     if ($times == 0) {
         return false;
     }
     for ($i = 0; $i <= $times; $i++) {
         // 删除30天之前的记录
         $model_arrtivalnotice->delArrivalNotice(array('an_addtime' => array('lt', $strat_time)));
         $notice_list = $model_arrtivalnotice->getArrivalNoticeList(array(), '*', $i . ',' . $this->_num);
         if (empty($notice_list)) {
             continue;
         }
         // 查询商品是否已经上架
         $goodsid_array = array();
         foreach ($notice_list as $val) {
             $goodsid_array[] = $val['goods_id'];
         }
         $goodsid_array = array_unique($goodsid_array);
         $goods_list = Model('goods')->getGoodsOnlineList(array('goods_id' => array('in', $goodsid_array), 'goods_storage' => array('gt', 0)), 'goods_id');
         if (empty($goods_list)) {
             continue;
         }
         // 需要通知到货的商品
         $goodsid_array = array();
         foreach ($goods_list as $val) {
             $goodsid_array[] = $val['goods_id'];
         }
         // 根据商品id重新查询需要通知的列表
         $notice_list = $model_arrtivalnotice->getArrivalNoticeList(array('goods_id' => array('in', $goodsid_array)), '*');
         if (empty($notice_list)) {
             continue;
         }
         foreach ($notice_list as $val) {
             $param = array();
             $param['code'] = 'arrival_notice';
             $param['member_id'] = $val['member_id'];
             $param['param'] = array('goods_name' => $val['goods_name'], 'goods_url' => uk86_urlShop('goods', 'index', array('goods_id' => $val['goods_id'])));
             Uk86QueueClient::push('sendMemberMsg', $param);
         }
         // 清楚发送成功的数据
         $model_arrtivalnotice->delArrivalNotice(array('goods_id' => array('in', $goodsid_array)));
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:51,代码来源:arrival_notice.php


示例9: ajax_loadOp

 /**
  * 异步查询购物车
  */
 public function ajax_loadOp()
 {
     $model_cart = Model('cart');
     if ($_SESSION['member_id']) {
         //登录后
         $cart_list = $model_cart->listCart('db', array('buyer_id' => $_SESSION['member_id']));
         $cart_array = array();
         if (!empty($cart_list)) {
             foreach ($cart_list as $k => $cart) {
                 $cart_array['list'][$k]['cart_id'] = $cart['cart_id'];
                 $cart_array['list'][$k]['goods_id'] = $cart['goods_id'];
                 $cart_array['list'][$k]['goods_name'] = $cart['goods_name'];
                 $cart_array['list'][$k]['goods_price'] = $cart['goods_price'];
                 $cart_array['list'][$k]['goods_image'] = uk86_thumb($cart, 60);
                 $cart_array['list'][$k]['goods_num'] = $cart['goods_num'];
                 $cart_array['list'][$k]['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $cart['goods_id']));
             }
         }
     } else {
         //登录前
         $cart_list = $model_cart->listCart('cookie');
         foreach ($cart_list as $key => $cart) {
             /* $value = array();
             			if($cart['goods_id']==null)continue;*/
             $value['cart_id'] = $cart['goods_id'];
             $value['goods_name'] = $cart['goods_name'];
             $value['goods_price'] = $cart['goods_price'];
             $value['goods_num'] = $cart['goods_num'];
             $value['goods_image'] = uk86_thumb($cart, 60);
             $value['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $cart['goods_id']));
             $cart_array['list'][] = $value;
         }
     }
     uk86_setNcCookie('cart_goods_num', $model_cart->cart_goods_num, 2 * 3600);
     $cart_array['cart_all_price'] = uk86_ncPriceFormat($model_cart->cart_all_price);
     $cart_array['cart_goods_num'] = $model_cart->cart_goods_num;
     if ($_GET['type'] == 'html') {
         Tpl::output('cart_list', $cart_array);
         Tpl::showpage('cart_mini', 'null_layout');
     } else {
         $cart_array = strtoupper(CHARSET) == 'GBK' ? Uk86Language::uk86_getUTF8($cart_array) : $cart_array;
         $json_data = json_encode($cart_array);
         if (isset($_GET['callback'])) {
             $json_data = $_GET['callback'] == '?' ? '(' . $json_data . ')' : $_GET['callback'] . "({$json_data});";
         }
         exit($json_data);
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:51,代码来源:cart.php


示例10: editVoucherState

 /**
  * 更新使用的卡券包状态
  * @param $input_voucher_list
  * @throws Exception
  */
 public function editVoucherState($voucher_list)
 {
     $model_voucher = Model('voucher');
     foreach ($voucher_list as $store_id => $voucher_info) {
         $update = $model_voucher->editVoucher(array('voucher_state' => 2), array('voucher_id' => $voucher_info['voucher_id']));
         //             if (!$update) throw new Exception('卡券包更新失败');
         // 发送用户店铺消息
         $send = new Uk86sendMemberMsg();
         $send->set('member_id', $voucher_info['voucher_owner_id']);
         $send->set('code', 'voucher_use');
         $param = array();
         $param['voucher_code'] = $voucher_info['voucher_code'];
         $param['voucher_url'] = uk86_urlShop('member_voucher', 'index');
         $send->uk86_send($param);
         unset($send);
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:22,代码来源:queue.model.php


示例11: exppointlogOp

 /**
  * 经验明细列表
  */
 public function exppointlogOp()
 {
     //查询会员及其附属信息
     $result = parent::pointshopMInfo();
     //查询U币日志列表
     $model_exppoints = Model('exppoints');
     $where = array();
     $where['exp_memberid'] = $_SESSION['member_id'];
     $list_log = $model_exppoints->getExppointsLogList($where, '*', 20, 0, 'exp_id desc');
     //信息输出
     Tpl::output('stage_arr', $model_exppoints->getStage());
     Tpl::output('show_page', $model_exppoints->showpage(5));
     Tpl::output('list_log', $list_log);
     //分类导航
     $nav_link = array(0 => array('title' => L('homepage'), 'link' => SHOP_SITE_URL), 1 => array('title' => L('nc_pointprod'), 'link' => uk86_urlShop('pointshop', 'index')), 2 => array('title' => '经验值明细'));
     Tpl::output('nav_link_list', $nav_link);
     Tpl::showpage('point_exppointslog');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:21,代码来源:pointgrade.php


示例12: rechargecard_addOp

 /**
  * 平台充值卡
  */
 public function rechargecard_addOp()
 {
     if (!uk86_chksubmit()) {
         self::profile_menu('rechargecard_add', 'rechargecard_add');
         Tpl::showpage('member_rechargecard.add');
         return;
     }
     $sn = (string) $_POST['rc_sn'];
     if (!$sn || strlen($sn) > 50) {
         uk86_showMessage('平台充值卡卡号不能为空且长度不能大于50', '', 'html', 'error');
         exit;
     }
     try {
         model('predeposit')->addRechargeCard($sn, $_SESSION);
         uk86_showMessage('平台充值卡使用成功', uk86_urlShop('predeposit', 'rcb_log_list'));
     } catch (Exception $e) {
         uk86_showMessage($e->getMessage(), '', 'html', 'error');
         exit;
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:23,代码来源:predeposit.php


示例13: removeParam

/**
 * 删除部分地址参数
 *
 * @param array $param
 */
function removeParam($param)
{
    $purl = getParam();
    if (!empty($param)) {
        foreach ($param as $key => $val) {
            if (!isset($purl['param'][$key])) {
                continue;
            }
            $tpl_params = explode('_', $purl['param'][$key]);
            foreach ($tpl_params as $k => $v) {
                if ($val == $v) {
                    unset($tpl_params[$k]);
                }
            }
            if (empty($tpl_params)) {
                $purl['param'][$key] = 0;
            } else {
                $purl['param'][$key] = implode('_', $tpl_params);
            }
        }
    }
    return uk86_urlShop($purl['act'], $purl['op'], $purl['param']);
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:28,代码来源:search.php


示例14: consult_replyOp

 /**
  * 回复咨询
  */
 public function consult_replyOp()
 {
     $model_mallconsult = Model('mall_consult');
     if (uk86_chksubmit()) {
         $mc_id = intval($_POST['mc_id']);
         $reply_content = trim($_POST['reply_content']);
         if ($mc_id <= 0 || $reply_content == '') {
             uk86_showMessage(L('param_error'));
         }
         $update['is_reply'] = 1;
         $update['mc_reply'] = $reply_content;
         $update['mc_reply_time'] = TIMESTAMP;
         $update['admin_id'] = $this->admin_info['id'];
         $update['admin_name'] = $this->admin_info['name'];
         $result = $model_mallconsult->editMallConsult(array('mc_id' => $mc_id), $update);
         if ($result) {
             $consult_info = $model_mallconsult->getMallConsultInfo(array('mc_id' => $mc_id));
             // 发送用户消息
             $param = array();
             $param['code'] = 'consult_mall_reply';
             $param['member_id'] = $consult_info['member_id'];
             $param['param'] = array('consult_url' => uk86_urlShop('member_mallconsult', 'mallconsult_info', array('id' => $mc_id)));
             Uk86QueueClient::push('sendMemberMsg', $param);
             uk86_showMessage('回复成功', uk86_urlAdmin('mall_consult', 'index'));
         } else {
             uk86_showMessage('回复失败');
         }
     }
     $id = intval($_GET['id']);
     if ($id <= 0) {
         uk86_showMessage(L('param_error'));
     }
     $consult_info = $model_mallconsult->getMallConsultDetail($id);
     Tpl::output('consult_info', $consult_info);
     Tpl::showpage('mall_consult.reply');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:39,代码来源:mall_consult.php


示例15: uk86_urlShop

      <dl>
        <dt>
          <div class="ncsc-goods-thumb-mini"><a target="_blank" href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $val['goods_id']));
        ?>
">
            <img src="<?php 
        echo uk86_thumb($val, 60);
        ?>
" onMouseOver="toolTip('<img src=<?php 
        echo uk86_thumb($val, 240);
        ?>
>')" onMouseOut="toolTip()" /></a></div>
        </dt>
        <dd><a target="_blank" href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $val['goods_id']));
        ?>
"><?php 
        echo $val['goods_name'];
        ?>
</a>
            <?php 
        echo $lang['currency'];
        echo $val['goods_price'];
        ?>
 * <?php 
        echo $val['goods_num'];
        ?>
 <font color="#AAA">(数量)</font>
            <span><?php 
        echo uk86_orderGoodsType($val['goods_type']);
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:store_refund_right.php


示例16: function

    $('[nctype="btn_show_explain_dialog"]').on('click', function() {
        $item = $(this).parents('tr').next('tr').find('[nctype="explain"]');
        var geval_id = $(this).attr('data-geval-id');
        var geval_content = $(this).attr('data-geval-content');
        $('#geval_id').val(geval_id);
        $('#geval_content').text(geval_content);
        $('#geval_explain').val('');
        $('#dialog_explain').nc_show_dialog({title:'解释评价'});
        });

    $('#btn_explain_submit').on('click', function() {
        if($('#explain_form').valid()){
        	var geval_id = $('#geval_id').val();
            var geval_explain = $('#geval_explain').val();
            $.post("<?php 
echo uk86_urlShop('store_evaluate', 'explain_save');
?>
",{
                geval_id: geval_id,
                geval_explain: geval_explain 
            }, function(data) {
                if(data.result) {
                    $('#dialog_explain').hide();
                    $item.text(geval_explain);
                    $item.parent().show();
                    showSucc(data.message);
                } else {
                    showError(data.message);
                }
            }, 'json');
        }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:evaluation.index.php


示例17: foreach

if (!empty($output['prod_list']) && is_array($output['prod_list'])) {
    ?>
        <?php 
    foreach ($output['prod_list'] as $k => $v) {
        ?>
        <tr class="hover">
          <td class="w24"><input type="checkbox" name="pg_id[]" value="<?php 
        echo $v['pgoods_id'];
        ?>
" class="checkitem"></td>
          <td class="w48 picture"><div class="size-44x44"><span class="thumb size-44x44"><i></i><img height="44" width="44" src="<?php 
        echo $v['pgoods_image_small'];
        ?>
" onload="javascript:DrawImage(this,44,44);"/></span></div></td>
          <td><a href="<?php 
        echo uk86_urlShop('pointprod', 'pinfo', array('id' => $v['pgoods_id']));
        ?>
" target="_blank" ><?php 
        echo $v['pgoods_name'];
        ?>
</a></td>
          <td class="align-center"><?php 
        echo $v['pgoods_points'];
        ?>
</td>
          <td class="align-center"><?php 
        echo $v['pgoods_price'];
        ?>
</td>
          <td class="align-center"><?php 
        echo $v['pgoods_storage'];
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:pointprod.list.php


示例18: foreach

    ?>
      <ul class="nch-article-list">
        <?php 
    foreach ($output['article'] as $article) {
        ?>
        <li><i></i><a <?php 
        if ($article['article_url'] != '') {
            ?>
target="_blank"<?php 
        }
        ?>
 href="<?php 
        if ($article['article_url'] != '') {
            echo $article['article_url'];
        } else {
            echo uk86_urlShop('article', 'show', array('article_id' => $article['article_id']));
        }
        ?>
"><?php 
        echo $article['article_title'];
        ?>
</a><time><?php 
        echo date('Y-m-d H:i', $article['article_time']);
        ?>
</time></li>
        <?php 
    }
    ?>
      </ul>
      <?php 
} else {
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:article_list.php


示例19: brand_allOp

 /**
  * 所有品牌
  */
 public function brand_allOp()
 {
     //读取语言包
     Uk86Language::uk86_read('home_store_class_index');
     $lang = Uk86Language::uk86_getLangContent();
     //店铺类目快速搜索
     $class_list = ($h = F('store_class')) ? $h : uk86_rkcache('store_class', true, 'file');
     if (!key_exists($_GET['cate_id'], $class_list)) {
         $_GET['cate_id'] = 0;
     }
     Tpl::output('class_list', $class_list);
     //店铺搜索
     $model = Model();
     $condition = array();
     $keyword = trim($_GET['keyword']);
     if (C('fullindexer.open') && !empty($keyword)) {
         //全文搜索
         $condition = $this->full_search($keyword);
     } else {
         if ($keyword != '') {
             $condition['store_name|store_zy'] = array('like', '%' . $keyword . '%');
         }
         if ($_GET['user_name'] != '') {
             $condition['member_name'] = trim($_GET['user_name']);
         }
     }
     if (!empty($_GET['area_info'])) {
         $condition['area_info'] = array('like', '%' . $_GET['area_info'] . '%');
     }
     if ($_GET['cate_id'] > 0) {
         $child = array_merge((array) $class_list[$_GET['cate_id']]['child'], array($_GET['cate_id']));
         $condition['sc_id'] = array('in', $child);
     }
     $condition['store_state'] = 1;
     if (!in_array($_GET['order'], array('desc', 'asc'))) {
         unset($_GET['order']);
     }
     if (!in_array($_GET['key'], array('store_sales', 'store_credit'))) {
         unset($_GET['key']);
     }
     $order = 'store_sort asc';
     if (isset($condition['store.store_id'])) {
         $condition['store_id'] = $condition['store.store_id'];
         unset($condition['store.store_id']);
     }
     $model_store = Model('store');
     $store_list = $model_store->where($condition)->order($order)->page(10)->select();
     //获取店铺商品数,推荐商品列表等信息
     $store_list = $model_store->getStoreSearchList($store_list);
     //print_r($store_list);exit();
     //信用度排序
     if ($_GET['key'] == 'store_credit') {
         if ($_GET['order'] == 'desc') {
             $store_list = sortClass::sortArrayDesc($store_list, 'store_credit_average');
         } else {
             $store_list = sortClass::sortArrayAsc($store_list, 'store_credit_average');
         }
     } else {
         if ($_GET['key'] == 'store_sales') {
             //销量排行
             if ($_GET['order'] == 'desc') {
                 $store_list = sortClass::sortArrayDesc($store_list, 'num_sales_jq');
             } else {
                 $store_list = sortClass::sortArrayAsc($store_list, 'num_sales_jq');
             }
         }
     }
     Tpl::output('store_list', $store_list);
     Tpl::output('show_page', $model->showpage(2));
     //当前位置
     if (intval($_GET['cate_id']) > 0) {
         $nav_link[1]['link'] = 'index.php?act=shop_search';
         $nav_link[1]['title'] = $lang['site_search_store'];
         $nav = $class_list[$_GET['cate_id']];
         //如果有父级
         if ($nav['sc_parent_id'] > 0) {
             $tmp = $class_list[$nav['sc_parent_id']];
             //存入父级
             $nav_link[] = array('title' => $tmp['sc_name'], 'link' => "index.php?act=store_list&cate_id=" . $nav['sc_parent_id']);
         }
         //存入当前级
         $nav_link[] = array('title' => $nav['sc_name']);
     } else {
         $nav_link[1]['link'] = 'index.php';
         $nav_link[1]['title'] = $lang['homepage'];
         $nav_link[2]['title'] = $lang['site_search_store'];
     }
     $purl = $this->getParam();
     Tpl::output('nav_link_list', $nav_link);
     Tpl::output('purl', uk86_urlShop($purl['act'], $purl['op'], $purl['param']));
     //SEO
     Model('seo')->type('index')->show();
     Tpl::output('html_title', (empty($_GET['keyword']) ? '' : $_GET['keyword'] . ' - ') . C('site_name') . $lang['nc_common_search']);
     Tpl::showpage('brand_all');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:98,代码来源:store_list.php


示例20: uk86_urlShop

<script src="<?php 
echo RESOURCE_SITE_URL;
?>
/js/waypoints.js"></script>
<script>
$(function(){
 //浮动导航  waypoints.js
    $('#main-nav-holder').waypoint(function(event, direction) {
        $(this).parent().toggleClass('sticky', direction === "down");
        event.stopPropagation();
    });
    //浏览历史处滚条
	$('#nchSidebarViewed').perfectScrollbar();
  	//猜你喜欢
	$('#guesslike_div').load('<?php 
echo uk86_urlShop('search', 'get_guesslike', array());
?>
', function(){
        $(this).show();
    });
});
<?php 
if (isset($_GET['area_id']) && intval($_GET['area_id']) > 0) {
    ?>
$(function(){
    // 选择地区后的地区显示
    $('[nc_type="area_name"]').html('<?php 
    echo $output['province_array'][intval($_GET['area_id'])];
    ?>
');
});
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:brand_goods.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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