Exemplo n.º 1
0
<?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');
Exemplo n.º 2
0
 static function get_shop_info($uid)
 {
     $shop_obj = new Keke_witkey_shop_class();
     $shop_obj->setWhere(" uid = {$uid}");
     $shop_info = $shop_obj->query_keke_witkey_shop();
     if ($shop_info) {
         return $shop_info[0];
     } else {
         return FALSE;
     }
 }
Exemplo n.º 3
0
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(170);
$table_obj = keke_table_class::get_instance('witkey_shop');
$shop_obj = new Keke_witkey_shop_class();
intval($page) or $page = 1;
intval($wh['page_size']) or $wh['page_size'] = 10;
$url = "index.php?do={$do}&view={$view}&txt_name={$txt_name}&txt_shop_id={$txt_shop_id}&page={$page}&w[ord][0]={$w['ord']['0']}&w[ord][1]={$w['ord']['1']}&wh[page_size]={$wh['page_size']}&shop_status={$shop_status}";
$status_arr = array("0" => "待审核", "1" => "开启", "2" => "审核不通过", "3" => "关闭");
$shop_type_arr = array("1" => "个人店铺", "2" => "企业店铺");
$autoshoparr = db_factory::get_one("select * from " . TABLEPRE . "witkey_basic_config where k='autoshop'");
$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);