Research for the public note field in propals (#29703)
* Research for the public note field in propals * Update list.php * Update list.php * Update list.php * Update list.php * Update list.php * Update list.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
21aa3ba43e
commit
6c002184c5
1 changed files with 5 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ $search_date_signature_endyear = GETPOSTINT('search_date_signature_endyear');
|
|||
$search_date_signature_start = dol_mktime(0, 0, 0, $search_date_signature_startmonth, $search_date_signature_startday, $search_date_signature_startyear);
|
||||
$search_date_signature_end = dol_mktime(23, 59, 59, $search_date_signature_endmonth, $search_date_signature_endday, $search_date_signature_endyear);
|
||||
$search_status = GETPOST('search_status', 'alpha');
|
||||
$search_note_public = GETPOST('search_note_public', 'alpha');
|
||||
|
||||
// Pagination
|
||||
$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
|
||||
|
|
@ -718,6 +719,9 @@ if ($search_date_signature_start) {
|
|||
if ($search_date_signature_end) {
|
||||
$sql .= " AND p.date_signature <= '".$db->idate($search_date_signature_end)."'";
|
||||
}
|
||||
if ($search_note_public) {
|
||||
$sql .= " AND p.note_public LIKE '%".$db->escape($db->escapeforlike($search_note_public))."%'";
|
||||
}
|
||||
// Search on user
|
||||
if ($search_user > 0) {
|
||||
$sql .= " AND EXISTS (";
|
||||
|
|
@ -1452,6 +1456,7 @@ if (!empty($arrayfields['p.date_cloture']['checked'])) {
|
|||
if (!empty($arrayfields['p.note_public']['checked'])) {
|
||||
// Note public
|
||||
print '<td class="liste_titre">';
|
||||
print '<input class="flat maxwidth75" type="text" name="search_note_public" value="'.dol_escape_htmltag($search_note_public).'">';
|
||||
print '</td>';
|
||||
}
|
||||
if (!empty($arrayfields['p.note_private']['checked'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue