From 43de9af71f7f4ca5731b94a06d688ae8412ba427 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Jul 2018 11:14:41 +0200 Subject: 2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota --- .../www/skin/classic/module-auth/css/forgotten.css | 66 +++++++++++++ .../www/skin/classic/module-auth/css/login.css | 108 +++++++++++++++++++++ .../skin/classic/module-auth/html/forgotten.phtml | 103 ++++++++++++++++++++ .../www/skin/classic/module-auth/html/login.phtml | 77 +++++++++++++++ .../www/skin/classic/module-auth/img/login.gif | Bin 0 -> 1807 bytes .../module-auth/javascript/forgotten.jquery.min.js | 19 ++++ .../module-auth/javascript/login.jquery.min.js | 24 +++++ 7 files changed, 397 insertions(+) create mode 100644 mayor-orig/www/skin/classic/module-auth/css/forgotten.css create mode 100644 mayor-orig/www/skin/classic/module-auth/css/login.css create mode 100644 mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml create mode 100644 mayor-orig/www/skin/classic/module-auth/html/login.phtml create mode 100644 mayor-orig/www/skin/classic/module-auth/img/login.gif create mode 100644 mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js create mode 100644 mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js (limited to 'mayor-orig/www/skin/classic/module-auth') diff --git a/mayor-orig/www/skin/classic/module-auth/css/forgotten.css b/mayor-orig/www/skin/classic/module-auth/css/forgotten.css new file mode 100644 index 00000000..a3e63ada --- /dev/null +++ b/mayor-orig/www/skin/classic/module-auth/css/forgotten.css @@ -0,0 +1,66 @@ + + div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; } + div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; } + + form.forgot { width: 450px; margin: 40px auto; text-align: center; + box-shadow: 0px 0px 2px 0px #ccc; + padding: 20px; + } + form.forgot h1 { font-size: 16px; } +/* + form.forgot input[type=submit] { background: #1f6fd9; color: white; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); font-size: 12px; border: 1px solid #1d66c8; padding: 2px 10px; } + form.forgot input[type=submit]:hover { background-color: #2f7fe9;} +*/ + div.forgot { width: 400px; margin: 20px auto; text-align: center; box-shadow: 0px 0px 2px 0px #ccc; padding:0px; } +/* +régi + div.forgot a { color:#aaaaaa; display: block; padding:20px;} + div.forgot:hover a { background-color: cornflowerblue; color:white; } +*/ +form.forgot input, form.forgot select, +form.preforgot input, form.preforgot select{ + border: 1px solid rgba(0, 0, 0, .20); + border-radius: 4px; + color: rgba(0, 0, 0, 1); + display: block; + font-size: 17px; + height: 42px; + margin-bottom: 12px; + margin-left: auto; + margin-right: auto; + padding: 0 16px; + width: 286px; +} +form.forgot input.error {border-color:red;} + +form.forgot select, form.forgot input[type="submit"], +form.preforgot select, form.preforgot input[type="submit"]{ + width: 320px; +} +form.forgot input[type="submit"],form.preforgot input[type="submit"]{ border-color: white; background-color:white;} +form.forgot input[type="submit"]:hover,form.preforgot input[type="submit"]:hover { background-color:white; cursor: pointer; color: cornflowerblue; border-color: cornflowerblue;} + +div.loginlogo {margin-left: auto; margin-right:auto; text-align:center; margin-bottom: 2em; margin-top:50px;} +div.loginlogo img { padding:20px; height:50px; background-color: cornflowerblue; } + +p.forgotDone { text-align:center; } + + + + p.forgotDone a { + border: 1px solid rgba(0, 0, 0, .10); + border-radius: 4px; + color: rgba(0, 0, 0, .1); + display: block; + font-size: 16px; + height: 42px; + margin-bottom: 12px; + margin-left: auto; + margin-right: auto; + padding: 0 16px; + width: 286px; + line-height:42px; + } + p.forgotDone a:hover { background-color: cornflowerblue; } + p.forgotDone a:hover { color:white; } + diff --git a/mayor-orig/www/skin/classic/module-auth/css/login.css b/mayor-orig/www/skin/classic/module-auth/css/login.css new file mode 100644 index 00000000..da948475 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-auth/css/login.css @@ -0,0 +1,108 @@ +div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; } +div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; } + +form.nagylogin input, form.nagylogin select{ + border: 1px solid rgba(0, 0, 0, .20); + border-radius: 4px; + color: rgba(0, 0, 0, 1); + display: block; + font-size: 17px; + height: 42px; + margin-bottom: 12px; + margin-left: auto; + margin-right: auto; + padding: 0 16px; + width: 286px; +} +form.nagylogin input.error {border-color:red;} + +form.nagylogin select, form.nagylogin input[type="submit"]{ + width: 320px; +} +form.nagylogin input[type="submit"]{ border-color: white; background-color:white;} +form.nagylogin input[type="submit"]:hover { background-color:white; cursor: pointer; color: cornflowerblue; border-color: cornflowerblue;} +form.nagylogin div.loginlogo {margin-left: auto; margin-right:auto; text-align:center; margin-bottom: 2em;} +form.nagylogin div.loginlogo img { padding:20px; height:50px; background-color: cornflowerblue; } + +form.nagylogin div.loaderContainer { position: relative; + top: -45px; + left:-90px; + margin-left: auto; + margin-right: auto; + height:2px; + width:2px; + margin-bottom:0px; + padding-bottom:0px; +} +form.nagylogin div.loaderContainer div.loader { display: inline-block; } + +#warning { height: 40px; } +#capsLockWarning { + background: #ffffaa; color: #ffaaaa; + text-align: center; font-size: 20px; font-weight: bold; + padding: 20px; margin: 10px auto; width: 300px; +} + + form.forgot { margin: 0px auto; text-align: center; padding: 0px 0px; } + form.forgot h1 { } + form.forgot input[type=submit] { + background: #1f6fd9; color: white; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); border: 1px solid #1d66c8; padding: 2px 10px; + } + form.forgot a { + border: 1px solid rgba(0, 0, 0, .10); + border-radius: 4px; + color: rgba(0, 0, 0, .1); + display: block; + font-size: 16px; + height: 42px; + margin-bottom: 12px; + margin-left: auto; + margin-right: auto; + padding: 0 16px; + width: 286px; + line-height:42px; + } + form.forgot a:hover { background-color: cornflowerblue; } + form.forgot a:hover { color:white; } + +.loader { + margin: 0px auto; + font-size: 2px; + position: relative; + text-indent: -9999em; + border-top: 1.1em solid rgba(255,42,99, 0.2); + border-right: 1.1em solid rgba(255,42,99, 0.2); + border-bottom: 1.1em solid rgba(255,42,99, 0.2); + border-left: 1.1em solid #ff2a63; + -webkit-transform: translateZ(0); + -ms-transform: translateZ(0); + transform: translateZ(0); + -webkit-animation: load8 1.1s infinite linear; + animation: load8 1.1s infinite linear; +} +.loader, +.loader:after { + border-radius: 50%; + width: 10em; + height: 10em; +} +@-webkit-keyframes load8 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes load8 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} diff --git a/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml b/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml new file mode 100644 index 00000000..464f4f64 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml @@ -0,0 +1,103 @@ +'._SITE.''."\n"; + echo '

'._GREETING.'

'."\n"; + + formBegin(array('class'=>'forgot')); + + echo '

'._FORGOT_PASSWORD.'

'; + + echo '

'._ENTER_USERACCOUNT.'

'; + echo ''; + echo ''; + echo ''; + echo ''; + echo '

'._FORGOT_PASSWORD_HELP.'

'; + + formEnd(); + + } + + function putForgotUserAccountForm($ADAT) { + + formBegin(array('class'=>'forgot')); + + echo '

'._FORGOT_USERACCOUNT.'

'; + + echo '

'._ENTER_EMAIL.'

'; + echo ''; + echo ''; + echo ''; + echo ''; + echo '

'._FORGOT_USERACCOUNT_HELP.'

'; + + formEnd(); + + } + + function putForgotThankYou() { + + echo '

'._SITE.'

'."\n"; + echo '

'._GREETING.'

'."\n"; + + formBegin(array('class'=>'preforgot')); + echo ''; + _mayorLogo(); + echo ''; + echo '

'._FORGOT_INFO.'

'; + formEnd(); + + } + + function putForgotDisabled() { + global $POLICIES,$AUTH; + + echo '

'._SITE.'

'."\n"; + echo '

'._GREETING.'

'."\n"; + echo ''; + _mayorLogo(); + echo ''; + + formBegin(array('class'=>'preforgot')); + + echo ''."\n"; + echo ''; + formEnd(); + + } + + function putBackToLogin($ADAT) { + + //echo '
'; + echo '

'._BACK_TO_LOGIN.'

'; + //echo '
'; + + } + + function _mayorLogo() { + echo ''; + } + + +?> \ No newline at end of file diff --git a/mayor-orig/www/skin/classic/module-auth/html/login.phtml b/mayor-orig/www/skin/classic/module-auth/html/login.phtml new file mode 100644 index 00000000..cac82b7e --- /dev/null +++ b/mayor-orig/www/skin/classic/module-auth/html/login.phtml @@ -0,0 +1,77 @@ +'._SITE.''."\n"; + echo '

'._GREETING.'

'."\n"; + + if (is_array($AUTH[$toPolicy]['allowOnly']) && !in_array($userAccount,$AUTH[$toPolicy]['allowOnly'])) { + echo '
Korlátozott belépés!
'; + } + + // Caps-Lock + echo '
'; + + formBegin(array('method'=>'post', + 'class'=>'nagylogin', + 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&sessionID='.$sessionID , + 'name'=>"loginablak")); + +// echo ''; + echo ''; + echo ''; + + echo ''; + + echo ''."\n"; + echo ''."\n"; + + + if (intval(_MAYORAUTHRESULT)>0 || (defined('_FORCE_LOGIN_POLICY_SELECT') && _FORCE_LOGIN_POLICY_SELECT===true)) { + echo ''."\n"; + } + + echo ''."\n"; + echo '
'; + + formEnd(); + //if ($AUTH[$toPolicy]['enablePasswordReset']===true) { + formBegin(array('class'=>'forgot')); + echo '
'._FORGOTTEN.'
'; + formEnd(); + //} + } + + function putAlreadyLoggedIn() { + echo '
'; + echo ''; + echo _BELEPVE; + echo '
'; + } + + function _putsvg() { + mayorLogoSvg(); + } + +?> diff --git a/mayor-orig/www/skin/classic/module-auth/img/login.gif b/mayor-orig/www/skin/classic/module-auth/img/login.gif new file mode 100644 index 00000000..82faef04 Binary files /dev/null and b/mayor-orig/www/skin/classic/module-auth/img/login.gif differ diff --git a/mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js b/mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js new file mode 100644 index 00000000..46b8c27f --- /dev/null +++ b/mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js @@ -0,0 +1,19 @@ +$(function() { + + $("input.email").focus(function() { + }).blur(function() { + if (validateEmail($(this).val()) === false) + alert('Nem megfelelő email cím!'); + }); + + $("input[type=submit]").click(function() { + // ellenőrzés + // return false; + }); + +}); + +function validateEmail(email) { + var re = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i; + return re.test(email); +} diff --git a/mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js b/mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js new file mode 100644 index 00000000..0299746d --- /dev/null +++ b/mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js @@ -0,0 +1,24 @@ +$(function() { + + $("input[type=submit]").click(function() { + + //$(this).toggle(); + //$(this).addClass('loader'); + // ellenőrzés + if ($('#focus').val() =="") { + $('#focus').addClass('error'); + return false; + } + if ($('#userPassword').val() =="") { + $('#userPassword').addClass('error'); + return false; + } + document.loginablak.button.disabled=true; + $('.loader').show(); + $(this).closest('form').submit(); + }); + $('form input').focus(function(event) { + $(event.target).prev().removeClass('error'); + }); +}); + -- cgit v1.2.3