Changeset 790 for trunk/phpgwapi


Ignore:
Timestamp:
05/05/09 15:52:22 (15 years ago)
Author:
niltonneto
Message:

Ticket #475 - Modificação para tornar flexível a utilização de múltiplos templates.

Location:
trunk/phpgwapi
Files:
7 edited
8 copied

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.common.inc.php

    r368 r790  
    736736                        while ($entry=$d->read()) 
    737737                        { 
    738                                 if ($entry != 'CVS' && $entry != '.' && $entry != '..' 
    739                                         && $entry != 'phpgw_website' 
    740                                         && is_dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry)) 
    741                                 { 
     738                                if ($entry != '.' && $entry != '..' && is_dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry) && file_exists(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/head.inc.php')) 
     739                                { 
     740                                        $list[$entry]['title'] = $entry; 
    742741                                        $list[$entry]['name'] = $entry; 
     742 
    743743                                        $f = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/details.inc.php'; 
    744744                                        if (file_exists ($f)) 
    745745                                        { 
    746746                                                include($f); 
    747                                                 $list[$entry]['title'] = 'Use '.$GLOBALS['phpgw_info']['template'][$entry]['title'].'interface'; 
    748                                         } 
    749                                         else 
    750                                         { 
    751                                                 $list[$entry]['title'] = $entry; 
     747                                                if ( defined( $entry.'_TEMPLATE_TITLE' ) ) 
     748                                                        $list[$entry]['title'] = utf8_decode( constant($entry.'_TEMPLATE_TITLE') ); 
    752749                                        } 
    753750                                } 
  • trunk/phpgwapi/inc/functions.inc.php

    r440 r790  
    385385                { 
    386386                        $GLOBALS['phpgw']->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
     387                        preg_match('/(.*)\/(.*)/', PHPGW_APP_TPL, $matches); 
     388 
     389                        if ($GLOBALS['phpgw_info']['flags']['currentapp'] != "jabberit_messenger") 
     390                        $_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set'] = $matches[2]; 
    387391                } 
    388392 
  • trunk/phpgwapi/js/dftree/dftree.css

    r2 r790  
    3737/* link */ 
    3838.l { 
    39         padding: 0px 13px 0px 0px; 
     39        background-repeat: no-repeat; 
     40        background-position: left; 
     41        padding: 0 2em; 
    4042        font-weight: bold; 
    4143        font-size: 10px; 
    42         color: #666666; 
     44        color: #4a79b1; 
    4345        text-decoration: none; 
    4446        cursor: pointer; 
     
    5456/* selected link */ 
    5557.sl { 
    56         padding: 0px 13px 0px 0px; 
     58        background-repeat: no-repeat; 
     59        background-position: left; 
     60        padding: 0 2em;  
    5761        font-weight: bold; 
    5862        font-size: 10px; 
    59         color: #0000FF; 
     63        color: #fc6103; 
    6064        text-decoration: none; 
    6165        cursor: pointer; 
  • trunk/phpgwapi/js/dftree/dftree.js

    r709 r790  
    228228                captionSpan.style.backgroundColor = 'white'; 
    229229                captionSpan.style.border = '1px solid black'; 
     230                captionSpan.style.paddingTop = '0px'; 
     231                captionSpan.style.paddingBottom = '0px'; 
    230232        } 
    231233} 
     
    237239                captionSpan = getObjectById("l"+this.id+this._myTree.name); 
    238240                captionSpan.style.backgroundColor = ''; 
    239                 captionSpan.style.border = '1px solid #f7f7f7'; 
     241                captionSpan.style.border = '0px'; 
     242                captionSpan.style.paddingTop = '1px'; 
     243                captionSpan.style.paddingBottom = '1px'; 
    240244        } 
    241245} 
     
    326330        spanL.onmouseover = function () { _this._onMouseOver(); }; 
    327331        spanL.onmouseout = function () { _this._onMouseOut(); }; 
    328         spanL.style.border = '1px solid #f7f7f7'; 
     332//      spanL.style.border = '1px solid #f7f7f7'; 
    329333        spanL.innerHTML = this.caption; 
    330334        //spanL.style.border = '1px solid red'; 
  • trunk/phpgwapi/templates/celepar/head.inc.php

    r12 r790  
    4343                $pngfix_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/celepar/js/pngfix.js'; 
    4444                $pngfix ='<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 and higher -->  
    45                 <!--[if gte IE 5.5000]> 
     45                <!--[if lt IE 7]> 
    4646                <script src="'.$pngfix_src.'" type="text/javascript"> 
    4747                </script> 
  • trunk/phpgwapi/templates/celepar/navbar.inc.php

    r549 r790  
    163163                                }                        
    164164                         
    165                                 $app_icons .= '<td width="74px" height="40" valign="top" align="left" onclick="location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\'" style="cursor:pointer;cursor:hand;background-repeat:no-repeat;padding-left:20px;background-image:url('.$var['img_root'].'/back_app.png)">'.$icon.'</td>'; 
     165                                $app_icons .= '<td width="74px" height="40" valign="center" align="center" onclick="location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\'" style="cursor:pointer;cursor:hand;background-repeat:no-repeat;padding-bottom:20px;background-image:url('.$var['img_root'].'/back_app.png)">'.$icon.'</td>'; 
    166166                        }                       //                      window.location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\' 
    167167                         
Note: See TracChangeset for help on using the changeset viewer.