本文整理汇总了PHP中Uk86Language::uk86_read方法的典型用法代码示例。如果您正苦于以下问题:PHP Uk86Language::uk86_read方法的具体用法?PHP Uk86Language::uk86_read怎么用?PHP Uk86Language::uk86_read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Uk86Language
的用法示例。
在下文中一共展示了Uk86Language::uk86_read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pic_cutOp
/**
* 图片裁剪
*
*/
public function pic_cutOp()
{
Uk86Language::uk86_read('admin_common');
$lang = Uk86Language::uk86_getLangContent();
uk86_import('function.thumb');
if (uk86_chksubmit()) {
$thumb_width = $_POST['x'];
$x1 = $_POST["x1"];
$y1 = $_POST["y1"];
$x2 = $_POST["x2"];
$y2 = $_POST["y2"];
$w = $_POST["w"];
$h = $_POST["h"];
$scale = $thumb_width / $w;
$src = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_POST['url']);
if (strpos($src, '..') !== false || strpos($src, BASE_UPLOAD_PATH) !== 0) {
exit;
}
if (!empty($_POST['filename'])) {
// $save_file2 = BASE_UPLOAD_PATH.'/'.$_POST['filename'];
$save_file2 = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_POST['filename']);
} else {
$save_file2 = str_replace('_small.', '_sm.', $src);
}
$cropped = uk86_resize_thumb($save_file2, $src, $w, $h, $x1, $y1, $scale);
@unlink($src);
$pathinfo = pathinfo($save_file2);
exit($pathinfo['basename']);
}
$save_file = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_GET['url']);
$_GET['resize'] = $_GET['resize'] == '0' ? '0' : '1';
Tpl::output('height', uk86_get_height($save_file));
Tpl::output('width', uk86_get_width($save_file));
Tpl::showpage('common.pic_cut', 'null_layout');
}
示例2: editOrderRefundExtension
/**
* 平台确认退款处理
*
* @param
* @return bool
*/
public function editOrderRefundExtension($refund)
{
$refund_id = intval($refund['refund_id']);
if ($refund_id > 0) {
Uk86Language::uk86_read('model_lang_index');
$order_id = $refund['order_id'];
//订单编号
$field = 'trade_no,order_id,buyer_id,buyer_name,store_id,order_sn,order_amount,payment_code,order_state,refund_amount';
$model_order = Model('order');
$order = $model_order->getOrderInfo(array('order_id' => $order_id), array(), $field);
try {
$this->beginTransaction();
$order_amount = $order['order_amount'];
//订单金额
//$predeposit_amount = $order_amount-$order['refund_amount'];//可退金额
//if ($predeposit_amount) {
$log_array = array();
$log_array['member_id'] = $order['buyer_id'];
$log_array['member_name'] = $order['buyer_name'];
$log_array['order_sn'] = $order['order_sn'];
$log_array['amount'] = $refund['refund_amount'];
$refund['trade_no'] = $order['trade_no'];
if ($predeposit_amount > 0) {
$log_array['amount'] = $refund['refund_amount'] - $predeposit_amount;
}
$state = $this->changePa("refund", $log_array, $refund);
//增加买家支付账户金额
//}
$order_state = $order['order_state'];
$model_trade = Model('trade');
$order_paid = $model_trade->getOrderState('order_paid');
//订单状态20:已付款
if ($state && $order_state == $order_paid) {
uk86_Logic('order')->changeOrderStateCancel($order, 'system', '系统', '商品全部退款完成取消订单', false);
}
if ($state) {
$order_array = array();
$order_amount = $order['order_amount'];
//订单金额
$refund_amount = $order['refund_amount'] + $refund['refund_amount'];
//退款金额
$order_array['refund_state'] = $order_amount - $refund_amount > 0 ? 1 : 2;
$order_array['refund_amount'] = uk86_ncPriceFormat($refund_amount);
$order_array['delay_time'] = time();
$state = $model_order->editOrder($order_array, array('order_id' => $order_id));
//更新订单退款
}
if ($state && $refund['order_lock'] == '2') {
$state = $this->editOrderUnlock($order_id);
//订单解锁
}
$this->commit();
return $state;
} catch (Exception $e) {
$this->rollback();
return false;
}
}
return false;
}
示例3: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read('member_member_index');
$model_refund = Model('refund_return');
$model_refund->getRefundStateArray();
}
示例4: __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);
}
示例5: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read('refund');
$model_vr_refund = Model('vr_refund');
$model_vr_refund->getRefundStateArray();
}
示例6: complain_showOp
public function complain_showOp()
{
Uk86Language::uk86_read('member_store_index');
$complain_id = intval($_GET['complain_id']);
//获取投诉详细信息
$complain_info = $this->get_complain_info($complain_id);
$model_member = Model('member');
$member = $model_member->getMemberInfoByID($complain_info['accuser_id']);
Tpl::output('member', $member);
$model_refund = Model('refund_return');
$condition = array();
$condition['order_id'] = $complain_info['order_id'];
$model_refund->getRightOrderList($condition, $complain_info['order_goods_id']);
$page_name = '';
switch (intval($complain_info['complain_state'])) {
case self::STATE_APPEAL:
$page_name = 'complain.appeal';
break;
default:
$page_name = 'complain.info';
break;
}
Tpl::output('complain_info', $complain_info);
Tpl::showpage($page_name);
}
示例7: __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')]);
}
}
示例8: profile_menu
/**
* 用户中心右边,小导航
*
* @param string $menu_type 导航类型
* @param string $menu_key 当前导航的menu_key
* @return
*/
private function profile_menu($menu_key = '')
{
Uk86Language::uk86_read('member_layout');
$menu_array = array(1 => array('menu_key' => 'store_printsetup', 'menu_name' => '打印设置', 'menu_url' => 'index.php?act=store_printsetup&op=index'));
Tpl::output('member_menu', $menu_array);
Tpl::output('menu_key', $menu_key);
}
示例9: indexOp
/**
* 店铺开店页
*
*/
public function indexOp()
{
Uk86Language::uk86_read("home_login_index");
$code_info = C('store_joinin_pic');
$info['pic'] = array();
if (!empty($code_info)) {
$info = unserialize($code_info);
}
Tpl::output('pic_list', $info['pic']);
//首页图片
Tpl::output('show_txt', $info['show_txt']);
//贴心提示
$model_help = Model('help');
$condition['type_id'] = '1';
//入驻指南
$help_list = $model_help->getHelpList($condition, '', 4);
//显示4个
Tpl::output('help_list', $help_list);
Tpl::output('article_list', '');
//底部不显示文章分类
Tpl::output('show_sign', 'joinin');
Tpl::output('html_title', C('site_name') . ' - ' . '商家入驻');
Tpl::setLayout('store_joinin_layout');
Tpl::showpage('store_joinin');
}
示例10: 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');
}
示例11: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read('stat');
uk86_import('function.statistics');
uk86_import('function.datehelper');
}
示例12: 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');
}
}
示例13: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read("login_index");
Uk86Language::uk86_read('common');
Uk86Language::uk86_read('cms');
}
示例14: __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($this->search_arr['op'], array('pricerange', 'hotgoods', 'goods_sale'))) {
$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->choose_gcid = ($t = intval($_REQUEST['choose_gcid'])) > 0 ? $t : 0;
$gccache_arr = Model('goods_class')->getGoodsclassCache($this->choose_gcid, 3);
$this->gc_arr = $gccache_arr['showclass'];
Tpl::output('gc_json', json_encode($gccache_arr['showclass']));
Tpl::output('gc_choose_json', json_encode($gccache_arr['choose_gcid']));
}
示例15: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read('sns_sharesetting');
$model = Model('sns_binding');
$this->app_arr = $model->getApps();
}