{include file="inc/header.html"} 
<?php
$this->_var['indexjs'][] = $this->_var['TMPL_REAL']."/js/index.js";
$this->_var['cpindexjs'][] = $this->_var['TMPL_REAL']."/js/index.js";
$this->_var['indexcss'][] = $this->_var['TMPL_REAL']."/css/index.css";
?>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/deal_cate_conf.js"></script>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/deal_region_conf/{$deal_city.id}.js"></script>
<script type="text/javascript" src="{function name="parse_script" v="$indexjs" c="$cpindexjs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$indexcss"}" />
<div class="blank"></div>
<div class="index_left f_l">
	<div id="main_adv_box" class="main_adv_box">
			<div id="main_adv_img" class="main_adv_img">
				<span rel="1"><adv adv_id="首页广告位1" /></span>
				<span rel="2"><adv adv_id="首页广告位2" /></span>
				<span rel="3"><adv adv_id="首页广告位3" /></span>					
			</div>
			<div id="main_adv_ctl" class="main_adv_ctl">
				<ul>
					<li rel="1">1</li>
					<li rel="2">2</li>
					<li rel="3">3</li>
				</ul>
			</div>
			<script type="text/javascript" src="{$TMPL}/js/index_adv.js"></script>
	</div>
	<div class="blank"></div>
	<div class="index_left_box">
		<div class="box_top">
			<div class="index_title_tag_box">
				<div class="index_title_tag tag_search_store"></div>				
			</div>
			<div class="f_r">
				<form name="search_store" id="store_form" method="post" action="{url x="youhui" r="store"}">
				<div class="index_selectbox" id="bcate_box"></div>
				<div class="index_selectbox" id="scate_box">所有分类</div>
				<div class="index_selectbox" id="area_box">所有地区</div>
				<div class="index_selectsearch" id="search_store_btn"></div>
				<input type="hidden" name="cid" id="bcate_box_v" value="0" />
				<input type="hidden" name="tid" id="scate_box_v" value="0" />
				<input type="hidden" name="aid" id="area_box_v" value="0" />
				<input type="hidden" name="qid" id="quan_box_v" value="0" />
				<input type="hidden" name="is_redirect"  value="1" />
				</form>
			</div>
		</div>
		<div class="box_main clearfix">
			<div class="blank"></div>
			<div class="index_filter" style="border-bottom:#f2f2f2 solid 1px;">
				<div class="filter_title">类别</div>
				<div class="filter_item clearfix">
					<ul>
					{foreach from=$cate_list item=cate_item}
					<li><a href="{$cate_item.url}" title="{$cate_item.name}">{$cate_item.name}</a>&nbsp;<span>({$cate_item.count})</span></li>
					{/foreach}
					</ul>
				</div>
				<div class="blank"></div>
			</div>
			<div class="blank"></div>
			<div class="index_filter">
				<div class="filter_title">区域</div>
				<div class="filter_item clearfix">
					<ul>
					{foreach from=$area_list item=area_item}
					<li><a href="{$area_item.url}" title="{$area_item.name}">{$area_item.name}</a>&nbsp;<span>({$area_item.count})</span></li>
					{/foreach}
					</ul>
				</div>
				<div class="blank1"></div>
			</div>
			<div class="blank"></div>
		</div><!--end box_main-->
	</div>
	{$left_html}
	<div class="blank"></div>
	<div class="index_active_group_box">
		<div class="box_top"></div>
		<div class="box_main">
			{foreach from=$hot_group item=group}
			<div class="sector_2 index_group_item">
				<div class="group_icon f_l">
				<a href="{url x="shop" r="group#forum" p="id=$group.id"}" title="{$group.name}">
				<img src="{function name="get_spec_image" v=$group.icon w=80 h=80 g=1  }" alt="{$group.name}" width="80" height="80" />
				</a>
				</div>
				<div class="group_info f_l">
					<a href="{url x="shop" r="group#forum" p="id=$group.id"}" title="{$group.name}" class="title_link">{$group.name}</a>
					<div class="group_count">
						<span>{$group.user_count}</span> 成员&nbsp;&nbsp;
						<span>{$group.topic_count}</span> 分享 				
					</div>
					<div class="group_memo">
						{function name="msubstr" v=$group.memo b=0 e=35}
					</div>
				</div>
			</div>
			{/foreach}
		</div>
	</div>
</div><!--end index_left-->
<div class="index_right f_r">
	<a href="{url x="shop" r="mobile"}" target="_blank" title="手机客户端下载" class="index_mobile_download"></a>
	<div class="blank"></div>
	{if $notice_list}
	<div class="index_right_box">
		<div class="box_top">
			<div class="f_l">最新动态</div>
			<div class="f_r top_more"><a href="{url x="shop" r="notice#list"}">更多</a></div>
		</div>
		<div class="box_main">
			<ul class="notice_list">
				{foreach from=$notice_list item=notice}
				<li><a href="{$notice.url}" title="{$notice.title}">{function name="msubstr" v=$notice.title b=0 e=20}</a></li>
				{/foreach}
			</ul>
			<div class="blank5"></div>
		</div>
	</div><!--end right_box-->
	<div class="blank"></div>
	{/if}
	{insert name="load_index_daren_list" }
	{$right_html}
	{$right_dp_html}
	
</div>
<div class="blank"></div>

<!--hidden-->
<div id="bcate_box_drop_down" class="select_drop"></div>
<div id="scate_box_drop_down" class="select_drop"></div>
<div id="area_box_drop_down" class="select_drop"></div>
<div id="quan_box_drop_down" class="select_drop"></div>
<!--hidden-->

{include file="inc/footer.html"}