Sfoglia il codice sorgente

Setup page: added a scroll bar and grouped some warnings into one message that would fit on two lines

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@249 a333f486-631f-4898-b8df-5754b55c2be0
romainq 15 anni fa
parent
commit
bb6a1e1981
2 ha cambiato i file con 7 aggiunte e 12 eliminazioni
  1. 2 4
      setup/index.php
  2. 5 8
      setup/setuppage.class.inc.php

+ 2 - 4
setup/index.php

@@ -153,15 +153,13 @@ function CheckServerConnection(setup_web_page $oP, $sDBServer, $sDBUser, $sDBPwd
 			}
 			else if($iMaxAllowedPacket < $iMaxUploadSize)
 			{
-				$oP->warning("MySQL server's max_allowed_packet ($iMaxAllowedPacket) is not big enough.");
-				$oP->warning("Consider setting it to at least ".(500 + $iMaxUploadSize).".");
+				$oP->warning("MySQL server's max_allowed_packet ($iMaxAllowedPacket) is not big enough. Please, consider setting it to at least ".(500 + $iMaxUploadSize).".");
 			}
 			$oP->log("Info - MySQL max_allowed_packet: $iMaxAllowedPacket");
 			$iMaxConnections = $oDBSource->GetServerVariable('max_connections');
 			if ($iMaxConnections < 5)
 			{
-				$oP->warning("MySQL server's max_connections ($iMaxConnections) is not enough.");
-				$oP->warning("Consider setting it to at least 5.");
+				$oP->warning("MySQL server's max_connections ($iMaxConnections) is not enough. Please, consider setting it to at least 5.");
 			}
 			$oP->log("Info - MySQL max_connections: ".($oDBSource->GetServerVariable('max_connections')));
 		}

+ 5 - 8
setup/setuppage.class.inc.php

@@ -18,6 +18,7 @@ body {
 	margin: 0;
 	padding: 0;
 	font-size: 10pt;
+	overflow-y: auto;
 }
 #setup {
 	width: 600px;
@@ -50,27 +51,23 @@ button {
 }
 p.info {
 	padding-left: 50px;
-	background: url(../images/info-mid.png) no-repeat top left;
+	background: url(../images/info-mid.png) no-repeat left -5px;
 	height: 48px;
-	line-height: 48px;
 }
 p.ok {
 	padding-left: 50px;
-	background: url(../images/clean-mid.png) no-repeat top left;
+	background: url(../images/clean-mid.png) no-repeat left -8px;
 	height: 48px;
-	line-height: 48px;
 }
 p.warning {
 	padding-left: 50px;
-	background: url(../images/messagebox_warning-mid.png) no-repeat top left;
+	background: url(../images/messagebox_warning-mid.png) no-repeat left -5px;
 	height: 48px;
-	line-height: 48px;
 }
 p.error {
 	padding-left: 50px;
-	background: url(../images/stop-mid.png) no-repeat top left;
+	background: url(../images/stop-mid.png) no-repeat left -5px;
 	height: 48px;
-	line-height: 48px;
 }
 td.label {
 	text-align: left;