<!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 $register_name; ?> - <?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/pages.css" />
<link type="text/css" rel="stylesheet" href="<?php  echo WEB_HOST; ?>/templates/default/css/ie.css" />
<script type="text/javascript" src="<?php  echo WEB_HOST; ?>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<?php  echo WEB_HOST; ?>/js/jquery/jquery.validate.js"></script>
<style type="text/css">
         /***错误提示样式***/
        form.member_register label.error, label.error {
            color: red;
        }
    </style>
</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="wildCurveWrapper">
   <form id="member_register" name="member_register" method="post" action="index.php?ctl=member&act=front_member_save" >
   <input type="hidden" name="refer_url" value="<?php  echo $refer_url; ?>" />
   	  <fieldset>
        	<legend><?php  echo $register_name; ?><!--会员注册-->
            	<span><?php  echo $register_name_info; ?><!--（带<span class="red">*</span>号的表示为必填项目）--></span>
            </legend>
      <table border="0" cellpadding="0" cellspacing="0" class="rtable">
            	<tr>
                	<th><?php  echo $register_user; ?><!--用户名：--></th>
                    <td><input type="text" name="member_name" id="member_name" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><?php  echo $register_user_info; ?></label><!--会员登录名由英文字母、数字或中文组成。成功注册后，不可以修改。--></td>
                </tr>
            	<tr>
                	<th><?php  echo $register_passwd; ?><!--密码：--></th>
                    <td><input type="password" name="member_passwd" id="member_passwd" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><?php  echo $register_passwd_info; ?></label><!--密码由6-20个英文字母（区分大小写）或数字组成。--></td>
                </tr>
            	<tr>
                	<th><?php  echo $register_passwd_con; ?><!--确认密码：--></th>
                    <td><input type="password" name="confirm_password" id="confirm_password" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><?php  echo $register_passwd_con_info; ?></label><!--请再输入一遍您上面填写的密码。--></td>
                </tr>
            	<tr>
                	<th><?php  echo $register_email; ?><!--电子邮箱：--></th>
                    <td><input type="text" name="member_email" id="member_email" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><?php  echo $register_email_info; ?></label><!--使用有效邮箱地址，用于接收找回的密码以及其他重要信息，请谨慎填写！--></td>
                </tr>
				<?php  if ( REG_CODE=='1') { ?>
            	<tr>
                	<th><?php  echo $register_code; ?><!--验证码：--></th>
                    <td colspan="2">
                    	<input name="reg_code" id="reg_code" type="text" style="text-transform:uppercase" size="5" class="textInput" /><span class="red">*</span>
                        &nbsp;&nbsp;<label for="member_name"><?php  echo $reg_code; ?></label>
                    </td>
                </tr>
				<?php } ?>
            	<tr>
                	<th>&nbsp;</th>
                    <td colspan="2"><input type="checkbox" name="iagree" id="iagree" />
       	  <label for="iagree"><?php  echo $register_iagree; ?><!--同意协议--></label>
       	  <input type="submit" value="<?php  echo $register_submit; ?>" class="btnInput" /></td>
                </tr>
      </table>
        </fieldset>
        <!-- end of regBtn -->
        <fieldset>
            <legend><?php  echo $register_iagree_title; ?><!--服务条款--></legend>
            <div id="termsOfService" class="textCenter">
            	<textarea readonly="readonly"><?php  echo $register_iagree_info; ?></textarea>
            </div><!-- end of termsOfService -->
        </fieldset>
    </form>
    </div><!-- end of wildCurveWrapper -->
    <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 language="javascript">
<!--
$(document).ready(function(){
	$("#member_register").validate({
		rules:		{
			member_name: {required:true,minlength:2,maxlength:20},
		  member_passwd: {required:true,minlength:6,maxlength:20},
	   confirm_password: {required:true,minlength:6,maxlength:20,equalTo:"#member_passwd"},
	   	   member_email: {required:true,email:true},
		   	<?php  if ( REG_CODE=='1') { ?>
		   	   reg_code: {required:true},
			 <?php } ?>
			   	 iagree: {required:true}
		},
		messages:	{
			member_name: {required:"<?php  echo $register_name_false; ?>",		minlength:"<?php  echo $register_name_min; ?>",	maxlength:"<?php  echo $register_name_max; ?>"},
		  member_passwd: {required:"<?php  echo $register_passwd_empty; ?>",		minlength:"<?php  echo $register_passwd_min; ?>",maxlength:"<?php  echo $register_passwd_max; ?>"},
	   confirm_password: {required:"<?php  echo $register_check_passwd; ?>",		minlength:"<?php  echo $register_passwd_min; ?>",maxlength:"<?php  echo $register_passwd_max; ?>",equalTo:"<?php  echo $register_check_passwd1; ?>"},
	   	   member_email: {required:"<?php  echo $register_email_empty; ?>",		email:"<?php  echo $register_check_email; ?>"},
		   <?php  if ( REG_CODE=='1') { ?>
		   	   reg_code: {required:"<?php  echo $register_code_false; ?>"},
			<?php } ?>
			   	 iagree: {required:"<?php  echo $register_iagree_con; ?>"}		
		}
	});
});

//-->
</script>
</body>
</html>
