[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / couteau_suisse / couteau_suisse / outils / orientation_fonctions.php
1 <?php
2
3 // {portrait}
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)'";
10 }
11
12 // {paysage}
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)'";
19 }
20
21 // {carre}
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)'";
28 }
29
30 ?>