<%
	Dim TID,TPID As Integer
	Dim TPath, TName As String
	TID = Val(Request.QueryString("TID"))
	TPath = ""
	TName = ""
	Category.LineCategory.GetData(TID, TPID, TPath, TName)
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>{$tname$}线路 - {$tname$}推荐 - {$tname$}攻略 - {$WebSet.LocalName$}旅游度假 - {$WebSet.Name$}</title>
<meta name="keywords" content="{$tname$}，{$tname$}线路，{$tname$}价格">
<meta name="description" content="{$WebSet.Name$}{$tname$}频道为您提供{$WebSet.LocalName$}出发的最新{$tname$}线路，准确的{$tname$}价格，在线预订不仅可享受打折优惠，还可获得10—100元不等的点评奖金！">
<link  type="text/css" rel="Stylesheet" href="{$WebPath$}Css/Style.css"/>
<link  type="text/css" rel="Stylesheet" href="{$WebPath$}Css/Line.css"/>
<script type="text/javascript" src="{$WebPath$}Sys/Js/jquery.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/AlertWindow.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/jquery.js"></script>
<tourex:mytag name="default_head"/>
<script language="javascript">
document.getElementById('index').className='sk2';
document.getElementById('line').className='sk1';
</script>
<tourex:mytag name="default_line_subnav"/>
<ul class="path"><li>当前位置</li><li><a href="{$WebPath$}">首页</a></li><li><a href="{$WebPath$}Line/">{$WebSet.LocalName$}旅游度假</a></li><li class="none">{$tname$}</li></ul>
<div class="box" style="margin-top:10px;">
	<div class="lL160">
		<div class="lInfoNavTit"><a href="{$WebPath$}Line/info.aspx?tid={$tid$}">{$tname$}</a></div>
		<div class="lInfoNav">
			<tourex:category type="下级" name="linecategory" id="{$tid$}">
			<div class="lInfoNavSubTit"><a href="{$WebPath$}Line/List.aspx?tid={${@t_id@}$}">{${@t_name@}$}</a> {$IIF({@t_top@}=1,"<img src=""" & WebPath & "Images/Line/hot.gif"" />","")$}</div>
			<tourex:category type="下级" name="linecategory" id="{${@t_id@}$}">
			<Header><ul class="content"></Header>
			<Item><li><a href="{$WebPath$}Line/List.aspx?tid={${@t_id@}$}" title="{${@t_name@}$}旅游">{${@t_name@}$}</a> {$IIF({@t_top@}=1,"<img src=""" & WebPath & "Images/Line/hot.gif"" />","")$}</li></Item>
			<Footer></ul></Footer>
			</tourex:category>
			</tourex:category>
		</div>
		<div class="lInfoNavEnd"></div>
	</div>
	<div class="lR790">
		<div class="inSearch">
			<div class="inSearchL"><input type="text" class="inSearchInput" id="key" name="key" value="输入线路名称，线路编号搜索..." onfocus="this.value='';this.onfocus='';" /> 
			<input name="" type="button" class="inSearchOk" onclick="location='{$WebPath$}Line/Search.aspx?key='+encodeURIComponent($('#key').val());return false;" /></div>
			<div class="inSearchR">热门搜索： <br /><a href="{$WebPath$}Line/List.aspx?tid=24">三亚</a> <a href="{$WebPath$}Line/List.aspx?tid=30">香格里拉</a> <a href="{$WebPath$}Line/List.aspx?tid=40">九寨沟</a> <a href="{$WebPath$}Line/List.aspx?tid=5">深圳</a> <a href="{$WebPath$}Line/List.aspx?tid=49">西藏</a> <a href="{$WebPath$}Line/List.aspx?tid=64">武夷山</a> <a href="{$WebPath$}Line/List.aspx?tid=78">庐山</a> <a href="{$WebPath$}Line/List.aspx?tid=93">柬埔寨</a> <a href="{$WebPath$}Line/List.aspx?tid=88">日韩</a> <a href="{$WebPath$}Line/List.aspx?tid=89">港澳台</a> <a href="{$WebPath$}Line/List.aspx?tid=152">迪拜</a> <a href="{$WebPath$}Line/List.aspx?tid=134">北海道</a></div>
		</div>
		<div class="lHotPics">
			<tourex:datalist sql="select top 5 L_PreviewPic,L_ID,L_Name,L_Price,L_Tj From [{$TablePrefix$}Line] Where L_CategoryPath Like ',{$tid$},%' And L_Tj=1 Order By L_OrderID Desc,L_ID Desc">
			<item>
			<ul class="list">
				<li class="pics"><a href="{$WebPath$}Line/Show.aspx?id={${@L_ID@}$}" title="{${@L_Name@}$}" target="_blank"><img src="{$UpFolder$}{$FormatPic({@L_PreviewPic@},"b")$}"/></a></li>
				<li class="name"><a href="{$WebPath$}Line/Show.aspx?id={${@L_ID@}$}" title="{${@L_Name@}$}" target="_blank">{$bSubstring({@L_Name@},16)$}</a></li>
				<li class="money"><span>¥{${@L_Price@}$}</span>元起</li>
			</ul>
			</item>
			<separated><div class="listM10"></div></separated>
			<NotFound><div>暂无推荐！</div></NotFound>
			</tourex:datalist>
		</div>
		<tourex:category type="下级" name="linecategory" id="{$tid$}" end="5">
		<div class="lInfoTitle"><span><a href="{$WebPath$}Line/list.aspx?tid={${@t_id@}$}">更多...</a></span>{$WebSet.LocalName$}到{${@t_name@}$}旅游线路</div>
		<div class="lInfoText">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr class="name">
				<td width="80">编号</td>
			    <td>线路名称</td>
			    <td width="80">出发日期</td>
			    <td width="80">价格</td>
			  </tr>
			<tourex:datalist sql="select top 3 L_PreviewPic,L_ID,L_Name,L_Price,L_SpecialServices,L_StartDate From [{$TablePrefix$}Line] Where L_CategoryPath Like '{${@t_path@}$}%' Order By L_ID Desc">
			  <tr class="content">
			    <td>{${@L_ID@}$}</td>
			    <td class="title"><img src="{$WebPath$}Images/ico_Add.gif" name="switch" style="cursor:pointer;"/> <a href="{$WebPath$}Line/Show.aspx?id={${@L_ID@}$}" title="{${@L_Name@}$}" target="_blank">{$bSubstring({@L_Name@},50)$}</a>
				<div class="msg" style="display:none">{${@L_SpecialServices@}$}</div>
				</td>
			    <td>{${@L_StartDate@}$}</td>
			    <td><span>¥{${@L_Price@}$}</span>起</td>
		      </tr>
			</tourex:datalist>
			</table>
		</div>
		</tourex:category>
	</div>
	<div class="clearit"></div>
</div>
<tourex:mytag name="default_foot"/>
<script>
//目的地导航start
$('.lInfoNav').each(function(){
	if($(this).find('ul').length==0)
	{
		var li='';
		$(this).find('.lInfoNavSubTit').each(function(){
			li+='<li>'+$(this).html()+'</li>';
		});
		$(this).append('<ul class="content">'+li+'</ul>');
		$(this).find('.lInfoNavSubTit').remove();
	}
});
//目的地导航end
$('img[name="switch"]').click(function(){
	var p=$(this).parent().parent().parent();
	p.find('img[name="switch"]').attr('src','{$WebPath$}Images/ico_Add.gif');
	p.find('.msg').hide();
	$(this).attr('src','{$WebPath$}Images/ico_Less.gif').parent().find('.msg').show();
});
</script>