X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins%2Fauto%2Fcouteau_suisse%2Fcouteau_suisse%2Foutils%2Forientation_fonctions.php;fp=www%2Fplugins%2Fauto%2Fcouteau_suisse%2Fcouteau_suisse%2Foutils%2Forientation_fonctions.php;h=8d7f6dbc40b086a0296f626be0abdaaca07ae957;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/plugins/auto/couteau_suisse/couteau_suisse/outils/orientation_fonctions.php b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/orientation_fonctions.php new file mode 100644 index 0000000..8d7f6db --- /dev/null +++ b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/orientation_fonctions.php @@ -0,0 +1,30 @@ +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