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


PHP Uk86Language::uk86_get方法代码示例

本文整理汇总了PHP中Uk86Language::uk86_get方法的典型用法代码示例。如果您正苦于以下问题:PHP Uk86Language::uk86_get方法的具体用法?PHP Uk86Language::uk86_get怎么用?PHP Uk86Language::uk86_get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Uk86Language的用法示例。


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

示例1: detailOp

 /**
  * 店铺详细页
  */
 public function detailOp()
 {
     $store_id = intval($_GET['store_id']);
     if ($store_id <= 0) {
         header('location: ' . MICROSHOP_SITE_URL);
         die;
     }
     $model_store = Model('store');
     $model_goods = Model('goods');
     $model_microshop_store = Model('micro_store');
     $store_info = $model_microshop_store->getOneWithStoreInfo(array('microshop_store_id' => $store_id));
     if (empty($store_info)) {
         header('location: ' . MICROSHOP_SITE_URL);
     }
     //点击数加1
     $update = array();
     $update['click_count'] = array('exp', 'click_count+1');
     $model_microshop_store->modify($update, array('microshop_store_id' => $store_id));
     Tpl::output('detail', $store_info);
     $condition = array();
     $condition['store_id'] = $store_info['shop_store_id'];
     $goods_list = $model_goods->getGoodsListByColorDistinct($condition, 'goods_id,store_id,goods_name,goods_image,goods_price,goods_salenum', 'goods_id asc', 39);
     Tpl::output('comment_type', 'store');
     Tpl::output('comment_id', $store_id);
     Tpl::output('list', $goods_list);
     Tpl::output('show_page', $model_goods->showpage());
     //获得分享app列表
     self::get_share_app_list();
     Tpl::output('html_title', $store_info['store_name'] . '-' . Uk86Language::uk86_get('nc_microshop_store') . '-' . Uk86Language::uk86_get('nc_microshop') . '-' . C('site_name'));
     Tpl::showpage('store_detail');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:34,代码来源:store.php

示例2: share_saveOp

 /**
  * 分享保存
  **/
 public function share_saveOp()
 {
     $data = array();
     $data['result'] = 'true';
     $share_id = intval($_POST['share_id']);
     $share_type = $_GET['type'];
     if ($share_id <= 0 || empty($share_type) || mb_strlen($_POST['commend_message']) > 140) {
         showDialog(Uk86Language::uk86_get('wrong_argument'), 'reload', 'fail', '');
     }
     if (!empty($_SESSION['member_id'])) {
         $model = Model('cms_' . $share_type);
         $model->modify(array($share_type . '_share_count' => array('exp', $share_type . '_share_count+1')), array($share_type . '_id' => $share_id));
         //分享内容
         if (isset($_POST['share_app_items'])) {
             $info['commend_message'] = $_POST['commend_message'];
             $info['share_title'] = $_POST['share_title'];
             $info['share_image'] = $_POST['share_image'];
             if (empty($info['commend_message'])) {
                 $info['commend_message'] = Uk86Language::uk86_get('share_text');
             }
             $info['url'] = CMS_SITE_URL . DS . "index.php?act={$_GET['type']}&op={$_GET['type']}_detail&{$_GET['type']}_id=" . $_POST['share_id'];
             self::share_app_publish($info);
         }
         showDialog(Uk86Language::uk86_get('nc_common_save_succ'), '', 'succ', '');
     } else {
         showDialog(Uk86Language::uk86_get('no_login'), 'reload', 'fail', '');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:share.php

示例3: modifypwOp

 /**
  * 修改密码
  */
 public function modifypwOp()
 {
     if (uk86_chksubmit()) {
         if (trim($_POST['new_pw']) !== trim($_POST['new_pw2'])) {
             //uk86_showMessage('两次输入的密码不一致,请重新输入');
             uk86_showMessage(Uk86Language::uk86_get('index_modifypw_repeat_error'));
         }
         $admininfo = $this->getAdminInfo();
         //查询管理员信息
         $admin_model = Model('admin');
         $admininfo = $admin_model->getOneAdmin($admininfo['id']);
         if (!is_array($admininfo) || count($admininfo) <= 0) {
             uk86_showMessage(Uk86Language::uk86_get('index_modifypw_admin_error'));
         }
         //旧密码是否正确
         if ($admininfo['admin_password'] != md5(trim($_POST['old_pw']))) {
             uk86_showMessage(Uk86Language::uk86_get('index_modifypw_oldpw_error'));
         }
         $new_pw = md5(trim($_POST['new_pw']));
         $result = $admin_model->updateAdmin(array('admin_password' => $new_pw, 'admin_id' => $admininfo['admin_id']));
         if ($result) {
             uk86_showMessage(Uk86Language::uk86_get('index_modifypw_success'));
         } else {
             uk86_showMessage(Uk86Language::uk86_get('index_modifypw_fail'));
         }
     } else {
         Uk86Language::uk86_read('admin');
         Tpl::showpage('admin.modifypw');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:33,代码来源:index.php

示例4: indexOp

 /**
  * 单个活动信息页
  */
 public function indexOp()
 {
     //读取语言包
     Uk86Language::uk86_read('home_activity_index');
     //得到导航ID
     $nav_id = intval($_GET['nav_id']) ? intval($_GET['nav_id']) : 0;
     Tpl::output('index_sign', $nav_id);
     //查询活动信息
     $activity_id = intval($_GET['activity_id']);
     if ($activity_id <= 0) {
         uk86_showMessage(Uk86Language::uk86_get('para_error'), 'index.php', 'html', 'error');
         //'缺少参数:活动编号'
     }
     $activity = Model('activity')->getOneById($activity_id);
     if (empty($activity) || $activity['activity_type'] != '1' || $activity['activity_state'] != 1 || $activity['activity_start_date'] > time() || $activity['activity_end_date'] < time()) {
         uk86_showMessage(Uk86Language::uk86_get('activity_index_activity_not_exists'), 'index.php', 'html', 'error');
         //'指定活动并不存在'
     }
     Tpl::output('activity', $activity);
     //查询活动内容信息
     $list = array();
     $list = Model('activity_detail')->getGoodsList(array('order' => 'activity_detail.activity_detail_sort asc', 'activity_id' => "{$activity_id}", 'goods_show' => '1', 'activity_detail_state' => '1'));
     Tpl::output('list', $list);
     Tpl::output('html_title', C('site_name') . ' - ' . $activity['activity_title']);
     Tpl::showpage('activity_show');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:29,代码来源:activity.php

示例5: getApps

 /**
  * 分享接口数组
  */
 public function getApps()
 {
     $app_arr = array();
     $app_arr['qqweibo'] = array('name' => Uk86Language::uk86_get('nc_shareset_qqweibo'), 'url' => "http://t.qq.com", 'applyurl' => 'http://dev.t.qq.com');
     $app_arr['sinaweibo'] = array('name' => Uk86Language::uk86_get('nc_shareset_sinaweibo'), 'url' => "http://www.weibo.com", 'applyurl' => 'http://open.weibo.com/developers');
     return $app_arr;
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:10,代码来源:sns_binding.model.php

示例6: share_saveOp

 /**
  * 分享保存
  **/
 public function share_saveOp()
 {
     $data = array();
     $data['result'] = 'true';
     $share_id = intval($_POST['share_id']);
     $share_type = self::get_channel_type($_GET['type']);
     if ($share_id <= 0 || empty($share_type) || mb_strlen($_POST['commend_message']) > 140) {
         showDialog(Uk86Language::uk86_get('wrong_argument'), 'reload', 'fail', '');
     }
     if (!empty($_SESSION['member_id'])) {
         $model = Model("micro_{$_GET['type']}");
         //分享内容
         if (isset($_POST['share_app_items'])) {
             $condition = array();
             $condition[$share_type['type_key']] = $_POST['share_id'];
             if ($_GET['type'] == 'store') {
                 $info = $model->getOneWithStoreInfo($condition);
             } else {
                 $info = $model->getOne($condition);
             }
             $info['commend_message'] = $_POST['commend_message'];
             if (empty($info['commend_message'])) {
                 $info['commend_message'] = Uk86Language::uk86_get('microshop_share_default_message');
             }
             $info['type'] = $_GET['type'];
             $info['url'] = MICROSHOP_SITE_URL . DS . "index.php?act={$_GET['type']}&op=detail&{$_GET['type']}_id=" . $_POST['share_id'];
             self::share_app_publish('share', $info);
         }
         showDialog(Uk86Language::uk86_get('nc_common_save_succ'), '', 'succ', '');
     } else {
         showDialog(Uk86Language::uk86_get('no_login'), 'reload', 'fail', '');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:36,代码来源:share.php

示例7: editOp

 /**
  * 编辑
  */
 public function editOp()
 {
     $model_payment = Model('payment');
     if (uk86_chksubmit()) {
         $payment_id = intval($_POST["payment_id"]);
         $data = array();
         $data['payment_state'] = intval($_POST["payment_state"]);
         $payment_config = '';
         $config_array = explode(',', $_POST["config_name"]);
         //配置参数
         if (is_array($config_array) && !empty($config_array)) {
             $config_info = array();
             foreach ($config_array as $k) {
                 $config_info[$k] = trim($_POST[$k]);
             }
             $payment_config = serialize($config_info);
         }
         $data['payment_config'] = $payment_config;
         //支付接口配置信息
         $model_payment->editPayment($data, array('payment_id' => $payment_id));
         uk86_showMessage(Uk86Language::uk86_get('nc_common_save_succ'), 'index.php?act=payment&op=index');
     }
     $payment_id = intval($_GET["payment_id"]);
     $payment = $model_payment->getPaymentInfo(array('payment_id' => $payment_id));
     if ($payment['payment_config'] != '') {
         Tpl::output('config_array', unserialize($payment['payment_config']));
     }
     Tpl::output('payment', $payment);
     Tpl::showpage('payment.edit');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:33,代码来源:payment.php

示例8: detailOp

 public function detailOp()
 {
     $personal_id = intval($_GET['personal_id']);
     if ($personal_id <= 0) {
         header('location: ' . MICROSHOP_SITE_URL);
         die;
     }
     $model_personal = Model('micro_personal');
     $condition = array();
     $condition['personal_id'] = $personal_id;
     $detail = $model_personal->getOneWithUserInfo($condition);
     if (empty($detail)) {
         header('location: ' . MICROSHOP_SITE_URL);
         die;
     }
     //点击数加1
     $update = array();
     $update['click_count'] = array('exp', 'click_count+1');
     $model_personal->modify($update, $condition);
     Tpl::output('detail', $detail);
     //侧栏
     self::get_sidebar_list($detail['commend_member_id']);
     //获得分享app列表
     self::get_share_app_list();
     Tpl::output('comment_id', $detail['personal_id']);
     Tpl::output('comment_type', 'personal');
     Tpl::output('html_title', $detail['commend_message'] . '-' . Uk86Language::uk86_get('nc_microshop_personal') . '-' . Uk86Language::uk86_get('nc_microshop') . '-' . C('site_name'));
     Tpl::showpage('personal_detail');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:29,代码来源:personal.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     //检查是否开启
     if (intval(C('promotion_allow')) !== 1) {
         uk86_showMessage(Uk86Language::uk86_get('promotion_unavailable'), uk86_urlShop('seller_center', 'index'), '', 'error');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:8,代码来源:store_promotion_booth.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     Uk86Language::uk86_read('flea_class');
     if ($GLOBALS['setting_config']['flea_isuse'] != '1') {
         uk86_showMessage(Uk86Language::uk86_get('flea_isuse_off_tips'), 'index.php?act=dashboard&op=welcome');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:8,代码来源:flea_class.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     Uk86Language::uk86_read('region,flea_index');
     if ($GLOBALS['setting_config']['flea_isuse'] != 1) {
         uk86_showMessage(Uk86Language::uk86_get('flea_index_unable'), 'index.php?act=dashboard&op=welcome');
         // uk86_showMessage(Uk86Language::uk86_get('admin_ztc_unavailable'),'index.php?act=dashboard&op=welcome');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:9,代码来源:flea_region.php

示例12: indexOp

 /**
  * 分类列表
  */
 public function indexOp()
 {
     Uk86Language::uk86_read('home_category_index');
     $lang = Uk86Language::uk86_getLangContent();
     //导航
     $nav_link = array('0' => array('title' => $lang['homepage'], 'link' => SHOP_SITE_URL), '1' => array('title' => $lang['category_index_goods_class']));
     Tpl::output('nav_link_list', $nav_link);
     Tpl::output('html_title', C('site_name') . ' - ' . Uk86Language::uk86_get('category_index_goods_class'));
     Tpl::showpage('category');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:13,代码来源:category.php

示例13: get_micro_nameOp

 /**
  * 获取微商城名称
  */
 public function get_micro_nameOp()
 {
     $result = '';
     $micro_name = Uk86Language::uk86_get('nc_microshop');
     if ($this->data_type === 'json') {
         $result = json_encode($micro_name);
     } else {
         $result = $micro_name;
     }
     $this->return_result($result);
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:14,代码来源:api.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     if (!$_SESSION['member_id']) {
         uk86_redirect('index.php?act=login&ref_url=' . urlencode(uk86_request_uri()));
     }
     //验证该会员是否禁止购买
     if (!$_SESSION['is_buy']) {
         uk86_showMessage(Uk86Language::uk86_get('cart_buy_noallow'), '', 'html', 'error');
     }
     Tpl::output('hidden_rtoolbar_cart', 1);
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:12,代码来源:buy_virtual.php

示例15: profile_menu

 /**
  * 用户中心右边,小导航
  *
  * @param string	$menu_type	导航类型
  * @param string 	$menu_key	当前导航的menu_key
  * @param array 	$array		附加菜单
  * @return
  */
 private function profile_menu($menu_key = '', $array = array())
 {
     Uk86Language::uk86_read('member_layout');
     $lang = Uk86Language::uk86_getLangContent();
     $menu_array = array();
     $menu_array = array(1 => array('menu_key' => 'points', 'menu_name' => $lang['nc_member_path_points'], 'menu_url' => 'index.php?act=member_points'), 2 => array('menu_key' => 'orderlist', 'menu_name' => Uk86Language::uk86_get('member_pointorder_list_title'), 'menu_url' => 'index.php?act=member_pointorder&op=orderlist'));
     if (!empty($array)) {
         $menu_array[] = $array;
     }
     Tpl::output('member_menu', $menu_array);
     Tpl::output('menu_key', $menu_key);
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:20,代码来源:member_points.php


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