45,8 → 45,10 |
|
usort($liste_utilisateurs,'trierUtilisateurs'); |
|
$this->envoyerJson($liste_utilisateurs); |
return true; |
$output = json_encode($liste_utilisateurs); |
print($output); |
|
return true; |
} |
|
private function construireRequeteCondition($params) { |
63,25 → 65,39 |
|
function trierUtilisateurs($val1, $val2) { |
|
if (strstr($val1,'@')) { |
if (strstr($val1,'@')) { |
|
if (strstr($val2,'@')) { |
return strcmp($val1,$val2); |
} |
if (strstr($val2,'@')) { |
return strcmp($val1,$val2); |
} |
else |
{ |
return -1 ; |
} |
} |
else |
{ |
return -1 ; |
if (strstr($val2,'@')) { |
return 1 ; |
} |
else |
{ |
return strcmp($val1,$val2) ; |
} |
} |
} |
else |
{ |
if (strstr($val2,'@')) { |
return 1 ; |
} |
else |
{ |
return strcmp($val1,$val2) ; |
} |
} |
} |
|
} |
|
|
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* $Log$ |
* Revision 1.3 2008-01-30 08:57:28 ddelon |
* fin mise en place mygwt |
* |
* Revision 1.2 2007-05-22 12:54:09 ddelon |
* Securisation acces utilisateur |
* |
* |
* |
*/ |
?> |