--- /dev/null
+<?php
+
+// {portrait}
+function critere_portrait($idb, &$boucles, $crit) {
+ $boucle = &$boucles[$idb];
+ $table = $boucle->id_table;
+ $boucle->where[] = $crit->not
+ ?"'($table.largeur>0 AND $table.hauteur <= $table.largeur)'"
+ :"'($table.largeur>0 AND $table.hauteur > $table.largeur)'";
+}
+
+// {paysage}
+function critere_paysage($idb, &$boucles, $crit) {
+ $boucle = &$boucles[$idb];
+ $table = $boucle->id_table;
+ $boucle->where[] = $crit->not
+ ?"'($table.largeur>0 AND $table.largeur <= $table.hauteur)'"
+ :"'($table.largeur>0 AND $table.largeur > $table.hauteur)'";
+}
+
+// {carre}
+function critere_carre($idb, &$boucles, $crit) {
+ $boucle = &$boucles[$idb];
+ $table = $boucle->id_table;
+ $boucle->where[] = $crit->not
+ ?"'($table.largeur != $table.hauteur)'"
+ :"'($table.largeur>0 AND $table.largeur = $table.hauteur)'";
+}
+
+?>
\ No newline at end of file