search filter absendername
This commit is contained in:
parent
e3436e999a
commit
d1aa868c24
2 changed files with 6 additions and 1 deletions
|
@ -29,6 +29,9 @@
|
||||||
<label for="searchIn_telfaxmobile"><b>{lng p="tel"} / {lng p="fax"} / {lng p="cellphone"}</b></label></td>
|
<label for="searchIn_telfaxmobile"><b>{lng p="tel"} / {lng p="fax"} / {lng p="cellphone"}</b></label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><input type="checkbox" name="searchIn[absendername]" id="searchIn_absendername" checked="checked" />
|
||||||
|
<label for="searchIn_absendername"><b>{lng p="sendername"}</b></label>
|
||||||
|
</td>
|
||||||
<td><input type="checkbox" id="searchIn_all" checked="checked" onchange="invertSelection(document.forms.f1,'searchIn',true,this.checked)" />
|
<td><input type="checkbox" id="searchIn_all" checked="checked" onchange="invertSelection(document.forms.f1,'searchIn',true,this.checked)" />
|
||||||
<label for="searchIn_all"><b>{lng p="all"}</b></label></td>
|
<label for="searchIn_all"><b>{lng p="all"}</b></label></td>
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
|
|
|
@ -277,7 +277,7 @@ if($_REQUEST['action'] == 'users')
|
||||||
|
|
||||||
// do the query!
|
// do the query!
|
||||||
$users = array();
|
$users = array();
|
||||||
$res = $db->Query('SELECT id,email,vorname,nachname,strasse,hnr,plz,ort,gruppe,gesperrt,lastlogin,profilfelder ' . $theQuery . ' '
|
$res = $db->Query('SELECT id,email,vorname,nachname,strasse,hnr,plz,ort,gruppe,gesperrt,lastlogin,profilfelder,absendername ' . $theQuery . ' '
|
||||||
. 'ORDER BY ' . $sortBy . ' '
|
. 'ORDER BY ' . $sortBy . ' '
|
||||||
. $sortOrder . ' '
|
. $sortOrder . ' '
|
||||||
. 'LIMIT ' . $startPos . ',' . $perPage);
|
. 'LIMIT ' . $startPos . ',' . $perPage);
|
||||||
|
@ -903,6 +903,8 @@ else if($_REQUEST['action'] == 'search')
|
||||||
$fields = array_merge($fields, array('strasse', 'hnr', 'plz', 'ort', 'land'));
|
$fields = array_merge($fields, array('strasse', 'hnr', 'plz', 'ort', 'land'));
|
||||||
else if($field == 'telfaxmobile')
|
else if($field == 'telfaxmobile')
|
||||||
$fields = array_merge($fields, array('tel', 'fax', 'mail2sms_nummer'));
|
$fields = array_merge($fields, array('tel', 'fax', 'mail2sms_nummer'));
|
||||||
|
else if($field == 'absendername')
|
||||||
|
$fields[] = 'absendername';
|
||||||
}
|
}
|
||||||
|
|
||||||
// build query string
|
// build query string
|
||||||
|
|
Loading…
Reference in a new issue