Changeset 2645


Ignore:
Timestamp:
04/28/10 08:47:18 (14 years ago)
Author:
amuller
Message:

Ticket #1044 - Adicionando suporte no expressoMail

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r2642 r2645  
    173173$phpgwapi_url = $GLOBALS[ 'phpgw' ] -> link( '/phpgwapi' ); 
    174174 
    175 $script = '<link rel="stylesheet" type="text/css" href="' . $expressoMail_url . '/templates/' . $GLOBALS['phpgw_info']['server']['template_set'] . '/main.css">'; 
    176 $script .= '<link rel="stylesheet" type="text/css" href="' . $phpgwapi_url . '/js/dftree/dftree.css">'; 
     175$GLOBALS['phpgw']->css->validate_file($expressoMail_url . '/templates/' . $GLOBALS['phpgw_info']['server']['template_set'] . '/main.css'); 
     176$GLOBALS['phpgw']->css->validate_file($phpgwapi_url . '/js/dftree/dftree.css'); 
     177$script .= $GLOBALS['phpgw']->css->get_css(); 
    177178$script .= '<style type="text/css">@import url(' . $phpgwapi_url . '/js/jscalendar/calendar-win2k-1.css);</style>'; 
    178179$script .= '<script type="text/javascript">'; 
  • trunk/expressoMail1_2/js/jscode/globals.js

    r2642 r2645  
    6363var _connector = new XConnector( { 
    6464        "path" : URL_SERVER, 
    65         "controller" : "/controller.php?action=" 
     65        "controller" : "controller.php?action=" 
    6666} ); 
    6767 
  • trunk/expressoMail1_2/js/jscode/main.js

    r2642 r2645  
    2727        { 
    2828                preferences = expresso.connector.unserialize( data ); 
     29                _connector.cache(); 
    2930                _connector.go( { 
    3031                        "access" : "expressoMail1_2.imap_functions.get_range_msgs2&folder=INBOX&msg_range_begin=1&msg_range_end=" 
     
    7677        // Fim da inserção da applet 
    7778 
     79                _connector.cache(); 
    7880                _connector.go( { //Save contacts needs preferences. 
    7981                        "access" : "expressoMail1_2.db_functions.get_dropdown_contacts", 
     
    8183                        "handler" : save_contacts 
    8284                } ); 
     85                _connector.cache(); 
    8386                _connector.go( { 
    8487                        "access" : "expressoMail1_2.imap_functions.get_folders_list&onload=true", 
     
    101104        if ( Element('divAppboxHeader') ) 
    102105                Element('divAppboxHeader').innerHTML = title_app; 
    103          
     106        _connector.cache(); 
    104107        _connector.go( { 
    105108                "access" : "expressoMail1_2.functions.get_preferences", 
  • trunk/expressoMail1_2/templates/default

    • Property svn:ignore set to
      *csspack.css
  • trunk/phpgwapi/inc/class.common.inc.php

    r2644 r2645  
    13271327                        if ( @ isset( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ] ) ) 
    13281328                        {                
    1329                                 require_once('class.css.inc.php'); 
    1330                                 $cssObj = new css(); 
     1329                                $path = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ?  
     1330                                        $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/';  
     1331 
     1332                                if ( strpos( $path, '/' ) != ( strlen( $path ) - 1 ) )  
     1333                                        $path .= '/';  
    13311334 
    13321335                                $template = $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ]; 
    13331336 
    1334                                 $cssObj->validate_file( "phpgwapi/templates/".$template."/css/base.css"); 
    1335                                 $cssObj->validate_file( "phpgwapi/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
    1336                                 $cssObj->validate_file( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
    1337                                 $cssObj->validate_file( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/app.css"); 
     1337                                $GLOBALS['phpgw']->css->validate_file( $path."phpgwapi/templates/".$template."/css/base.css"); 
     1338                                $GLOBALS['phpgw']->css->validate_file( $path."phpgwapi/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
     1339                                $GLOBALS['phpgw']->css->validate_file( $path.$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
     1340                                $GLOBALS['phpgw']->css->validate_file( $path.$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/app.css"); 
    13381341                                 
    1339                                 $tpl -> set_var( 'css_file',  $cssObj->get_css() ); 
     1342                                $tpl -> set_var( 'css_file',  $GLOBALS['phpgw']->css->get_css() ); 
    13401343                        } 
    13411344 
  • trunk/phpgwapi/inc/class.css.inc.php

    r2644 r2645  
    4141                function get_css() 
    4242                { 
    43                         $path = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? 
    44                                 $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; 
    45  
    46                         if ( strpos( $path, '/' ) != ( strlen( $path ) - 1 ) ) 
    47                                 $path .= '/'; 
    48  
    4943                        if ($GLOBALS['phpgw_info']['server']['csspacker'] == "True") 
    5044                                  foreach($this->files as $cssFile) 
     
    5246                                          if (!file_exists(PHPGW_SERVER_ROOT.SEP.$cssFile."pack.css")) 
    5347                                                $this->create_pack($cssFile); 
    54                                           $out .= "\n\t\t<link href='".$path.$cssFile."pack.css' type='text/css' rel='StyleSheet'>"; 
     48                                          $out .= "\n\t\t<link href='".$cssFile."pack.css' type='text/css' rel='StyleSheet'>"; 
    5549                                           
    5650                                  } 
    5751                          else 
    5852                                  foreach($this->files as $cssFile) 
    59                                           $out .= "\n\t\t<link href='".$path.$cssFile."' type='text/css' rel='StyleSheet'>"; 
     53                                          $out .= "\n\t\t<link href='".$cssFile."' type='text/css' rel='StyleSheet'>"; 
    6054                          return $out; 
    6155                } 
     
    6357                function validate_file($file, $stack = false ) 
    6458                { 
    65                         if (file_exists(PHPGW_SERVER_ROOT . '/' . $file)) 
     59                        if (file_exists(PHPGW_SERVER_ROOT . SEP . $file)) 
    6660                                $this->files[] = $file; 
    6761                } 
  • trunk/phpgwapi/inc/functions.inc.php

    r2549 r2645  
    235235        $GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications'); 
    236236        $GLOBALS['phpgw']->js           = CreateObject('phpgwapi.javascript'); 
     237        $GLOBALS['phpgw']->css          = CreateObject('phpgwapi.css'); 
     238 
    237239        print_debug('main class loaded', 'messageonly','api'); 
    238240        if (! isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) || 
  • trunk/phpgwapi/js/dftree

    • Property svn:ignore
      •  

        old new  
        1 *.jspack.js 
         1*pack.*s 
Note: See TracChangeset for help on using the changeset viewer.