Example #1
0
 $row['lineprice'] = !empty($real) ? $real : $row['price'];
 //线路报价
 $row['transport'] = $row['transport'];
 $row['dingjin'] = $row['dj'];
 $row['score'] = Helper_Archive::getSatisfyScore($row['id'], $typeid);
 //分数
 $row['commentnum'] = Helper_Archive::getCommentNum($row['id'], $typeid);
 //点评数
 $row['commenthomeid'] = $row['id'];
 if (!empty($row['storeprice']) || $row['storeprice'] > $row['lineprice']) {
     $row['cheap'] = $row['storeprice'] - $row['lineprice'];
     //优惠
 } else {
     $row['cheap'] = 0;
 }
 $pic_arr = getPiclistArr($row);
 //读取图片带样式列表
 $row['bigpiclist'] = $pic_arr[0];
 //大图
 $row['thumblist'] = $pic_arr[1];
 //获取后台满意度拼接%
 // $row['satisfyscore'] = !empty($row['satisfyscore'])?$row['satisfyscore'] : "";
 if (!empty($row['satisfyscore'])) {
     if (strpos($row['satisfyscore'], '%') === false) {
         $row['satisfyscore'] = $row['satisfyscore'] . '%';
     }
 }
 //$row['price']=!empty($row['lineprice'])?"<span class=\"rmb_1\">¥</span>".$row['lineprice']."</span>":"电询</span>";
 $row['storeprice'] = !empty($row['storeprice']) ? $row['storeprice'] : "<span>无</span>";
 $row['seodescription'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : "";
 $row['seokeyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : "";
Example #2
0
    $GLOBALS['condition']['_hasyinlian'] = 1;
}
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;
}
/*$prenext=getPreNext($aid);//获取上一条,下一条
foreach($prenext as $k=>$v {
	$pv->Fields[$k] = $v;
}*/
//图片获取
$picArr = getPiclistArr($row['piclist']);
$biglist = $picArr['big'];
//大图
$thumblist = $picArr['thumb'];
//小图
//获取上级开启了导航的目的地
getTopNavDest($row['kindlist']);
$typename = GetTypeName($typeid);
//获取栏目名称.
$pv->Fields['typename'] = $typename;
$templet = getTemplet($row['id']);
//获取显示模板
$pv->SetTemplet(SLINETEMPLATE . "/" . $cfg_df_style . "/" . "spots/" . $templet);
$pv->Display();
exit;
Example #3
0
$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);
$pv->Fields['kindid'] = $destid;
//当前选中的目的地.
$hasnext = checkHasNext($destid);
//检测是否有下一级.
if ($hasnext) {
    $GLOBALS['condition']['__hasnext'] = 1;
}
foreach ($row as $k => $v) {
    $pv->Fields[$k] = $v;
}
//属性元素组
$attrarr = get_raider_attr($destid);
$pv->Fields['piclist'] = getPiclistArr($kindid, 725, 304);
//目的地图片
$templet = !empty($row['templetpath']) ? "{$typedd[$typeid]}/{$row['templetpath']}/index.htm" : "gather_{$type}.htm";
//针对不同分类模板.
$pv->SetTemplet(SLINETEMPLATE . "/" . $cfg_df_style . "/" . "destination/" . $templet);
$pv->Display();
exit;