<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{$title}</title>
    <meta name="keywords" content="{$keywords}" />
    <meta name="description" content="{$description}" />
    <meta name="generator" content="openwbs {$version}" />
    <meta name="author" content="openwbs team" />
    <meta name="copyright" content="2012-2032 OpenWBS Inc." />
    <!--#include file="include.css.html"-->
    <link rel="stylesheet" href="../css/ow.index.css?v={$version_sn}" />
    <link rel="stylesheet" href="../css/swiper.min.css">
    <script src="../js/swiper.min.js"></script>
</head>
<body>
<!--头部{-->
<!--#include file="include.header.html"-->
<div class="ow-main-banner">
    <div class="swiper ow-swiper" style='height:{%=OS.getAdFieldData(1,"height")%}'>
        <div class="swiper-wrapper">
            {%=OW.echoAdImg("1","<div class=""swiper-slide swiper-slide-{$i}"" style=""background-image:url('{$url}');""><div class=""slider-text""><h2>{$name}</h2><h3>{$subname}</h3><div class=""slider-btn""><a href=""{$link}"" target=""_blank"">{$btntext}</a></div></div></div>")%}
        </div>
        <div class="swiper-button-prev"></div><div class="swiper-button-next"></div><div class="swiper-pagination"></div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	if(OW.int($(".ow-main-banner").find(".swiper-slide").length)==0){
		$(".ow-main-banner").remove();
	}else{
		var owSwiper = new Swiper(".ow-swiper",{speed:200,autoplay:{delay:5000},loop:true,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev",},pagination:{el:".swiper-pagination",clickable:true}});
		$(".ow-main-banner").find("a").each(function(){
			if($(this).attr("href")=="" || $(this).attr("href")=="#"){
				$(this).remove();
			};
		});
	};
});
</script>
<div id="mbody">
    <div class="ow-rich-text ow-editor-content-text">{ow:home-pc-richtext}</div>
    <script type="text/javascript">
	$(document).ready(function(){
		if(OW.isNull($(".ow-rich-text").text())){
			$(".ow-rich-text").remove();
		};
	});
    </script>
    
    <div class="ow-product after">
        <div class="wrapper">
            <div class="hd">
                <h2>{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_position WHERE pos_id=2")%}</h2>
                <h3>{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_position WHERE pos_id=2")%}</h3>
            </div>
            <div class="cates">
                {cate top="10" parent_id="3"}
                <ul>
                    {cate:loop}<li><a href="[cate:link]">[cate:name]</a></li>{/cate:loop}
                </ul>
                {/cate}
            </div>
            <div class="bd">
                {content top="100" position_id="2" model="product"}
                <ul>
                    {content:loop}
                    <li class="li[content:i]">
                        <div class="thumb"><a href="[content:link]"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]" /></a></div>
                        <div class="info">
                            <h3 class="title"><a href="[content:link]">[content:ctitle]</a></h3>
                        </div>
                    </li>
                    {/content:loop}
                </ul>
                {/content}
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-product").find(".bd").find("li").length==0){
			$(".ow-product").remove();
		}else{};
	});
    </script>
    
    <div class="ow-introduce-style2">
        <div class="wrapper">
            {ow:index-introduce}
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if(OW.isNull($(".ow-introduce-style2").text())){
			$(".ow-introduce-style2").remove();
		};
	});
    </script>
    
    <div class="ow-cases after">
        <div class="wrapper">
            <div class="hd">
                <h2>{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_position WHERE pos_id=3")%}</h2>
                <h3>{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_position WHERE pos_id=3")%}</h3>
            </div>
            <div class="bd">
                    {content top="60" position_id="3" model="case" orderby="a.cid DESC"}
                    <ul>
                        {content:loop}
                        <li class="li[content:i]" name="item">
                            <div class="thumb"><a href="[content:link]" title="[content:title]" target="_blank"><img src="{if:OW.isNul("[content:thumbnail]")}../images/news_none_pic.png{else}[content:thumbnail]{/if}" alt="[content:title]"><i class="play"></i></a></div>
                            <div class="info">
                                <h3 class="title"><a href="[content:link]" title="[content:title]" target="_blank">[content:title]</a></h3>
                            </div>
                        </li>
                        {/content:loop}
                    </ul>
                    {/content}
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-cases").find(".bd").find("li").length==0){
			$(".ow-cases").remove();
		};
	});
    </script>
    
    <div class="ow-news after">
        <div class="wrapper">
            <div class="hd">
                <h2>{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_position WHERE pos_id=1")%}</h2>
                <h3>{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_position WHERE pos_id=1")%}</h3>
            </div>
            <div class="bd">
                {content top="30" position_id="1" model="news"}
                <ul>
                    {content:loop}
                    <li class="li[content:i] after" name="item">
                        <div class="thumb"><a href="[content:link]" title="[content:title]" target="_blank"><img src="{if:OW.isNul("[content:thumbnail]")}../images/news_none_pic.png{else}[content:thumbnail]{/if}" alt="[content:title]"></a></div>
                        <div class="info">
                            <h4 class="title"><a href="[content:link]" title="[content:title]" target="_blank">[content:title]</a></h4>
                            <div class="datetime" name="datetime" datetime="[content:update_time]"><%=ow.formatdatetime("[content:post_time]",2)%></div>
                        </div>
                    </li>
                    {/content:loop}
                </ul>
                {/content}
            </div>
        </div>
    </div>
	<script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-news").find(".bd").find("li").length==0){
			$(".ow-news").remove();
		}else{};
	});
    </script>
    
    <div class="ow-index-tags">
        <div class="wrapper">
            <div class="hd"><h4>分类阅读</h4></div>
            <div class="bd">
            {tags top="30" is_shop="0"}
            {tags:loop}<a href="[tags:link]" hits="[tags:hits]" target="_blank">[tags:tag]</a>{/tags:loop}
            {/tags}
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-index-tags").find(".bd").find("a").length==0){
			$(".ow-index-tags").remove();
		}else{};
	});
    </script>
    
    <!--友情链接-->
    <div class="ow-flinks" id="ow_flinks">
        <div class="wrapper">
            <div class="flinks">
            <span class="heading">友情链接：</span>
            {link table="db_links"}
                {link:loop}<a href="[link:url]" i="[link:i]" name="link" onclick="OW.link.count([link:link_id])" target="_blank">[link:name]</a>{/link:loop}
            {/link}
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-flinks").find("a").length==0){
			$(".ow-flinks").remove();
		}else{};
	});
    </script>

</div>
<div class="ow-notice" id="ow_notice">{$notice}</div>


<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript">
$(document).ready(function(){
	var $owNotice = $("#ow_notice");
	if(OW.trim($owNotice.html())!=""){
		var notShow = OW.int(OW.cookie.getCookie("ownoticenotshow"));
		if(notShow==0){
			var $dialog = new OWDialog({
				id:'d_ow_notice',
				title:"【网站公告】",
				content:'<div class="ow-notice-dialog">'+$owNotice.html()+'<div>',
				padding:"0px",
				ok:false,
				cancel:function(){
					OW.cookie.setCookie("ownoticenotshow","1",1000*60*60*24*10);
				},
				cancelValue:"关闭，不再提示",
				close:false
			});
		};
	}else{
		$owNotice.remove();
	};
	//****
	/*var opt = {y:"年前",m:"个月前",w:"周前",d:"天前",h:"小时前",n:"分钟前",s:"秒前"}
	$("div[name='datetime']").each(function(){
		var timeText = OW.timeAgoTip(opt,$(this).attr("datetime"),"<%=SYS_TIME%>");
		$(this).html(timeText);
	});*/
});
</script>
</body>
</html>
