Subversion Repositories eFlore/Applications.del

Rev

Rev 1442 | Rev 1451 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1442 Rev 1444
Line 479... Line 479...
479
				'vdi.nom_sel IS NOT NULL',
479
				'vdi.nom_sel IS NOT NULL',
480
				'vdi.certitude != "aDeterminer"',
480
				'vdi.certitude != "aDeterminer"',
481
				'(vdi.mots_cles_texte IS NULL OR vdi.mots_cles_texte NOT LIKE "%aDeterminer%"',
481
				'(vdi.mots_cles_texte IS NULL OR vdi.mots_cles_texte NOT LIKE "%aDeterminer%"',
482
			)) . ')';
482
			)) . ')';
483
		}
483
		}
-
 
484
		if(array_key_exists('validees', $val)) {
-
 
485
			//On récupère toutes les observations ayant un commentaire doté de proposition_retenue = 1
-
 
486
			$req['join'][] = 'INNER JOIN del_commentaire AS dc ON vdi.id_observation = dc.ce_observation AND dc.proposition_retenue = 1';
-
 
487
		}
Line 484... Line 488...
484
 
488
 
485
		// solution n°1: impraticable
489
		// solution n°1: impraticable
486
		if(false && array_key_exists('endiscussion', $val)) {
490
		if(false && array_key_exists('endiscussion', $val)) {
487
			//Si on veut les observations en discussion,
491
			//Si on veut les observations en discussion,
Line 702... Line 706...
702
			$x = explode(',',$params['masque.tag']);
706
			$x = explode(',',$params['masque.tag']);
703
			$x = array_map('trim', $x);
707
			$x = array_map('trim', $x);
704
			$p['masque.tag'] = implode('|', array_filter($x));
708
			$p['masque.tag'] = implode('|', array_filter($x));
705
		}
709
		}
Line 706... Line 710...
706
 
710
 
707
		// masque.type: ['adeterminer', 'aconfirmer', 'endiscussion']
711
		// masque.type: ['adeterminer', 'aconfirmer', 'endiscussion', 'validees']
708
		if(isset($params['masque.type'])) {
712
		if(isset($params['masque.type'])) {
709
			$p['masque.type'] = array_flip(array_intersect(array_filter(explode(';', $params['masque.type'])),
713
			$p['masque.type'] = array_flip(array_intersect(array_filter(explode(';', $params['masque.type'])),
710
														   array('adeterminer', 'aconfirmer', 'endiscussion')));
714
														   array('adeterminer', 'aconfirmer', 'endiscussion', 'validees')));
Line 711... Line 715...
711
		}
715
		}