本文整理汇总了PHP中uk86_showMessage函数的典型用法代码示例。如果您正苦于以下问题:PHP uk86_showMessage函数的具体用法?PHP uk86_showMessage怎么用?PHP uk86_showMessage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了uk86_showMessage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: msg_infoOp
/**
* 消息详细
*/
public function msg_infoOp()
{
$sm_id = intval($_GET['sm_id']);
if ($sm_id <= 0) {
uk86_showMessage(L('wrong_argument'), '', '', 'succ');
}
$model_storemsg = Model('store_msg');
$where = array();
$where['sm_id'] = $sm_id;
if ($_SESSION['seller_smt_limits'] !== false) {
$where['smt_code'] = array('in', $_SESSION['seller_smt_limits']);
}
$msg_info = $model_storemsg->getStoreMsgInfo($where);
if (empty($msg_info)) {
uk86_showMessage(L('wrong_argument'), '', '', 'succ');
}
Tpl::output('msg_list', $msg_info);
// 验证时候已读
$sm_readids = explode(',', $msg_info['sm_readids']);
if (!in_array($_SESSION['seller_id'], $sm_readids)) {
// 消息阅读表插入数据
$condition = array();
$condition['seller_id'] = $_SESSION['seller_id'];
$condition['sm_id'] = $sm_id;
Model('store_msg_read')->addStoreMsgRead($condition);
$update = array();
$sm_readids[] = $_SESSION['seller_id'];
$update['sm_readids'] = implode(',', $sm_readids) . ',';
$model_storemsg->editStoreMsg(array('sm_id' => $sm_id), $update);
// 清除店铺消息数量缓存
uk86_setNcCookie('storemsgnewnum' . $_SESSION['seller_id'], 0, -3600);
}
Tpl::showpage('store_msg.info', 'null_layout');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:37,代码来源:store_msg.php
示例2: 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
示例3: store_liveOp
public function store_liveOp()
{
if (uk86_chksubmit()) {
//编辑商户信息
$params = array();
//参数
$params['store_vrcode_prefix'] = preg_match('/^[a-zA-Z0-9]{1,3}$/', $_POST['store_vrcode_prefix']) ? $_POST['store_vrcode_prefix'] : null;
$params['live_store_name'] = $_POST['live_store_name'];
$params['live_store_address'] = $_POST['live_store_address'];
$params['live_store_tel'] = $_POST['live_store_tel'];
$params['live_store_bus'] = $_POST['live_store_bus'];
$model_store = Model('store');
$res = $model_store->editStore($params, array('store_id' => $_SESSION['store_id']));
if ($res) {
uk86_showMessage('编辑成功', '', '', 'succ');
} else {
uk86_showMessage('编辑失败', '', '', 'error');
}
}
$model_store = Model('store');
$store = $model_store->getStoreInfo(array('store_id' => $_SESSION['store_id']));
if (empty($store)) {
uk86_showMessage('该商家不存在');
}
Tpl::output('store', $store);
$this->profile_menu('store_live');
Tpl::showpage('store_liveinfo');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:28,代码来源:store_live.php
示例4: show_orderOp
/**
* 卖家订单详情
*
*/
public function show_orderOp()
{
$order_id = intval($_GET['order_id']);
if ($order_id <= 0) {
uk86_showMessage(Uk86Language::uk86_get('wrong_argument'), '', 'html', 'error');
}
$model_vr_order = Model('vr_order');
$condition = array();
$condition['order_id'] = $order_id;
$condition['store_id'] = $_SESSION['store_id'];
$order_info = $model_vr_order->getOrderInfo($condition);
if (empty($order_info)) {
uk86_showMessage(Uk86Language::uk86_get('store_order_none_exist'), '', 'html', 'error');
}
//取兑换码列表
$vr_code_list = $model_vr_order->getOrderCodeList(array('order_id' => $order_info['order_id']));
$order_info['extend_vr_order_code'] = $vr_code_list;
//显示取消订单
$order_info['if_cancel'] = $model_vr_order->getOrderOperateState('buyer_cancel', $order_info);
//显示订单进行步骤
$order_info['step_list'] = $model_vr_order->getOrderStep($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;
}
Tpl::output('order_info', $order_info);
Tpl::showpage('store_vr_order.show');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:34,代码来源:store_vr_order.php
示例5: 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
示例6: uk86_control
/**
* 控制器调度
*
*/
private static function uk86_control()
{
//二级域名
if ($GLOBALS['setting_config']['enabled_subdomain'] == '1' && $_GET['act'] == 'index' && $_GET['op'] == 'index') {
$store_id = uk86_subdomain();
if ($store_id > 0) {
$_GET['act'] = 'show_store';
}
}
$act_file = realpath(BASE_PATH . '/control/' . $_GET['act'] . '.php');
$class_name = $_GET['act'] . 'Control';
if (!@(include $act_file)) {
if (C('debug')) {
uk86_throw_exception("Uk86Base Error: access file isn't exists!");
} else {
uk86_showMessage('抱歉!您访问的页面不存在', '', 'html', 'error');
}
}
if (class_exists($class_name)) {
$main = new $class_name();
$function = $_GET['op'] . 'Op';
if (method_exists($main, $function)) {
$main->{$function}();
} elseif (method_exists($main, 'indexOp')) {
$main->indexOp();
} else {
$error = "Uk86Base Error: function {$function} not in {$class_name}!";
uk86_throw_exception($error);
}
} else {
$error = "Uk86Base Error: class {$class_name} isn't exists!";
uk86_throw_exception($error);
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:38,代码来源:base.php
示例7: 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
示例8: __construct
public function __construct()
{
parent::__construct();
//是否关闭投稿功能
if (intval(C('cms_comment_flag')) !== 1) {
uk86_showMessage(Uk86Language::uk86_get('comment_closed'), '', '', 'error');
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:8,代码来源:comment.php
示例9: update_goods_areaOp
public function update_goods_areaOp()
{
$cityId = $_POST['city'];
if ($this->area_model->update_goods_service_area($cityId)) {
uk86_showMessage("提交成功");
} else {
uk86_showMessage("提交失败");
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:9,代码来源:servicegoods_area.php
示例10: __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
示例11: performOp
/**
* 性能优化
*/
public function performOp()
{
if ($_GET['type'] == 'clear') {
$lang = Uk86Language::uk86_getLangContent();
$cache = Cache::getInstance(C('cache.type'));
$cache->clear();
uk86_showMessage($lang['nc_common_op_succ']);
}
Tpl::showpage('setting.perform_opt');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:13,代码来源:perform.php
示例12: delOp
/**
* 删除
*/
public function delOp()
{
$model_mb_feedback = Model('mb_feedback');
$result = $model_mb_feedback->delMbFeedback($_POST['feedback_id']);
if ($result) {
uk86_showMessage(L('nc_common_op_succ'));
} else {
uk86_showMessage(L('nc_common_op_fail'));
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:13,代码来源:mb_feedback.php
示例13: mb_home_editOp
/**
* 编辑
*/
public function mb_home_editOp()
{
$model = Model('mb_home');
if ($_POST['form_submit'] == 'ok') {
//验证
$obj_validate = new Uk86Validate();
$obj_validate->validateparam = array(array("input" => $_POST["h_title"], "require" => "true", "message" => L('home_add_null')), array("input" => $_POST["h_desc"], "require" => "true", "message" => L('home_add_null')), array("input" => $_POST["h_keyword"], "require" => "true", "message" => L('home_add_null')), array("input" => $_POST["h_sort"], "require" => "true", 'validator' => 'Number', "message" => L('home_add_sort_int')));
$error = $obj_validate->uk86_validate();
if ($error != '') {
uk86_showMessage($error);
} else {
$home_array = $model->getMbHomeInfoByID(intval($_POST['h_id']));
//上传图片
if ($_FILES['h_img']['name'] != '') {
$upload = new Uk86UploadFile();
$upload->uk86_set('default_dir', ATTACH_MOBILE . '/home');
$result = $upload->uk86_upfile('h_img');
if ($result) {
$_POST['h_img'] = $upload->file_name;
} else {
uk86_showMessage($upload->error);
}
}
$update_array = array();
$update_array['h_title'] = trim($_POST['h_title']);
$update_array['h_desc'] = trim($_POST['h_desc']);
$update_array['h_keyword'] = trim($_POST['h_keyword']);
if (!empty($_POST['h_multi_keyword'])) {
$update_array['h_multi_keyword'] = $_POST['h_multi_keyword'];
}
if ($_POST['h_img']) {
$update_array['h_img'] = $_POST['h_img'];
}
$update_array['h_sort'] = trim($_POST['h_sort']);
$condition = array();
$condition['h_id'] = intval($_POST['h_id']);
$result = $model->editMbHome($update_array, $condition);
if ($result) {
//除图片
if (!empty($_POST['h_img']) && !empty($home_array['h_img'])) {
@unlink(BASE_ROOT_PATH . DS . DIR_UPLOAD . DS . ATTACH_MOBILE . '/home' . DS . $home_array['h_img']);
}
uk86_showMessage(L('home_edit_succ'), 'index.php?act=mb_home&op=mb_home_list');
} else {
uk86_showMessage(L('home_edit_fail'));
}
}
}
$home_array = $model->getMbHomeInfoByID(intval($_GET['h_id']));
if (empty($home_array)) {
uk86_showMessage(L('wrong_argument'));
}
Tpl::output('home_array', $home_array);
Tpl::showpage('mb_home.edit');
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:58,代码来源:mb_home.php
示例14: clearOp
/**
* 清理缓存
*/
public function clearOp()
{
if (!uk86_chksubmit()) {
Tpl::showpage('cache.clear');
return;
}
$lang = Uk86Language::uk86_getLangContent();
// 清理所有缓存
if ($_POST['cls_full'] == 1) {
foreach ($this->cacheItems as $i) {
uk86_dkcache($i);
}
// 表主键
Model::dropTablePkArrayCache();
// 商品分类
uk86_dkcache('gc_class');
uk86_dkcache('all_categories');
uk86_dkcache('goods_class_seo');
uk86_dkcache('class_tag');
// 广告
Model('adv')->makeApAllCache();
// 首页
Model('web_config')->getWebHtml('index', 1);
uk86_delCacheFile('index');
} else {
$todo = (array) $_POST['cache'];
foreach ($this->cacheItems as $i) {
if (in_array($i, $todo)) {
uk86_dkcache($i);
}
}
// 表主键
if (in_array('table', $todo)) {
Model::dropTablePkArrayCache();
}
// 商品分类
if (in_array('goodsclass', $todo)) {
uk86_dkcache('gc_class');
uk86_dkcache('all_categories');
uk86_dkcache('goods_class_seo');
uk86_dkcache('class_tag');
}
// 广告
if (in_array('adv', $todo)) {
Model('adv')->makeApAllCache();
}
// 首页
if (in_array('index', $todo)) {
Model('web_config')->getWebHtml('index', 1);
uk86_delCacheFile('index');
}
}
$this->log(L('cache_cls_operate'));
uk86_showMessage($lang['cache_cls_ok']);
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:58,代码来源:cache.php
示例15: __construct
public function __construct()
{
parent::__construct();
if (C('delivery_isuse') == 0) {
uk86_showMessage('物流自提服务站功能未开启', 'index.php?act=login', '', 'error');
}
if ($_SESSION['delivery_login'] == 1) {
@header('location: index.php?act=d_center');
die;
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:11,代码来源:joinin.php
示例16: special_detailOp
/**
* 专题详细页
*/
public function special_detailOp()
{
$special_file = uk86_getCMSSpecialHtml($_GET['special_id']);
if ($special_file) {
Tpl::output('special_file', $special_file);
Tpl::output('index_sign', 'special');
Tpl::showpage('special_detail');
} else {
uk86_showMessage('专题不存在', '', '', 'error');
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:14,代码来源:special.php
示例17: inform_delOp
/**
* Inform delete
*/
public function inform_delOp()
{
$i_id = intval($_GET['i_id']);
if ($i_id <= 0) {
uk86_showMessage(L('wrong_argument'), '', '', 'error');
}
$rs = Model()->table('circle_inform')->delete($i_id);
if ($rs) {
uk86_showMessage(L('nc_common_op_succ'));
} else {
uk86_showMessage(L('nc_common_op_fail'), '', '', 'error');
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:16,代码来源:circle_inform.php
示例18: html_updateOp
/**
* 更新html内容
*/
public function html_updateOp()
{
$model_web_config = Model('web_config');
$web_id = intval($_GET["web_id"]);
$web_list = $model_web_config->getWebList(array('web_id' => $web_id));
$web_array = $web_list[0];
if (!empty($web_array) && is_array($web_array)) {
$model_web_config->updateWebHtml($web_id);
uk86_showMessage(Uk86Language::uk86_get('nc_common_op_succ'));
} else {
uk86_showMessage(Uk86Language::uk86_get('nc_common_op_fail'));
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:16,代码来源:web_api.php
示例19: 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
示例20: comment_dropOp
/**
* 评论删除
*/
public function comment_dropOp()
{
$model = Model('cms_comment');
$condition = array();
$condition['comment_id'] = array('in', trim($_POST['comment_id']));
$result = $model->drop($condition);
if ($result) {
$this->log(Uk86Language::uk86_get('cms_log_comment_drop') . $_POST['comment_id'], 1);
uk86_showMessage(Uk86Language::uk86_get('nc_common_del_succ'), '');
} else {
$this->log(Uk86Language::uk86_get('cms_log_comment_drop') . $_POST['comment_id'], 0);
uk86_showMessage(Uk86Language::uk86_get('nc_common_del_fail'), '', '', 'error');
}
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:17,代码来源:cms_comment.php
注:本文中的uk86_showMessage函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论