<div class="inform-block" style="display: none;" id="loginform-error"><div class="alert alert-error" id="loginform-error-text">Вы не авторизованы</div></div>
<div id="login-box" class="form-block-rl">
<div class="block-header">Авторизация</div>
<div class="block-line"></div>
<div id="login" class="animate form">
<form action="login.php" method="post" id="loginform">
<div style="text-align: center;">
<p>
<label for="username" class="uname" data-icon="u" > Логин </label>
<input id="auth-login" name="login" required="required" type="text" placeholder="Логин"/>
</p>
<p>
<label for="password" class="youpasswd" data-icon="p"> Пароль </label>
<input id="auth-pass" name="pass" required="required" type="password" placeholder="Пароль" />
</p>
<p class="keeplogin">
<input style="margin:0" type="checkbox" name="save" id="auth-save" value="1" />
<label style="width: 90% ;" for="loginkeeping">Запомнить</label>
</p>
<p class="login button">
<input id="login" name="login" onclick="Login(); return false;" type="submit" value="Войти" />
</p>
<div id="login-antibot-form" style="margin-bottom: 10px; display: none;">
<div style="display: inline-block;" id="login-img-holder"></div>
<input id="auth-antibot" type="text" name="antibot" placeholder="Код:" maxlength="4" class="antibot"/>
</div>
<p class="change_link">
Еще не зарегистрированы?
<a onclick="BlockVisible('reg-box',true); BlockVisible('login-box',false); return false " class="to_register">Регистрация</a>
</p>
</div>
</form>
</div>
</div>
<script type="text/javascript">
function BlockHidden(itemID,state) {
var item = GetById(itemID)
if (item == null) return false
if (state == null) {
if (item.style.visibility == 'visible') item.style.visibility = 'hidden'
else item.style.visibility = 'visible '
return true
}
var styleText = 'visible'
if (state == false) styleText = 'hidden'
item.style.visibility = styleText
return true
}
function RegisterF(){
// var img = GetById('register-femaleimg')
var text = GetById('create-gender')
var post = GetById('register-female')
if (text.innerHTML == 'Девочка') {
text.innerHTML = 'Мальчик'
post.value = 0
// BlockHidden('register-femaleimg',false)
} else {
text.innerHTML = 'Девочка'
post.value = 1
// BlockHidden('register-femaleimg',true)
}
return false
}
</script>
<div id="reg-box" style= "display: none;" class="form-block-rl">
<div class="block-header">Регистрация</div>
<div class="block-line"></div>
<div id="login" class="animate form">
<form autocomplete="off" action="reg.php" method="post" id="regform">
<p>
<label for="register-login" class="uname" data-icon="u">Логин</label>
<input id="register-login" name="login" placeholder="Логин:" required="required" type="text" />
</p>
<p>
<label for="register-email" class="youmail" data-icon="e" > Email</label>
<input id="register-email" name="email" required="required" type="email" placeholder="[email protected]"/>
</p>
<p>
<label for="register-pass" class="youpasswd" data-icon="p">Пароль </label>
<input id="register-pass" name="passwd" required="required" type="password" placeholder="******"/>
</p>
<p>
<label for="register-repass" class="youpasswd" data-icon="p">Подтвердите пароль </label>
<input id="register-repass" name="repasswd" required="required" type="password" placeholder="******"/>
</p>
<input type="hidden" id="register-female" name="female" value="0" />
<div class="female-input">Пол: <span id="create-gender">Мальчик</span><img src="<?php echo View::GetUrl('img/ribbon.png') ?>" style="display: none; visibility: hidden;" alt="Девочка" id="register-femaleimg"/><a href="#" onclick="return RegisterF()">></a></div>
<p class="signin button">
<input onclick="Register(); return false;" type="submit" value="Регистрация"/>
</p>
<p style="margin-left: 12px;" class="change_link">
Уже зарегистрированы?
<a onclick="BlockVisible('reg-box',false); BlockVisible('login-box',true); return false " class="to_register"> Войти </a>
</p>
</form>
</div></div>
<div id="restore-box" style= "display: none;" class="form-block-rl">
<div class="block-header">Восстановление пароля</div>
<div class="block-line"></div>
<form autocomplete="off" action="action.php" method="post" id="restoreform">
<div style="text-align: center;">
<div class="input-prepend"><span class="add-on"><i class="icon-envelope"></i></span><input type="text" id="restore-email" name="email" placeholder="Email:" /></div>
<div style="margin-bottom: 10px;">
<div style="display: inline-block;" id="restore-img-holder"></div>
<input id="antibot" type="text" name="antibot" placeholder="Код:" maxlength="4" class="antibot"/>
</div>
<div class="input-append input-prepend">
<input type="button" class="btn" id="restore" onclick="Restore(); return false;" value="Восстановить пароль">
<input type="button" class="btn" onclick="BlockVisible('restore-box',false); BlockVisible('login-box',true); return false;" value="Отмена">
</div>
</div>
</form>
</div>