Search po anketah isce tudi po internih naslovih (akronimih)
This commit is contained in:
parent
3668631933
commit
fdae332a36
@ -643,7 +643,7 @@ class Library {
|
|||||||
OR LOWER(sv.naslov) LIKE LOWER('".$search_text."'))";
|
OR LOWER(sv.naslov) LIKE LOWER('".$search_text."'))";
|
||||||
// Search po naslovu
|
// Search po naslovu
|
||||||
else
|
else
|
||||||
$result = " AND LOWER(sa.naslov) LIKE LOWER('".$search_text."')";
|
$result = " AND (LOWER(sa.naslov) LIKE LOWER('".$search_text."') OR LOWER(sa.akronim) LIKE LOWER('".$search_text."'))";
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
@ -2664,17 +2664,20 @@ class SurveyList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Search po avtorju
|
// Search po avtorju
|
||||||
if($this->searchSettings['stype'] == '1')
|
if($this->searchSettings['stype'] == '1'){
|
||||||
$result = " AND (i_name LIKE '".$search_text."' OR i_surname LIKE '".$search_text."' OR i_email LIKE '".$search_text."')";
|
$result = " AND (i_name LIKE '".$search_text."' OR i_surname LIKE '".$search_text."' OR i_email LIKE '".$search_text."')";
|
||||||
|
}
|
||||||
// Search po kljucnih besedah znotraj vprasanj (naslovi vprasanj in vrednosti)
|
// Search po kljucnih besedah znotraj vprasanj (naslovi vprasanj in vrednosti)
|
||||||
elseif($this->searchSettings['stype'] == '2')
|
elseif($this->searchSettings['stype'] == '2'){
|
||||||
$result = " AND (LOWER(introduction) LIKE LOWER('".$search_text."')
|
$result = " AND (LOWER(introduction) LIKE LOWER('".$search_text."')
|
||||||
OR LOWER(conclusion) LIKE LOWER('".$search_text."')
|
OR LOWER(conclusion) LIKE LOWER('".$search_text."')
|
||||||
OR LOWER(ss.naslov) LIKE LOWER('".$search_text."')
|
OR LOWER(ss.naslov) LIKE LOWER('".$search_text."')
|
||||||
OR LOWER(sv.naslov) LIKE LOWER('".$search_text."'))";
|
OR LOWER(sv.naslov) LIKE LOWER('".$search_text."'))";
|
||||||
|
}
|
||||||
// Search po naslovu
|
// Search po naslovu
|
||||||
else
|
else{
|
||||||
$result = " AND LOWER(sa.naslov) LIKE LOWER('".$search_text."')";
|
$result = " AND (LOWER(sa.naslov) LIKE LOWER('".$search_text."') OR LOWER(sa.akronim) LIKE LOWER('".$search_text."'))";
|
||||||
|
}
|
||||||
|
|
||||||
// Search po statusu (aktivne, neaktivne)
|
// Search po statusu (aktivne, neaktivne)
|
||||||
if($this->searchSettings['sstatus'] == '1')
|
if($this->searchSettings['sstatus'] == '1')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user