Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1013 → Rev 1014

/trunk/jrest/services/InventoryUserList.php
45,10 → 45,8
usort($liste_utilisateurs,'trierUtilisateurs');
$output = json_encode($liste_utilisateurs);
print($output);
return true;
$this->envoyerJson($liste_utilisateurs);
return true;
}
private function construireRequeteCondition($params) {
65,39 → 63,25
 
function trierUtilisateurs($val1, $val2) {
if (strstr($val1,'@')) {
if (strstr($val1,'@')) {
if (strstr($val2,'@')) {
return strcmp($val1,$val2);
}
else
{
return -1 ;
}
}
if (strstr($val2,'@')) {
return strcmp($val1,$val2);
}
else
{
if (strstr($val2,'@')) {
return 1 ;
}
else
{
return strcmp($val1,$val2) ;
}
return -1 ;
}
}
 
 
/* +--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
*
*
*
*/
}
else
{
if (strstr($val2,'@')) {
return 1 ;
}
else
{
return strcmp($val1,$val2) ;
}
}
}
?>