Exemplo n.º 1
0
<?php

kekezu::check_login();
$id = intval($id);
$gUid = intval($gUid);
$orderId = intval($orderId);
$strUrl = "index.php?do=gy&id=" . $id;
$step = strval(trim($step));
if (!$step) {
    $step = 'step1';
}
$objServiceTime = new service_time_class();
$objServiceTime->validtaskstatus();
unset($objServiceTime);
$objGoodsTime = new goods_time_class();
$objGoodsTime->validtaskstatus();
unset($objGoodsTime);
$arrDisplaypro = CommonClass::getDistrictByPid('0', 'id,upid,name');
$arrTopIndustrys = $kekezu->_indus_p_arr;
$strExtTypes = kekezu::get_ext_type();
if ($orderId) {
    $arrOrderInfo = db_factory::get_one(sprintf("select * from %switkey_order where order_id=%d", TABLEPRE, $orderId));
    if (!$arrOrderInfo) {
        kekezu::show_msg('订单不存在', 'index.php?do=goodslist', 3, '订单不存在', 'warning');
    }
    $arrServiceOrderInfo = db_factory::get_one(sprintf("select * from %switkey_service_order where order_id=%d", TABLEPRE, $orderId));
}
$reportUrl = $strUrl . '&orderId=' . $orderId . '&action=rights&objId=' . $orderId . '&objType=order&type=1&toUid=';
if ($id == $gUid) {
    $reqPage = 'seller';
    $arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']);
Exemplo n.º 2
0
    $objFavorite = keke_table_class::get_instance('witkey_favorite');
    $arrFields = array('keep_type' => $obj_type, 'obj_type' => $do, 'origin_id' => $service_id, 'obj_id' => $service_id, 'obj_name' => $arrServiceInfo['title'], 'uid' => $uid, 'username' => $gUsername, 'on_date' => time());
    $intResult = $objFavorite->save($arrFields);
    die;
}
if ($type == "getno") {
    $sql1 = "DELETE FROM " . TABLEPRE . "witkey_favorite WHERE obj_id =" . $service_id . ' and uid=' . $uid . ' and keep_type="service"';
    $sql1 .= " and obj_type='" . $do . "'";
    db_factory::query($sql1);
    die;
}
$intFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($arrServiceInfo['uid'])));
$page and $intPage = intval($page);
intval($intPage) and $p['page'] = intval($intPage) or $p['page'] = '1';
intval($intPagesize) and $p['page_size'] = intval($intPagesize) or $p['page_size'] = 10;
$objTime = new service_time_class();
$objTime->validtaskstatus();
switch ($view) {
    case "content":
        break;
    case "sale":
        $arrStatus = goods_shop_class::get_order_status();
        $p['url'] = $strUrl . "&view=sale&intPagesize=" . $p['page_size'] . "&intPage=" . $p['page'];
        $p['anchor'] = '#pageT';
        $w = array();
        $w['a.order_status'] = "complete";
        $t == 'today' and $ext_condit = 'day(date(from_unixtime(a.order_time)))=day(curdate())';
        $arrSaleArr = keke_shop_class::get_sale_info($intId, $w, $p, " a.order_time desc", $ext_condit);
        $arrSaleList = $arrSaleArr['sale_info'];
        $intCount = count($arrSaleList);
        $pages = $arrSaleArr['pages'];