Files
mlmmj-light-web-ecg/misc/smarty/templates_c/53d7e28d1426936f3a3d534fc6fbcdf5d2e8c239_0.file.login.tpl.php
2017-02-04 14:34:24 +03:00

91 lines
3.0 KiB
PHP

<?php
/* Smarty version 3.1.31, created on 2017-01-29 21:59:47
from "/var/www/html/misc/smarty/templates_ru/login.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.31',
'unifunc' => 'content_588e3ba3c46a98_78970628',
'has_nocache_code' => false,
'file_dependency' =>
array (
'53d7e28d1426936f3a3d534fc6fbcdf5d2e8c239' =>
array (
0 => '/var/www/html/misc/smarty/templates_ru/login.tpl',
1 => 1485716381,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_588e3ba3c46a98_78970628 (Smarty_Internal_Template $_smarty_tpl) {
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<?php echo '<script'; ?>
>
function validate_form()
{
var domain = document.getElementById('domain_input').value;
var password = document.getElementById('password_input').value;
if (domain == "")
{
alert("Введите домен.");
return false;
}
if (password == "")
{
alert("Введите пароль.");
return false;
}
if ( domain.match(/[^A-Za-z0-9\-\.]/) )
{
alert("Домен может содержать только латинские буквы, цифры, точки и дефисы.");
return false;
}
if ( password.match(/[^A-Za-z0-9]/) )
{
alert("Пароль может содержать только латинские буквы и цифры.");
return false;
}
}
<?php echo '</script'; ?>
>
</head>
<body>
<div id="header">Сервис рассылок</div>
<div id="login">
<div id="login_form">
<form method="post" action="login.php" onsubmit="return validate_form()">
<div id="domain">
<div id="domain_left">
Домен:
</div>
<div id="domain_right">
<input type="text" name="login_domain" id="domain_input">
</div>
</div>
<div id="password">
<div id="password_left">
Пароль:
</div>
<div id="password_right">
<input type="password" name="login_pass" id="password_input">
</div>
</div>
<div id="enter">
<input type="submit" name="submit" value="Войти">
</div>
</form>
</div>
</div>
</body>
</html>
<?php }
}