Example #1
0
    $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'];
    }
} else {
Example #2
0
if (in_array(5, $paytypeArr)) {
    $GLOBALS['condition']['_hasqianbao'] = 1;
}
if (in_array(7, $paytypeArr)) {
    $GLOBALS['condition']['_hasbeibao'] = 1;
}
if (in_array(8, $paytypeArr)) {
    $GLOBALS['condition']['_hasweixin'] = 1;
}
if (is_array($row)) {
    //$row['litpic']=!empty($row['litpic']) ? $row['litpic'] : getDefaultImage();
    $row['title'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title'];
    $row['subname'] = $row['title'];
    $row['startcity'] = $_startModule->getField('cityname', "id='{$row['startplaceid']}'");
    $row['carkind'] = getCarKind($row['carkindid']);
    $row['brandid'] = getCarBrand($row['carbrandid']);
    $row['taglook'] = GetTagsLink($row['tagword']);
    $row['attrname'] = getCarAttrName($row['attrid'], '租车类型');
    $row['tanknum'] = getCarAttrName($row['attrid'], '厢型');
    $row['description'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : "";
    $row['keyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : "";
    $taocan = $_suitModule->getAll("carid={$row['id']}");
    $pic_arr = getCarPicList($row['piclist'], $row['title'], $row['litpic']);
    //print_r($pic_arr);
    $row['litpic'] = getUploadFileUrl($row['litpic']);
    $row['thumbpic'] = $pic_arr['thumbpic'];
    $row['bigpic'] = $pic_arr['bigpic'];
    $row['commenthomeid'] = $row['id'];
    $row['carseries'] = getSeries($row['id'], '03');
    //编号
    foreach ($row as $k => $v) {