ЗАМЕНЯЕМ ВСЁ В ФОРМЕ РЕГИСТРАЦИИ ПОЛЬЗОВАТЕЛЕЙ НА ЭТОТ КОД:
Code
<!-- форма регисрации -->
<table class="manTable" id="siM63" border="0" cellpadding="2" cellspacing="1" width="100%">
<?if($ERROR$)?>
<tbody><tr id="siM1"><td colspan="2" class="manTdError" id="siM2" align="center"><font face="Courier New">$ERROR$</font></td></tr>
<?endif?>
<?if($LOGIN_FL$)?>
<tr id="siM42"><td class="manTd1" id="siM43" width="35%"><font face="Courier New">$LOGIN_SIGN$</font></td><td class="manTd2" id="siM44"><font face="Courier New">$LOGIN_FL$</font></td></tr>
<?endif?>
<br><div id="LoginInfo">
<font face="Bookman Old Style">
</font></div>
<script>
$(document).ready(function () {
$('#siF20').attr('disabled', true);
});
$('#siF13').change(function () {
Er = false;
if ($('#siF13').attr('value').length < 2){
$('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Минимальная длина логина - 2 символа</b></b>');
Er = true;
}
if ($('#siF13').attr('value').length > 25){
$('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Максимальная длина логина - 25 символов</b>');
Er = true;
}
if ($('#siF13').attr('value').match(/[^a-zA-Z0-9\-\_\@\%\{\}\[\]\(\)\u0080-\uFFFF]/)){
$('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Недопустимые символы</b>');
Er = true
}
if (!Er){
$('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/wd/3/ajaxs.gif"> <b>Подождите идет проверка...</b>');
$.get('/index/8-0-' + $('#siF13').attr('value'), function (Data) {
if (Data == 'Пользователь не найден') {
$('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/ok.png"> <b style="color: green;">Логин ' + $('#siF13').attr('value') + ' свободен</b>');
$('#siF20').attr('disabled', false);
}
else {
$('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Логин ' + $('#siF13').attr('value') + ' занят</b>');
$('#siF20').attr('disabled', true);
}
})
}
else {
$('#siF20').attr('disabled', true);
}
});
</script>
<?if($PASSWORD_FL$)?>
<tr id="siM45"><td class="manTd1" id="siM46"><font face="Courier New">$PASSWORD_SIGN$</font></td><td class="manTd2" id="siM47"><font face="Courier New">$PASSWORD_FL$</font></td></tr>
<?endif?>
<?if($PASSWORD1_FL$)?>
<tr id="siM48"><td class="manTd1" id="siM49"><font face="Courier New">$PASSWORD1_SIGN$</font></td><td class="manTd2" id="siM50"><font face="Courier New">$PASSWORD1_FL$
<script>
Chars = new Array ()
for (j = 65; j <=122; j++){
if ((j < 91) || (j > 96)) {
Chars[Chars.length] = String.fromCharCode(j);
}
}
function GenerateRandomPassword(){
PassLength = 10 + Math.round(5 * Math.random());
Pass = ''
for (i = 0; i < PassLength; i++){
ChIndex = Math.round(Chars.length * Math.random()) - 1;
if ((Chars[ChIndex]) && (Pass.length < 15)) {
Pass += Chars[ChIndex];
}
}
return Pass;
}
function NewPass(){
NewRandPass = GenerateRandomPassword();
$('#siF14, #siF15').attr('value', NewRandPass);
$('#RandPass').hide('fast').html('Ваш пароль <b>' + NewRandPass + '</b><br><a href="javascript://" style="font-size: 9px; " onclick="NewPass()">Сгенерировать новый пароль</a>').show('slow');
}
</script>
<div id="RandPass">
<a href="javascript://" style="font-size: 9px; " onclick="NewPass()">Сгенерировать случайный пароль</a>
</div>
</td></tr>
</font></td></tr>
<?else?><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($GROUP_FL$)?>
<tr id="siM70"><td class="manTd1" id="siM71"><font face="Courier New">$GROUP_SIGN$</font></td><td class="manTd2" id="siM72"><font face="Courier New">$GROUP_FL$</font></td></tr>
<?endif?>
<?if($NAME_FL$)?>
<tr id="siM51"><td class="manTd1" id="siM52"><font face="Courier New">$NAME_SIGN$</font></td><td class="manTd2" id="siM53"><font face="Courier New">$NAME_FL$</font></td></tr>
<?endif?>
<?if($EMAIL_FL$)?>
<tr id="siM54"><td class="manTd1" id="siM55"><font face="Courier New">$EMAIL_SIGN$</font></td><td class="manTd2" id="siM56"><font face="Courier New">$EMAIL_FL$</font></td></tr>
<?endif?>
<?if($WWW_FL$)?>
<tr id="siM3"><td class="manTd1" id="siM4"><font face="Courier New">$WWW_SIGN$</font></td><td class="manTd2" id="siM5"><font face="Courier New">$WWW_FL$</font></td></tr>
<?endif?>
<?if($ICQ_FL$)?>
<tr id="siM6"><td class="manTd1" id="siM7"><font face="Courier New">$ICQ_SIGN$</font></td><td class="manTd2" id="siM8"><font face="Courier New">$ICQ_FL$</font></td></tr>
<?endif?>
<?if($AOL_FL$)?>
<tr id="siM9"><td class="manTd1" id="siM10"><font face="Courier New">$AOL_SIGN$</font></td><td class="manTd2" id="siM11"><font face="Courier New">$AOL_FL$</font></td></tr>
<?endif?>
<?if($MSN_FL$)?>
<tr id="siM12"><td class="manTd1" id="siM13"><font face="Courier New">$MSN_SIGN$</font></td><td class="manTd2" id="siM14"><font face="Courier New">$MSN_FL$</font></td></tr>
<?endif?>
<?if($YAHOO_FL$)?>
<tr id="siM15"><td class="manTd1" id="siM16"><font face="Courier New">$YAHOO_SIGN$</font></td><td class="manTd2" id="siM17"><font face="Courier New">$YAHOO_FL$</font></td></tr>
<?endif?>
<?if($BIRTHDAY_FL$)?>
<tr id="siM30"><td class="manTd1" id="siM31"><font face="Courier New">$BIRTHDAY_SIGN$</font></td><td class="manTd2" id="siM32"><font face="Courier New">$BIRTHDAY_FL$</font></td></tr>
<?endif?>
<?if($GENDER_FL$)?>
<tr id="siM27"><td class="manTd1" id="siM28"><font face="Courier New">$GENDER_SIGN$</font></td><td class="manTd2" id="siM29"><font face="Courier New">$GENDER_FL$</font></td></tr>
<?endif?>
<?if($COUNTRY_FL$)?>
<tr id="siM18"><td class="manTd1" id="siM19"><font face="Courier New">$COUNTRY_SIGN$</font></td><td class="manTd2" id="siM20"><font face="Courier New">$COUNTRY_FL$</font></td></tr>
<?endif?>
<?if($STATE_FL$)?>
<tr id="siM21"><td class="manTd1" id="siM22"><font face="Courier New">$STATE_SIGN$</font></td><td class="manTd2" id="siM23"><font face="Courier New">$STATE_FL$</font></td></tr>
<?endif?>
<?if($CITY_FL$)?>
<tr id="siM24"><td class="manTd1" id="siM25"><font face="Courier New">$CITY_SIGN$</font></td><td class="manTd2" id="siM26"><font face="Courier New">$CITY_FL$</font></td></tr>
<?endif?>
<?if($AVATAR_FL$)?>
<tr id="siM36"><td class="manTd1" id="siM37" valign="top"><font face="Courier New">$AVATAR_SIGN$</font></td><td class="manTd2" id="siM38"><font face="Courier New">$AVATAR_FL$</font></td></tr>
<?endif?>
<?if($SIGNATURE_FL$)?>
<tr id="siM33"><td class="manTd1" id="siM34"><font face="Courier New">$SIGNATURE_SIGN$</font></td><td class="manTd2" id="siM35"><font face="Courier New">$SIGNATURE_FL$</font></td></tr>
<?endif?>
<?if($SUBSCRIPTION_FL$)?>
<tr id="siM39"><td class="manTd1" id="siM40"><font face="Courier New">$SUBSCRIPTION_SIGN$</font></td><td class="manTd2" id="siM41"><font face="Courier New">$SUBSCRIPTION_FL$</font></td></tr>
<?endif?>
<?if($OPTIONS_FL$)?>
<tr id="siM63"><td class="manTd1" id="siM64"><font face="Courier New">$OPTIONS_SIGN$</font></td><td class="manTd2" id="siM65"><font face="Courier New">$OPTIONS_FL$</font></td></tr><tr><td class="manTdSep" colspan="2" height="10"><font face="Courier New"><br></font></td></tr>
<?endif?>
<?if($SECURITY_CODE_FL$)?>
<tr id="siM60"><td class="manTd1" id="siM61"><font face="Courier New">$SECURITY_CODE_SIGN$</font></td><td class="manTd2" id="siM62"><font face="Courier New">$SECURITY_CODE_FL$</font></td></tr><tr><td class="manTdSep" colspan="2" height="10"><font face="Courier New"><br></font></td></tr>
<?endif?>
<tr id="siM64"><td class="manTdBut" colspan="2" id="siM65" align="center"><font face="Courier New"><input class="manFlSbm" id="siF20" type="image" src="http://atlan.ucoz.kz/images/submit.png" name="sbm" value="$SUBMIT_SIGN$" type="submit"></font></td></tr>
</tbody></table>
<!-- форма регисрации by Operator -->