<!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><?php  echo WEB_NAME; ?></title>
<meta name="keywords" content="<?php  echo WEB_KEYWORDS; ?>" />
<meta name="description" content="<?php  echo WEB_DESCRIPTION; ?>" />

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

<body>
<div id="container">
	<div id="header">
    	<div id="top">
			<?php  if ( $_SESSION['member_id'] == '') { ?>
			<div id="loginBox">
            	<form name="login_from" method="post" action="<?php  echo WEB_HOST; ?>/index.php?ctl=member&act=front_member_login">
                	<?php  echo $common_header_member_name; ?><!--用户名-->：
                	  <input type="text" name="username" id="username" class="textInput" />
                    <?php  echo $common_header_member_pw; ?><!--密码-->：
                    <input type="password" name="password" id="password" class="textInput" />
					<?php  if ( LOGIN_CODE=='1') { ?>
					<?php  echo $common_header_member_code; ?><!--验证码-->：
					<input name="login_code" id="login_code" type="text" style="text-transform:uppercase; width:40px" class="textInput" />&nbsp;<?php  echo $login_code; ?>
					<?php } ?>
                    &nbsp;&nbsp;<input type="submit" name="button" id="button" class="btnInput" value="<?php  echo $common_header_member_login; ?>" />
                    &nbsp;&nbsp;<input type="button" class="btnInput" onclick="location.href='<?php  echo WEB_HOST; ?>/index.php?ctl=member&act=front_member_register'" value="<?php  echo $common_header_member_reg; ?>" />
            	</form>
			</div><!-- end of loginBox -->
			<?php  } else { ?>
			<div id="alreadyLogin">
            	<span id="whois"><strong><?php  echo $_SESSION['member_name']; ?></strong><?php  echo $common_header_member_welcome; ?></span>
				|<span><img src="<?php  echo WEB_HOST; ?>/templates/default/images/house.png" /><a href="index.php?ctl=home&act=front_home"><?php  echo $common_header_member_home; ?></a></span>
				|<span><a href="index.php?ctl=member&act=front_member_out"><?php  echo $common_header_member_out; ?></a></span>
            </div><!-- end of alreadyLogin -->
			<?php } ?>
            <div id="miniSearch">
            	<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="button3" id="button3" class="btnInput" value="<?php  echo $common_header_member_search; ?>" />
            	</form>
            </div><!-- end of miniSearch -->
        </div><!-- end of top -->
        <div id="topMiddle">
        	<div id="logo">
            	<h1><a href="<?php  echo WEB_HOST; ?>"><?php  echo WEB_NAME; ?></a></h1>
            </div><!-- end of logo -->
            <ul id="miniLinks">
            	<li><a href="index.php?ctl=home&act=front_home"><?php  echo $common_header_member_home; ?></a></li>
            	<li><a href="index.php?ctl=guestbook"><?php  echo $common_header_member_guest_book; ?></a></li>
            	<li class="rss-icon"><a href="index.php?ctl=rss&act=front_rss" target="_blank">RSS</a></li>
            </ul><!-- end of miniLinks -->
        </div><!-- end of topMiddle -->
        <div id="topBottom">
        	<ul id="mainNav">
            	<li <?php  if ( $show_menu == 'index') { ?>class="current"<?php } ?>><span><a href="<?php  echo WEB_HOST; ?>"><?php  echo $common_index; ?></a></span></li>
            	<?php  foreach ( $top_menu as $v) { ?>
            	<?php  if ( RWRITE=='1') { ?>
				<li <?php  if ( $_GET['class_id']==$v['class_id'] ) { ?>class="current"<?php } ?>><span><a href="<?php  echo WEB_HOST; ?><?php  echo CLASSURL; ?><?php  echo $v['class_id']; ?>.html" ><?php  echo $v['class_name']; ?></a></span></li>
				<?php  } else { ?>
				<li <?php  if ( $_GET['class_id']==$v['class_id'] ) { ?>class="current"<?php } ?>><span><a href="<?php  echo WEB_HOST; ?>/index.php?ctl=class&act=front_class&class_id=<?php  echo $v['class_id']; ?>" ><?php  echo $v['class_name']; ?></a></span></li>
				<?php } ?>
				<?php } ?>
				<?php  if ( RWRITE=='1') { ?>
				<li <?php  if ( $show_menu == 'guestbook') { ?>class="current"<?php } ?>><span><a href="<?php  echo WEB_HOST; ?>/guestbook.html"><?php  echo $common_header_member_guestbook; ?></a></span></li>
            	<?php  } else { ?>
            	<li <?php  if ( $show_menu == 'guestbook') { ?>class="current"<?php } ?>><span><a href="<?php  echo WEB_HOST; ?>/index.php?ctl=guestbook"><?php  echo $common_header_member_guestbook; ?></a></span></li>
            	<?php } ?>
			</ul><!-- enf of mainNav -->
        </div><!-- end of topBottom -->
    </div><!-- 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><?php  echo $index_news_new; ?><!--最新资讯--></span></li>
                            <li onmouseover="nTabs(this,1);"><span><?php  echo $index_news_hot; ?><!--焦点新闻--></span></li>
                        </ul><!-- enf of tabs -->
                        <span class="more"><a href="index.php?ctl=search&act=front_all_search" target="_blank"><?php  echo $index_more; ?></a><!--更多--></span>
                    </h2>
                    <div id="firstTab_0" class="tab-content">
                    	<ul class="whole-list">
						<?php  foreach ( $new_art as $art) { ?>
                        <li>
                        <?php  if ( RWRITE=='1') { ?>
                        <a href="<?php  echo WEB_HOST; ?><?php  echo ARTICLEURL; ?><?php  echo $art['article_id']; ?>.html" target="_blank" title="<?php  echo $art['article_title']; ?>"><?php  if ( $art['article_title_color']!='') { ?><font color="<?php  echo $art['article_title_color']; ?>"><?php } ?><?php  echo $art['article_title']; ?><?php  if ( $art['article_title_color']!='') { ?></font><?php } ?></a>
                        <?php  } else { ?>
                        <a href="index.php?ctl=article&act=front_article_content&article_id=<?php  echo $art['article_id']; ?>" target="_blank" title="<?php  echo $art['article_title']; ?>"><?php  if ( $art['article_title_color']!='') { ?><font color="<?php  echo $art['article_title_color']; ?>"><?php } ?><?php  echo $art['article_title']; ?><?php  if ( $art['article_title_color']!='') { ?></font><?php } ?></a>
                        <?php } ?>
                        </li>
                        <?php } ?>
                        </ul><!-- enf of whole-list -->
                    </div><!-- enf of firstTab_0 -->
                    <div id="firstTab_1" class="tab-content" style="display:none;">
                    	<ul class="whole-list">
						<?php  foreach ( $hot_art as $art) { ?>
						<?php  if ( RWRITE=='1') { ?>
                        <li><a href="<?php  echo WEB_HOST; ?><?php  echo ARTICLEURL; ?><?php  echo $art['article_id']; ?>.html" target="_blank" title="<?php  echo $art['article_title']; ?>"><?php  if ( $art['article_title_color']!='') { ?><font color="<?php  echo $art['article_title_color']; ?>"><?php } ?><?php  echo $art['article_title']; ?><?php  if ( $art['article_title_color']!='') { ?></font><?php } ?></a></li>
                        <?php  } else { ?>
                        <li><a href="index.php?ctl=article&act=front_article_content&article_id=<?php  echo $art['article_id']; ?>" target="_blank" title="<?php  echo $art['article_title']; ?>"><?php  if ( $art['article_title_color']!='') { ?><font color="<?php  echo $art['article_title_color']; ?>"><?php } ?><?php  echo $art['article_title']; ?><?php  if ( $art['article_title_color']!='') { ?></font><?php } ?></a></li>
                        <?php } ?>
                        <?php } ?>
                        </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><?php  echo $index_news_commend; ?><!--推荐资讯--></em></span>
                        <span class="more"><a href="index.php?ctl=search&act=front_all_search" target="_blank"><?php  echo $index_more; ?></a></span>
                    </h2>
                    <ul class="whole-list">
						<?php  foreach ( $commend_art as $art) { ?>
						<?php  if ( RWRITE=='1') { ?>
                        <li><a href="<?php  echo WEB_HOST; ?><?php  echo ARTICLEURL; ?><?php  echo $art['article_id']; ?>.html" target="_blank" title="<?php  echo $art['article_title']; ?>"><?php  if ( $art['article_title_color']!='') { ?><font color="<?php  echo $art['article_title_color']; ?>"><?php } ?><?php  echo $art['article_title']; ?><?php  if ( $art['article_title_color']!='') { ?></font><?php } ?></a></li>
                        <?php  } else { ?>
                        <li><a href="index.php?ctl=article&act=front_article_content&article_id=<?php  echo $art['article_id']; ?>" target="_blank" title="<?php  echo $art['article_title']; ?>"><?php  if ( $art['article_title_color']!='') { ?><font color="<?php  echo $art['article_title_color']; ?>"><?php } ?><?php  echo $art['article_title']; ?><?php  if ( $art['article_title_color']!='') { ?></font><?php } ?></a></li>
                        <?php } ?>
                        <?php } ?>
                    </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"><?php  echo $index_search_all; ?><!--全部--></li>
                	<li onclick="nTabs(this,1);"><?php  echo $index_search_news; ?><!--资讯--></li>
                	<li onclick="nTabs(this,2);"><?php  echo $index_search_image; ?><!--图片--></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="<?php  echo $index_search; ?>" />
                	</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="<?php  echo $index_search; ?>" />
                	</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="<?php  echo $index_search; ?>" />
                	</form>
                </div><!-- enf of searchTab_2 -->
            </div><!-- enf of search -->
            <?php  if ( is_array($class_list) and count($class_list)>0) { ?>
			<?php  foreach ( $class_list as $list) { ?>
        	<div class="sub-wrap bg-h2">
            	<h2>
                	<em><?php  echo $list['class_name']; ?></em>
                    <span class="more">
                    <?php  if ( RWRITE=='1') { ?>
                    <a href="<?php  echo WEB_HOST; ?><?php  echo CLASSURL; ?><?php  echo $list['class_id']; ?>.html" target="_blank"><?php  echo $index_more; ?></a>
                    <?php  } else { ?>
                    <a href="index.php?ctl=class&act=front_class&class_id=<?php  echo $list['class_id']; ?>" target="_blank"><?php  echo $index_more; ?></a>
                    <?php } ?>
                    </span>
                </h2>
                <div class="right-half">
                	<ul class="pic-list">
					<?php  if ( $list['img'] != '') { ?>
						<?php  foreach ( $list['img'] as $val) { ?>
                    	<li>
                        	<div class="thumb">
                        		<?php  if ( RWRITE=='1') { ?>
                            	<a href="<?php  echo WEB_HOST; ?><?php  echo ARTICLEURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank"><img src="<?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?>" /></a>
                            	<?php  } else { ?>
                            	<a href="index.php?ctl=article&act=front_article_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank"><img src="<?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?>" /></a>
                            	<?php } ?>
                            </div><!-- enf of thumb -->
                            <p>
                            <?php  if ( RWRITE=='1') { ?>
                            <a href="<?php  echo WEB_HOST; ?><?php  echo ARTICLEURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank"><?php  if ( $val['article_title_color']!='') { ?><font color="<?php  echo $val['article_title_color']; ?>"><?php } ?><?php  echo $val['article_title']; ?><?php  if ( $val['article_title_color']!='') { ?></font><?php } ?></a>
                            <?php  } else { ?>
                            <a href="index.php?ctl=article&act=front_article_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank"><?php  if ( $val['article_title_color']!='') { ?><font color="<?php  echo $val['article_title_color']; ?>"><?php } ?><?php  echo $val['article_title']; ?><?php  if ( $val['article_title_color']!='') { ?></font><?php } ?></a>
                            <?php } ?>
                            </p>
                        </li>
						<?php } ?>
					<?php } ?>						
                        <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;">
						<?php  if ( $list['txt'] != '') { ?>
							<?php  foreach ( $list['txt'] as $val) { ?>
                        	<li>
                        	<?php  if ( RWRITE=='1') { ?>
                        	<a href="<?php  echo WEB_HOST; ?><?php  echo ARTICLEURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank"><?php  if ( $val['article_title_color']!='') { ?><font color="<?php  echo $val['article_title_color']; ?>"><?php } ?><?php  echo $val['article_title']; ?><?php  if ( $val['article_title_color']!='') { ?></font><?php } ?></a>
                        	<?php  } else { ?>
                        	<a href="index.php?ctl=article&act=front_article_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank"><?php  if ( $val['article_title_color']!='') { ?><font color="<?php  echo $val['article_title_color']; ?>"><?php } ?><?php  echo $val['article_title']; ?><?php  if ( $val['article_title_color']!='') { ?></font><?php } ?></a>
                        	<?php } ?>
                        	</li>
							<?php } ?>
						<?php } ?>
                    </ul><!-- enf of whole-list -->
                </div><!-- enf of right-half -->
                <div class="clear"></div>
            </div><!-- enf of sub-wrap -->
			<?php } ?>
			<?php } ?>
        </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><?php  echo $index_note; ?><!--网站公告--></em></h2>
                <ul id="boardList">
					<?php  if ( $notice_list != '') { ?>
						<?php  foreach ( $notice_list as $val) { ?>
                	<li><a href="<?php  if ( $val['sys_url_jump']!='') { ?><?php  echo $val['sys_url_jump']; ?><?php  } else { ?>index.php?ctl=other&act=notice_show&article_id=<?php  echo $val['sys_article_id']; ?><?php } ?>" target="_blank" title="<?php  echo $val['sys_article_title']; ?>"><?php  echo $val['sys_article_title']; ?></a></li>
						<?php } ?>
					<?php } ?>
                </ul><!-- enf of boardList -->
            </div><!-- enf of siteBoard -->
            <!-- enf of download -->
