Changeset 2889 for trunk/emailadmin/inc/class.ui.inc.php
- Timestamp:
- 06/01/10 10:20:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/emailadmin/inc/class.ui.inc.php
r2439 r2889 133 133 $GLOBALS['phpgw']->js->validate_file('jscode','editProfile','emailadmin'); 134 134 //$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'); 137 137 break; 138 138 } … … 141 141 } 142 142 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' ]; 148 148 } 149 149 elseif(is_int(intval($_GET['profileid'])) && !empty($_GET['profileid'])) … … 164 164 165 165 $this->translate(); 166 166 167 167 foreach($profileData as $key => $value) 168 168 { … … 221 221 $this->t->set_var("lang_imap_option_$key",$value['description']); 222 222 }; 223 223 224 224 $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')}"; 226 229 } 227 230
Note: See TracChangeset
for help on using the changeset viewer.