Subversion Repositories Applications.referentiel

Rev

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

Rev 88 Rev 109
Line 221... Line 221...
221
			'bib' => 'str',
221
			'bib' => 'str',
222
			'nr' => 'bool',
222
			'nr' => 'bool',
223
			'tax' => 'bool');
223
			'tax' => 'bool');
Line 224... Line 224...
224
		
224
		
225
		$p = $this->traiterParametresUrl(array_keys($params_passes), $param, false);
225
		$p = $this->traiterParametresUrl(array_keys($params_passes), $param, false);
226
		$this->debug[] = $param;
226
		//$this->debug[] = $param;
227
		foreach ($params_passes as $param_passe => $type) {
227
		foreach ($params_passes as $param_passe => $type) {
228
			if (isset($p[$param_passe])) {
228
			if (isset($p[$param_passe])) {
229
				// Suppression des éventuels espaces en début et fin de chaine
229
				// Suppression des éventuels espaces en début et fin de chaine
Line 334... Line 334...
334
		}
334
		}
335
		if (isset($p['an'])) {
335
		if (isset($p['an'])) {
336
			$where .= "AND annee LIKE ({$p['an']}) ";
336
			$where .= "AND annee LIKE ({$p['an']}) ";
337
		}
337
		}
338
		if (isset($p['nn'])) {
338
		if (isset($p['nn'])) {
339
			$where .= "AND num_nom LIKE ({$p['nn']}) ";
339
			$where .= "AND num_nom IN ({$p['nn']}) ";
340
		}	
340
		}	
341
		if (isset($p['bib'])) {
341
		if (isset($p['bib'])) {
342
			$where .= "AND biblio_origine LIKE ({$p['bib']}) ";
342
			$where .= "AND biblio_origine LIKE ({$p['bib']}) ";
343
		}
343
		}
344
		if (isset($p['nr']) && $p['nr'] == true) {
344
		if (isset($p['nr']) && $p['nr'] == true) {