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


PHP uk86_chksubmit函数代码示例

本文整理汇总了PHP中uk86_chksubmit函数的典型用法代码示例。如果您正苦于以下问题:PHP uk86_chksubmit函数的具体用法?PHP uk86_chksubmit怎么用?PHP uk86_chksubmit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了uk86_chksubmit函数的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');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:39,代码来源:common.php

示例2: 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

示例3: pic_listOp

 /**
  * 图片列表
  */
 public function pic_listOp()
 {
     $model = Model();
     // 删除图片
     if (uk86_chksubmit()) {
         $where = array('ap_id' => array('in', $_POST['id']));
         $ap_list = $model->table('sns_albumpic')->where($where)->select();
         if (empty($ap_list)) {
             uk86_showMessage(Uk86Language::uk86_get('snsalbum_choose_need_del_img'));
         }
         foreach ($ap_list as $val) {
             @unlink(BASE_UPLOAD_PATH . DS . ATTACH_MALBUM . DS . $val['member_id'] . DS . $val['ap_cover']);
             @unlink(BASE_UPLOAD_PATH . DS . ATTACH_MALBUM . DS . $val['member_id'] . DS . str_ireplace('.', '_240.', $val['ap_cover']));
             @unlink(BASE_UPLOAD_PATH . DS . ATTACH_MALBUM . DS . $val['member_id'] . DS . str_ireplace('.', '_1280.', $val['ap_cover']));
         }
         $model->table('sns_albumpic')->where($where)->delete();
         $this->log(L('nc_del,nc_member_album_manage') . '[ID:' . implode(',', $_POST['id']) . ']', 1);
         uk86_showMessage(Uk86Language::uk86_get('nc_common_del_succ'));
     }
     $id = intval($_GET['id']);
     if ($id <= 0) {
         uk86_showMessage(Uk86Language::uk86_get('param_error'));
     }
     $where = array();
     $where['ac_id'] = $id;
     if ($_GET['pic_name'] != '') {
         $where['ap_name|ap_cover'] = array('like', '%' . $_GET['pic_name'] . '%');
     }
     $pic_list = $model->table('sns_albumpic')->where($where)->page(33)->select();
     Tpl::output('id', $id);
     Tpl::output('showpage', $model->showpage(2));
     Tpl::output('pic_list', $pic_list);
     Tpl::showpage('sns_malbum.piclist');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:37,代码来源:sns_malbum.php

示例4: store_class_editOp

 /**
  * 编辑
  */
 public function store_class_editOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     $model_class = Model('store_class');
     if (uk86_chksubmit()) {
         //验证
         $obj_validate = new Uk86Validate();
         $obj_validate->validateparam = array(array("input" => $_POST["sc_name"], "require" => "true", "message" => $lang['store_class_name_no_null']));
         $error = $obj_validate->uk86_validate();
         if ($error != '') {
             uk86_showMessage($error);
         } else {
             $update_array = array();
             $update_array['sc_name'] = $_POST['sc_name'];
             $update_array['sc_bail'] = intval($_POST['sc_bail']);
             $update_array['sc_sort'] = intval($_POST['sc_sort']);
             $result = $model_class->editStoreClass($update_array, array('sc_id' => intval($_POST['sc_id'])));
             if ($result) {
                 $this->log(L('nc_edit,store_class') . '[' . $_POST['sc_name'] . ']', 1);
                 uk86_showMessage($lang['nc_common_save_succ'], 'index.php?act=store_class&op=store_class');
             } else {
                 uk86_showMessage($lang['nc_common_save_fail']);
             }
         }
     }
     $class_array = $model_class->getStoreClassInfo(array('sc_id' => intval($_GET['sc_id'])));
     if (empty($class_array)) {
         uk86_showMessage($lang['illegal_parameter']);
     }
     Tpl::output('class_array', $class_array);
     Tpl::showpage('store_class.edit');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:35,代码来源:store_class.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: save_deliveryOp

 /**
  * 保存申请
  */
 public function save_deliveryOp()
 {
     if (!uk86_chksubmit()) {
         showDialog(L('wrong_argument'));
     }
     $insert = array();
     $insert['dlyp_name'] = $_POST['dname'];
     $insert['dlyp_passwd'] = md5($_POST['dpasswd']);
     $insert['dlyp_truename'] = $_POST['dtruename'];
     $insert['dlyp_mobile'] = $_POST['dmobile'];
     $insert['dlyp_telephony'] = $_POST['dtelephony'];
     $insert['dlyp_address_name'] = $_POST['daddressname'];
     $insert['dlyp_area_2'] = $_POST['area_id_2'];
     $insert['dlyp_area_3'] = $_POST['area_id'];
     $insert['dlyp_area_info'] = $_POST['area_info'];
     $insert['dlyp_address'] = $_POST['daddress'];
     $insert['dlyp_idcard'] = $_POST['didcard'];
     $insert['dlyp_addtime'] = TIMESTAMP;
     $insert['dlyp_state'] = 10;
     $upload = new Uk86UploadFile();
     $upload->uk86_set('default_dir', ATTACH_DELIVERY);
     $result = $upload->uk86_upfile('didcardimg');
     if (!$result) {
         showDialog($upload->error);
     }
     $insert['dlyp_idcard_image'] = $upload->file_name;
     $result = Model('delivery_point')->addDeliveryPoint($insert);
     if ($result) {
         showDialog('操作成功,等待管理员审核', 'index.php?act=login', 'succ');
     } else {
         showDialog(L('nc_common_op_fail'));
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:36,代码来源:joinin.php

示例7: 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

示例8: save_specOp

 /**
  * 保存规格值
  */
 public function save_specOp()
 {
     $sp_id = intval($_POST['sp_id']);
     $gc_id = intval($_POST['gc_id']);
     if ($sp_id <= 0 || $gc_id <= 0 || !uk86_chksubmit()) {
         showDialog(L('wrong_argument'));
     }
     $model_spec = Model('spec');
     // 更新原规格值
     if (is_array($_POST['sv']['old'])) {
         foreach ($_POST['sv']['old'] as $key => $value) {
             if (empty($value['name'])) {
                 continue;
             }
             $where = array('sp_value_id' => $key);
             $update = array('sp_value_name' => $value['name'], 'sp_id' => $sp_id, 'gc_id' => $gc_id, 'store_id' => $_SESSION['store_id'], 'sp_value_color' => $value['color'], 'sp_value_sort' => intval($value['sort']));
             $model_spec->editSpecValue($update, $where);
         }
     }
     // 添加新规格值
     if (is_array($_POST['sv']['new'])) {
         $insert_array = array();
         foreach ($_POST['sv']['new'] as $value) {
             if (empty($value['name'])) {
                 continue;
             }
             $tmp_insert = array('sp_value_name' => $value['name'], 'sp_id' => $sp_id, 'gc_id' => $gc_id, 'store_id' => $_SESSION['store_id'], 'sp_value_color' => $value['color'], 'sp_value_sort' => intval($value['sort']));
             $insert_array[] = $tmp_insert;
         }
         $model_spec->addSpecValueALL($insert_array);
     }
     showDialog(L('nc_common_op_succ'), 'reload', 'succ');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:36,代码来源:store_spec.php

示例9: indexOp

 /**
  * 大转盘基本设置
  */
 public function indexOp()
 {
     $model_wheel = Model('wheel');
     if (uk86_chksubmit()) {
         if (strtotime($_POST['wheel_start_time']) >= strtotime($_POST['wheel_end_time'])) {
             uk86_showMessage('活动开始时间不能大于结束时间,请重新设置');
         }
         $obj_validate = new Uk86Validate();
         $obj_validate->validateparam = array();
         $error = $obj_validate->uk86_validate();
         if ($error != '') {
             uk86_showMessage($error);
         } else {
             $prize_array = array();
             $sum = 0;
             for ($i = 0; $i < intval($_POST['lottery_length']); $i++) {
                 $prize_array[$i]['name'] = $_POST['wheel_prize_name_' . ($i + 1)];
                 $prize_array[$i]['chance'] = floatval($_POST['wheel_prize_' . ($i + 1)]);
                 $prize_array[$i]['num'] = $_POST['wheel_prize_num_' . ($i + 1)];
                 $prize_array[$i]['give'] = intval($_POST['wheel_prize_give_' . ($i + 1)]);
                 $sum += $prize_array[$i]['chance'];
             }
             if ($sum > 100) {
                 uk86_showMessage('奖品概率不能大于100%');
             } else {
                 $wheel_array = array();
                 $wheel_array['wheel_start_time'] = strtotime($_POST['wheel_start_time']);
                 $wheel_array['wheel_end_time'] = strtotime($_POST['wheel_end_time']);
                 $wheel_array['wheel_isuse'] = intval($_POST['wheel_isuse']);
                 $wheel_array['wheel_prizes'] = serialize($prize_array);
                 $wheel_array['wheel_title'] = $_POST['wheel_title'];
                 if (intval($_POST['wheel_id']) > 0) {
                     $wheel_array['last_updata_time'] = time();
                     $result = $model_wheel->where('wheel_id = ' . $_POST['wheel_id'])->update($wheel_array);
                 } else {
                     $wheel_array['wheel_add_time'] = time();
                     $result = $model_wheel->insert($wheel_array);
                 }
                 if ($result) {
                     //$this->log(L('nc_edit,nc_operation,nc_operation_set'),1);
                     uk86_showMessage('操作成功', 'index.php?act=wheel&op=wheelList');
                 } else {
                     uk86_showMessage('操作失败');
                 }
             }
         }
     }
     if (intval($_GET['id']) > 0) {
         $wheel_info = $model_wheel->where('wheel_id = ' . intval($_GET['id']))->find();
         $prize_info = unserialize($wheel_info['wheel_prizes']);
         Tpl::output('setting', 1);
         Tpl::output('wheel_info', $wheel_info);
         Tpl::output('prize_info', $prize_info);
         Tpl::output('wheel_setting', $wheel_info['wheel_isuse']);
     }
     $num_ch = array('一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三', '十四', '十五', '十六', '十七', '十八', '十九', '二十');
     Tpl::output('num_ch', $num_ch);
     Tpl::showpage("wheel");
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:62,代码来源:wheel.php

示例10: brand_saveOp

 /**
  * 品牌保存
  */
 public function brand_saveOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     $model_brand = Model('brand');
     if (uk86_chksubmit()) {
         //一个商家只能添加一个品牌。wangjiang
         $condition['store_id'] = $_SESSION['store_id'];
         $brandCount = $model_brand->getBrandCount($condition);
         if ($brandCount > 1) {
             showDialog('一个商家只能添加一个品牌,如您旗下已有多个品牌,请删除后操作.', 'index.php?act=store_brand&op=brand_list', 'succ', empty($_GET['inajax']) ? '' : 'CUR_DIALOG.close();');
         }
         /**
          * 验证
          */
         $obj_validate = new Uk86Validate();
         $obj_validate->validateparam = array(array("input" => $_POST["brand_name"], "require" => "true", "message" => $lang['store_goods_brand_name_null']), array("input" => $_POST["brand_initial"], "require" => "true", "message" => '请填写首字母'));
         $error = $obj_validate->uk86_validate();
         if ($error != '') {
             uk86_showValidateError($error);
         }
         /**
          * 上传图片
          */
         if (!empty($_FILES['brand_pic']['name'])) {
             $upload = new Uk86UploadFile();
             $upload->uk86_set('default_dir', ATTACH_BRAND);
             $upload->uk86_set('thumb_width', 150);
             $upload->uk86_set('thumb_height', 50);
             $upload->uk86_set('thumb_ext', '_small');
             $upload->uk86_set('ifremove', true);
             $result = $upload->uk86_upfile('brand_pic');
             if ($result) {
                 $_POST['brand_pic'] = $upload->thumb_image;
             } else {
                 showDialog($upload->error);
             }
         }
         $insert_array = array();
         $insert_array['brand_name'] = trim($_POST['brand_name']);
         $insert_array['brand_initial'] = strtoupper($_POST['brand_initial']);
         $insert_array['class_id'] = $_POST['class_id'];
         $insert_array['brand_class'] = $_POST['brand_class'];
         $insert_array['brand_pic'] = $_POST['brand_pic'];
         $insert_array['brand_apply'] = 0;
         $insert_array['store_id'] = $_SESSION['store_id'];
         $result = $model_brand->addBrand($insert_array);
         if ($result) {
             //自动生成订单
             $brand['brand_id'] = $result;
             $this->generateNopayPmOrder($brand);
             //修改 wangjiang 2016.1.21跳转到brand_list 不跳支付页面
             //				showDialog($lang['store_goods_brand_apply_success'],'index.php?act=store_brand&op=pay&brand_id='.$result,'succ',empty($_GET['inajax']) ?'':'CUR_DIALOG.close();');
             showDialog($lang['nc_common_save_succ'], 'index.php?act=store_brand&op=brand_list', 'succ', empty($_GET['inajax']) ? '' : 'CUR_DIALOG.close();');
         } else {
             showDialog($lang['nc_common_save_fail']);
         }
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:61,代码来源:store_brand.php

示例11: listOp

 /**
  * 相册列表
  */
 public function listOp()
 {
     $model = Model();
     if (uk86_chksubmit()) {
         if (is_array($_POST['aclass_id'])) {
             foreach ($_POST['aclass_id'] as $k => $v) {
                 if (!is_numeric($v)) {
                     unset($_POST['aclass_id'][$k]);
                 }
             }
         }
         if (!empty($_POST['aclass_id'])) {
             $pic = $model->table('album_pic')->field('apic_cover')->where(array('aclass_id' => array('in', $_POST['aclass_id'])))->select();
             if (is_array($pic)) {
                 foreach ($pic as $v) {
                     $this->del_file($v['apic_cover']);
                 }
             }
             $model->table('album_pic')->where(array('aclass_id' => array('in', $_POST['aclass_id'])))->delete();
             $model->table('album_class')->where(array('aclass_id' => array('in', $_POST['aclass_id'])))->delete();
             $this->log(L('nc_delete,g_album_one') . '[ID:' . implode(',', $_POST['aclass_id']) . ']', 1);
             uk86_showMessage(Uk86Language::uk86_get('nc_common_del_succ'));
         }
     }
     $condiiton = array();
     if (is_numeric($_GET['keyword'])) {
         $condiiton['store.store_id'] = $_GET['keyword'];
         $store_name = $model->table('store')->getfby_store_id($_GET['keyword'], 'store_name');
     } elseif (!empty($_GET['keyword'])) {
         $store_name = $_GET['keyword'];
         $store_id = $model->table('store')->getfby_store_name($_GET['keyword'], 'store_id');
         if (is_numeric($store_id)) {
             $condiiton['store.store_id'] = $store_id;
         } else {
             $condiiton['store.store_id'] = 0;
         }
     }
     $model->table('album_class,store')->where($condiiton)->join('inner')->on('album_class.store_id=store.store_id');
     $list = $model->field('album_class.*,store.store_name')->page(10)->select();
     Tpl::output('page', $model->showpage());
     $model->cls()->table('album_pic')->field('aclass_id,count(*) as pcount')->group('aclass_id');
     if (is_array($list) && !empty($list)) {
         foreach ($list as $v) {
             $class[] = $v['aclass_id'];
         }
         $model->where(array('aclass_id' => array('in', implode(',', $class))));
     }
     $count = $model->select();
     if (is_array($count)) {
         foreach ($count as $v) {
             $pic_count[$v['aclass_id']] = $v['pcount'];
         }
     }
     Tpl::output('pic_count', $pic_count);
     Tpl::output('list', $list);
     Tpl::output('store_name', $store_name);
     Tpl::showpage('goods_album.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:61,代码来源:goods_album.php

示例12: add_refundOp

 /**
  * 添加兑换码退款
  *
  */
 public function add_refundOp()
 {
     $model_vr_refund = Model('vr_refund');
     $order_id = intval($_GET['order_id']);
     if ($order_id < 1) {
         //参数验证
         showDialog(Uk86Language::uk86_get('wrong_argument'), 'index.php?act=member_vr_refund&op=index', 'error');
     }
     $condition = array();
     $condition['buyer_id'] = $_SESSION['member_id'];
     $condition['order_id'] = $order_id;
     $order = $model_vr_refund->getRightOrderList($condition);
     $order_id = $order['order_id'];
     if (!$order['if_refund']) {
         //检查状态,防止页面刷新不及时造成数据错误
         showDialog(Uk86Language::uk86_get('wrong_argument'), 'index.php?act=member_vr_order&op=index', 'error');
     }
     if (uk86_chksubmit() && $order['if_refund']) {
         $code_list = $order['code_list'];
         $refund_array = array();
         $goods_num = 0;
         //兑换码数量
         $refund_amount = 0;
         //退款金额
         $code_sn = '';
         $rec_id_array = $_POST['rec_id'];
         if (!empty($rec_id_array) && is_array($rec_id_array)) {
             //选择退款的兑换码
             foreach ($rec_id_array as $key => $value) {
                 $code = $code_list[$value];
                 if (!empty($code)) {
                     $goods_num += 1;
                     $refund_amount += $code['pay_price'];
                     //实际支付金额
                     $code_sn .= $code['vr_code'] . ',';
                     //兑换码编号
                 }
             }
         }
         if ($goods_num < 1) {
             showDialog(Uk86Language::uk86_get('wrong_argument'), 'reload', 'error');
         }
         $refund_array['code_sn'] = rtrim($code_sn, ',');
         $refund_array['admin_state'] = '1';
         //状态:1为待审核,2为同意,3为不同意
         $refund_array['refund_amount'] = uk86_ncPriceFormat($refund_amount);
         $refund_array['goods_num'] = $goods_num;
         $refund_array['buyer_message'] = $_POST['buyer_message'];
         $refund_array['add_time'] = time();
         $state = $model_vr_refund->addRefund($refund_array, $order);
         if ($state) {
             showDialog(Uk86Language::uk86_get('nc_common_save_succ'), 'index.php?act=member_vr_refund&op=index', 'succ');
         } else {
             showDialog(Uk86Language::uk86_get('nc_common_save_fail'), 'reload', 'error');
         }
     }
     Tpl::showpage('member_vr_refund_add');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:62,代码来源:member_vr_refund.php

示例13: 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

示例14: indexOp

 public function indexOp()
 {
     $model_store = Model('store');
     if (uk86_chksubmit()) {
         $store_free_price = floatval(abs($_POST['store_free_price']));
         $model_store->editStore(array('store_free_price' => $store_free_price), array('store_id' => $_SESSION['store_id']));
         showDialog(L('nc_common_save_succ'), 'reload', 'succ');
     }
     Tpl::output('store_free_price', $this->store_info['store_free_price']);
     self::profile_menu('free_freight', 'free_freight');
     Tpl::showpage('store_free_freight.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:12,代码来源:store_free_freight.php

示例15: indexOp

 /**
  * Share the binding
  */
 public function indexOp()
 {
     // memberInfo
     $this->memberInfo();
     if (empty($this->cm_info)) {
         showDialog(L('circle_inform_error'));
     }
     $t_id = intval($_GET['t_id']);
     if ($t_id <= 0) {
         echo '<script>DialogManager.close("inform");</script>';
     }
     $model = Model();
     $r_id = intval($_GET['r_id']);
     $where = array();
     $where['circle_id'] = $this->c_id;
     $where['theme_id'] = $t_id;
     $where['reply_id'] = $r_id;
     $inform_info = $model->table('circle_inform')->where($where)->find();
     if (!empty($inform_info)) {
         echo '<script>showError("' . L('circle_inform_have_been_reported') . '");DialogManager.close("inform");</script>';
         exit;
     }
     if (uk86_chksubmit()) {
         $circle_info = $model->table('circle')->field('circle_name')->find($this->c_id);
         if (!empty($circle_info)) {
             echo '<script>DialogManager.close("inform");</script>';
         }
         $theme_info = $model->table('circle_theme')->field('theme_name')->find($t_id);
         if (!empty($theme_info)) {
             echo '<script>DialogManager.close("inform");</script>';
         }
         $insert = array();
         $insert['circle_id'] = $this->c_id;
         $insert['circle_name'] = $circle_info['circle_name'];
         $insert['theme_id'] = $t_id;
         $insert['theme_name'] = $theme_info['theme_name'];
         $insert['reply_id'] = $r_id;
         $insert['member_id'] = $_SESSION['member_id'];
         $insert['member_name'] = $_SESSION['member_name'];
         $insert['inform_content'] = $_POST['content'];
         $insert['inform_time'] = time();
         $insert['inform_type'] = 0;
         $insert['inform_state'] = 0;
         $model->table('circle_inform')->insert($insert);
         // Update the inform number
         $update = array('circle_id' => $this->c_id, 'new_informcount' => array('exp', 'new_informcount+1'));
         $model->table('circle')->update($update);
         showDialog(L('nc_common_op_succ'), '', 'succ', '$(\'a[nctype="inform_cancel"]\').click();');
     }
     Tpl::output('t_id', $t_id);
     Tpl::showpage('theme.inform', 'null_layout');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:55,代码来源:theme_inform.php


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