<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form id="superForm" method="post" action="./index.php?r=Init.checklogin">
<div style="padding:20px 60px 10px 60px;">
	<fieldset style=" border:1px solid #cccccc; padding:0px 10px;-moz-border-radius:8px;">
		<legend>优拓建站系统友情提示您</legend>
		<div style="background:url(images/thao.gif) 68px 2px no-repeat; padding-left:170px;">
			<p style="line-height:24px;">您已经运行过建站向导!<br/>
			如果继续运行此向导,将会把你之前网站的所有<b><span style="color:#ff4e00">页面布局和内容全部删除</span></b>.<br/><b>请您先对网站进行<a href="index.php?r=database.backup&menu_id=13">备份</a>,以便将来可以还原您的网站布局和内容!</b></p>
		</div>

		<div style="background:url(images/key.gif) 60px 10px no-repeat #e2f0fd; margin:10px 0px; border:#aedcfe 1px solid;">
			
			<div style="height:32px; line-height:32px; padding:0px 10px; padding-left:170px;">
				<b>*超级管理员</b>&nbsp;&nbsp;<span id="span_super_admin"></span>
			</div>
			<div style="height:32px; line-height:32px; padding:0px 10px; padding-left:170px;">
				<input id="super_admin" type="text" name="data[User][login_name]" value="" class="text" style="width:310px"/>
			</div>
			<div style="height:32px; line-height:32px; padding:0px 10px; padding-left:170px;">
				<b>*密 码</b>&nbsp;&nbsp;<span id="span_super_password"></span>
			</div>
			<div style="height:32px; line-height:32px; padding:0px 10px; padding-left:170px;">
				<input id="super_password" type="password" name="data[User][password]" value="" style="width:310px" class="text"/>
			</div>
			
		</div>
	</fieldset>
</div>

<div class="NoviceguideFooter">
	<input  type="submit" name="Submit" value="下一步" class="next gonext" />
	<div style="clear:both; height:1px; overflow:hidden"></div>
</div>
</form>
	

<script src="js/jquery/jquery.cookie.js"></script>	
<script src="js/jquery/jquery.form.js"></script>
<script src="js/jquery/jquery.validate.js"></script>	
<script>
	$(document).ready(function(){
		 /*
         * jquery验证
         */
        var validate = $("#superForm").validate({
            rules: {
                'data[User][login_name]': {
					required:true
				},
				'data[User][password]':{
					required:true
				}
            },
            messages: {
                'data[User][login_name]': '请输入超级管理名帐号',
				'data[User][password]': '请输入密码'
            },
            errorPlacement: function(error, element){
                $("#span_" + element.attr("id")).html(error).attr("class", "error");
            },
            errorClass: "invalid",
            success: function(label){
                label.html("&nbsp;&nbsp;&nbsp;").attr("class", "valid");
            }
        });
        $("#superForm").submit(function(){
            if (validate.numberOfInvalids() <= 0) {
				
				$(".gonext").attr("disabled","disabled");
				
                $(this).ajaxSubmit({
                    success: function(ResponseHtml){
                        jQuery("#popup-body").empty().append($(ResponseHtml));
                    }
                });
            }
            return false;
        });
	});
	
</script>