From f87f9ef052ab0f0a7942cda2fb27139937d54d8c Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 12 Jul 2013 13:03:53 +0300 Subject: [PATCH] integrated js hints from Dmitry Malishev --- web/css/main.css | 6 + web/js/pages/add.web.js | 4 +- web/js/pages/edit.web.js | 4 +- web/templates/admin/add_web.html | 701 ++++++++++++----------- web/templates/admin/edit_web.html | 715 ++++++++++++------------ web/templates/header.html | 900 +----------------------------- web/templates/user/add_web.html | 701 ++++++++++++----------- web/templates/user/edit_web.html | 653 +++++++++++----------- 8 files changed, 1388 insertions(+), 2296 deletions(-) diff --git a/web/css/main.css b/web/css/main.css index 2d687a32..f1d6b791 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -813,3 +813,9 @@ form { font-size: 10pt; color: #dE6c5d; } + +.hint { + font-size: 14pt; + color: #7fa1cb; + padding: 5px; +} diff --git a/web/js/pages/add.web.js b/web/js/pages/add.web.js index c66a8f21..36f59982 100644 --- a/web/js/pages/add.web.js +++ b/web/js/pages/add.web.js @@ -1,11 +1,11 @@ App.Actions.WEB.update_ftp_username_hint = function(elm, hint) { if (hint.trim() == '') { - $(elm).parent().find('.ftp_username_hint').html(''); + $(elm).parent().find('.hint').html(''); } if (hint.indexOf(GLOBAL.FTP_USER_PREFIX) == 0) { hint = hint.slice(GLOBAL.FTP_USER_PREFIX.length, hint.length); } - $(elm).parent().find('.ftp_username_hint').html(GLOBAL.FTP_USER_PREFIX + hint); + $(elm).parent().find('.hint').html(GLOBAL.FTP_USER_PREFIX + hint); } App.Listeners.WEB.keypress_ftp_username = function() { diff --git a/web/js/pages/edit.web.js b/web/js/pages/edit.web.js index c66a8f21..36f59982 100644 --- a/web/js/pages/edit.web.js +++ b/web/js/pages/edit.web.js @@ -1,11 +1,11 @@ App.Actions.WEB.update_ftp_username_hint = function(elm, hint) { if (hint.trim() == '') { - $(elm).parent().find('.ftp_username_hint').html(''); + $(elm).parent().find('.hint').html(''); } if (hint.indexOf(GLOBAL.FTP_USER_PREFIX) == 0) { hint = hint.slice(GLOBAL.FTP_USER_PREFIX.length, hint.length); } - $(elm).parent().find('.ftp_username_hint').html(GLOBAL.FTP_USER_PREFIX + hint); + $(elm).parent().find('.hint').html(GLOBAL.FTP_USER_PREFIX + hint); } App.Listeners.WEB.keypress_ftp_username = function() { diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html index df937fea..2f5bac13 100644 --- a/web/templates/admin/add_web.html +++ b/web/templates/admin/add_web.html @@ -1,366 +1,361 @@ + + + + + + + - +
+ + + + + +
+ + + + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ +
+ > +
+ +
+ > +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('proxytable');"> +
+ - + + + + +
- → ".$_SESSION['error_msg'].""; - } else { - if (!empty($_SESSION['ok_msg'])) { - echo " → ".$_SESSION['ok_msg'].""; - } - } - ?> + + +
+ +
+
+ +
+ onclick="javascript:elementHideShow('ssltable');"> +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ () +
+ +
+
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('statstable');"> +
+ + + + + + + + + + +
+ +
+ + +
+ +
+
+ +
+ onclick="javascript:elementHideShow('ftptable');"> +
+ + + + + + + + + + + + + + +
+
+ +
+ +
+ +
+ + +
+ - - - - - - -
- - - - -
+ + + - + +
+ - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
- -
- -
- > -
- -
- > -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- onclick="javascript:elementHideShow('proxytable');"> -
- - - - - - - -
- -
- -
-
- -
- onclick="javascript:elementHideShow('ssltable');"> -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
- -
- -
- () -
- -
-
- -
- -
- -
- onclick="javascript:elementHideShow('statstable');"> -
- - - - - - - - - - -
- -
- - -
- -
-
- -
- onclick="javascript:elementHideShow('ftptable');"> -
- - - - - - - - - - - - - - - - - - -
-
- -
- -
- -
- - -
- -
- - - -
+
+
- - - +
+ + diff --git a/web/templates/admin/edit_web.html b/web/templates/admin/edit_web.html index 43062080..e668106d 100644 --- a/web/templates/admin/edit_web.html +++ b/web/templates/admin/edit_web.html @@ -1,140 +1,174 @@ - - - - - - - -
- -
- - - - + +
- - - - - -
-
- -
+ ?> +
+ + + + + + +
+ + + - +
+
+
- + + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('proxytable');"> +
+ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- + +
- - -
- $value) { - $display_ip = $key; - if (!empty($value['NAT'])) $display_ip = $value['NAT']; - $skey = "'".$display_ip."'"; - echo "\n\t\t\t\t\t\t\t\t\t\t\t\t\n"; - } - ?> - -
- -
- -
- -
-
- + +
- onclick="javascript:elementHideShow('proxytable');"> -
- - - - - - - - - - - - - -
- -
- -
- -
- -
-
- -
- onclick="javascript:elementHideShow('ssltable');"> -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
- -
- -
- () -
- -
-
- -
- -
- -
- onclick="javascript:elementHideShow('statstable');"> -
- - - - - - - - - - -
- -
- - -
- -
-
- -
- onclick="javascript:elementHideShow('ftptable');"> -
- - - - - - - - - - - - - - - - -
- - ' . __('Prefix will be automaticaly added to username',$user."_") . '' ?> -
- -
- -
- - -
- -
- - - +
+ +
+ onclick="javascript:elementHideShow('ssltable');"> +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ () +
+ +
+
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('statstable');"> +
+ + + + + + + + + + +
+ +
+ + +
+ +
+
+ +
+ onclick="javascript:elementHideShow('ftptable');"> +
+ + + + + + + + + + + + + + + + +
+ + ' . __('Prefix will be automaticaly added to username',$user."_") . '' ?> +
+ +
+ +
+ + +
+ - + + + + + +
+ + + +
+
+ + diff --git a/web/templates/header.html b/web/templates/header.html index cde44828..5e2218e0 100644 --- a/web/templates/header.html +++ b/web/templates/header.html @@ -4,900 +4,9 @@ Vesta - <?php echo "$TAB"; ?> - - + @@ -959,9 +67,7 @@ }); }); - - + - diff --git a/web/templates/user/add_web.html b/web/templates/user/add_web.html index 7a772bee..d450dfe9 100644 --- a/web/templates/user/add_web.html +++ b/web/templates/user/add_web.html @@ -1,366 +1,361 @@ + - + + + + + + +
+ + + + + +
+ + + + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ +
+ > +
+ +
+ > +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('proxytable');"> +
+ - + + + + +
- → ".$_SESSION['error_msg'].""; - } else { - if (!empty($_SESSION['ok_msg'])) { - echo " → ".$_SESSION['ok_msg'].""; - } - } - ?> + + +
+ +
+
+ +
+ onclick="javascript:elementHideShow('ssltable');"> +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ () +
+ +
+
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('statstable');"> +
+ + + + + + + + + + +
+ +
+ + +
+ +
+
+ +
+ onclick="javascript:elementHideShow('ftptable');"> +
+ + + + + + + + + + + + + + +
+
+ +
+ +
+ +
+ + +
+ - - - - - - -
- - - - -
+ + + - + +
+ - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
- -
- -
- > -
- -
- > -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- onclick="javascript:elementHideShow('proxytable');"> -
- - - - - - - -
- -
- -
-
- -
- onclick="javascript:elementHideShow('ssltable');"> -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
- -
- -
- () -
- -
-
- -
- -
- -
- onclick="javascript:elementHideShow('statstable');"> -
- - - - - - - - - - -
- -
- - -
- -
-
- -
- onclick="javascript:elementHideShow('ftptable');"> -
- - - - - - - - - - - - - - - - - - -
-
- -
- -
- -
- - -
- -
- - - -
+
+
- - - +
+ + diff --git a/web/templates/user/edit_web.html b/web/templates/user/edit_web.html index f67a647f..28ca4d0d 100644 --- a/web/templates/user/edit_web.html +++ b/web/templates/user/edit_web.html @@ -1,343 +1,340 @@ - + - - - - - -
- -
- - - - + +
- - - - - -
-
- -
+ ?> +
+ + + + + + +
+ + + - +
+
+
- + + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('proxytable');"> +
+ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- + +
- - -
- -
- -
- -
- -
- onclick="javascript:elementHideShow('proxytable');"> -
- - - - - - - -
- -
- -
-
- -
- onclick="javascript:elementHideShow('ssltable');"> -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
- -
- -
- () -
- -
-
- -
- -
- -
- onclick="javascript:elementHideShow('statstable');"> -
- - - - - - - - - - -
- -
- - -
- -
-
- -
- onclick="javascript:elementHideShow('ftptable');"> -
- - - - - - - - - - - - - - - - -
- - ' . __('Prefix will be automaticaly added to username',$user."_") . '' ?> -
- -
- -
- - -
- -
- - - +
+ +
+ onclick="javascript:elementHideShow('ssltable');"> +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ () +
+ +
+
+ +
+ +
+ +
+ onclick="javascript:elementHideShow('statstable');"> +
+ + + + + + + + + + +
+ +
+ + +
+ +
+
+ +
+ onclick="javascript:elementHideShow('ftptable');"> +
+ + + + + + + + + + + + + + + + +
+ + ' . __('Prefix will be automaticaly added to username',$user."_") . '' ?> +
+ +
+ +
+ + +
+ + + + + + +
+ + + +
+
+ +