4 function critere_portrait($idb, &$boucles, $crit) {
5 $boucle = &$boucles[$idb];
6 $table = $boucle->id_table
;
7 $boucle->where
[] = $crit->not
8 ?
"'($table.largeur>0 AND $table.hauteur <= $table.largeur)'"
9 :"'($table.largeur>0 AND $table.hauteur > $table.largeur)'";
13 function critere_paysage($idb, &$boucles, $crit) {
14 $boucle = &$boucles[$idb];
15 $table = $boucle->id_table
;
16 $boucle->where
[] = $crit->not
17 ?
"'($table.largeur>0 AND $table.largeur <= $table.hauteur)'"
18 :"'($table.largeur>0 AND $table.largeur > $table.hauteur)'";
22 function critere_carre($idb, &$boucles, $crit) {
23 $boucle = &$boucles[$idb];
24 $table = $boucle->id_table
;
25 $boucle->where
[] = $crit->not
26 ?
"'($table.largeur != $table.hauteur)'"
27 :"'($table.largeur>0 AND $table.largeur = $table.hauteur)'";