<!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 $class_array['class']['class_name']; ?> - <?php  echo WEB_NAME; ?></title>
<meta name="keywords" content="<?php  echo $class_array['class']['class_keywords']; ?>" />
<meta name="description" content="<?php  echo $class_array['class']['class_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/pages.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">
        	<h2><?php  echo $img_list; ?><!--图片列表--></h2>
            <div class="clear"></div>
            <div id="whereUR">
            	<?php  echo $common_location; ?>：<a href="<?php  echo WEB_HOST; ?>"><?php  echo $common_index; ?></a><?php  foreach ( $class_menu as $v) { ?> > <a href="index.php?ctl=class&act=front_class&class_id=<?php  echo $v['class_id']; ?>"><?php  echo $v['class_name']; ?></a><?php } ?>
            </div><!-- end of whereUR -->
            <div id="contentWrapper">
                <h1 class="photo-album-tit"><?php  echo $class_array['class']['class_name']; ?></h1>
            	<div id="photoList">
                	<div class="photo-album-wrap">
					<?php  if ( $article_array!='') { ?>
					<?php  foreach ( $article_array as $val) { ?>
                    	<div class="albumlst">
                          	<?php  if ( RWRITE=='1') { ?>
                    		<a href="<?php  echo WEB_HOST; ?><?php  echo PICURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank" alt="<?php  echo $val['article_title']; ?>" title="<?php  echo $val['article_title']; ?>"><img src="<?php  if ( $val['article_img']!='') { ?><?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/templates/default/images/no_img.jpg<?php } ?>" class="album"/></a>
                            <?php  } else { ?>
                            <a href="index.php?ctl=pic&act=front_pic_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank" alt="<?php  echo $val['article_title']; ?>" title="<?php  echo $val['article_title']; ?>"><img src="<?php  if ( $val['article_img']!='') { ?><?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/templates/default/images/no_img.jpg<?php } ?>" class="album"/></a>
                            <?php } ?>
                            <div class="albumlst-r">
                                <div class="pl2">
                                    <?php  if ( RWRITE=='1') { ?>
                                	<a href="<?php  echo WEB_HOST; ?><?php  echo PICURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank" alt="<?php  echo $val['article_title']; ?>" title="<?php  echo $val['article_title']; ?>"><?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></a>
                                    <?php  } else { ?>
                                    <a href="index.php?ctl=pic&act=front_pic_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank" alt="<?php  echo $val['article_title']; ?>" title="<?php  echo $val['article_title']; ?>"><?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></a>
                               		<?php } ?>
                                 </div><!-- end of pl2 -->
                                <span class="pl"><?php  echo date("Y-m-d",$val['article_time']); ?><?php  echo $img_update; ?><!--更新--></span>
                            </div><!-- end of albumlst-r -->
                        </div><!-- end of albumlst -->
						<?php } ?>
						<?php } ?>
                        <div class="clear"></div>
                    </div><!-- end of photo-album-wrap -->
                </div><!-- end of photoList -->
                <div class="pagebar">
                    <?php  echo $show_page; ?>
                </div><!-- end of pagebar -->
                <div id="contentWrapperTop"></div>
                <div id="contentWrapperBottom"></div>
            </div>
            <!-- end of contentWrapper -->
        </div><!-- end of right-main -->
        <div class="left-side">
            <div class="left-article">
            	<h3><?php  echo $img_clss_list; ?><!--内容分类--></h3>
            	<ul class="left-article-list">
					<?php  if ( $class_array['top_class']!='') { ?>
					<?php  foreach ( $class_array['top_class'] as $val) { ?>
                    <li>
                    <?php  if ( RWRITE=='1') { ?>
                    <a href="<?php  echo WEB_HOST; ?><?php  echo CLASSURL; ?><?php  echo $val['class_id']; ?>.html" title="<?php  echo $val['class_name']; ?>" ><?php  echo $val['class_name']; ?></a>
                    <?php  } else { ?>
                    <a href="index.php?ctl=class&act=front_class&class_id=<?php  echo $val['class_id']; ?>" title="<?php  echo $val['class_name']; ?>" ><?php  echo $val['class_name']; ?></a>
                    <?php } ?>
                    </li>
					<?php } ?>
					<?php } ?>
                    <li><?php  echo $class_array['class']['class_name']; ?>
						 <ul>
						 	<?php  if ( $class_array['sun_class']!='') { ?>
						 	<?php  foreach ( $class_array['sun_class'] as $val) { ?>
                        	<li>
                        	<?php  if ( RWRITE=='1') { ?>
                        	<a href="<?php  echo WEB_HOST; ?><?php  echo CLASSURL; ?><?php  echo $val['class_id']; ?>.html" title="<?php  echo $val['class_name']; ?>" ><?php  echo $val['class_name']; ?></a>
                        	<?php  } else { ?>
                        	<a href="index.php?ctl=class&act=front_class&class_id=<?php  echo $val['class_id']; ?>" title="<?php  echo $val['class_name']; ?>" ><?php  echo $val['class_name']; ?></a>
                        	<?php } ?>
                        	</li>
							<?php } ?>
							<?php } ?>
                        </ul>
					</li>
                </ul><!-- end of left-article-list -->
            	<h3><?php  echo $img_new_list; ?><!--最新图片--></h3>
            	<ul class="left-pic-list">
				<?php  if ( $article_new_list!='') { ?>
				<?php  foreach ( $article_new_list as $val) { ?>
                	<li>
                    	<?php  if ( RWRITE=='1') { ?>
                		<a href="<?php  echo WEB_HOST; ?><?php  echo PICURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank" title="<?php  echo $val['article_title']; ?>"><img src="<?php  if ( $val['article_img']!='') { ?><?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/templates/default/images/no_img.jpg<?php } ?>" /></a>
                    	<?php  } else { ?>
                    	<a href="index.php?ctl=pic&act=front_pic_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank" title="<?php  echo $val['article_title']; ?>"><img src="<?php  if ( $val['article_img']!='') { ?><?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/templates/default/images/no_img.jpg<?php } ?>" /></a>
                    	<?php } ?>
                    </li>
					<?php } ?>
					<?php } ?>
                    <div class="clear"></div>
                </ul><!-- end of left-pic-list -->
            	<h3><?php  echo $img_hot_list; ?><!--热门图片--></h3>
            	<ul class="left-pic-list">
				<?php  if ( $article_hot_list!='') { ?>
				<?php  foreach ( $article_hot_list as $val) { ?>
                	<li>
                		<?php  if ( RWRITE=='1') { ?>
                    	<a href="<?php  echo WEB_HOST; ?><?php  echo PICURL; ?><?php  echo $val['article_id']; ?>.html" target="_blank" title="<?php  echo $val['article_title']; ?>"><img src="<?php  if ( $val['article_img']!='') { ?><?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/templates/default/images/no_img.jpg<?php } ?>" /></a>
                    	<?php  } else { ?>
                    	<a href="index.php?ctl=pic&act=front_pic_content&article_id=<?php  echo $val['article_id']; ?>" target="_blank" title="<?php  echo $val['article_title']; ?>"><img src="<?php  if ( $val['article_img']!='') { ?><?php  echo WEB_HOST; ?><?php  echo $val['article_img']; ?><?php  } else { ?><?php  echo WEB_HOST; ?>/templates/default/images/no_img.jpg<?php } ?>" /></a>
                    	<?php } ?>
                    </li>
					<?php } ?>
					<?php } ?>
                    <div class="clear"></div>
                </ul><!-- end of left-pic-list -->
            </div><!-- end of left-article -->
        </div><!-- end of left-side -->
        <div class="clear"></div>
    </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 -->
</body>
</html>
