<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><tpl>WEB_NAME</tpl></title>
<meta name="keywords" content="<tpl>WEB_KEYWORDS</tpl>" />
<meta name="description" content="<tpl>WEB_DESCRIPTION</tpl>" />

<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/style.css" />
<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/index.css" />
<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/ie.css" />
</head>

<body>
<div id="container">
	<tpl>include header.html</tpl><!-- end of header -->
    <div id="main">
    	<div class="right-main">
        	<div class="sub-wrap">
            	<div class="right-half simple-h2" style="margin-right:20px;">
					<h2>
                        <ul class="tabs" id="firstTab">
                        	<li class="active" onmouseover="nTabs(this,0);"><span><tpl>$index_news_new</tpl><!--最新资讯--></span></li>
                            <li onmouseover="nTabs(this,1);"><span><tpl>$index_news_hot</tpl><!--焦点新闻--></span></li>
                        </ul><!-- enf of tabs -->
                        <span class="more"><a href="index.php?ctl=search&act=front_all_search" target="_blank"><tpl>$index_more</tpl></a><!--更多--></span>
                    </h2>
                    <div id="firstTab_0" class="tab-content">
                    	<ul class="whole-list">
						<tpl>foreach $new_art as $art</tpl>
                        <li>
                        <tpl>if RWRITE=='1'</tpl>
                        <a href="<tpl>WEB_HOST</tpl><tpl>ARTICLEURL</tpl><tpl>$art['article_id']</tpl>.html" target="_blank" title="<tpl>$art['article_title']</tpl>"><tpl>if $art['article_title_color']!=''</tpl><font color="<tpl>$art['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$art['article_title']</tpl><tpl>if $art['article_title_color']!=''</tpl></font><tpl>/if</tpl></a>
                        <tpl>else</tpl>
                        <a href="index.php?ctl=article&act=front_article_content&article_id=<tpl>$art['article_id']</tpl>" target="_blank" title="<tpl>$art['article_title']</tpl>"><tpl>if $art['article_title_color']!=''</tpl><font color="<tpl>$art['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$art['article_title']</tpl><tpl>if $art['article_title_color']!=''</tpl></font><tpl>/if</tpl></a>
                        <tpl>/if</tpl>
                        </li>
                        <tpl>/foreach</tpl>
                        </ul><!-- enf of whole-list -->
                    </div><!-- enf of firstTab_0 -->
                    <div id="firstTab_1" class="tab-content" style="display:none;">
                    	<ul class="whole-list">
						<tpl>foreach $hot_art as $art</tpl>
						<tpl>if RWRITE=='1'</tpl>
                        <li><a href="<tpl>WEB_HOST</tpl><tpl>ARTICLEURL</tpl><tpl>$art['article_id']</tpl>.html" target="_blank" title="<tpl>$art['article_title']</tpl>"><tpl>if $art['article_title_color']!=''</tpl><font color="<tpl>$art['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$art['article_title']</tpl><tpl>if $art['article_title_color']!=''</tpl></font><tpl>/if</tpl></a></li>
                        <tpl>else</tpl>
                        <li><a href="index.php?ctl=article&act=front_article_content&article_id=<tpl>$art['article_id']</tpl>" target="_blank" title="<tpl>$art['article_title']</tpl>"><tpl>if $art['article_title_color']!=''</tpl><font color="<tpl>$art['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$art['article_title']</tpl><tpl>if $art['article_title_color']!=''</tpl></font><tpl>/if</tpl></a></li>
                        <tpl>/if</tpl>
                        <tpl>/foreach</tpl>
                        </ul><!-- enf of whole-list -->
                    </div><!-- enf of firstTab_1 -->
                </div><!-- enf of right-half -->
            	<div class="right-half simple-h2">
                	<h2><span class="tit"><em><tpl>$index_news_commend</tpl><!--推荐资讯--></em></span>
                        <span class="more"><a href="index.php?ctl=search&act=front_all_search" target="_blank"><tpl>$index_more</tpl></a></span>
                    </h2>
                    <ul class="whole-list">
						<tpl>foreach $commend_art as $art</tpl>
						<tpl>if RWRITE=='1'</tpl>
                        <li><a href="<tpl>WEB_HOST</tpl><tpl>ARTICLEURL</tpl><tpl>$art['article_id']</tpl>.html" target="_blank" title="<tpl>$art['article_title']</tpl>"><tpl>if $art['article_title_color']!=''</tpl><font color="<tpl>$art['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$art['article_title']</tpl><tpl>if $art['article_title_color']!=''</tpl></font><tpl>/if</tpl></a></li>
                        <tpl>else</tpl>
                        <li><a href="index.php?ctl=article&act=front_article_content&article_id=<tpl>$art['article_id']</tpl>" target="_blank" title="<tpl>$art['article_title']</tpl>"><tpl>if $art['article_title_color']!=''</tpl><font color="<tpl>$art['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$art['article_title']</tpl><tpl>if $art['article_title_color']!=''</tpl></font><tpl>/if</tpl></a></li>
                        <tpl>/if</tpl>
                        <tpl>/foreach</tpl>
                    </ul><!-- enf of whole-list -->
                </div><!-- enf of right-half -->
                <div class="clear"></div>
            </div><!-- enf of sub-wrap -->
        	<div class="sub-wrap" id="search">
            	<ul id="searchTab">
                	<li onclick="nTabs(this,0);" class="active"><tpl>$index_search_all</tpl><!--全部--></li>
                	<li onclick="nTabs(this,1);"><tpl>$index_search_news</tpl><!--资讯--></li>
                	<li onclick="nTabs(this,2);"><tpl>$index_search_image</tpl><!--图片--></li>
                </ul><!-- enf of searchTab -->
                <div id="searchTab_0" class="search-content">
                	<form action="index.php" method="get">
							<input type="hidden" name="ctl" value="search" />
							<input type="hidden" name="act" value="front_all_search" />
                    	  <input type="text" name="keywords" id="keywords" class="textInput" />
                          <input type="submit" name="button4" id="button4" class="btnInput" value="<tpl>$index_search</tpl>" />
                	</form>
                </div><!-- enf of searchTab_0 -->
                <div id="searchTab_1" class="search-content" style="display:none;">
                	<form action="index.php" method="get">
						<input type="hidden" name="ctl" value="search" />
						<input type="hidden" name="act" value="front_article_search" />
                    	  <input type="text" name="keywords" id="keywords" class="textInput" />
                          <input type="submit" name="button4" id="button4" class="btnInput" value="<tpl>$index_search</tpl>" />
                	</form>
                </div><!-- enf of searchTab_1 -->
                <div id="searchTab_2" class="search-content" style="display:none;">
                	<form action="index.php" method="get">
							<input type="hidden" name="ctl" value="search" />
							<input type="hidden" name="act" value="front_image_search" />
                    	  <input type="text" name="keywords" id="keywords" class="textInput" />
                          <input type="submit" name="button4" id="button4" class="btnInput" value="<tpl>$index_search</tpl>" />
                	</form>
                </div><!-- enf of searchTab_2 -->
            </div><!-- enf of search -->
            <tpl>if is_array($class_list) and count($class_list)>0</tpl>
			<tpl>foreach $class_list as $list</tpl>
        	<div class="sub-wrap bg-h2">
            	<h2>
                	<em><tpl>$list['class_name']</tpl></em>
                    <span class="more">
                    <tpl>if RWRITE=='1'</tpl>
                    <a href="<tpl>WEB_HOST</tpl><tpl>CLASSURL</tpl><tpl>$list['class_id']</tpl>.html" target="_blank"><tpl>$index_more</tpl></a>
                    <tpl>else</tpl>
                    <a href="index.php?ctl=class&act=front_class&class_id=<tpl>$list['class_id']</tpl>" target="_blank"><tpl>$index_more</tpl></a>
                    <tpl>/if</tpl>
                    </span>
                </h2>
                <div class="right-half">
                	<ul class="pic-list">
					<tpl>if $list['img'] != ''</tpl>
						<tpl>foreach $list['img'] as $val</tpl>
                    	<li>
                        	<div class="thumb">
                        		<tpl>if RWRITE=='1'</tpl>
                            	<a href="<tpl>WEB_HOST</tpl><tpl>ARTICLEURL</tpl><tpl>$val['article_id']</tpl>.html" target="_blank"><img src="<tpl>WEB_HOST</tpl><tpl>$val['article_img']</tpl>" /></a>
                            	<tpl>else</tpl>
                            	<a href="index.php?ctl=article&act=front_article_content&article_id=<tpl>$val['article_id']</tpl>" target="_blank"><img src="<tpl>WEB_HOST</tpl><tpl>$val['article_img']</tpl>" /></a>
                            	<tpl>/if</tpl>
                            </div><!-- enf of thumb -->
                            <p>
                            <tpl>if RWRITE=='1'</tpl>
                            <a href="<tpl>WEB_HOST</tpl><tpl>ARTICLEURL</tpl><tpl>$val['article_id']</tpl>.html" target="_blank"><tpl>if $val['article_title_color']!=''</tpl><font color="<tpl>$val['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$val['article_title']</tpl><tpl>if $val['article_title_color']!=''</tpl></font><tpl>/if</tpl></a>
                            <tpl>else</tpl>
                            <a href="index.php?ctl=article&act=front_article_content&article_id=<tpl>$val['article_id']</tpl>" target="_blank"><tpl>if $val['article_title_color']!=''</tpl><font color="<tpl>$val['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$val['article_title']</tpl><tpl>if $val['article_title_color']!=''</tpl></font><tpl>/if</tpl></a>
                            <tpl>/if</tpl>
                            </p>
                        </li>
						<tpl>/foreach</tpl>
					<tpl>/if</tpl>						
                        <div class="clear"></div>
                    </ul><!-- enf of pic-list -->
                </div><!-- enf of right-half -->
                <div class="right-half">
                    <ul class="whole-list" style="margin:15px 8px 8px 18px;">
						<tpl>if $list['txt'] != ''</tpl>
							<tpl>foreach $list['txt'] as $val</tpl>
                        	<li>
                        	<tpl>if RWRITE=='1'</tpl>
                        	<a href="<tpl>WEB_HOST</tpl><tpl>ARTICLEURL</tpl><tpl>$val['article_id']</tpl>.html" target="_blank"><tpl>if $val['article_title_color']!=''</tpl><font color="<tpl>$val['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$val['article_title']</tpl><tpl>if $val['article_title_color']!=''</tpl></font><tpl>/if</tpl></a>
                        	<tpl>else</tpl>
                        	<a href="index.php?ctl=article&act=front_article_content&article_id=<tpl>$val['article_id']</tpl>" target="_blank"><tpl>if $val['article_title_color']!=''</tpl><font color="<tpl>$val['article_title_color']</tpl>"><tpl>/if</tpl><tpl>$val['article_title']</tpl><tpl>if $val['article_title_color']!=''</tpl></font><tpl>/if</tpl></a>
                        	<tpl>/if</tpl>
                        	</li>
							<tpl>/foreach</tpl>
						<tpl>/if</tpl>
                    </ul><!-- enf of whole-list -->
                </div><!-- enf of right-half -->
                <div class="clear"></div>
            </div><!-- enf of sub-wrap -->
			<tpl>/foreach</tpl>
			<tpl>/if</tpl>
        </div>
    	<!-- end of right-main -->
        <div class="left-side">
        	<div id="slideShow">
		<script type="text/javascript">
        var swf_width=285;
        var swf_height=220;
        </script>

			<script src="data/flashdata/cycle_image.js"></script>
            </div><!-- enf of slideShow -->
            <div class="bg-h2" id="siteBoard">
            	<h2><em><tpl>$index_note</tpl><!--网站公告--></em></h2>
                <ul id="boardList">
					<tpl>if $notice_list != ''</tpl>
						<tpl>foreach $notice_list as $val</tpl>
                	<li><a href="<tpl>if $val['sys_url_jump']!=''</tpl><tpl>$val['sys_url_jump']</tpl><tpl>else</tpl>index.php?ctl=other&act=notice_show&article_id=<tpl>$val['sys_article_id']</tpl><tpl>/if</tpl>" target="_blank" title="<tpl>$val['sys_article_title']</tpl>"><tpl>$val['sys_article_title']</tpl></a></li>
						<tpl>/foreach</tpl>
					<tpl>/if</tpl>
                </ul><!-- enf of boardList -->
            </div><!-- enf of siteBoard -->
            <!-- enf of download -->
