本文整理匯總了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');
}
示例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', '');
}
}
示例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');
}
}
示例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');
}
示例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;
}
示例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', '');
}
}
示例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');
}
示例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');
}
示例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');
}
}
示例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');
}
}
示例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');
}
}
示例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');
}
示例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);
}
示例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);
}
示例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);
}