Exemplo n.º 1
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
$typeid = 0;
require_once SLINEINC . "/view.class.php";
if (empty($tid)) {
    return '';
}
$themeid = Helper_Archive::pregReplace($tid, 2);
$seoarr = getThemeInfo($themeid);
$seoarr['keyword'] = !empty($seoarr['keyword']) ? "<meta name=\"keywords\" content=\"" . $seoarr['keyword'] . "\"/>" : "";
$seoarr['description'] = "<meta name=\"description\" content=\"" . $seoarr['description'] . "\"/>";
//各栏目数量
$seoarr['linenum'] = getThemeCount(1, $themeid);
$seoarr['hotelnum'] = getThemeCount(2, $themeid);
$seoarr['carnum'] = getThemeCount(3, $themeid);
$seoarr['raidernum'] = getThemeCount(4, $themeid);
$seoarr['spotnum'] = getThemeCount(5, $themeid);
$seoarr['photonum'] = getThemeCount(6, $themeid);
//是否显示条件.
if ($seoarr['hotelnum'] != 0) {
    $GLOBALS['condition']['_hasthemehotel'] = 1;
}
if ($seoarr['carnum'] != 0) {
    $GLOBALS['condition']['_hasthemecar'] = 1;
}
if ($seoarr['raidernum'] != 0) {
    $GLOBALS['condition']['_hasthemeraider'] = 1;
}
if ($seoarr['spotnum'] != 0) {
    $GLOBALS['condition']['_hasthemespot'] = 1;
Exemplo n.º 2
0
     $needjifen = 0;
 }
 $ordersn = get_order_sn('05');
 //订单号
 $memberid = $User->uid ? $User->uid : 0;
 $info = getSpotInfo($productautoid);
 $ticketinfo = getTicketInfo($suitid);
 $status = $paytype == 1 ? 1 : 0;
 $total_store = intval($ticketinfo['number']);
 $total_dingnum = intval(Helper_Archive::pregReplace($dingnum, 2));
 if ($total_store != -1 && $total_store < $total_dingnum) {
     echo 'nonumber';
     exit;
 }
 $linktel = Helper_Archive::pregReplace($linktel, 2);
 $arr = array('ordersn' => $ordersn, 'webid' => $webid, 'typeid' => $typeid, 'productautoid' => $productautoid, 'productaid' => $productaid, 'productname' => $productname, 'price' => $ticketinfo['ourprice'], 'childprice' => 0, 'dingnum' => Helper_Archive::pregReplace($dingnum, 2), 'usedate' => $usedate, 'childnum' => $childnum, 'linkman' => Helper_Archive::pregReplace($linkman, 5), 'linktel' => Helper_Archive::pregReplace($linktel, 2), 'linkemail' => Helper_Archive::pregReplace($linkemail, 5), 'linkqq' => '', 'jifentprice' => $ticketinfo['jifentprice'], 'jifenbook' => $ticketinfo['jifenbook'], 'jifencomment' => $ticketinfo['jifencomment'], 'addtime' => time(), 'memberid' => $memberid, 'dingjin' => $dingjin, 'suitid' => $suitid, 'paytype' => $paytype, 'usejifen' => $usejifen, 'needjifen' => $needjifen, 'status' => $status, 'haschild' => 0, 'pid' => 0, 'remark' => Helper_Archive::pregReplace($remarkinfo, 5));
 if (Helper_Archive::addOrder($arr)) {
     $model = new CommonModule('#@__member_order');
     $orderid = $model->getField('id', "ordersn='{$ordersn}'");
     //判断是否开启在线支付
     if (!empty($choosepay) && $paytype != '3' && $choosepay != '6') {
         $url = $GLOBALS['cfg_basehost'] . '/spots/booking.php?dopost=payonline&id=' . $orderid . "&paytype=" . $choosepay;
     } else {
         //$url = "{$GLOBALS['cfg_basehost']}/spots/show_{$arr['productaid']}.html";
         $url = "{$GLOBALS['cfg_basehost']}/member/query.php?dopost=search&mobile={$linktel}";
     }
     $mailto = $cfg_Email139;
     $title = $productname . "门票订单";
     $content = $linkman . "预定" . $usedate . $productname . "(价格:" . $price . ")" . "门票,数量:" . $dingnum . "张" . "联系电话:" . $linktel . "-----" . $GLOBALS['cfg_webname'];
     if (!empty($mailto)) {
         ordermaill($mailto, $title, $content);
Exemplo n.º 3
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;
}
//如果选择目的地
if (!empty($dest_id)) {
    $where .= " and find_in_set({$dest_id},a.kindlist)";
    $wherecount .= " and find_in_set({$dest_id},a.kindlist)";
    $sql = "select a.* from sline_model_archive a left join sline_kindorderlist b on(a.id=b.aid and b.typeid={$typeid} and b.classid={$dest_id} ) {$where} order by b.displayorder asc, a.modtime desc,a.addtime desc ";
Exemplo n.º 4
0
$checkcode = $_POST['checkcode'];
$orgCheckcode = GetCkVdValue();
if ($checkcode != $orgCheckcode || empty($checkcode)) {
    ShowMsg('验证码错误', -1, 1);
    exit;
}
$_SESSION['total_value'] = '';
$dest = Helper_Archive::pregReplace($dest, 5);
$starttime = Helper_Archive::pregReplace($starttime, 5);
$startplace = Helper_Archive::pregReplace($startplace, 5);
$days = Helper_Archive::pregReplace($days, 2);
$adultnum = Helper_Archive::pregReplace($adultnum, 2);
$childnum = Helper_Archive::pregReplace($childnum, 2);
$planerank = Helper_Archive::pregReplace($planerank, 3);
$hotelrank = Helper_Archive::pregReplace($hotelrank, 3);
$room = Helper_Archive::pregReplace($room, 3);
$food = Helper_Archive::pregReplace($food, 3);
$sex = Helper_Archive::pregReplace($sex, 3);
$address = Helper_Archive::pregReplace($address, 5);
$phone = Helper_Archive::pregReplace($phone, 5);
$email = Helper_Archive::pregReplace($email, 5);
$contacttime = Helper_Archive::pregReplace($contacttime, 5);
$content = Helper_Archive::pregReplace($content, 5);
$contactname = Helper_Archive::pregReplace($contactname, 5);
$sql = "insert into #@__customize(dest,starttime,startplace,days,adultnum,\n childnum,planerank,hotelrank,room,food,sex,address,phone,email,contacttime,addtime,content,contactname) values(\n '{$dest}','{$starttime}','{$startplace}','{$days}','{$adultnum}','{$childnum}','{$planerank}','{$hotelrank}',\n '{$room}','{$food}','{$sex}','{$address}','{$phone}','{$email}','{$contacttime}','{$addtime}','{$content}','{$contactname}')";
$result = $dsql->ExecuteNoneQuery($sql);
if ($result) {
    Helper_Archive::showMsg('提交成功', '/customize/index.php', 1, 2);
} else {
    Helper_Archive::showMsg('提交失败', '/customize/index.php', 0, 2);
}
Exemplo n.º 5
0
<?php

/*-----攻略ajax操作控制器-----*/
require_once dirname(__FILE__) . "/../include/common.inc.php";
if ($action == 'adddownnum') {
    $articleid = Helper_Archive::pregReplace($articleid, 2);
    $sql = "update sline_article set downnum=downnum+1 where id='{$articleid}'";
    $dsql->ExecNoneQuery($sql);
}
Exemplo n.º 6
0
        $d_id = Helper_Archive::getDestIdByPinYin($dest_id);
        $dest_id = !empty($d_id) ? $d_id : $dest_id;
    } else {
        $dest_id = 0;
    }
}
$pkname = get_par_value($dest_id, $typeid);
//上一级
//获取上级开启了导航的目的地
getTopNavDest($dest_id);
$day = isset($day) ? Helper_Archive::pregReplace($day, 2) : 0;
$priceid = isset($priceid) ? Helper_Archive::pregReplace($priceid, 2) : 0;
$attrid = isset($attrid) ? Helper_Archive::pregReplace($attrid, 4) : 0;
$rankid = isset($rankid) ? Helper_Archive::pregReplace($rankid, 2) : 0;
$sorttype = isset($sorttype) ? Helper_Archive::pregReplace($sorttype, 2) : 1;
$keyword = isset($keyword) ? Helper_Archive::pregReplace($keyword, 3) : '';
if (!empty($keyword)) {
    $where = "where a.ishidden='0'  and title like '%" . $keyword . "%'";
} else {
    $where = " where a.ishidden='0'";
    $where .= !empty($dest_id) ? "and FIND_IN_SET({$dest_id},a.kindlist)" : '';
}
if (!empty($rankid) && $rankid != 0) {
    $where .= " and a.hotelrankid={$rankid}";
}
if (!empty($priceid) && $priceid != 0) {
    $pricearr = getMinMaxprice($priceid);
    //取得价格范围的最小与最大值 .
    $where .= " and a.price >= '{$pricearr['min']}' and a.price <= '{$pricearr['max']}' ";
}
//属性
Exemplo n.º 7
0
    $out = !empty($out) ? $head . $out . $foot : $nocontent_msg;
    $totalnum = $_model->getCount("memberid='{$uid}' and status=2 and ispinlun=0 and pid=0");
    $totalpage = ceil($totalnum / $pagesize);
    $pageinfo = setPageInfo($curpage, $totalpage);
    $data = array('list' => $out, 'pageinfo' => $pageinfo);
    echo json_encode($data);
    exit;
}
//保存评论信息
if ($dopost == 'savepinlun') {
    $arr = array();
    Helper_Archive::loadModule('common');
    $_model = new CommonModule('#@__comment');
    $scores = array($score1, $score2, $score3, $score4);
    $arr['memberid'] = $uid;
    $arr['content'] = Helper_Archive::pregReplace($msg, 6);
    $arr['orderid'] = $orderid;
    $arr['score1'] = $score1;
    $arr['score2'] = $score2;
    $arr['score3'] = $score3;
    $arr['score4'] = $score4;
    $arr['articleid'] = $productid;
    $arr['level'] = getPinLunLevel($scores);
    $arr['typeid'] = $typeid;
    $arr['addtime'] = time();
    //$arr['kindlist'] = Helper_Archive::getProductKindList($arr['articleid'],$arr['typeid']);
    $status = 0;
    if ($_model->add($arr)) {
        $order = new CommonModule('#@__member_order');
        $ar = array('ispinlun' => 1);
        $w = array('id' => $orderid);
Exemplo n.º 8
0
/*----云搜索-----*/
require_once dirname(__FILE__) . "/include/common.inc.php";
require_once dirname(__FILE__) . "/include/listview.class.php";
$typeid = !empty($typeid) ? $typeid : 0;
$w = $typeid != 0 ? " and typeid={$typeid}" : '';
$keyword = $_GET['keyword'];
if (preg_match("/^[" . chr(0xa1) . "-" . chr(0xff) . "A-Za-z0-9_]+\$/", $keyword)) {
    $keyword = iconv('gbk', 'utf-8', $keyword);
}
$keyword = RemoveXSS($keyword);
$keyword = Helper_Archive::pregReplace($keyword, 6);
//只能搜索中文英文和数字
$typeid = Helper_Archive::pregReplace($typeid, 2);
if (isset($totalresult)) {
    $pageno = Helper_Archive::pregReplace($pageno, 2);
    $totalresult = Helper_Archive::pregReplace($totalresult, 2);
}
addSearchkey($keyword);
//添加热搜词
require dirname(__FILE__) . "/cloudsearch/pscws4.class.php";
$pscws = new PSCWS4('utf-8');
//
// 接下来, 设定一些分词参数或选项, set_dict 是必须的, 若想智能识别人名等需要 set_rule
//
// 包括: set_charset, set_dict, set_rule, set_ignore, set_multi, set_debug, set_duality ... 等方法
$pscws->set_charset('utf-8');
$pscws->set_rule(dirname(__FILE__) . '/cloudsearch/rules.utf8.ini');
$pscws->set_dict(dirname(__FILE__) . '/cloudsearch/dict.utf8.xdb');
$pscws->send_text($keyword);
while ($some = $pscws->get_result()) {
    foreach ($some as $word) {
Exemplo n.º 9
0
}
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1) {
    include $html;
    exit;
}
require_once SLINEINC . "/listview.class.php";
$pv = new View($typeid);
$pv->GetChannelKeywords($typeid);
$pv->Fields['seokeyword'] = !empty($pv->Fields['seokeyword']) ? "<meta name=\"keywords\" content=\"" . $pv->Fields['seokeyword'] . "\"/>" : "";
$pv->Fields['seodescription'] = !empty($pv->Fields['seodescription']) ? "<meta name=\"description\" content=\"" . $pv->Fields['seodescription'] . "\"/>" : "";
$pv->Fields['seotitle'] = !empty($pv->Fields['seotitle']) ? $pv->Fields['seotitle'] : $pv->Fields['shortname'];
Helper_Archive::loadModule('common');
$dest_id = RemoveXSS($dest_id);
//防止跨站攻击
$attrid = Helper_Archive::pregReplace($attrid, 4);
getTopNavDest($dest_id);
//顶部导航
$typename = GetTypeName($typeid);
$where = "a.webid is not null";
if (!empty($dest_id)) {
    $where .= " and FIND_IN_SET({$dest_id},a.kindlist)";
    $join = " #@__kindorderlist b on(a.id = b.aid and b.typeid='6' and b.classid='{$dest_id}') ";
    $tableorder = " ifnull(b.isding,0) desc,ifnull(b.isjian,0) desc,ifnull(b.displayorder,9999) asc,a.modtime desc,a.addtime desc";
    $destinfo = getPhotoDestInfo($dest_id);
    $pv->Fields['seokeyword'] = !empty($destinfo['keyword']) ? "<meta name=\"keywords\" content=\"" . $destinfo['keyword'] . "\"/>" : "";
    $pv->Fields['seodescription'] = !empty($destinfo['description']) ? "<meta name=\"description\" content=\"" . $destinfo['description'] . "\"/>" : "";
    $pv->Fields['seotitle'] = !empty($destinfo['seotitle']) ? $destinfo['seotitle'] : $destinfo['shortname'];
} else {
    $join = " #@__allorderlist b on(a.id = b.aid and b.typeid='6') ";
    $tableorder = " ifnull(b.isding,0) desc,ifnull(b.isjian,0) desc,ifnull(b.displayorder,9999) asc,a.modtime desc,a.addtime desc";
Exemplo n.º 10
0
        $haszonemore = 1;
    }
    if (count($jingqu) > 12) {
        $hasjingqumore = 1;
    }
    if (count($spotkind) > 12) {
        $hasspotkindmore = 1;
    }
    $templet = SLINETEMPLATE . "/" . $cfg_df_style . "/" . "spots/" . "spot_ctrip.htm";
    $pv->SetTemplet($templet);
    $pv->Display();
    exit;
}
//详细页面
if ($action == 'show') {
    $productid = Helper_Archive::pregReplace($productid, 2);
    $piao = new Piao($typeid);
    $info = $piao->getSpotDetail($productid);
    $suit = $info['suit'];
    $litpic = CtripTicket::getLitpic($info['image']);
    $piclist = $info['piclist'];
    if (empty($info['jieshao'])) {
        $url = "http://u.ctrip.com/union/CtripRedirect.aspx?TypeID=502&AllianceID=" . $GLOBALS['cfg_ctrip_allianceid'] . "&SID=" . $GLOBALS['cfg_ctrip_sid'] . "&Ouid=&locationID=" . $info['id'];
        header("location:{$url}");
        //复杂套餐直接到携程预订
        exit;
    }
    $pv = new View();
    foreach ($info as $k => $v) {
        $pv->Fields[$k] = $v;
        //模板变量赋值
Exemplo n.º 11
0
 //订单号
 $memberid = $User->uid ? $User->uid : 0;
 $insurance = $_POST['insurance'];
 $suitinfo = getLineSuitInfo($suitid);
 $priceinfo = getDayPrice($usedate, $suitid);
 $status = $suitinfo['paytype'] == 1 ? 1 : 0;
 $adultnum = Helper_Archive::pregReplace($adultnum, 2);
 $childnum = Helper_Archive::pregReplace($childnum, 2);
 $oldnum = Helper_Archive::pregReplace($oldnum, 2);
 $total_dingnum = $adultnum + $childnum + $oldnum;
 if (intval($priceinfo['number']) != -1 && intval($priceinfo['number']) < $total_dingnum) {
     echo 'nonumber';
     exit;
 }
 $linktel = Helper_Archive::pregReplace($linktel, 2);
 $arr = array('ordersn' => $ordersn, 'webid' => $webid, 'typeid' => $typeid, 'productautoid' => $productautoid, 'productaid' => $productaid, 'productname' => $productname, 'price' => $priceinfo['adultprice'], 'childprice' => $priceinfo['childprice'], 'oldprice' => $priceinfo['oldprice'], 'usedate' => $usedate, 'dingnum' => Helper_Archive::pregReplace($adultnum, 2), 'childnum' => Helper_Archive::pregReplace($childnum, 2), 'oldnum' => Helper_Archive::pregReplace($oldnum, 2), 'linkman' => Helper_Archive::pregReplace($linkman, 5), 'linktel' => Helper_Archive::pregReplace($linktel, 2), 'linkemail' => Helper_Archive::pregReplace($linkemail, 5), 'jifentprice' => Helper_Archive::pregReplace($jifentprice, 2), 'jifenbook' => Helper_Archive::pregReplace($jifenbook, 2), 'jifencomment' => Helper_Archive::pregReplace($jifencomment, 2), 'addtime' => time(), 'memberid' => $memberid, 'dingjin' => Helper_Archive::pregReplace($dingjin, 2), 'paytype' => $suitinfo['paytype'], 'suitid' => $suitid, 'usejifen' => $usejifen, 'needjifen' => $needjifen, 'roombalance' => $roombalance, 'roombalancenum' => $roombalancenum, 'status' => $status, 'remark' => Helper_Archive::pregReplace($remarkinfo, 5), 'tourer' => $tourer);
 $price = $arr['price'];
 $remark = $arr['remark'];
 $dingnum = $arr['dingnum'];
 $childnum = $arr['childnum'];
 if (Helper_Archive::addOrder($arr)) {
     $model = new CommonModule('#@__member_order');
     $orderid = $model->getField('id', "ordersn='{$ordersn}'");
     //判断是否开启在线支付且不是二次确认付款
     if ($insurance) {
         addInsurance($insurance, $ordersn, $dingnum, $memberid, $_POST['usedate'], $_POST['lineday'], $tourer);
     }
     if (!empty($choosepay) && $suitinfo['paytype'] != '3' && $choosepay != '6') {
         $url = $GLOBALS['cfg_basehost'] . '/lines/booking.php?dopost=payonline&id=' . $orderid . '&paytype=' . $choosepay;
     } else {
         //$url = "{$GLOBALS['cfg_basehost']}/lines/show_{$arr['productaid']}.html";
Exemplo n.º 12
0
/**
 * @version        $Id: query.php 1 8:24 2015年1月22日 netman $
 * @package        Smore.User
 */
require_once dirname(__FILE__) . "/config.php";
require_once SLINEINC . "/listview.class.php";
//查询首页
if (!isset($dopost)) {
    $pv = new View(0);
    $pv->SetTemplet(MEMBERTEMPLET . "order_query.htm");
    $pv->Display();
}
if ($dopost == 'search') {
    //判断是否是从订单页跳转
    if (!empty($_POST)) {
        $mobile = Helper_Archive::pregReplace($searchkey, 2);
    }
    if (empty($mobile)) {
        header("location:{$GLOBALS['cfg_basehost']}/member/query.php");
    }
    $sql = "select * from sline_member_order where linktel='{$mobile}' and pid=0 order by addtime desc";
    $dzorder = QueryOrder::getDzOrder($searchkey);
    $pv = new ListView(0);
    $pv->pagesize = 100;
    //分页条数.
    $pv->SetSql($sql);
    $pv->Fields['searchkey'] = $mobile;
    $pv->SetTemplet(MEMBERTEMPLET . "order_query.htm");
    $pv->Display();
    exit;
}
Exemplo n.º 13
0
require_once dirname(__FILE__) . "/../data/webinfo.php";
require_once dirname(__FILE__) . "/visa.func.php";
$typeid = 8;
//签证栏目
require_once SLINEINC . "/listview.class.php";
if (isset($totalresult)) {
    $totalresult = intval(preg_replace("/[^\\d]/", '', $totalresult));
}
//总记录数
if (isset($pageno)) {
    $pageno = intval(preg_replace("/[^\\d]/", '', $pageno));
}
//当前页
$countryid = !empty($countryid) ? Helper_Archive::pregReplace($countryid, 2) : 0;
$visatypeid = !empty($visatypeid) ? Helper_Archive::pregReplace($visatypeid, 2) : 0;
$cityid = !empty($cityid) ? Helper_Archive::pregReplace($cityid, 2) : 0;
//签证国家判断
if (!empty($countryid)) {
    $countryname = getAreaName($countryid);
    $where .= " and nationid='{$countryid}'";
    $navtitle .= $countryname;
}
//签证类型条件
if (!empty($visatypeid)) {
    $where .= " and visatype='{$visatypeid}'";
    $navtitle .= getVisaType($visatypeid);
}
//签证城市条件
if (!empty($cityid)) {
    $where .= " and cityid='{$cityid}'";
    $navtitle = getVisaCity($cityid) . '签发' . $navtitle;
Exemplo n.º 14
0
$dest_id = RemoveXSS($dest_id);
$carkindid = Helper_Archive::pregReplace($carkindid, 2);
$attrid = Helper_Archive::pregReplace($attrid, 4);
$startplaceid = Helper_Archive::pregReplace($startplaceid, 2);
$typeid = 3;
$carkindname = '';
$carbrandname = '';
$priceinfo = '';
//初始化
$dest_id = !empty($dest_id) ? $dest_id : 0;
//这里增加子站判断
if ($GLOBALS['sys_child_webid'] != 0 && empty($dest_id)) {
    $dest_id = $GLOBALS['sys_child_webid'];
}
if (!is_numeric($dest_id)) {
    $dest_id = Helper_Archive::pregReplace($dest_id, 8);
    //只能字母.数字
    if ($dest_id != 'all') {
        $d_id = Helper_Archive::getDestIdByPinYin($dest_id);
        $dest_id = !empty($d_id) ? $d_id : $dest_id;
    } else {
        $dest_id = 0;
    }
}
//$sql="select distinct a.aid,a.* from #@__car a where a.webid is not null";
$where = " where a.webid=0 ";
//租车城市
if (!empty($startplace)) {
    $startcity = $dsql->GetOne("select id from #@__startplace where cityname like '%{$startplace}%'");
    $startplaceid = $startcity['id'];
}
Exemplo n.º 15
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['monthid'] = Helper_Archive::pregReplace($monthid, 2);
$GLOBALS['dayid'] = Helper_Archive::pregReplace($dayid, 4);
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
//以下是条件判断
$where = " where a.ishidden=0 and a.status=1";
$wheercount = $where;
//属性
if ($attrid) {
    $attrwhere = Helper_Archive::getAttrWhere($attrid);
    //属性条件
    $where .= $attrwhere;
    $wherecount .= $attrwhere;
}
//月份
if ($monthid) {
    $where .= " and MONTH(startdate)='{$monthid}'";
Exemplo n.º 16
0
 if ($userinfo['jifen'] < $needjifen) {
     $usejifen = 0;
     $needjifen = 0;
 }
 $row = $dsql->getOne("select * from #@__tuan where id={$tuanid}");
 if (empty($row)) {
     showMsg("定购错误,请重试", -1, 3);
     exit;
 }
 $ordersn = get_order_sn('13');
 //订单号
 $memberid = $User->uid ? $User->uid : 0;
 $paytype = 1;
 $status = $paytype == 1 ? 1 : 0;
 $linktel = Helper_Archive::pregReplace($linktel, 2);
 $arr = array('ordersn' => $ordersn, 'webid' => $webid, 'typeid' => $typeid, 'productautoid' => $tuanid, 'productaid' => $row['aid'], 'productname' => $row['title'], 'price' => $row['price'], 'usedate' => $usedate, 'dingnum' => Helper_Archive::pregReplace($dingnum, 2), 'linkman' => Helper_Archive::pregReplace($linkman, 5), 'linktel' => Helper_Archive::pregReplace($linktel, 2), 'linkemail' => Helper_Archive::pregReplace($linkemail, 5), 'linkqq' => '', 'jifentprice' => $row['jifentprice'], 'jifenbook' => $row['jifenbook'], 'jifencomment' => $row['jifencomment'], 'addtime' => time(), 'memberid' => $memberid, 'paytype' => $paytype, 'dingjin' => $row['dingjin'], 'usejifen' => $usejifen, 'needjifen' => $needjifen, 'status' => $status, 'remark' => Helper_Archive::pregReplace($remarkinfo, 5));
 if (Helper_Archive::addOrder($arr)) {
     $model = new CommonModule('#@__member_order');
     $orderid = $model->getField('id', "ordersn='{$ordersn}'");
     //判断是否开启在线支付
     if (!empty($choosepay) && $paytype != '3' && $choosepay != '6') {
         $url = $GLOBALS['cfg_basehost'] . '/tuan/book.php?dopost=payonline&id=' . $orderid . "&paytype=" . $choosepay;
     } else {
         //$url = "{$GLOBALS['cfg_basehost']}/tuan/show_{$arr['productaid']}.html";
         $url = "{$GLOBALS['cfg_basehost']}/member/query.php?dopost=search&mobile={$linktel}";
     }
     $mailto = $cfg_Email139;
     $title = $row['title'] . "订单";
     $content = $linkman . "预定" . $usedate . $row['title'] . "人数:" . $dingnum . "人" . ";联系电话:" . $linktel . "-----" . $GLOBALS['cfg_webname'];
     if (!empty($mailto)) {
         ordermaill($mailto, $title, $content);