{{include file=head.tpl}}
	<div class="category">
		<div class="category_left">
		<if condition="$data[type]=='1'">
		<foreach array="getalllist">
			<div class="category_left_list">
				<div class="sort">
					<span>{{$row[name]}}</span>
					<span>
						<a href="{{U(['cid'=>$row[cid]],MODULE)}}">更多》</a>
					</span>
				</div>
				<ul class="list">
					<foreach array="row[article]" value="_row">
					<li>
						<a href="{{U(['aid'=>$_row[aid],'cid'=>$_row[cid]],MODULE)}}">{{$_row[title]}}</a>
						<span class="time">{{date("Y-m-d H:i",$_row[posttime])}}</span>
					</li>
					</foreach>
				</ul>
				<div class="c"></div>
			</div>
		</foreach>
		</if>
		<if condition="$data[type]=='0'">
		<div class="category_left_list">
			<div class="sort">
				<span>{{$data[name]}}</span>
				<span>
					<a href="{{	U(['cid'=>$data[cid]],MODULE)}}">更多》</a>
				</span>
			</div>
			<ul class="list">
				<foreach array="getlist" >
				<li>
					<a href="{{	U(['aid'=>$row[aid],'cid'=>$row[cid]],MODULE)}}" title="{{$row[title]}}">{{Get_word_strpos($row[title],'20');}}</a>
					<span class="time">{{date("Y-m-d H:i",$row[posttime]);}}</span>
				</li>
				</foreach>			
			</ul>
			<div class="c"></div>
		</div>
		<div class="page">{{$Get_Page}}</div>	
		</if>
		</div>
		<div class="category_right">
			<div class="category_right_content main_content_2">
				<div class="sort">
					<span>最新图片</span>
					<span>
						<a href="{{U(['cid'=>2],MODULE)}}">更多》</a>
					</span>
				</div>
				<ul class="photo_list list">
					<sql out="new_photo" from="jab.article"  select="*" start_limit="0" where="state='1' AND is_pic='1'" order="aid" by="desc" limit="9">
					<foreach array="new_photo">
						<li>
							<a href="{{U(['aid'=>$row[aid],'cid'=>$row[cid]],MODULE)}}" title="{{$row[title]}}">
								<img src="{{get_img_url($row['thumb'])}}" alt="{{$row[title]}}"/>
								<div class="title">{{$row[title]}}</div>
							</a>	
						</li>
					</foreach>
				</ul>
			</div>
			<div class="category_right_content main_content_2">
				<div class="sort">
					<span>最新资讯</span>
					<span>
						<a href="{{U(['cid'=>1],MODULE)}}">更多》</a>
					</span>
				</div>
				<ul class="list">
					<sql out="news" from="jab.article"  select="*" start_limit="0" where="state='1'" order="aid" by="desc" limit="10">
					<foreach array="news">
						<li>
							<a href="{{U(['aid'=>$row[aid],'cid'=>$row[cid]],MODULE)}}" title="{{$row[title]}}">{{$row[title]}}</a>
							<span class="time">{{date('Y-m-d H:i:s',$row[posttime])}}</span>
						</li>
					</foreach>
				</ul>
			</div>
		</div>
		<div class="c"></div>
	</div>
{{include file=foot.tpl}}
