本文整理汇总了PHP中uk86_rkcache函数的典型用法代码示例。如果您正苦于以下问题:PHP uk86_rkcache函数的具体用法?PHP uk86_rkcache怎么用?PHP uk86_rkcache使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了uk86_rkcache函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: consultingOp
/**
* 咨询管理
*/
public function consultingOp()
{
$condition = array();
if (uk86_chksubmit()) {
$member_name = trim($_GET['member_name']);
if ($member_name != '') {
$condition['member_name'] = array('like', '%' . $member_name . '%');
Tpl::output('member_name', $member_name);
}
$consult_content = trim($_GET['consult_content']);
if ($consult_content != '') {
$condition['consult_content'] = array('like', '%' . $consult_content . '%');
Tpl::output('consult_content', $consult_content);
}
$ctid = intval($_GET['ctid']);
if ($ctid > 0) {
$condition['ct_id'] = $ctid;
Tpl::output('ctid', $ctid);
}
}
$model_consult = Model('consult');
$consult_list = $model_consult->getConsultList($condition, '*', 0, 10);
Tpl::output('show_page', $model_consult->showpage());
Tpl::output('consult_list', $consult_list);
// 咨询类型
$consult_type = uk86_rkcache('consult_type', true);
Tpl::output('consult_type', $consult_type);
Tpl::showpage('consulting.index');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:32,代码来源:consulting.php
示例2: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read('stat');
uk86_import('function.statistics');
uk86_import('function.datehelper');
$model = Model('stat');
//存储参数
$this->search_arr = $_REQUEST;
//处理搜索时间
if (in_array($_REQUEST['op'], array('hotrank', 'storesales'))) {
$this->search_arr = $model->dealwithSearchTime($this->search_arr);
//获得系统年份
$year_arr = uk86_getSystemYearArr();
//获得系统月份
$month_arr = uk86_getSystemMonthArr();
//获得本月的周时间段
$week_arr = uk86_getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
Tpl::output('year_arr', $year_arr);
Tpl::output('month_arr', $month_arr);
Tpl::output('week_arr', $week_arr);
}
Tpl::output('search_arr', $this->search_arr);
//店铺分类
$this->store_class = uk86_rkcache('store_class', true);
Tpl::output('store_class', $this->store_class);
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:27,代码来源:stat_store.php
示例3: __construct
public function __construct()
{
parent::__construct();
//读取语言包
Uk86Language::uk86_read('member_groupbuy,home_cart_index');
//检查抢购功能是否开启
if (intval(C('groupbuy_allow')) !== 1) {
uk86_showMessage(Uk86Language::uk86_get('groupbuy_unavailable'), uk86_urlShop(), '', 'error');
}
//分类导航
$nav_link = array(0 => array('title' => Uk86Language::uk86_get('homepage'), 'link' => SHOP_SITE_URL), 1 => array('title' => Uk86Language::uk86_get('nc_groupbuy')));
Tpl::output('nav_link_list', $nav_link);
// Tpl::setLayout('home_groupbuy_layout');
Tpl::output('index_sign', 'groupbuy');
if ($_GET['op'] != 'groupbuy_detail') {
// 抢购价格区间
$this->groupbuy_price = uk86_rkcache('groupbuy_price', true);
Tpl::output('price_list', $this->groupbuy_price);
$model_groupbuy = Model('groupbuy');
// 线上抢购分类
$this->groupbuy_classes = $model_groupbuy->getGroupbuyClasses();
Tpl::output('groupbuy_classes', $this->groupbuy_classes);
// 虚拟抢购分类
$this->groupbuy_vr_classes = $model_groupbuy->getGroupbuyVrClasses();
Tpl::output('groupbuy_vr_classes', $this->groupbuy_vr_classes);
// 虚拟抢购城市
$this->groupbuy_vr_cities = $model_groupbuy->getGroupbuyVrCities();
Tpl::output('groupbuy_vr_cities', $this->groupbuy_vr_cities);
Tpl::output('city_name', $this->groupbuy_vr_cities['name'][uk86_cookie('city_id')]);
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:show_groupbuy.php
示例4: uk86_send
public function uk86_send($param = array())
{
$msg_tpl = uk86_rkcache('store_msg_tpl', true);
if (!isset($msg_tpl[$this->code]) || $this->store_id <= 0) {
return false;
}
$tpl_info = $msg_tpl[$this->code];
$setting_info = Model('store_msg_setting')->getStoreMsgSettingInfo(array('smt_code' => $this->code, 'store_id' => $this->store_id));
// 发送站内信
if ($tpl_info['smt_message_switch'] && ($tpl_info['smt_message_forced'] || $setting_info['sms_message_switch'])) {
$message = uk86_ncReplaceText($tpl_info['smt_message_content'], $param);
$this->uk86_sendMessage($message);
}
// 发送短消息
if ($tpl_info['smt_short_switch'] && $setting_info['sms_short_number'] != '' && ($tpl_info['smt_short_forced'] || $setting_info['sms_short_switch'])) {
$param['site_name'] = C('site_name');
$message = uk86_ncReplaceText($tpl_info['smt_short_content'], $param);
$this->uk86_sendShort($setting_info['sms_short_number'], $message);
}
// 发送邮件
if ($tpl_info['smt_mail_switch'] && $setting_info['sms_mail_number'] != '' && ($tpl_info['smt_mail_forced'] || $setting_info['sms_mail_switch'])) {
$param['site_name'] = C('site_name');
$param['mail_send_time'] = date('Y-m-d H:i:s');
$subject = uk86_ncReplaceText($tpl_info['smt_mail_subject'], $param);
$message = uk86_ncReplaceText($tpl_info['smt_mail_content'], $param);
$this->uk86_sendMail($setting_info['sms_mail_number'], $subject, $message);
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:28,代码来源:uk86sendstoremsg.php
示例5: getExpressListByID
/**
* 根据编号查询快递列表
*/
public function getExpressListByID($id = null)
{
$express_list = uk86_rkcache('express', true);
if (!empty($id)) {
$id_array = explode(',', $id);
foreach ($express_list as $key => $value) {
if (!in_array($key, $id_array)) {
unset($express_list[$key]);
}
}
return $express_list;
} else {
return array();
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:18,代码来源:express.model.php
示例6: uk86_parse_conf
/**
* get setting
*/
private static function uk86_parse_conf(&$setting_config)
{
$nc_config = $GLOBALS['config'];
if (is_array($nc_config['db']['slave']) && !empty($nc_config['db']['slave'])) {
$dbslave = $nc_config['db']['slave'];
$sid = array_rand($dbslave);
$nc_config['db']['slave'] = $dbslave[$sid];
} else {
$nc_config['db']['slave'] = $nc_config['db'][1];
}
$nc_config['db']['master'] = $nc_config['db'][1];
$setting_config = $nc_config;
$setting = ($setting = uk86_rkcache('setting')) ? $setting : uk86_rkcache('setting', true);
$setting['uk86_version'] = 'Copyright 2015 优康商城版权所有';
$setting_config = array_merge_recursive($setting, $nc_config);
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:19,代码来源:base.php
示例7: __construct
/**
* 构造函数
*/
public function __construct()
{
/**
* 读取通用、布局的语言包
*/
Uk86Language::uk86_read('common');
/**
* 设置布局文件内容
*/
Tpl::setLayout('delivery_layout');
/**
* SEO
*/
$this->SEO();
/**
* 获取导航
*/
Tpl::output('nav_list', uk86_rkcache('nav', true));
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:22,代码来源:control.php
示例8: tableInfo
/**
* 生成表结构信息
*
* @param string $table
* @return
*/
public function tableInfo($table)
{
if (empty($table)) {
return false;
}
//只取主键,find(2)等自动匹配主键时使用
if (C('cache_open')) {
$this->fields = uk86_rkcache('field/_pk', __CLASS__ . '::fetchTablePkArray');
} else {
if (file_exists(BASE_DATA_PATH . '/cache/fields/_pk.php')) {
$this->fields = (require BASE_DATA_PATH . '/cache/fields/_pk.php');
} else {
$_pk_array = self::fetchTablePkArray();
F('_pk', $_pk_array, 'cache/fields');
$this->fields = $_pk_array;
}
}
return $this->fields[$table];
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:25,代码来源:model.php
示例9: uk86_send
public function uk86_send($param = array())
{
$msg_tpl = uk86_rkcache('member_msg_tpl', true);
if (!isset($msg_tpl[$this->code]) || $this->member_id <= 0) {
return false;
}
$tpl_info = $msg_tpl[$this->code];
$setting_info = Model('member_msg_setting')->getMemberMsgSettingInfo(array('mmt_code' => $this->code, 'member_id' => $this->member_id), 'is_receive');
if (empty($setting_info) || $setting_info['is_receive']) {
// 发送站内信
if ($tpl_info['mmt_message_switch']) {
$message = uk86_ncReplaceText($tpl_info['mmt_message_content'], $param);
$this->uk86_sendMessage($message);
}
// 发送短消息
if ($tpl_info['mmt_short_switch']) {
$this->uk86_getMemberInfo();
if (!empty($this->mobile)) {
$this->member_info['member_mobile'] = $this->mobile;
}
if ($this->member_info['member_mobile_bind'] && !empty($this->member_info['member_mobile'])) {
$param['site_name'] = C('site_name');
$message = uk86_ncReplaceText($tpl_info['mmt_short_content'], $param);
$this->uk86_sendShort($this->member_info['member_mobile'], $message);
}
}
// 发送邮件
if ($tpl_info['mmt_mail_switch']) {
$this->uk86_getMemberInfo();
if (!empty($this->email)) {
$this->member_info['member_email'] = $this->email;
}
if ($this->member_info['member_email_bind'] && !empty($this->member_info['member_email'])) {
$param['site_name'] = C('site_name');
$param['mail_send_time'] = date('Y-m-d H:i:s');
$subject = uk86_ncReplaceText($tpl_info['mmt_mail_subject'], $param);
$message = uk86_ncReplaceText($tpl_info['mmt_mail_content'], $param);
$this->uk86_sendMail($this->member_info['member_email'], $subject, $message);
}
}
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:42,代码来源:uk86sendmembermsg.php
示例10: getOwnShopIds
/**
* 获取自营店铺的ID
*
* @param boolean $bind_all_gc = false 是否只获取绑定全部类目的自营店 默认否(即全部自营店)
* @return array
*/
public function getOwnShopIds($bind_all_gc = false)
{
$data = $this->ownShopIds;
// 属性为空则取缓存
if (!$data) {
$data = uk86_rkcache('own_shop_ids');
// 缓存为空则查库
if (!$data) {
$data = array();
$all_own_shops = $this->table('store')->field('store_id,bind_all_gc')->where(array('is_own_shop' => 1))->select();
foreach ((array) $all_own_shops as $v) {
$data[$v['store_id']] = (int) (bool) $v['bind_all_gc'];
}
// 写入缓存
uk86_wkcache('own_shop_ids', $data);
}
// 写入属性
$this->ownShopIds = $data;
}
return array_keys($bind_all_gc ? array_filter($data) : $data);
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:27,代码来源:store.model.php
示例11: consult_listOp
/**
* 商品咨询列表页
*/
public function consult_listOp()
{
$consult = Model('consult');
$list_consult = array();
$where = array();
if (trim($_GET['type']) == 'to_reply') {
$where['consult_reply'] = array('eq', '');
} elseif (trim($_GET['type'] == 'replied')) {
$where['consult_reply'] = array('neq', '');
}
if (intval($_GET['ctid']) > 0) {
$where['ct_id'] = intval($_GET['ctid']);
}
$where['store_id'] = $_SESSION['store_id'];
$list_consult = $consult->getConsultList($where, '*', 0, 10);
Tpl::output('show_page', $consult->showpage());
Tpl::output('list_consult', $list_consult);
// 咨询类型
$consult_type = uk86_rkcache('consult_type', true);
Tpl::output('consult_type', $consult_type);
$_GET['type'] = empty($_GET['type']) ? 'consult_list' : $_GET['type'];
self::profile_menu('consult', $_GET['type']);
Tpl::showpage('store_consult_manage');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:27,代码来源:store_consult.php
示例12: viewOp
/**
* 退货记录查看页
*
*/
public function viewOp()
{
$model_refund = Model('refund_return');
$condition = array();
$condition['buyer_id'] = $_SESSION['member_id'];
$condition['refund_id'] = intval($_GET['return_id']);
$return_list = $model_refund->getReturnList($condition);
$return = $return_list[0];
Tpl::output('return', $return);
$express_list = uk86_rkcache('express', true);
if ($return['express_id'] > 0 && !empty($return['invoice_no'])) {
Tpl::output('return_e_name', $express_list[$return['express_id']]['e_name']);
}
$info['buyer'] = array();
if (!empty($return['pic_info'])) {
$info = unserialize($return['pic_info']);
}
Tpl::output('pic_list', $info['buyer']);
$condition = array();
$condition['order_id'] = $return['order_id'];
$model_refund->getRightOrderList($condition, $return['order_goods_id']);
Tpl::showpage('member_return_view');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:27,代码来源:member_return.php
示例13: level_intrOp
/**
* Level introduction
*/
public function level_intrOp()
{
// 圈子信息
$this->circleInfo();
// 圈主和管理信息
$this->manageList();
// 会员信息
$this->memberInfo();
// breadcrumb navigation
$this->breadcrumd(L('level_introduction'));
// member level
$ml_info = Model()->table('circle_ml')->find($this->c_id);
$mld_array = uk86_rkcache('circle_level') ? uk86_rkcache('circle_level') : uk86_rkcache('circle_level', true);
if (empty($ml_info)) {
$ml_info['ml_1'] = $mld_array['1']['mld_name'];
$ml_info['ml_2'] = $mld_array['2']['mld_name'];
$ml_info['ml_3'] = $mld_array['3']['mld_name'];
$ml_info['ml_4'] = $mld_array['4']['mld_name'];
$ml_info['ml_5'] = $mld_array['5']['mld_name'];
$ml_info['ml_6'] = $mld_array['6']['mld_name'];
$ml_info['ml_7'] = $mld_array['7']['mld_name'];
$ml_info['ml_8'] = $mld_array['8']['mld_name'];
$ml_info['ml_9'] = $mld_array['9']['mld_name'];
$ml_info['ml_10'] = $mld_array['10']['mld_name'];
$ml_info['ml_11'] = $mld_array['11']['mld_name'];
$ml_info['ml_12'] = $mld_array['12']['mld_name'];
$ml_info['ml_13'] = $mld_array['13']['mld_name'];
$ml_info['ml_14'] = $mld_array['14']['mld_name'];
$ml_info['ml_15'] = $mld_array['15']['mld_name'];
$ml_info['ml_16'] = $mld_array['16']['mld_name'];
}
Tpl::output('ml_info', $ml_info);
Tpl::output('mld_array', $mld_array);
Tpl::showpage('group.level');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:38,代码来源:group.php
示例14: getRightOrderList
/**
* 详细页右侧订单信息
*
* @param
* @return array
*/
public function getRightOrderList($order_condition, $order_goods_id = 0)
{
$model_order = Model('order');
$order_info = $model_order->getOrderInfo($order_condition, array('order_common', 'store'));
Tpl::output('order', $order_info);
$order_id = $order_info['order_id'];
$store = $order_info['extend_store'];
Tpl::output('store', $store);
$order_common = $order_info['extend_order_common'];
Tpl::output('order_common', $order_common);
if ($order_common['shipping_express_id'] > 0) {
$express = uk86_rkcache('express', true);
Tpl::output('e_code', $express[$order_common['shipping_express_id']]['e_code']);
Tpl::output('e_name', $express[$order_common['shipping_express_id']]['e_name']);
}
$condition = array();
$condition['order_id'] = $order_id;
if ($order_goods_id > 0) {
$condition['rec_id'] = $order_goods_id;
//订单商品表编号
}
$goods_list = $model_order->getOrderGoodsList($condition);
Tpl::output('goods_list', $goods_list);
$order_info['goods_list'] = $goods_list;
return $order_info;
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:32,代码来源:refund_return.model.php
示例15: levelOp
/**
* circle member level
*/
public function levelOp()
{
// Circle information
$this->circleInfo();
// Membership information
$this->circleMemberInfo();
// Members to join the circle list
$this->memberJoinCircle();
if (uk86_chksubmit()) {
$insert = array();
$insert['circle_id'] = $this->c_id;
$mld_array = uk86_rkcache('circle_level') ? uk86_rkcache('circle_level') : uk86_rkcache('circle_level', true);
if ($_POST['levelset'] == 'custom') {
$insert['mlref_id'] = null;
$insert['ml_1'] = $_POST['levelname']['1'] != '' ? $_POST['levelname']['1'] : $mld_array['1']['mld_name'];
$insert['ml_2'] = $_POST['levelname']['2'] != '' ? $_POST['levelname']['2'] : $mld_array['2']['mld_name'];
$insert['ml_3'] = $_POST['levelname']['3'] != '' ? $_POST['levelname']['3'] : $mld_array['3']['mld_name'];
$insert['ml_4'] = $_POST['levelname']['4'] != '' ? $_POST['levelname']['4'] : $mld_array['4']['mld_name'];
$insert['ml_5'] = $_POST['levelname']['5'] != '' ? $_POST['levelname']['5'] : $mld_array['5']['mld_name'];
$insert['ml_6'] = $_POST['levelname']['6'] != '' ? $_POST['levelname']['6'] : $mld_array['6']['mld_name'];
$insert['ml_7'] = $_POST['levelname']['7'] != '' ? $_POST['levelname']['7'] : $mld_array['7']['mld_name'];
$insert['ml_8'] = $_POST['levelname']['8'] != '' ? $_POST['levelname']['8'] : $mld_array['8']['mld_name'];
$insert['ml_9'] = $_POST['levelname']['9'] != '' ? $_POST['levelname']['9'] : $mld_array['9']['mld_name'];
$insert['ml_10'] = $_POST['levelname']['10'] != '' ? $_POST['levelname']['10'] : $mld_array['10']['mld_name'];
$insert['ml_11'] = $_POST['levelname']['11'] != '' ? $_POST['levelname']['11'] : $mld_array['11']['mld_name'];
$insert['ml_12'] = $_POST['levelname']['12'] != '' ? $_POST['levelname']['12'] : $mld_array['12']['mld_name'];
$insert['ml_13'] = $_POST['levelname']['13'] != '' ? $_POST['levelname']['13'] : $mld_array['13']['mld_name'];
$insert['ml_14'] = $_POST['levelname']['14'] != '' ? $_POST['levelname']['14'] : $mld_array['14']['mld_name'];
$insert['ml_15'] = $_POST['levelname']['15'] != '' ? $_POST['levelname']['15'] : $mld_array['15']['mld_name'];
$insert['ml_16'] = $_POST['levelname']['16'] != '' ? $_POST['levelname']['16'] : $mld_array['16']['mld_name'];
} else {
$levelset = intval($_POST['levelset']);
if ($levelset) {
$mlref_info = Model()->table('circle_mlref')->find($levelset);
}
if (!empty($mlref_info)) {
$insert['mlref_id'] = $mlref_info['mlref_id'];
$insert['ml_1'] = $mlref_info['mlref_1'];
$insert['ml_2'] = $mlref_info['mlref_2'];
$insert['ml_3'] = $mlref_info['mlref_3'];
$insert['ml_4'] = $mlref_info['mlref_4'];
$insert['ml_5'] = $mlref_info['mlref_5'];
$insert['ml_6'] = $mlref_info['mlref_6'];
$insert['ml_7'] = $mlref_info['mlref_7'];
$insert['ml_8'] = $mlref_info['mlref_8'];
$insert['ml_9'] = $mlref_info['mlref_9'];
$insert['ml_10'] = $mlref_info['mlref_10'];
$insert['ml_11'] = $mlref_info['mlref_11'];
$insert['ml_12'] = $mlref_info['mlref_12'];
$insert['ml_13'] = $mlref_info['mlref_13'];
$insert['ml_14'] = $mlref_info['mlref_14'];
$insert['ml_15'] = $mlref_info['mlref_15'];
$insert['ml_16'] = $mlref_info['mlref_16'];
} else {
$insert['mlref_id'] = 0;
$insert['ml_1'] = $mld_array['1']['mld_name'];
$insert['ml_2'] = $mld_array['2']['mld_name'];
$insert['ml_3'] = $mld_array['3']['mld_name'];
$insert['ml_4'] = $mld_array['4']['mld_name'];
$insert['ml_5'] = $mld_array['5']['mld_name'];
$insert['ml_6'] = $mld_array['6']['mld_name'];
$insert['ml_7'] = $mld_array['7']['mld_name'];
$insert['ml_8'] = $mld_array['8']['mld_name'];
$insert['ml_9'] = $mld_array['9']['mld_name'];
$insert['ml_10'] = $mld_array['10']['mld_name'];
$insert['ml_11'] = $mld_array['11']['mld_name'];
$insert['ml_12'] = $mld_array['12']['mld_name'];
$insert['ml_13'] = $mld_array['13']['mld_name'];
$insert['ml_14'] = $mld_array['14']['mld_name'];
$insert['ml_15'] = $mld_array['15']['mld_name'];
$insert['ml_16'] = $mld_array['16']['mld_name'];
}
}
$rs = Model('circle_level')->levelInsert($insert, true);
showDialog(L('nc_common_op_succ'), 'reload', 'succ');
}
$model = Model();
// Defaule Member Title list
$mldefault_list = uk86_rkcache('circle_level') ? uk86_rkcache('circle_level') : uk86_rkcache('circle_level', true);
if (!empty($mldefault_list)) {
$mld_array = array();
foreach ($mldefault_list as $val) {
$mld_array[$val['mld_id']]['name'] = $val['mld_name'];
$mld_array[$val['mld_id']]['exp'] = $val['mld_exp'];
}
// Refer to the Member Title list
$mlref_list = $model->table('circle_mlref')->where(array('mlref_status' => 1))->select();
// tidy
if (!empty($mlref_list)) {
$mlr_array = array();
foreach ($mlref_list as $val) {
$mlr_array[$val['mlref_id']]['name'] = $val['mlref_name'];
$mlr_array[$val['mlref_id']]['info'][1]['name'] = $val['mlref_1'];
$mlr_array[$val['mlref_id']]['info'][2]['name'] = $val['mlref_2'];
$mlr_array[$val['mlref_id']]['info'][3]['name'] = $val['mlref_3'];
$mlr_array[$val['mlref_id']]['info'][4]['name'] = $val['mlref_4'];
$mlr_array[$val['mlref_id']]['info'][5]['name'] = $val['mlref_5'];
//.........这里部分代码省略.........
开发者ID:wangjiang988,项目名称:ukshop,代码行数:101,代码来源:manage_level.php
示例16: getRecommendTemplate
/**
* 获得推荐的热门卡券包列表
* @param int $num 查询条数
*/
public function getRecommendTemplate($num)
{
//查询店铺分类
$store_class = uk86_rkcache('store_class', true);
//查询推荐的热门卡券包列表
$where = array();
$where['voucher_t_recommend'] = '1';
$where['voucher_t_state'] = $this->templatestate_arr['usable'][0];
$where['voucher_t_end_date'] = array('gt', time());
$recommend_voucher = $this->getVoucherTemplateList($where, $field = '*', $num, 0, 'voucher_t_id desc');
if ($recommend_voucher) {
foreach ($recommend_voucher as $k => $v) {
$v['voucher_t_sc_name'] = $store_class[$v['voucher_t_sc_id']]['sc_name'];
$recommend_voucher[$k] = $v;
}
}
return $recommend_voucher;
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:22,代码来源:voucher.model.php
示例17: indexOp
/**
* 圈子管理
*/
public function indexOp()
{
// 圈子信息
$this->circleInfo();
// 会员信息
$this->circleMemberInfo();
if ($this->identity == 2) {
@header("location: " . CIRCLE_SITE_URL . '/index.php?act=manage&op=applying&c_id=' . $this->c_id);
}
// 会员加入圈子列表
$this->memberJoinCircle();
$model = Model();
if (uk86_chksubmit()) {
$update = array();
$update['circle_id'] = $this->c_id;
// 上传图片
if (!empty($_FILES['c_img']['name'])) {
$upload = new Uk86UploadFile();
$upload->uk86_set('default_dir', ATTACH_CIRCLE . '/group');
$upload->uk86_set('thumb_width', 120);
$upload->uk86_set('thumb_height', 120);
$upload->uk86_set('thumb_ext', '_120x120');
$upload->uk86_set('ifremove', true);
$result = $upload->uk86_upfile('c_img');
if ($result) {
$update['circle_img'] = $upload->thumb_image;
$model->table('circle')->update($update);
} else {
showDialog($upload->error);
}
}
$update['circle_desc'] = $_POST['c_desc'];
$update['circle_notice'] = $_POST['c_notice'];
$update['circle_joinaudit'] = $_POST['c_joinaudit'];
if ($_POST['c_mapply'] == 1) {
$update['mapply_open'] = 1;
$update['mapply_ml'] = $_POST['c_ml'];
} else {
$update['mapply_open'] = 0;
$update['mapply_ml'] = 0;
$update['new_mapplycount'] = 0;
// Delete the application information
$model->table('circle_mapply')->where(array('circle_id' => $this->c_id))->delete();
}
$model->table('circle')->update($update);
showDialog(L('nc_common_op_succ'), 'reload', 'succ');
}
$circle_info = $model->table('circle')->find($this->c_id);
Tpl::output('circle_info', $circle_info);
// member level
$ml_info = $model->table('circle_ml')->find($this->c_id);
if (empty($ml_info)) {
$mld_array = uk86_rkcache('circle_level') ? uk86_rkcache('circle_level') : uk86_rkcache('circle_level', true);
$ml_info['ml_1'] = $mld_array['1']['mld_name'];
$ml_info['ml_2'] = $mld_array['2']['mld_name'];
$ml_info['ml_3'] = $mld_array['3']['mld_name'];
$ml_info['ml_4'] = $mld_array['4']['mld_name'];
$ml_info['ml_5'] = $mld_array['5']['mld_name'];
$ml_info['ml_6'] = $mld_array['6']['mld_name'];
$ml_info['ml_7'] = $mld_array['7']['mld_name'];
$ml_info['ml_8'] = $mld_array['8']['mld_name'];
$ml_info['ml_9'] = $mld_array['9']['mld_name'];
$ml_info['ml_10'] = $mld_array['10']['mld_name'];
$ml_info['ml_11'] = $mld_array['11']['mld_name'];
$ml_info['ml_12'] = $mld_array['12']['mld_name'];
$ml_info['ml_13'] = $mld_array['13']['mld_name'];
$ml_info['ml_14'] = $mld_array['14']['mld_name'];
$ml_info['ml_15'] = $mld_array['15']['mld_name'];
$ml_info['ml_16'] = $mld_array['16']['mld_name'];
}
Tpl::output('ml_info', $ml_info);
$this->sidebar_menu('index');
Tpl::showpage('group_manage_index');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:77,代码来源:manage.php
示例18: consulting_listOp
/**
* 产品咨询
*/
public function consulting_listOp()
{
$goods_id = intval($_GET['goods_id']);
if ($goods_id <= 0) {
uk86_showMessage(Uk86Language::uk86_get('wrong_argument'), '', 'html', 'error');
}
// 商品详细信息
$model_goods = Model('goods');
$goods_info = $model_goods->getGoodsInfoByID($goods_id, '*');
// 验证商品是否存在
if (empty($goods_info)) {
uk86_showMessage(L('goods_index_no_goods'), '', 'html', 'error');
}
Tpl::output('goods', $goods_info);
$this->getStoreInfo($goods_info['store_id']);
// 当前位置导航
$nav_link_list = Model('goods_class')->getGoodsClassNav($goods_info['gc_id'], 0);
$nav_link_list[] = array('title' => $goods_info['goods_name'], 'link' => uk86_urlShop('goods', 'index', array('goods_id' => $goods_id)));
$nav_link_list[] = array('title' => '商品咨询');
Tpl::output('nav_link_list', $nav_link_list);
//得到商品咨询信息
$model_consult = Model('consult');
$where = array();
$where['goods_id'] = $goods_id;
if (intval($_GET['ctid']) > 0) {
$where['ct_id'] = intval($_GET['ctid']);
}
$consult_list = $model_consult->getConsultList($where, '*', 0, 20);
Tpl::output('consult_list', $consult_list);
Tpl::output('show_page', $model_consult->showpage());
// 咨询类型
$consult_type = uk86_rkcache('consult_type', true);
Tpl::output('consult_type', $consult_type);
$seo_param = array();
$seo_param['name'] = $goods_info['goods_name'];
$seo_param['key'] = $goods_info['goods_keywords'];
$seo_param['description'] = $goods_info['goods_description'];
Model('seo')->type('product')->param($seo_param)->show();
Tpl::output('consult_able', $this->checkConsultAble($goods_info['store_id']));
Tpl::showpage('goods.consulting_list');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:44,代码来源:goods.php
示例19: show_orderOp
/**
* 订单详细
*
*/
public function show_orderOp()
{
$order_id = intval($_GET['order_id']);
if ($order_id <= 0) {
uk86_showMessage(Uk86Language::uk86_get('member_order_none_exist'), '', 'html', 'error');
}
$model_order = Model('order');
$condition = array();
$condition['order_id'] = $order_id;
$condition['buyer_id'] = $_SESSION['member_id'];
$order_info = $model_order->getOrderInfo($condition, array('order_goods', 'order_common', 'store'));
if (empty($order_info) || $order_info['delete_state'] == ORDER_DEL_STATE_DROP) {
uk86_showMessage(Uk86Language::uk86_get('member_order_none_exist'), '', 'html', 'error');
}
$model_refund_return = Model('refund_return');
$order_list = array();
$order_list[$order_id] = $order_info;
$order_list = $model_refund_return->getGoodsRefundList($order_list, 1);
//订单商品的退款退货显示
$order_info = $order_list[$order_id];
$refund_all = $order_info['refund_list'][0];
if (!empty($refund_all) && $refund_all['seller_state'] < 3) {
//订单全部退款商家审核状态:1为待审核,2为同意,3为不同意
Tpl::output('refund_all', $refund_all);
}
//显示锁定中
$order_info['if_lock'] = $model_order->getOrderOperateState('lock', $order_info);
//显示取消订单
$order_info['if_cancel'] = $model_order->getOrderOperateState('buyer_cancel', $order_info);
//显示退款取消订单
$order_info['if_refund_cancel'] = $model_order->getOrderOperateState('refund_cancel', $order_info);
//显示投诉
$order_info['if_complain'] = $model_order->getOrderOperateState('complain', $order_info);
//显示收货
$order_info['if_receive'] = $model_order->getOrderOperateState('receive', $order_info);
//显示物流跟踪
$order_info['if_deliver'] = $model_order->getOrderOperateState('deliver', $order_info);
//显示评价
$order_info['if_evaluation'] = $model_order->getOrderOperateState('evaluation', $order_info);
//显示分享
$order_info['if_share'] = $model_order->getOrderOperateState('share', $order_info);
//显示系统自动取消订单日期
if ($order_info['order_state'] == ORDER_STATE_NEW) {
//$order_info['order_cancel_day'] = $order_info['add_time'] + ORDER_AUTO_CANCEL_DAY * 24 * 3600;
// by ukshop.com
$order_info['order_cancel_day'] = $order_info['add_time'] + ORDER_AUTO_CANCEL_DAY + 3 * 24 * 3600;
}
//显示快递信息
if ($order_info['shipping_code'] != '') {
$express = uk86_rkcache('express', true);
$order_info['express_info']['e_code'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_code'];
$order_info['express_info']['e_name'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_name'];
$order_info['express_info']['e_url'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_url'];
}
//显示系统自动收获时间
if ($order_info['order_state'] == ORDER_STATE_SEND) {
//$order_info['order_confirm_day'] = $order_info['delay_time'] + ORDER_AUTO_RECEIVE_DAY * 24 * 3600;
//by ukshop.com
$order_info['order_confirm_day'] = $order_info['delay_time'] + ORDER_AUTO_RECEIVE_DAY + 15 * 24 * 3600;
}
//如果订单已取消,取得取消原因、时间,操作人
if ($order_info['order_state'] == ORDER_STATE_CANCEL) {
$order_info['close_info'] = $model_order->getOrderLogInfo(array('order_id' => $order_info['order_id']), 'log_id desc');
}
foreach ($order_info['extend_order_goods'] as $value) {
$value['image_60_url'] = uk86_cthumb($value['goods_image'], 60, $value['store_id']);
$value['image_240_url'] = uk86_cthumb($value['goods_image'], 240, $value['store_id']);
$value['goods_type_cn'] = uk86_orderGoodsType($value['goods_type']);
$value['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $value['goods_id']));
if ($value['goods_type'] == 5) {
$order_info['zengpin_list'][] = $value;
} else {
$order_info['goods_list'][] = $value;
}
}
if (empty($order_info['zengpin_list'])) {
$order_info['goods_count'] = count($order_info['goods_list']);
} else {
$order_info['goods_count'] = count($order_info['goods_list']) + 1;
}
Tpl::output('order_info', $order_info);
//卖家发货信息
if (!empty($order_info['extend_order_common']['daddress_id'])) {
$daddress_info = Model('daddress')->getAddressInfo(array('address_id' => $order_info['extend_order_common']['daddress_id']));
Tpl::output('daddress_info', $daddress_info);
}
Tpl::showpage('member_order.show');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:92,代码来源:wap_member_order.php
示例20: getApById
public function getApById($apId)
{
$apId = (int) $apId;
return uk86_rkcache("adv/{$apId}", array($this, 'getApByCacheId'));
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:5,代码来源:adv.model.php
注:本文中的uk86_rkcache函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论