当前位置: 首页>>代码示例>>PHP>>正文


PHP uk86_urlShop函数代码示例

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


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


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