From 2cb494bfe7a34aef55d82a754f00cfb38f1f2f2d Mon Sep 17 00:00:00 2001 From: "tatiana.llorente@artica.es" Date: Tue, 4 Dec 2018 15:41:36 +0100 Subject: [PATCH] Show popup before drop database - #3153 --- pandora_console/include/styles/install.css | 64 ++++++++++++++++++++++ pandora_console/install.php | 50 ++++++++++++++++- 2 files changed, 111 insertions(+), 3 deletions(-) mode change 100755 => 100644 pandora_console/install.php diff --git a/pandora_console/include/styles/install.css b/pandora_console/include/styles/install.css index 6c558fdcba..18ccab6663 100644 --- a/pandora_console/include/styles/install.css +++ b/pandora_console/include/styles/install.css @@ -205,3 +205,67 @@ div.installation_step { color:white; } +:focus { + outline: 0; +} + +/* POPUP */ +.popup-lightbox{ + position: fixed; + z-index: 8888; + width: 100%; + height: 100%; + background-color: #000; + opacity: 0.6; + visibility: hidden; +} + +.popup{ + max-height: 450px; + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + -webkit-transform: translate(-50%, -50%); + background-color: #FFF; + z-index: 9999; + display: none; +} + +.popup-title{ + background-color: #82b92e; + padding: 10px 20px; + color: #FFF; + font-size:12pt; + text-align: center; + font-family:Sans, Arial, sans; +} + +.popup-inner{ + max-height: 350px; + background: #FFF; +/* overflow-y: scroll;*/ + padding: 25px 35px; + font-size: 11pt; +} + +.popup-button-green{ + background-color: #82B92E; + border: 1px solid transparent; + color: blue; +} + +.popup-button-green span{ + color: #FFF !important; +} + +.popup-button-green:hover{ + background-color: transparent !important; + border: 1px solid #82B92E; + color: red !important; +} + +.popup-button-green:hover span{ + color: #82B92E !important; +} +/* POPUP -END */ diff --git a/pandora_console/install.php b/pandora_console/install.php old mode 100755 new mode 100644 index ec3784e5ac..c61cf7857b --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -66,8 +66,37 @@ document.getElementById('tr_dbgrant').style["display"] = "none"; } } + function popupShow(){ + document.getElementsByTagName('body')[0].style["margin"] = "0"; + document.getElementById('install_container').style["padding-top"] = "45px"; + document.getElementById('install_container').style["margin-top"] = "0"; + document.getElementById('add-lightbox').style["visibility"] = "visible"; + document.getElementById('open_popup').style["display"] = "block"; + document.getElementById('open_popup').style["visibility"] = "visible"; + } + function popupClose(){ + document.getElementById('add-lightbox').style["visibility"] = "hidden"; + document.getElementById('open_popup').style["display"] = "none"; + document.getElementById('open_popup').style["visibility"] = "hidden"; + } + +
@@ -608,7 +637,7 @@ function install_step3() { echo " Drop Database if exists
- + "; echo "Full path to HTTP publication directory
@@ -637,8 +666,23 @@ function install_step3() { if (!$error) { echo "
"; echo " - "; + "; echo "
"; + ?> + + ";