<?php if(!defined('IN_SDCMS')) exit;?>
{include file="mobile/include/top.php"}
<title>{if !isempty(sdcms[seo_title])}{sdcms[seo_title]}{else}{sdcms[web_name]}{/if}</title>
<meta name="keywords" content="{sdcms[seo_key]}">
<meta name="description" content="{sdcms[seo_desc]}">
{include file="mobile/include/wxshare.php"}
</head>

<body>
	
	<div class="topbar topbar-blue mwidth fixed-top">
		<div class="topbar-logo flex-fill"><a href="{$webroot}" title="网站首页"><img src="{sdcms[mobile_logo]}" alt="{sdcms[web_name]}"></a></div>
		<div class="topbar-right"><a href="javascript:;" class="offside-show" data-target="#offside-nav"><i class="ui-icon-lists"></i></a></div>
	</div>
	{include file="mobile/include/nav.php"}
	
	<!--Banner部分开始-->
	<div class="mwidth banner">
    	<div class="carousel" data-arrow="false">
            <div class="carousel-inner">
            	{sdcms:rs table="sd_ad" where="akey='mobile' and islock=1"}
                    {php $adlist=jsdecode($rs[datalist],1)}
                	{php $step=0}
                    {foreach $adlist as $num=>$val}
                    	<div class="carousel-item{if $step==0} active{/if}"><a href="{$val['url']}"><img src="{$val['image']}" alt="{$val['desc']}"></a></div>
                    {php $step++}
                    {/foreach}
                {/sdcms:rs}
            </div>
        </div>
    </div>
	<!--Banner部分结束-->
	
	<!--下面代码中的3为产品栏目的ID，如有变更，请自行更换（代码特征：cateurl(3)，followid=3，get_sonid_all(3)）,以下其他栏目调用方式相同-->
	<div class="mwidth">
		<div class="ui-box p-10">
			<div class="home-title">
				<div class="home-title-name">产品展示<span>Product Show</span></div>
				<div class="home-title-more"><a href="{cateurl(3)}" class="active">更多</a></div>
			</div>

			<div class="piclist piclist-col-2 piclist-1-1 piclist-100">
				{php $sonid=get_sonid_all(3)}
				{sdcms:rs top="8" table="sd_content" where="islock=1 and classid in($sonid)" order="ontop desc,ordnum desc,id desc"}
				<div class="piclist-item">
					<div class="piclist-image"><a href="{$rs[link]}" title="{$rs[title]}"><img src="{thumb($rs[pic],400,400)}" alt="{$rs[title]}" /></a></div>
					<div class="piclist-body">
						<div class="piclist-title text-center text-hide"><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></div>
					</div>
				</div>
				{/sdcms:rs}
			</div>
		</div>
		
	</div>
	
	<div class="mwidth mt">
		<div class="ui-box p-10">
			<div class="home-title">
				<div class="home-title-name">关于我们<span>About Us</span></div>
				<div class="home-title-more"><a href="{cateurl(1)}" class="active">更多</a></div>
			</div>
			
			{if !isempty(sdcms[home_video])}
			<div class="home_video">
				{if is_video(sdcms[home_video])}<video src="{sdcms[home_video]}" controls autoplay  preload="auto" x5-video-player-type="h5-page" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" controlslist="nodownload"></video>{else}<img src="{sdcms[home_video]}" >{/if}
			</div>
			{/if}
			<div class="home_block">
				{block("about")}
			</div>
		</div>
		
	</div>
	
	<div class="mwidth mt">
		<div class="ui-box p-10">
			<div class="home-title">
				<div class="home-title-name">案例展示<span>Case Show</span></div>
				<div class="home-title-more"><a href="{cateurl(4)}" class="active">更多</a></div>
			</div>

			<div class="piclist piclist-col-2 piclist-3-2 piclist-100">
				{php $sonid=get_sonid_all(4)}
				{sdcms:rs top="6" table="sd_content" where="islock=1 and classid in($sonid)" order="ontop desc,ordnum desc,id desc"}
				<div class="piclist-item">
					<div class="piclist-image"><a href="{$rs[link]}" title="{$rs[title]}"><img src="{thumb($rs[pic],600,400)}" alt="{$rs[title]}" /></a></div>
					<div class="piclist-body">
						<div class="piclist-title text-center text-hide"><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></div>
					</div>
				</div>
				{/sdcms:rs}
			</div>
		</div>
		
	</div>
	
	<div class="mwidth mt">
		<div class="ui-box p-10">
			<div class="home-title">
				<div class="home-title-name">新闻资讯<span>News</span></div>
				<div class="home-title-more"><a href="{cateurl(2)}" class="active">更多</a></div>
			</div>

			<div class="home_news">
				{php $sonid=get_sonid_all(2)}
				{php $subid=deal_subid($sonid)}
				{sdcms:rs top="8" table="sd_content" where="islock=1 and classid in($sonid)" sub="$subid" order="ontop desc,ordnum desc,id desc"}
				<div class="home_news_item">
					<div class="home_news_body">
						<div class="date">
							<h4>{date('d',$rs[createdate])}</h4>
							<p>{date('Y-m',$rs[createdate])}</p>
						</div>
						<div class="body">
							<h4 class="text-hide"><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></h4>
							<p class="text-hide">{$rs[intro]}</p>
						</div>
					</div>
				</div>
				{/sdcms:rs}
			</div>
		</div>
		
	</div>
	
	<div class="mwidth mt">
		<div class="ui-box p-10">
			<div class="home-title">
				<div class="home-title-name">合作伙伴<span>Cooperation partners</span></div>
			</div>

			<ul class="partners">
				{sdcms:rs top="0" table="sd_link" where="islogo=1 and islock=1" order="ordnum,id"}
				<li><a href="{$rs[weburl]}" title="{$rs[webname]}"><img src="{$rs[weblogo]}" width="240" height="108" alt="{$rs[webname]}"></a><p class="text-hide">{$rs[webname]}</p></li>
				{/sdcms:rs}
			</ul>
		</div>
		
	</div>
	
	<div class="mwidth mt">
		<div class="ui-box p-10">
			<div class="home-title">
				<div class="home-title-name">友情链接<span>Friend Link</span></div>
			</div>

			<div class="link">
				{sdcms:rs top="0" table="sd_link" where="islogo=0 and islock=1" order="ordnum,id"}
				<a href="{$rs[weburl]}" title="{$rs[webname]}">{$rs[webname]}</a>
				{/sdcms:rs}
			</div>
		</div>

	</div>
	
	<div class="mwidth copyright">
		<div class="links"><a href="{N('tags')}">标签</a> | <a href="{N('city')}">城市分站</a> | <a href="{N('sitemap')}">网站地图</a></div>
		{sdcms[ct_company]}　版权所有
		<div class="pt-20"></div>
	</div>
	{include file="mobile/include/foot.php"}
	<script>
	$(function()
	{
		/*首页链接添加选中效果*/
		$("#bar_home").addClass("active");
	})
	</script>
</body>
</html>
