<?php defined('ADMIN_KEKE') or exit('Access Denied'); if ($is_submit) { $shop_obj = new Keke_witkey_shop_class(); $shop_obj->setWhere('shop_id=' . $shop_id); $shop_obj->setSeo_title($seo_title); $shop_obj->setSeo_keyword($seo_keyword); $shop_obj->setSeo_desc($seo_desc); $shop_obj->edit_keke_witkey_shop(); kekezu::admin_show_msg($_lang['operate_success'], "index.php?do=store&view=list", 3, '', 'success'); } intval($shop_id) or kekezu::admin_show_msg($_lang['param_error'], 'index.php?do=store&view=list', 3, '', 'warning'); $shop_info = db_factory::get_one(sprintf(" select * from %switkey_shop where shop_id='%d'", TABLEPRE, $shop_id)); require $kekezu->_tpl_obj->template(ADMIN_DIRECTORY . '/tpl/admin_store_info');
$autoshop = $autoshoparr['v']; if ($changeautoshop) { db_factory::execute("update " . TABLEPRE . "witkey_basic_config set v='" . $chautoshop . "' where k='autoshop'"); die; } switch ($ac) { case "del": $shop_info = db_factory::get_one(sprintf("select * from %switkey_shop where shop_id=%d", TABLEPRE, $shop_id)); $res = $table_obj->del('shop_id', $shop_id); kekezu::admin_show_msg('操作提示', $url, 3, '删除成功!', 'success'); break; case "pass": $shop_info = db_factory::get_one(sprintf("select * from %switkey_shop where shop_id=%d", TABLEPRE, $shop_id)); $shop_obj->setWhere("shop_id=" . $shop_id); $shop_obj->setShop_status(1); $shop_obj->edit_keke_witkey_shop(); $notice_url = "<a href=\"" . $_K['siteurl'] . "/index.php?do=seller&id=" . $shop_info['uid'] . "\">" . $shop_info['shop_name'] . "</a>"; $v_arr = array($_lang['username'] => "{$shop_info['username']}", '店铺名称' => $notice_url); keke_shop_class::notify_user($shop_info['uid'], $shop_info['username'], 'shop_auth_success', '店铺审核通过', $v_arr, 2); kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['examine_successfully'], 'success'); break; case "nopass": $shop_info = db_factory::get_one(sprintf("select * from %switkey_shop where shop_id=%d", TABLEPRE, $shop_id)); $shop_obj->setWhere("shop_id=" . $shop_id); $shop_obj->setShop_status(2); $shop_obj->edit_keke_witkey_shop(); $v_arr = array($_lang['username'] => "{$shop_info['username']}", '店铺名称' => $shop_info['shop_name']); keke_shop_class::notify_user($shop_info['uid'], $shop_info['username'], 'shop_auth_fail', $_lang['task_auth_fail'], $v_arr, 2); kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['operate_success'], 'success'); break; case "open":