Changeset 2889 for trunk


Ignore:
Timestamp:
06/01/10 10:20:21 (14 years ago)
Author:
rodsouza
Message:

Ticket #1097 - Populando formulário do mailadmin corretamente.

Location:
trunk/emailadmin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/emailadmin/inc/class.ui.inc.php

    r2439 r2889  
    133133                                        $GLOBALS['phpgw']->js->validate_file('jscode','editProfile','emailadmin'); 
    134134                                        //$GLOBALS['phpgw']->js->set_onload('javascript:initAll();'); 
    135                                         echo $GLOBALS['phpgw']->js->get_script_links(); 
    136                                         $GLOBALS['phpgw']->js->unset_script_link('emailadmin','jscode'); 
     135                                        //echo $GLOBALS['phpgw']->js->get_script_links(); 
     136                                        //$GLOBALS['phpgw']->js->unset_script_link('emailadmin','jscode'); 
    137137                                        break; 
    138138                        } 
     
    141141                } 
    142142 
    143                 function editProfile($_profileID='') 
    144                 { 
    145                         if($_profileID != '') 
    146                         { 
    147                                 $profileID = $_profileID; 
     143                function editProfile( $_profileID = null ) 
     144                { 
     145                        if ( $_profileID && is_array( $_profileID ) && array_key_exists( 'profileid', $_profileID ) ) 
     146                        { 
     147                                $profileID = $_profileID[ 'profileid' ]; 
    148148                        } 
    149149                        elseif(is_int(intval($_GET['profileid'])) && !empty($_GET['profileid'])) 
     
    164164                         
    165165                        $this->translate(); 
    166                          
     166 
    167167                        foreach($profileData as $key => $value) 
    168168                        { 
     
    221221                                $this->t->set_var("lang_imap_option_$key",$value['description']); 
    222222                        }; 
    223                                                  
     223 
    224224                        $this->t->parse("out","main"); 
    225                         echo "<style>{$this -> css( )}</style>{$this->t->get('out','main')}<script>initAll( );</script>"; 
     225                        $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= '<script>initAll( );tab.display( ' 
     226                                . ( ( array_key_exists( 'tabpage', $_GET ) ) ? $_GET[ 'tabpage' ] : 1 ) 
     227                                . ' );</script>'; 
     228                        echo "<style>{$this -> css( )}</style>{$this->t->get('out','main')}"; 
    226229                } 
    227230                 
  • trunk/emailadmin/templates/default/editprofile.tpl

    r2680 r2889  
    482482                </td> 
    483483                <td width="10%" align="center" class="td_right"> 
    484                         <a href="javascript:document.mailsettings.submit();">{lang_save}</a> 
     484                        <a onclick="ExpressoLivre.form( document.mailsettings );">{lang_save}</a> 
    485485                </td> 
    486486        </tr> 
Note: See TracChangeset for help on using the changeset viewer.