Subversion Repositories eFlore/Applications.cel

Rev

Rev 996 | Rev 1425 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 996 Rev 1014
Line 43... Line 43...
43
        	}
43
        	}
44
        }
44
        }
Line 45... Line 45...
45
                
45
                
Line 46... Line 46...
46
        usort($liste_utilisateurs,'trierUtilisateurs');
46
        usort($liste_utilisateurs,'trierUtilisateurs');
47
            
-
 
48
        $output = json_encode($liste_utilisateurs);
-
 
49
        print($output);
47
            
50
                
48
		$this->envoyerJson($liste_utilisateurs);			
Line 51... Line 49...
51
        return true;    
49
		return true;	
Line 52... Line 50...
52
    }
50
    }
Line 63... Line 61...
63
    }
61
    }
64
}
62
}
Line 65... Line 63...
65
 
63
 
Line 66... Line 64...
66
function trierUtilisateurs($val1, $val2) {
64
function trierUtilisateurs($val1, $val2) {
Line 67... Line 65...
67
        
65
        
68
        if (strstr($val1,'@')) {
66
	if (strstr($val1,'@')) {
69
            
-
 
70
            if (strstr($val2,'@')) { 
-
 
71
                return strcmp($val1,$val2);
-
 
72
            }
-
 
73
            else
-
 
74
            {
67
            
75
                return -1 ;
68
    	if (strstr($val2,'@')) { 
76
            }
69
        	return strcmp($val1,$val2);
77
        } 
-
 
78
        else
70
        }
79
        {
-
 
80
            if (strstr($val2,'@')) { 
-
 
81
                return 1 ;
-
 
82
            }
-
 
83
            else
-
 
84
            {
71
        else
85
                return strcmp($val1,$val2) ;
-
 
86
            }
72
        {
87
        }
-
 
88
        
73
        	return -1 ;
89
    }
-
 
90
 
74
        }
91
 
75
    } 
92
/* +--Fin du code ---------------------------------------------------------------------------------------+
76
    else
93
* $Log$
77
    {
94
* Revision 1.3  2008-01-30 08:57:28  ddelon
78
    	if (strstr($val2,'@')) { 
-
 
79
        	return 1 ;
95
* fin mise en place mygwt
80
        }
96
*
81
        else
97
* Revision 1.2  2007-05-22 12:54:09  ddelon
82
        {
98
* Securisation acces utilisateur
83
        	return strcmp($val1,$val2) ;
99
*
-
 
100
*
84
        }
101
* 
85
    }