Code

Style tuning
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Apr 2007 13:11:29 +0000 (13:11 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Apr 2007 13:11:29 +0000 (13:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6090 594d385d-05f5-0310-b6e9-bd551577e9d8

html/images/small_error.png [new file with mode: 0644]
html/images/small_warning.png [new file with mode: 0644]
html/themes/default/style.css
setup/class_setupStep_Checks.inc
setup/setup_checks.tpl
setup/setup_language.tpl

diff --git a/html/images/small_error.png b/html/images/small_error.png
new file mode 100644 (file)
index 0000000..6b990a2
Binary files /dev/null and b/html/images/small_error.png differ
diff --git a/html/images/small_warning.png b/html/images/small_warning.png
new file mode 100644 (file)
index 0000000..fd49f31
Binary files /dev/null and b/html/images/small_warning.png differ
index 8ae29188acb7695ed942cd6c474ef3fd41fd4abd..848364cd596fd89f8bfabc22ac01e9b56b016f99 100644 (file)
@@ -951,17 +951,9 @@ div.navigation_info {
        Setup step 2 styles 
 */
 
-/* used to hide display info div */
-div.solution_hidden {
-       display: none;
-}
-
 /* used to hide display info div */
 div.solution_visible {
        display: block;
-       background-color: orange;
-       background-image: url('images/personal.png');
-       border: dotted 2px red;
        width: 100%;
        text-align:left;
 }
@@ -970,44 +962,49 @@ div.solution_visible {
 h2.step2_container_title {
        background-color:#DDDDDD;
        border: solid 1px #CCCCCC;
+       padding:2px;
 }
 
 /* Container for name and status */
 div.step2_entry_container { 
+       padding:1px;
        width:100%; 
        cursor:default;
 }
 
 /* Container for name and status, when status is failed */
 div.step2_entry_container_info { 
+       padding:1px;
+       border: 1px dashed #AAAAAA;
        width:100%;
-       background: #DDDDFF;
        cursor:default;
 }
 
 /* Text shown for each entry */
 div.step2_entry_name {
        float:left;
-    padding: 2px;
-    vertical-align: middle;
+       padding-bottom:4px;
+       vertical-align: middle;
 }
 
 /* Status container */
 div.step2_entry_status {
        float:none;
        text-align:right;
-    padding: 2px;
-    vertical-align: middle;
+       padding-bottom:4px;
+       vertical-align: middle;
 }
 
 /* Status failed */
 div.step2_failed {
        color:red;
+       padding-bottom:4px;
 }
 
 /* Status failed but not necessary for setup */
 div.step2_warning {
-       color:blue;
+       color:orange;
+       padding-bottom:4px;
 }
 
 /* Status successful */
@@ -1017,15 +1014,14 @@ div.step2_successful {
 
 /* Text used in info div. */
 div.step2_failed_text {
-       background-image: url('images/error.png'); 
        background-repeat: no-repeat;     
-       padding-left: 35px;
+       padding-left: 25px;
 }
 
 /* Text used in info div. On warnings */
 div.step2_warning_text{
        background-repeat: no-repeat;     
-       padding-left: 35px;
+       padding-left: 25px;
 }
 
 
@@ -1062,7 +1058,7 @@ li.step4_status, div.step4_status {
 
 ul.step4_container, div.step4_container {
        background-color: #E7E7E7;
-       border: solid 2px #D7D7D7;
+       border: solid 1px #D7D7D7;
        width:100%;
        height:2.0em;
        margin-top:2px;
index bf25f7bda1d0d513bed76519589841e4de4d097d..144bfc7043457f23f11804228086c92e693fc11e 100644 (file)
@@ -36,8 +36,8 @@ class Step_Checks extends setup_step
   function update_strings()
   {
     $this->s_title      = _("Installation check");
-    $this->s_title_long = _("Basic installation checks");
-    $this->s_info       = _("Some basic checks for PHP version, ldap extension...");
+    $this->s_title_long = _("Installation check");
+    $this->s_info       = _("Basic checks for PHP version and required extensions.");
   }
   
   
@@ -62,24 +62,24 @@ class Step_Checks extends setup_step
  
     /* PHP version check */
     $N = _("Checking PHP version"); 
-    $D = sprintf(_("PHP must be of version %s or %s or above for some functions."),"4.3.10","5.2.0");
-    $S = _("GOsa requires functions that may not be available in older PHP versions, just update to a supported PHP version.");
+    $D = sprintf(_("PHP must be of version %s / %s or above."),"4.3.10","5.2.0");
+    $S = _("GOsa requires functionality that is not available (or buggy) in older PHP versions. Please update to a supported version.");
     $R = $this->check_php_version();
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Checking imap extension */
-    $N = _("Checking for ldap module");
-    $D = _("This is the main module used by GOsa and therefore really required.");
-    $S = _("The ldap module (PHP4-ldap/PHP5-ldap) is required to communicate with your ldap server.");
+    $N = _("Checking for LDAP support");
+    $D = _("This is the main extension used by GOsa and therefore really required.");
+    $S = _("The ldap extension (php4-ldap/php5-ldap) is required to communicate with your LDAP server.");
     $R = is_callable("ldap_bind");
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Check for gettext support */
     $N = _("Checking for gettext support");
-    $D = _("Gettext support is required for internationalized GOsa.");
-    $S = _("This should be activated while compiling your PHP. (--with-gettext)");
+    $D = _("Gettext support is required for internationalization.");
+    $S = _("Please make sure that the extension is activated.");
     $R = is_callable("bindtextdomain");
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
@@ -87,45 +87,45 @@ class Step_Checks extends setup_step
     /* Checing for iconv */
     $N = _("Checking for iconv support");
     $D = _("This module is used by GOsa to convert samba munged dial informations and is therefore required. ");
-    $S = _("This should be activated while compiling your PHP. (--with-iconv)");
+    $S = _("Please make sure that the extension is activated.");
     $R = is_callable("iconv");
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Check for installed mhash module */
-    $N = _("Checking for mhash module");
-    $D = _("To use SSHA encryption, you'll need this module. GOsa will run without it.");
-    $S = _("The mhash module for PHP 4/5 is not available, please install it. (php4-mhash/php5-mhash)");
+    $N = _("Checking for mhash support");
+    $D = _("You'll need this module to make use of SSHA encryption");
+    $S = _("The mhash module for PHP 4/5 is not available.Pplease install php4-mhash/php5-mhash.");
     $R = is_callable("mhash");
     $M = FALSE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Is imap module available */
-    $N = _("Checking for imap module");
-    $D = _("The IMAP module is needed to communicate with the IMAP server. It gets status informations, creates and deletes mail users.");
-    $S = _("This module is used to communicate with your mail server. Please install (PHP4-imap PHP5-imap)");
+    $N = _("Checking for IMAP support");
+    $D = _("The IMAP module is needed to communicate with the IMAP server. GOsa retrieves status information, creates and deletes mail users, etc.");
+    $S = _("This module is used to communicate with your mail server. Please install php4-imap/php5-imap.");
     $R = is_callable("imap_open");
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Check getacl in imap module */
-    $N = _("Checking for getacl in imap");
-    $D = _("The getacl support is needed for shared folder permissions. The standard IMAP module is not capable of reading acl's. You need a recend PHP version for this feature.");
+    $N = _("Checking for getacl in IMAP implementation");
+    $D = _("The getacl support is needed to handle shared folder permissions. Old IMAP extensions are not capable of reading acl's. You need a recent PHP version to use this feature.");
     $S = $D;
     $R = is_callable("imap_getacl");
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Mysql module loaded ? */
-    $N = _("Checking for mysql module");
-    $D = _("MySQL support is needed for reading GOfax reports from databases.");
-    $S = _("This module is required to communicate with database servers, for example used in phone and fax addons. Please install (PHP4-mysql PHP5-mysql)");
+    $N = _("Checking for MySQL support");
+    $D = _("MySQL support is needed to communicate with several supported databases.");
+    $S = _("This module is required to communicate with database servers (GOfax, asterisk, GLPI, etc.). Please install php4-mysql/php5-mysql");
     $R = is_callable("mysql_query");
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Checking for kadm5 module */
-    $N = _("Checking for kadm5 module");
+    $N = _("Checking for kadm5 support");
     $D = _("Managing users in kerberos requires the kadm5 module which is downloadable via PEAR network.");
     $S = _("This module is required to manage user in kerberos, it is downloadable via PEAR network");
     $R = is_callable("kadm5_init_with_password");
@@ -133,16 +133,16 @@ class Step_Checks extends setup_step
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Snmp module available ? */
-    $N = _("Checking for snmp Module");
-    $D = _("Simple Network Management Protocol (SNMP) is required for client monitoring.");
-    $S = _("This module is required for client monitoring. (PHP4-snmp/PHP5-snmp)");
+    $N = _("Checking for SNMP support");
+    $D = _("The simple network management protocol is needed to get status information from clients.");
+    $S = _("This module is required for client monitoring. Please install php4-snmp/php5-snmp.");
     $R = is_callable("snmpget");
     $M = FALSE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
     /* Checking for Cups module */
-    $N = _("Checking for cups module");
-    $D = _("In order to read available printers from IPP protocol instead of printcap files, you've to install the CUPS module.");
+    $N = _("Checking for CUPS support");
+    $D = _("In order to read available printers via the IPP protocol instead of printcap files, you've to install the CUPS module.");
     $S = $D; 
     $R = is_callable("cups_get_dest_list");
     $M = FALSE;
index 9ba9e7abcf49c05e831a2255b091b91de58e8c7d..52d57557fb67e17f8f7d11fe442f9dc2139239c9 100644 (file)
                        <div class='step2_entry_status'>
 
                        {if $basic[$key].RESULT}
-                               <div class='step2_successful'>{t}Successful{/t}</div>
+                               <div class='step2_successful'>{t}Ok{/t}</div>
                        {else}
                                {if $basic[$key].MUST}
-                                       <div class='step2_failed'>{t}Failed{/t}</div>
+                                       <div class='step2_failed'>{t}Error{/t}</div>
                                {else}
-                                       <div class='step2_warning'>{t}Failed{/t}</div>
+                                       <div class='step2_warning'>{t}Warning{/t}</div>
                                {/if}
                                {if $basic[$key].SOLUTION != ""}
        
                                <!-- Inforamtion popup -->
-                               <div class='solution_hidden' id='sol_{$key}'>
+                               <div class='solution_visible' id='sol_{$key}'>
                                        {if $basic[$key].MUST}
-                                               <div class='step2_failed_text'>
+                                               <div class='step2_failed_text' style="background-image: url('images/small_error.png')">
+                                               {$basic[$key].SOLUTION}
                                                <b>{t}GOsa will NOT run without fixing this.{/t}</b>
                                        {else}
-                                               <div class="step2_warning_text" style="background-image: url('images/warning.png')">
-                                               <i>{t}GOsa will run without fixing this.{/t}</i>
+                                               <div class="step2_warning_text" style="background-image: url('images/small_warning.png')">
+                                               {$basic[$key].SOLUTION}
+                                               <b>{t}GOsa will run without fixing this.{/t}</b>
                                        {/if}
-                                       <br>
-                                       {$basic[$key].SOLUTION}
                                        </div>
                                </div>
                                {/if}
@@ -61,7 +61,7 @@
 <!-- 
        Div container with PHP config checks 
 -->
-<div style='width:50%; float:left;'>
+<div style='width:50%; float:left; margin-bottom:20px;'>
 
        <!-- Set content styles -->     
        <div class='default' style='margin:10px;'>
                        <div class='step2_entry_name'>{$config[$key].NAME}</div>
                        <div class='step2_entry_status'>
                        {if $config[$key].RESULT}
-                               <div class='step2_successful'>{t}Successful{/t}</div>
+                               <div class='step2_successful'>{t}Ok{/t}</div>
                        {else}
 
                                {if $config[$key].MUST}
-                                       <div class='step2_failed'>{t}Failed{/t}</div>
+                                       <div class='step2_failed'>{t}Error{/t}</div>
                                {else}
-                                       <div class='step2_warning'>{t}Failed{/t}</div>
+                                       <div class='step2_warning'>{t}Warning{/t}</div>
                                {/if}
 
                                {if $config[$key].SOLUTION != ""}
        
                                <!-- Inforamtion popup -->
-                               <div class='solution_hidden' id='sol_config_{$key}'>
+                               <div class='solution_visible' id='sol_config_{$key}'>
                                        {if $config[$key].MUST}
-                                               <div class='step2_failed_text'>
+                                               <div class='step2_failed_text' style="background-image: url('images/small_error.png')">
+                                               {$config[$key].SOLUTION}
                                                <b>{t}GOsa will NOT run without fixing this.{/t}</b>
                                        {else}
-                                               <div class='step2_warning_text' style="background-image: url('images/warning.png')">
-                                               <i>{t}GOsa will run without fixing this.{/t}</i>
+                                               <div class='step2_warning_text' style="background-image: url('images/small_warning.png')">
+                                               {$config[$key].SOLUTION}
+                                               <b>{t}GOsa will run without fixing this.{/t}</b>
                                        {/if}
-                                       <br>
-                                       {$config[$key].SOLUTION}
                                        </div>
                                </div>
                                {/if}
                        <div class='step2_entry_name'>{$is_writeable[$key].NAME}</div>
                        <div class='step2_entry_status'>
                        {if $is_writeable[$key].RESULT}
-                               <div class='step2_successful'>{t}Successful{/t}</div>
+                               <div class='step2_successful'>{t}Ok{/t}</div>
                        {else}
 
                                {if $is_writeable[$key].MUST}
-                                       <div class='step2_failed'>{t}Failed{/t}</div>
+                                       <div class='step2_failed'>{t}Error{/t}</div>
                                {else}
-                                       <div class='step2_warning'>{t}Failed{/t}</div>
+                                       <div class='step2_warning'>{t}Warning{/t}</div>
                                {/if}
 
                                {if $is_writeable[$key].SOLUTION != ""}
        
                                <!-- Inforamtion popup -->
-                               <div class='solution_hidden' id='sol_is_writeable{$key}'>
+                               <div class='solution_visible' id='sol_is_writeable{$key}'>
                                        {if $is_writeable[$key].MUST}
-                                               <div class='step2_failed_text'>
+                                               <div class='step2_failed_text' style="background-image: url('images/small_error.png')">
+                                               {$is_writeable[$key].SOLUTION}
                                                <b>{t}GOsa will NOT run without fixing this.{/t}</b>
                                        {else}
-                                               <div class='step2_warning_text' style="background-image: url('images/warning.png')">
-                                               <i>{t}GOsa will run without fixing this.{/t}</i>
+                                               <div class='step2_warning_text' style="background-image: url('images/small_warning.png')">
+                                               {$is_writeable[$key].SOLUTION}
+                                               <b>{t}GOsa will run without fixing this.{/t}</b>
                                        {/if}
-                                       <br>
-                                       {$is_writeable[$key].SOLUTION}
                                        </div>
                                </div>
                                {/if}
                        
        </div>
 </div>
-<script type="text/javascript">
-{literal}
-       function display_solution(str){
-               obj = document.getElementById(str);
-               obj.className='solution_visible';
-       }
-       function hide_solution(str){
-               obj = document.getElementById(str);
-               obj.className='solution_hidden';
-       }
-
-{/literal}
-</script>
+
index 2470083734e9293a420c728443014c4a2103db76..d60e244ec05add306a31e71cf2cd9e98ef4ace74 100644 (file)
@@ -6,7 +6,7 @@
                </p>
        </div>
        <div class='default' style='padding-right:10px; margin-bottom:20px;'>
-               <select name='lang_selected' title='{t}Please your prefered language here{/t}' size=10 style="width:100%">
+               <select name='lang_selected' title='{t}Please your prefered language here{/t}' size=20 style="width:100%">
                {html_options options=$languages selected=$lang_selected}
                </select>
        </div>