<!--{template 'default/head'}-->
<div class="main cbody margintop">
	<div class="ch-top">
		<div class="main-focus">
			<div class="pics">
				<div class="flash" id="flash_data">
					<ul>
						<!--{cms $_obj = cmsQuery("channelid=1&order=is_comend desc&filter=4&pagesize=5");}-->
						<!--{loop $_obj['data'] $v}-->
						<li><a href="{$v['url']}"><img src="{$v['thumb']}" alt="{$v['subject']}" border="0" height="164" width="578"></a></li>
						<!--{/loop}-->
					</ul>
				</div>
				<ul class="number" id="flash_number"></ul>
			</div>
			<script type="text/javascript">
				domReady(function(){
					var len = $('flash_data').getElementsByTagName('li').length;
					var obj = $('flash_number');
					for(var i=0;i<len;i++){
						var li = document.createElement('li');
						li.innerHTML = i+1;
						obj.appendChild(li);
					}
					loadJS("{W_P}images/js/slide.js", function(){
						new slide({btns:UIs.call($('flash_number'),'li'),className:'hot',contentID:'flash_data',len:340,dir:'right',auto:true,timer:5000});
					});
				});
			</script>
		</div>
		<div class="ch-news">
			<div class="ch-box">
				<h4 class="pics">最新文章</h4>
				<!--{cms $_obj = cmsQuery("channelid={$channelid}&order=id desc&pagesize=10");}-->
				<!--{loop $_obj['data'] $v}-->
				<p><a href="{$v['url']}"><!--{echo qbase::formatSubject(qbase::substrs($v['subject'], 42), $v['subject_color']);}--></a><span class="time">{echo qbase::formatTime('n/d', $v['dateline'])}</span></p>
				<!--{/loop}-->
			</div>
		</div>
		<div class="ch-imgs">
			<h4 class="pics">精彩文章</h4>
			<!--{cms $_obj = cmsQuery("channelid={$channelid}&order=is_comend desc&thumb=1&pagesize=2&cacheTime=3600");}-->
			<!--{loop $_obj['data'] $v}-->
			<p>
				<a href="{$v['url']}"><img src="{$v['thumb']}" border='0' width='160' height='100' alt="{$v['subject']}"></a> 
				<span><a href="{$v['url']}"><!--{eval echo qbase::substrs($v['subject'], 20);}--></a></span> 
			</p>
			<!--{/loop}-->
		</div>
		<div class="clear"></div>
	</div>

	<div class="pleft">
		<div class="picnews margintop">
			<h4 class="pics">图片文章</h4>
			<dl>
				<!--{cms $_obj = cmsQuery("channelid={$channelid}&order=id desc&thumb=1&pagesize=4");}-->
				<!--{loop $_obj['data'] $v}-->
				<dd><a href="{$v['url']}" class="pimg" ><img src="{$v['thumb']}" border='0' width='152' height='98' alt="{$v['subject']}"></a> <span><a href="{$v['url']}"><!--{eval echo qbase::substrs($v['subject'], 20);}--></a></span> </dd>
				<!--{/loop}-->
			</dl>
		</div>
		<div class="listbox">
			<div class="listbox-layout">
				<!--{eval $_obj = menus($channelid)}-->
				<!--{loop $_obj $val}-->
				<dl>
					<dt>
						<span class="title"><a href="<!--{eval echo toPath($val['channelid'], $val['cid']);}-->">{$val['title']}</a></span>
						<span class="more"><a href="<!--{eval echo toPath($val['channelid'], $val['cid']);}-->">更多...</a></span>
					</dt> 
					<dd>
					<!--{cms $_obj = cmsQuery("channelid={$channelid}&cid=$val['cid']&order=id desc&pagesize=10");}-->
					<!--{loop $_obj['data'] $v}-->
						<a href="{$v['url']}" title="{$v['subject']}"><!--{echo qbase::substrs($v['subject'], 34);}--></a>
					<!--{/loop}-->
					</dd>
				</dl>
				<!--{/loop}-->
			</div>
		</div>

		<div class="margintop">
			<h3><span>文档分类</span></h3>
			<div class="category-tree">
				<!--{eval $_obj = menusTree($channelid);}-->
				<!--{loop $_obj $val}-->
					<ul>
						<h4><a href="{$val['url']}">{$val['title']}</a></h4>
						<li>
							<!--{loop $val['data'] $v}--><a href="{$v['url']}">{$v['title']}</a><!--{/loop}-->
						</li>
					</ul>
				<!--{/loop}-->
			</div>
		</div>
	</div>

	<div class="pright">
		<div class="classbox margintop">
			<h3><span>热门关注</span></h3>
			<div class="rbox">
				<ul>
					<!--{cms $_obj = cmsQuery("channelid={$channelid}&order=views desc&pagesize=10&cacheTime=3600");}-->
					<!--{loop $_obj['data'] $v}-->
					<li><a href="{$v['url']}" title="{$v['subject']}"><!--{echo qbase::substrs($v['subject'], 40);}--></a></li>
					<!--{/loop}-->
				</ul>
			</div>
		</div>
	</div>
	<div class="floatclear"></div>

</div>


<!--{template 'default/foot'}-->