X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins%2Fformidable%2Fpublic%2Fformidable_criteres.php;fp=www%2Fplugins%2Fformidable%2Fpublic%2Fformidable_criteres.php;h=175434481217137bd67116092d66389a718215b5;hb=c0f18416f529232b5555c6410a8765a5125ebcd3;hp=38d7d964734934942ee6f5fb175fd47d6dd70b8a;hpb=50522c53acc9e61a4a7de3a1890c4ba93e2f61b4;p=lhc%2Fweb%2Fwww.git diff --git a/www/plugins/formidable/public/formidable_criteres.php b/www/plugins/formidable/public/formidable_criteres.php index 38d7d964..17543448 100644 --- a/www/plugins/formidable/public/formidable_criteres.php +++ b/www/plugins/formidable/public/formidable_criteres.php @@ -1,18 +1,20 @@ $crit - * + * * Auteurs : * Antoine Pitrou * Cedric Morin @@ -20,15 +22,16 @@ if (!defined("_ECRIRE_INC_VERSION")) return; * @ 2005,2006 - Distribue sous licence GNU/GPL */ -function critere_tri_selon_donnee_dist($idb, &$boucles, $crit) { // Garder cette fontion pour compatibilité +function critere_tri_selon_donnee_dist($idb, &$boucles, $crit) { + // Garder cette fontion pour compatibilité critere_tri_selon_reponse_dist($idb, $boucles, $crit) ; } function critere_tri_selon_reponse_dist($idb, &$boucles, $crit) { $boucle = &$boucles[$idb]; $t = $boucle->id_table; - - if ($t=='formulaires_reponses'){ + + if ($t=='formulaires_reponses') { $not = $crit->not; $_quoi = calculer_liste($crit->param[0], array(), $boucles, $boucles[$idb]->id_parent); $k = count($boucle->join)+1; @@ -46,11 +49,12 @@ function critere_recherche_reponse_dist($idb, &$boucles, $crit) { global $table_des_tables; $boucle = &$boucles[$idb]; $t = $boucle->id_table; - if ($t=='formulaires_reponses'){ - if (isset($crit->param[0])) + if ($t=='formulaires_reponses') { + if (isset($crit->param[0])) { $_quoi = calculer_liste($crit->param[0], array(), $boucles, $boucles[$idb]->id_parent); - else + } else { $_quoi = '@$Pile[0]["recherche"]'; + } $k = count($boucle->join)+1; $boucle->join[$k]= array($t,'id_formulaires_reponse'); @@ -59,6 +63,3 @@ function critere_recherche_reponse_dist($idb, &$boucles, $crit) { $boucle->where[]= array("'?'",$_quoi,$op,"''"); } } - - -?>