Changeset 1175

Show
Ignore:
Timestamp:
05/28/08 10:50:56 (6 months ago)
Author:
zothos
Message:

Fixed #1303, #1304, #1306

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1174 r1175  
    11ispCP ω 1.0.0 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     3 
     42008-05-28 Jochen Manz 
     5        - GUI: 
     6                * Fixed #1303: some css fixes for pma and webmail themes, + fix IE exclusive comment handling in webmail - Part 8 (patch included) 
     7                * Fixed #1304: 'TR_USUALY_NAMED' => tr('(usually named ' . $name . ')') is not translateable 
     8                * Fixed #1306: gui/client/email_accounts.php produces wrong html code (patch included) 
    39 
    4102008-05-27 Malte Geierhos 
  • trunk/gui/client/backup.php

    r1161 r1175  
    109109                        'TR_SWITCH_TO_BACKUP' => tr('Switch to backups/ directory'), 
    110110                        'TR_DOWNLOAD_FILE' => tr('Download the files stored in this directory'), 
    111                         'TR_USUALY_NAMED' => tr('(usually named ' . $name . ')')
     111                        'TR_USUALY_NAMED' => tr('(usually named ') . $name . ')'
    112112                        'TR_RESTORE_BACKUP' => tr('Restore backup'), 
    113113                        'TR_RESTORE_DIRECTIONS' => tr('Click the Restore button and the system will restore the last daily backup'), 
  • trunk/gui/client/email_accounts.php

    r1157 r1175  
    135135 
    136136                        foreach ($mail_types as $type) { 
    137                                 $mail_type .= user_trans_mail_type($type) . "<br \>"; 
     137                                $mail_type .= user_trans_mail_type($type) . "<br />"; 
    138138                        } 
    139139 
     
    215215 
    216216                        foreach ($mail_types as $type) { 
    217                                 $mail_type .= user_trans_mail_type($type) . '<br \>'; 
     217                                $mail_type .= user_trans_mail_type($type) . '<br />'; 
    218218                        } 
    219219 
     
    294294 
    295295                        foreach ($mail_types as $type) { 
    296                                 $mail_type .= user_trans_mail_type($type) . "<br \>"; 
     296                                $mail_type .= user_trans_mail_type($type) . "<br />"; 
    297297                        } 
    298298 
  • trunk/gui/include/database-update-functions.php

    r1157 r1175  
    2828 
    2929/* 
    30  * Select the current revision from the database and return it 
     30 * Get the current revision from the database and return it 
    3131 */ 
    3232function getCurrentRevision() { 
    3333        global $sql; 
    3434 
    35         $query = "SELECT * FROM `config` WHERE `name` = 'DATABASE_REVISION'"; 
    36         $rs = $sql->Execute($query); 
    37         $current_revision = (int)$rs->fields['value']; 
    38  
    39         return $current_revision; 
     35        $query  = "SELECT * FROM `config` WHERE `name` = 'DATABASE_REVISION'"; 
     36        $rs             = $sql->Execute($query); 
     37 
     38        return (int)$rs->fields['value']; 
    4039} 
    4140 
     
    8382function executeDatabaseUpdates() { 
    8483        global $sql; 
     84        $failedUpdate = false; 
    8585 
    8686        while(checkNewRevisionExists()) { 
     87                // Get the next database update revision 
    8788                $newRevision    = getNextRevision(); 
     89                 
     90                // Get the needed function name 
    8891                $functionName   = returnFunctionName($newRevision); 
    8992 
     93                // Create a empty array  
    9094                $queryArray     = array(); 
    9195 
     
    96100                $queryArray[]   = "UPDATE `config` SET `value` = '$newRevision' WHERE `name` = 'DATABASE_REVISION'"; 
    97101 
     102                // Start the Transaction 
    98103                $sql->StartTrans(); 
    99104 
     105                // Execute every query in our queryarray 
    100106                foreach($queryArray as $query) { 
    101107                        $sql->Execute($query); 
     
    103109 
    104110                // Prompt an error and break while-loop when an update fails 
    105                 if ($sql->HasFailedTrans()) { 
    106                        set_page_message(tr("Db update %s failed", $newRevision))
    107                        $sql->CompleteTrans(); 
    108                        unset($queryArray); 
    109                        break
    110                 } else { 
    111                        $sql->CompleteTrans(); 
    112                        unset($queryArray); 
    113                 } 
     111                if ($sql->HasFailedTrans())                     
     112                       $failedUpdate = true
     113                 
     114                // Complete the Transactin and rollback if nessessary 
     115                $sql->CompleteTrans()
     116                 
     117                // Display an error if nessessary 
     118                if($failedUpdate) 
     119                        system_message(tr("Database update %s failed", $newRevision)); 
    114120        } 
    115121} 
    116122 
    117123/* 
    118  * Insert the update functions below this entry please. The revision should be ascending
     124 * Insert the update functions below this entry please. The revision has to be ascending and unique
    119125 * Don't insert an update twice! 
    120126 */ 
  • trunk/gui/tools/pma/themes/omega/css/theme_left.css.php

    r1172 r1175  
    157157    padding:            0; 
    158158    font-size:          80%; 
    159     background:         <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; 
     159    background-color:   <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; 
    160160} 
    161161 
     
    165165 
    166166div#left_tableList a { 
    167     background:         <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; 
     167    background-color:   <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; 
    168168    color:              <?php echo $GLOBALS['cfg']['NaviColor']; ?>; 
    169169    text-decoration:    none; 
     
    171171 
    172172div#left_tableList a:hover { 
    173     background:         <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; 
     173    background-color:   <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; 
    174174    color:              <?php echo $GLOBALS['cfg']['NaviColor']; ?>; 
    175175    text-decoration:    underline; 
     
    186186div#left_tableList > ul li.marked > a, 
    187187div#left_tableList > ul li.marked { 
    188     background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; 
    189     color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; 
     188    background-color:  <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; 
     189    color:              <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; 
    190190} 
    191191<?php } ?> 
     
    194194div#left_tableList > ul li:hover > a, 
    195195div#left_tableList > ul li:hover { 
    196     background:         <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; 
     196    background-color:   <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; 
    197197    color:              <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; 
    198198} 
     
    217217} 
    218218#serverinfo a:hover { 
    219     background:         <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; 
    220     color:              <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; 
    221 } 
     219    background-color:   <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; 
     220    color:              <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; 
     221} 
  • trunk/gui/tools/pma/themes/omega/css/theme_print.css.php

    r342 r1175  
    11/* For printview */ 
    2 body
     2body
    33    font-family:       Verdana, Arial, Helvetica, sans-serif; 
    44    font-size:         10px; 
     
    66    background-color:  #ffffff; 
    77} 
    8 h1
     8h1
    99    font-family:       Verdana, Arial, Helvetica, sans-serif; 
    1010    font-size:         16px; 
     
    1212    color:             #000000; 
    1313} 
    14 table
     14table
    1515    border-width:      1px; 
    1616    border-color:      #000000; 
     
    1919    border-spacing:    0; 
    2020} 
    21 th
     21th
    2222    font-family:       Verdana, Arial, Helvetica, sans-serif; 
    2323    font-size:         10px; 
     
    3030    padding:           2px; 
    3131} 
    32 td
     32td
    3333    font-family:       Verdana, Arial, Helvetica, sans-serif; 
    3434    font-size:         10px; 
  • trunk/gui/tools/pma/themes/omega/css/theme_right.css.php

    r1172 r1175  
    106106hr { 
    107107    color: #333333; 
    108         background-color: #6666cc; 
     108        background-color:   #6666cc; 
    109109        border: 0; 
    110110    height:             1px; 
     
    178178 
    179179fieldset { 
    180     margin-top:         1em; 
     180    margin-top:          1em; 
    181181    border:                      #cccccc solid 1px; 
    182182    padding:                     0.5em; 
     
    311311 
    312312.pdflayout_table { 
    313     background:         #ff9900; 
     313    background-color:   #ff9900; 
    314314    color:              #000000; 
    315315    overflow:           hidden; 
     
    530530 
    531531.tblHeaders { 
    532     font-weight:        bold; 
    533     color:              #ffffff; 
     532    font-weight:        bold; 
     533    color:              #ffffff; 
    534534    background-color:    #cccccc; 
    535535    background-image:    url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>tbl_header.png); 
    536     background-repeat:  repeat-x; 
     536    background-repeat:  repeat-x; 
    537537    background-position: top; 
    538     height:             18px; 
     538    height:              18px; 
    539539} 
    540540 
    541541.tblFooters { 
    542     font-weight:        normal; 
    543     color:              #ffffff; 
     542    font-weight:        normal; 
     543    color:              #ffffff; 
    544544    background-color:    #cccccc; 
    545545    background-image:    url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>tbl_header.png); 
     
    594594/* topmenu */ 
    595595ul#topmenu { 
    596     font-weight:        bold; 
    597     list-style-type:    none; 
    598     margin:             0; 
    599     padding:            0; 
     596    font-weight:        bold; 
     597    list-style-type:    none; 
     598    margin:              0; 
     599    padding:            0; 
    600600    background-color:    #cccccc; 
    601601        background-image:    url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>tbl_header.png); 
     
    606606 
    607607ul#topmenu li { 
    608     float:              left; 
    609     margin:             0; 
    610     padding:            0; 
    611     vertical-align:     middle; 
     608    float:              left; 
     609    margin:              0; 
     610    padding:            0; 
     611    vertical-align:      middle; 
    612612        height:                          24px; 
    613613} 
    614614 
    615615#topmenu img { 
    616     vertical-align:     middle; 
    617     margin-right:       0.1em; 
     616    vertical-align:      middle; 
     617    margin-right:        0.1em; 
    618618} 
    619619 
     
    623623        font-family:         Verdana, Arial, Helvetica, sans-serif; 
    624624        padding:                         0; 
    625     white-space:        nowrap; 
     625    white-space:        nowrap; 
    626626} 
    627627 
     
    671671ul#topmenu li a.tabactive { 
    672672    color:              black; 
    673         padding:                       4px 8px 8px 8px; 
     673        padding:           4px 8px 8px 8px; 
    674674} 
    675675<?php } else { ?> 
    676676#topmenu { 
    677     padding: 0px; 
    678     padding-top:                4px; 
     677    padding:            0px; 
     678    padding-top:        4px; 
    679679} 
    680680 
    681681ul#topmenu li { 
    682     border-bottom: 0; 
     682    border-bottom:      0; 
    683683} 
    684684 
     
    758758        border-left:             1px solid #FFFFFF; 
    759759    margin-left:                 -3px; 
    760         color:               #f4dc6b; 
    761760} 
    762761 
     
    10501049    margin: 0; 
    10511050    padding: 0; 
    1052     background-image: none; 
    10531051    background-color: #F5F5F5; 
    10541052} 
     
    10951093/* end querybox */ 
    10961094 
     1095 
  • trunk/gui/tools/webmail/functions/page_header.php

    r1109 r1175  
    5656    /* work around IE6's scrollbar bug */ 
    5757    echo <<<ECHO 
     58<!--[if IE 6]> 
    5859<style type="text/css"> 
    59 <!--[if IE 6]> 
    6060/* avoid stupid IE6 bug with frames and scrollbars */ 
    6161body { 
    6262    width: expression(document.documentElement.clientWidth - 30); 
    6363} 
     64</style> 
    6465<![endif]--> 
    65 </style> 
    66  
    6766ECHO; 
    6867 
     
    429428} 
    430429 
     430 
  • trunk/gui/tools/webmail/themes/css/omega.css

    r1172 r1175  
    117117 
    118118#company_table { 
    119         padding: -10px 0px 0px 0px; 
     119        padding: 10px 0px 0px 0px; 
    120120        float: right; 
    121121        margin: -6px 0px 0px 0px;