<div class="bg-h2" id="poll">
            	<h2><em><tpl>$index_vote</tpl><!--投票调查--></em></h2>
				 <tpl>if count($vote_array)>0</tpl>
					<form name="vote_form" action="index.php?ctl=other&act=poll_view&vote_id=<tpl>$vote_array['vote_id']</tpl>" method="post">
					<input type="hidden" name="vote_type" value="<tpl>$vote_array['vote_type']</tpl>" />
                <h3><tpl>$vote_array['vote_title']</tpl></h3>
                <form>
                	<ul id="pollList">
					<tpl>if is_array($vote_array['vote_body']) and count($vote_array['vote_body'])>0</tpl>
                    	<tpl>foreach $vote_array['vote_body'] as $v_v</tpl>
						<li>
                    	  <tpl>if $vote_array['vote_type'] == 1</tpl><input type="checkbox" name="cms_vote[]" value="<tpl>$v_v['vote_key']</tpl>" /><tpl>else</tpl><input type="radio" name="cms_vote" value="<tpl>$v_v['vote_key']</tpl>" /><tpl>/if</tpl>&nbsp;&nbsp;<tpl>$v_v['vote_option']</tpl>
                   	    </li>
						<tpl>/foreach</tpl>
					<tpl>/if</tpl>
                    </ul><!-- end of pollList -->
					<div class="textCenter">
						<input type="submit" class="btnInput" value="<tpl>$index_vote_submit</tpl>" />
						<a href="index.php?ctl=other&act=poll_view&vote_id=<tpl>$vote_array['vote_id']</tpl>"><tpl>$index_vote_show</tpl><!--查看结果--></a>
					</div><!-- end of textCenter -->
                </form>
				<tpl>/if</tpl>
          </div><!-- enf of bg-h2 -->
            <!-- enf of bg-h2 -->
        </div>
        <!-- end of left-side -->
        <div id="links">
        	<h2><tpl>$index_flink</tpl><!--友情链接--></h2>
			<tpl>if count($friend_link['text'])>0</tpl>
            <div id="txtLinks">
				<tpl>foreach $friend_link['text'] as $f_text_v</tpl>
            	<a href="<tpl>$f_text_v['flink_url']</tpl>" target="_blank" title="<tpl>$f_text_v['flink_name']</tpl>"><tpl>$f_text_v['flink_name']</tpl></a>
				<tpl>/foreach</tpl>
            </div><!-- enf of txtLinks -->
			<tpl>/if</tpl>
			<tpl>if count($friend_link['image'])>0</tpl>
            <div id="picLinks">
				<tpl>foreach $friend_link['image'] as $f_image_v</tpl>
            	<a href="<tpl>$f_image_v['flink_url']</tpl>" target="_blank" title="<tpl>$f_image_v['flink_name']</tpl>"><img src="<tpl>$f_image_v['flink_logo']</tpl>" width="100" height="60" border="0" /></a>
				<tpl>/foreach</tpl>
            </div><!-- enf of piclinks -->
			<tpl>/if</tpl>
        </div><!-- enf of links -->
    </div><!-- end of main -->
    <div id="footer">
<tpl>include footer.html </tpl>
    </div><!-- end of footer -->
</div><!-- end of container -->
<script type="text/javascript">
//实现标签切换
function nTabs(thisObj,Num){
	if(thisObj.className == "active")return;
		var tabObj = thisObj.parentNode.id;
		var tabList = document.getElementById(tabObj).getElementsByTagName("li");
		for(i = 0; i < tabList.length; i++)
		{
			if (i == Num)
			{
				thisObj.className = "active"; 
				document.getElementById(tabObj+"_"+i).style.display = "block";
			}else{
			tabList[i].className = "normal"; 
			document.getElementById(tabObj+"_"+i).style.display = "none";
		}
	} 
}
</script> 
</body>
</html>
