Esempio n. 1
0
function GetKind($kindid, $webid)
{
    $str = getCarKind($kindid, $webid);
    return $str;
}
Esempio n. 2
0
    $order = Helper_Archive::getOrderInfo($id);
    $price = !empty($order['dingjin']) ? $order['dingjin'] * $order['dingnum'] : intval($order['dingnum']) * $order['price'];
    if (empty($price)) {
        $url = "{$GLOBALS['cfg_basehost']}/cars/show_{$order['productaid']}.html";
        header("location:{$url}");
        exit;
    }
    echo Helper_Archive::payOnline($order['ordersn'], $order['productname'], $price, $paytype);
}
$pv = new View($typeid);
if (empty($suitid)) {
    Helper_Archive::showMsg("请选择套餐", -1, 0);
}
$row = $dsql->GetOne("select a.*,a.id as suitid,a.unit as suitunit, b.* from #@__car_suit a left join #@__car b on a.carid=b.id where a.id='{$suitid}'");
$userinfo = $User->getInfoByMid($User->uid);
$row['carkind'] = getCarKind($row['carkindid'], 0);
$row['carbrand'] = getCarBrand($row['carbrandid'], 0);
$row['carnumber'] = getSeries($row['id'], '03');
//编号
$row['typename'] = GetTypeName($typeid);
$price = getSuitPriceByDay($suitid, $usedate);
$row['singleprice'] = $price;
$row['usedate'] = $usedate;
$row['title'] = $row['title'] . $row['suitname'];
if (!empty($price)) {
    $row['price'] = $price;
    if (!empty($row['suitunit'])) {
        $row['price'] .= '  ';
    } else {
        $row['price'];
    }
Esempio n. 3
0
    default:
        $orderby = " order by b.displayorder asc,a.modtime desc,a.addtime desc";
        break;
}
if (empty($dest_id)) {
    $sql = "select a.* from sline_car a left join sline_allorderlist b on(a.id=b.aid and b.typeid={$typeid}) {$where} {$orderby}";
} else {
    $sql = "select a.* from sline_car a left join sline_kindorderlist b on(a.id=b.aid and b.typeid={$typeid} and b.classid='{$dest_id}') {$where} {$orderby}";
}
$pv = new ListView($typeid);
$pv->pagesize = 10;
//分页条数.
$pv->SetSql($sql);
$channelname = GetTypeName($typeid);
if ($carkindid != 0) {
    $carkindname = getCarKind($carkindid);
    $carkindtitle = getCarKindTitle($carkindid);
}
$destinfo = getDestInfo($typeid, $dest_id);
//目的地优化信息;
$seoarr = Generateinfo();
$seoarr['channelname'] = $channelname;
//栏目名称
//当前页数->title里面使用
$seoarr['pageno'] = !empty($pageno) ? '第' . $pageno . '页-' : "";
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
//seo变量赋值
foreach ($seoarr as $k => $v) {
    $pv->Fields[$k] = $v;
}