<div class="bg-h2" id="poll">
            	<h2><em><?php  echo $index_vote; ?><!--投票调查--></em></h2>
				 <?php  if ( count($vote_array)>0) { ?>
					<form name="vote_form" action="index.php?ctl=other&act=poll_view&vote_id=<?php  echo $vote_array['vote_id']; ?>" method="post">
					<input type="hidden" name="vote_type" value="<?php  echo $vote_array['vote_type']; ?>" />
                <h3><?php  echo $vote_array['vote_title']; ?></h3>
                <form>
                	<ul id="pollList">
					<?php  if ( is_array($vote_array['vote_body']) and count($vote_array['vote_body'])>0) { ?>
                    	<?php  foreach ( $vote_array['vote_body'] as $v_v) { ?>
						<li>
                    	  <?php  if ( $vote_array['vote_type'] == 1) { ?><input type="checkbox" name="cms_vote[]" value="<?php  echo $v_v['vote_key']; ?>" /><?php  } else { ?><input type="radio" name="cms_vote" value="<?php  echo $v_v['vote_key']; ?>" /><?php } ?>&nbsp;&nbsp;<?php  echo $v_v['vote_option']; ?>
                   	    </li>
						<?php } ?>
					<?php } ?>
                    </ul><!-- end of pollList -->
					<div class="textCenter">
						<input type="submit" class="btnInput" value="<?php  echo $index_vote_submit; ?>" />
						<a href="index.php?ctl=other&act=poll_view&vote_id=<?php  echo $vote_array['vote_id']; ?>"><?php  echo $index_vote_show; ?><!--查看结果--></a>
					</div><!-- end of textCenter -->
                </form>
				<?php } ?>
          </div><!-- enf of bg-h2 -->
            <!-- enf of bg-h2 -->
        </div>
        <!-- end of left-side -->
        <div id="links">
        	<h2><?php  echo $index_flink; ?><!--友情链接--></h2>
			<?php  if ( count($friend_link['text'])>0) { ?>
            <div id="txtLinks">
				<?php  foreach ( $friend_link['text'] as $f_text_v) { ?>
            	<a href="<?php  echo $f_text_v['flink_url']; ?>" target="_blank" title="<?php  echo $f_text_v['flink_name']; ?>"><?php  echo $f_text_v['flink_name']; ?></a>
				<?php } ?>
            </div><!-- enf of txtLinks -->
			<?php } ?>
			<?php  if ( count($friend_link['image'])>0) { ?>
            <div id="picLinks">
				<?php  foreach ( $friend_link['image'] as $f_image_v) { ?>
            	<a href="<?php  echo $f_image_v['flink_url']; ?>" target="_blank" title="<?php  echo $f_image_v['flink_name']; ?>"><img src="<?php  echo $f_image_v['flink_logo']; ?>" width="100" height="60" border="0" /></a>
				<?php } ?>
            </div><!-- enf of piclinks -->
			<?php } ?>
        </div><!-- enf of links -->
    </div><!-- end of main -->
    <div id="footer">
    	<ul id="bottomNav">
			<?php  if ( $footer_array != '') { ?>
				<?php  foreach ( $footer_array as $val) { ?>
        	<li><a href="<?php  if ( $val['sys_url_jump']!='') { ?><?php  echo $val['sys_url_jump']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/index.php?ctl=other&act=footer&article_id=<?php  echo $val['sys_article_id']; ?><?php } ?>" target="_blank"><?php  echo $val['sys_article_title']; ?></a></li>
				<?php } ?>
			<?php } ?>
        </ul><!-- enf of bottomNav -->
        <p><?php  if ( WEB_COPYRIGHT!='') { ?><?php  echo html_entity_decode(WEB_COPYRIGHT); ?><?php } ?><?php  if ( WEB_GZIP=='1') { ?>Gzip enabled<?php } ?></p>
        <?php  if ( WEB_IPC!='') { ?><p><a href="http://www.miibeian.gov.cn/" target="_blank"><?php  echo WEB_IPC; ?></a></p><?php } ?>
		<?php  echo html_entity_decode(WEB_STAT_CODE); ?>
    </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>
