<?php if(!defined('IN_SDCMS')) exit;?>{include file="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]}">
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="bookmark" href="/favicon.ico"/>
</head>

<body>
	{include file="include/head.php"}
	<!--Banner部分开始-->
	<div class="carousel banner">
        <div class="carousel-inner">
			{sdcms:rs table="sd_ad" where="akey='pc' 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 style="background:url('{$val['image']}') no-repeat center;" href="{$val['url']}" title="{$val['desc']}"></a></div>
            {php $step++}
            {/foreach}
            {/sdcms:rs}
		</div>
    </div>
	<!--Banner部分结束-->
	
	<div class="topsearch">
		<div class="width row">
			<div class="col-8">
				<i class="ui-icon-tags mr-sm"></i><a href="{N('tags')}">标签</a>：
				{sdcms:rs top="5" table="sd_tags" order="rand()"}<a href="{N('taglist','','id='.$rs[id].'')}" title="{$rs[title]}" class="btn btn-sm">{$rs[title]}</a>{/sdcms:rs}
			</div>
			<div class="col-4 text-right">
				<form action="{N('search')}" method="get">
					<div class="form-group">
						<div class="input-group">
							{if !isempty(sdcms[pathinfo])&&sdcms[url_mode]>1}<input type="hidden" name="s" value="search{sdcms[url_ext]}" />{/if}
							{if sdcms[url_mode]==1}<input type="hidden" name="c" value="other" /><input type="hidden" name="a" value="search" />{/if}
							<select name="mode" class="form-ip">
								<option value="">全部</option>
								<option value="1">新闻</option>
								<option value="2">产品</option>
								<option value="3">招聘</option>
							</select>
							<input type="text" name="keyword" class="form-ip" placeholder="请输入关键字">
							<button type="submit" class="after"><div class="ui-icon-search"></div></button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	
	<!--下面代码中的3为产品栏目的ID，如有变更，请自行更换（代码特征：cateurl(3)，followid=3，get_sonid_all(3)）,以下其他栏目调用方式相同-->
	<div class="width mt-20 mb-40">
		<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>{sdcms:rs top="8" table="sd_category" where="followid=3" order="catenum,cateid"}<a href="{cateurl($rs[cateid])}" title="{$rs[catename]}">{$rs[catename]}</a>{/sdcms:rs}</div>
		</div>
		
		<div class="piclist piclist-col-4 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 class="home_about">
		<div class="width row bg-white">
			<div class="col-8">
				<h4>关于我们</h4>
				<div class="intro">
					{block("about")}
				</div>
				<a href="{cateurl(1)}" class="more">查看更多</a>
			</div>
			<div class="col-4">{if is_video(sdcms[home_video])}<video src="{sdcms[home_video]}" width="100%" height="100%" controls autoplay preload="auto" oncontextmenu="return false" controlslist="nodownload"></video>{else}<img src="{sdcms[home_video]}" width="100%" height="100%">{/if}</div>
		</div>
	</div>
	
	<div class="width mt-20 mb-40">
		<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>{sdcms:rs top="8" table="sd_category" where="followid=4" order="catenum,cateid"}<a href="{cateurl($rs[cateid])}" title="{$rs[catename]}">{$rs[catename]}</a>{/sdcms:rs}</div>
		</div>
		
		<div class="piclist piclist-col-3 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 class="width mt-20 mb-40">
		<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>{sdcms:rs top="8" table="sd_category" where="followid=2" order="catenum,cateid"}<a href="{cateurl($rs[cateid])}" title="{$rs[catename]}">{$rs[catename]}</a>{/sdcms:rs}</div>
		</div>
		
		<!--news begin-->
		<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>
		<!--news over-->

	</div>

	
	<div class="width mt-20 mb-40">
		<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]}" target="_blank"><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 class="width mt-20 mb-40">
		<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]}" target="_blank">{$rs[webname]}</a>
            {/sdcms:rs}
		</div>
	</div>
	{include file="include/foot.php"}
</body>
</html>