Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1505 Rev 1521
Line 399... Line 399...
399
	}
399
	}
400
	if(!empty($p['masque.ns'])) {
400
	if(!empty($p['masque.ns'])) {
401
	    $req['where'][] = 'vdi.nom_sel LIKE '.$db->proteger($p['masque.ns'].'%');
401
	    $req['where'][] = 'vdi.nom_sel LIKE '.$db->proteger($p['masque.ns'].'%');
402
	}
402
	}
403
	if(!empty($p['masque.nn'])) {
403
	if(!empty($p['masque.nn'])) {
404
	    $req['where'][] = sprintf('vdi.nom_sel_nn = %1$d OR vdi.nom_ret_nn = %1$d', $p['masque.nn']);
404
	    $req['where'][] = sprintf('(vdi.nom_sel_nn = %1$d OR vdi.nom_ret_nn = %1$d)', $p['masque.nn']);
405
	}
405
	}
406
	if(!empty($p['masque.referentiel'])) {
406
	if(!empty($p['masque.referentiel'])) {
407
	    $req['where'][] = sprintf('vdi.nom_referentiel LIKE %s', $db->proteger($p['masque.referentiel'].'%'));
407
	    $req['where'][] = sprintf('vdi.nom_referentiel LIKE %s', $db->proteger($p['masque.referentiel'].'%'));
408
	}
408
	}
409
	if(!empty($p['masque.commune'])) {
409
	if(!empty($p['masque.commune'])) {