Example #1
0
    require_once $file;
}
//存储前一个用户选择导航.
$dest_id = isset($dest_id) ? $dest_id : 0;
$attrid = isset($attrid) ? $attrid : 0;
if (!is_numeric($dest_id)) {
    if ($dest_id != 'all') {
        $d_id = Helper_Archive::getDestIdByPinYin($dest_id);
        $dest_id = !empty($d_id) ? $d_id : 0;
    } else {
        $dest_id = 0;
    }
}
$pkname = get_par_value($dest_id, $typeid);
//上一级
getTopNavDest($dest_id);
//替换操作
$GLOBALS['dest_id'] = Helper_Archive::pregReplace($dest_id, 2);
$GLOBALS['attrid'] = Helper_Archive::pregReplace($attrid, 4);
$GLOBALS['startcity'] = $GLOBALS['cityid'] = Helper_Archive::pregReplace($startcity, 2);
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
//以下是条件判断
$where = $wherecount = " where a.ishidden=0 and a.typeid={$typeid}";
if ($attrid) {
    $attrwhere = Helper_Archive::getAttrWhere($attrid);
    //属性条件
    $where .= $attrwhere;
    $wherecount .= $attrwhere;
}
//如果选择目的地
Example #2
0
    //短信状态判断
    $msgInfo = Helper_Archive::getDefineMsgInfo2('reg_msgcode');
    if ($msgInfo['isopen'] == 1) {
        $GLOBALS['condition']['_msgcode'] = 1;
        $row['msgtype'] = 'msg';
    } else {
        $GLOBALS['condition']['_txtcode'] = 1;
        $row['msgtype'] = 'txt';
    }
    @session_start();
    if (!isset($_SESSION['last_access']) || time() - $_SESSION['last_access'] > 120) {
        $_SESSION['last_access'] = time();
        $token = md5(time());
        $_SESSION['csrf_token_jb2'] = $token;
    }
    foreach ($row as $k => $v) {
        $pv->Fields[$k] = $v;
    }
}
$pv->Fields['typeid'] = $typeid;
$pv->Fields['csrf_token_jb2'] = $token;
//获取上级开启了导航的目的地
getTopNavDest($row['kindlist']);
$typename = GetTypeName($typeid);
//获取栏目名称.
$pv->Fields['typename'] = $typename;
$templet = SLINETEMPLATE . "/" . $cfg_df_style . "/" . "jieban/" . "show.htm";
//系统标准模板
$pv->SetTemplet($templet);
$pv->Display();
exit;
Example #3
0
        }
        $jifenpricemsg = " <span style='color:orange'>使用{$needjifen}积分抵现{$suitinfo['jifentprice']}元</span> " . $userstatus;
        $lineinfo['jifenpricemsg'] = $jifenpricemsg;
        $lineinfo['needjifen'] = $needjifen;
        $lineinfo['exopen'] = $exopen;
        //优惠是否开启.
        $lineinfo['islogin'] = $islogin;
        $lineinfo['myjifen'] = $userinfo['jifen'];
    }
    foreach ($lineinfo as $k => $v) {
        $pv->Fields[$k] = $v;
    }
    $pkname = get_par_value($lineinfo['kindlist'], $typeid);
    //上一级
    //获取上级开启了导航的目的地
    getTopNavDest($lineinfo['kindlist']);
    $pv->SetTemplet(SLINETEMPLATE . "/" . $cfg_df_style . "/" . "lines/" . "line_booking.htm");
    $pv->Display();
    exit;
} else {
    if ($dopost == "savebooking") {
        //验证验证码
        $checkcode = $_POST['checkcode'];
        $orgCheckcode = GetCkVdValue();
        if ($checkcode != $orgCheckcode || empty($checkcode)) {
            echo 'nocheckcode';
            return;
        }
        $_SESSION['total_value'] = '';
        $tourer = Helper_Archive::getTourer($_POST);
        $needjifen = $usejifen ? Helper_Archive::getNeedJifen($jifentprice) : 0;
Example #4
0
        $info['needjifen'] = $needjifen;
        $info['exopen'] = $exopen;
        //优惠是否开启.
        $info['islogin'] = $islogin;
        $info['myjifen'] = $userinfo['jifen'];
    }
    foreach ($info as $k => $v) {
        $pv->Fields[$k] = $v;
    }
    foreach ($ticketinfo as $k => $v) {
        $pv->Fields[$k] = $v;
    }
    $pkname = get_par_value($info['kindlist'], $typeid);
    //上一级
    //获取上级开启了导航的目的地
    getTopNavDest($info['kindlist']);
    $pv->SetTemplet(SLINETEMPLATE . "/" . $cfg_df_style . "/" . "spots/" . "spot_booking.htm");
    $pv->Display();
    exit;
} else {
    if ($dopost == "savebooking") {
        //验证验证码
        $checkcode = $_POST['checkcode'];
        $orgCheckcode = GetCkVdValue();
        if ($checkcode != $orgCheckcode || empty($checkcode)) {
            echo 'nocheckcode';
            return;
        }
        $_SESSION['total_value'] = '';
        $needjifen = $usejifen ? Helper_Archive::getNeedJifen($jifentprice) : 0;
        $userinfo = $User->getInfoByMid($User->uid);
Example #5
0
    $url = $cfg_basehost . "/{$type}/{$destid}/";
    head301($url);
}
$destpy = $destid;
//拼音赋值
$kindid = $destid = getDestIdByPy($destpy);
//获取目的地ID
if (empty($type)) {
    exit('Error!');
}
$arr = array('lines' => '1', 'hotels' => '2', 'cars' => '3', 'raiders' => '4', 'spots' => '5', 'photos' => '6');
$destyp = Helper_Archive::getDestPinyin($destid);
$typedd = array("1" => "line", "2" => "hotel", "3" => "car", "4" => "article", 5 => "spot", 6 => "photo");
$typeid = $arr[$type];
$pv = new View($typeid);
getTopNavDest($destid);
//目的地导航信息
$row = getKindSeo($destid, $type);
//获取seo信息.
$g_arr = importAutoTitle($type, $row);
//导入智能标题.
if (empty($row['seotitle'])) {
    $row['seotitle'] = !empty($g_arr[0]) ? $g_arr[0] : $row['kindname'];
}
if (empty($row['description'])) {
    $row['seodescription'] = !empty($g_arr[1]) ? "<meta name=\"description\" content=\"" . $g_arr[1] . "\"/>" : '';
} else {
    $row['seodescription'] = "<meta name=\"description\" content=\"" . $row['description'] . "\"/>";
}
$row['seokeyword'] = !empty($row['keywords']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : "";
$row['typename'] = GetTypeName(12);