Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1689 Rev 1691
Line 66... Line 66...
66
		$info = array();
66
		$info = array();
Line 67... Line 67...
67
 
67
 
68
        $whereClause = array();
68
        $whereClause = array();
69
        if(isset($p['id_projet'])) $whereClause[] = "cs_ce_projet = {$p['id_projet']}";
69
        if(isset($p['id_projet'])) $whereClause[] = "cs_ce_projet = {$p['id_projet']}";
70
        if(isset($p['id_structure'])) $whereClause[] = "cs_id_structure = {$p['id_structure']}";
-
 
Line -... Line 70...
-
 
70
        if(isset($p['id_structure'])) $whereClause[] = "cs_id_structure = {$p['id_structure']}";
-
 
71
 
-
 
72
        if(isset($p['recherche'])) {
-
 
73
            if(@$this->searchCity && trim($this->searchCity) == true) {
-
 
74
                $whereClause[] = "(" . implode(" OR ", array("cs_nom LIKE {$p['recherche']}", "cs_ville LIKE {$p['recherche']}")) . ")";
-
 
75
            } else {
-
 
76
                $whereClause[] = "cs_nom LIKE {$p['recherche']}";
Line 71... Line 77...
71
        if(isset($p['recherche'])) $whereClause[] = "(" . implode(" OR ", array("cs_nom LIKE {$p['recherche']}", "cs_ville LIKE {$p['recherche']}")) . ")";
77
            }
72
 
78
        }
73
 
79
 
74
		// Construction de la requête
80
		// Construction de la requête