| Current Path : /home/quelfutuu/www/plugins/auto/couteau_suisse/.v1.9.8.bck/outils/ |
| Current File : /home/quelfutuu/www/plugins/auto/couteau_suisse/.v1.9.8.bck/outils/orientation_fonctions.php |
<?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)'";
}
?>