function  actionGetUsers() {

            
$postfile   =   $_POST [ ' postfile ' ];
            
// exit($postfile);
             $i   =   0 ;
            
$handle   =   fopen  ( $postfile , " r " );
            
while ( $data   =   fgetcsv  ( $handle ,   1000 ,   " , " )) {
            
if  ( $i   ==   0 ) {  $key_arr   =   $data ; }
            
reset ( $key_arr );
            
while ( list ( $index , $name =   each ( $key_arr )) {  $temp_arr [ $name =   $data [ $index ]; }
            
$result_arr [ $i =   $temp_arr ;
            
$i ++ ;
            }
            
fclose  ( $handle );
            
// dump($result_arr);
             // /echo $result_arr['username'];
             for ( $i = 1 ; $i < count ( $result_arr ); $i ++ )
            {
                
$self_intro   =   $this -> impChangeCode( $result_arr [ $i ][ ' self_intro ' ]); // 编码转化
                //echo $self_intro;


                
$usersManager   =&  FLEA :: getSingleton( ' Model_Users ' );
                
$user   =   array (
                    
' username '          =>      $result_arr [ $i ][ ' username ' ] ,
                    
' password '          =>      $result_arr [ $i ][ ' password ' ] ,
                    
' email '              =>      $result_arr [ $i ][ ' email ' ] ,
                    
' gender '          =>      empty ( $result_arr [ $i ][ ' gender ' ]) ? "" : $result_arr [ $i ][ ' gender ' ] ,
                    
' realname '          =>      empty ( $result_arr [ $i ][ ' realname ' ]) ? "" : $result_arr [ $i ][ ' realname ' ] ,
                    
' homepage '          =>      empty ( $result_arr [ $i ][ ' homepage ' ]) ? "" : $result_arr [ $i ][ ' homepage ' ] ,
                    
' self_intro '      =>      empty ( $self_intro ) ? "" : $self_intro ,
                    
' ip '              =>      empty ( $result_arr [ $i ][ ' ip ' ]) ? "" : $result_arr [ $i ][ ' ip ' ] ,
                );
                
// exit($_POST['username']);
                 $usersManager -> save( $user );    
            }
            
// echo $i;
                js_alert( " 批量导入管理员 成功 " , '' , url( ' Setpurview ' , ' List ' ));
            
// exit($i);
        }

        
function  impChangeCode( $str ) // //编码转化
            {
                
$str   =  mb_convert_encoding( $str , " UTF-8 " , " CP936 " ); // cp936即gbk
                 return   $str ;
            }