require_once dirname(__FILE__) . "/../include/email.class.php"; require_once SLINEINC . "/view.class.php"; //防止跨站脚本攻击 foreach ($_POST as $key => $value) { $_POST[$key] = RemoveXSS($value); } foreach ($_GET as $key => $value) { $_GET[$key] = RemoveXSS($value); } $typeid = 2; //栏目id $typename = GetTypeName($typeid); //获取栏目名称 $pv = new View($typeid); if (empty($dopost)) { $info = getHotelInfo($hotelid); $roominfo = getRoomInfo($roomid); $suitid = $roomid; if (!isset($info)) { head404(); } $info['series'] = getSeries($info['id'], '02'); //编号 $info['title'] = $info['title'] . "({$roominfo['roomname']})"; $info['roomname'] = $roominfo['roomname']; //房型名称 $info['roomid'] = $roominfo['id']; //房型id $info['productautoid'] = $info['id']; //$info['price'] = $roominfo['price']; if (!empty($info['dingjin'])) {
$price = $row['price']; $out .= '<li> <a class="fl" href="' . $url . '" target="_blank"><img class="fl" src="' . $litpic . '" width="210" height="165" alt="' . $hotelname . '" title="' . $hotelname . '" /></a> <p class="p1"></p> <p class="p2"><a href="' . $url . '" class="sp_1">' . $hotelname . '</a><span class="sp_2">¥' . $price . '</span></p> </li>'; } $out = '<ul>' . $out . '</ul>'; echo $out; exit; } //获取房型 if ($dopost == 'gethotelroom_show') { $sql = "select a.* from #@__hotel_room a where hotelid='{$hotelid}' order by a.price"; $arr = $dsql->getAll($sql); $hotelinfo = getHotelInfo($hotelid, 0); $out = '<div class="pro_bot_con">'; $tablehead = ' <table class="h_pro_table" width="918" border="0" cellspacing="0" cellpadding="0"> <tr> <th align="left" width="303" scope="col" style=" padding-left:15px">房型</th> <th width="100" scope="col">床型</th> <th width="100" scope="col">门市价</th> <th width="100" scope="col">优惠价</th> <th width="100" scope="col">宽带</th> <th width="100" scope="col">早餐</th> <th width="100" scope="col"> </th> </tr>'; foreach ($arr as $row) { $previlage = intval($row['sellprice']) - intval($row['price']); $pflag = !empty($row['piclist']) ? '<img src="' . $GLOBALS['cfg_templets_skin'] . '/images/h_pro_pic.gif" />' : ''; //图片标识
<?php require_once dirname(__FILE__) . "/../include/common.inc.php"; require_once SLINEINC . "/view.class.php"; require_once "hotel.func.php"; $typeid = 2; //酒店栏目 $pv = new View($typeid); if (!isset($aid)) { head404(); } $aid = RemoveXSS($aid); //防止跨站攻击 updateVisit($aid, $typeid); //更新访问次数 $row = getHotelInfo($aid, 1); //获取酒店信息 if (empty($row['id'])) { head404(); } $row['litpic'] = getUploadFileUrl($row['litpic']); $row['seodescription'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : ""; $row['seokeyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : ""; $row['subname'] = $row['title']; $minprice = Helper_Archive::getHotelMinPrice($row['id']); $row['hotelprice'] = $minprice == 0 ? "电询" : '<span>¥</span><strong>' . $minprice . '</strong><s>起</s>'; //$row['imagecount']=GetImageCount($row['hotelpics']); $row['pkname'] = get_par_value($row['kindlist'], $typeid); //上级目的地 if (empty($row['telephone'])) { $tel = getHotelNumber($row['webid']);