dolibarr
24.0.0-beta
Main Page
Related Pages
Topics
Classes
Files
File List
File Members
dolibarr_dev
htdocs
core
search.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
3
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
4
*
5
* This file is a modified version of datepicker.php from phpBSM to fix some
6
* bugs, to add new features and to dramatically increase speed.
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <https://www.gnu.org/licenses/>.
20
*/
21
28
if
(!defined(
'NOREQUIRESOC'
)) {
29
define(
'NOREQUIRESOC'
,
'1'
);
30
}
31
if
(!defined(
'NOREQUIRETRAN'
)) {
32
define(
'NOREQUIRETRAN'
,
'1'
);
33
}
34
if
(!defined(
'NOCSRFCHECK'
)) {
35
define(
'NOCSRFCHECK'
, 1);
36
}
37
if
(!defined(
'NOTOKENRENEWAL'
)) {
38
define(
'NOTOKENRENEWAL'
, 1);
39
}
40
if
(!defined(
'NOREQUIREMENU'
)) {
41
define(
'NOREQUIREMENU'
, 1);
42
}
43
44
require_once
'../main.inc.php'
;
54
/*
55
* Actions
56
*/
57
58
if
(
GETPOST
(
'search_proposal'
) !=
''
) {
59
header(
"Location: "
.DOL_URL_ROOT.
'/comm/propal/list.php?sall='
.urlencode(
GETPOST
(
'search_proposal'
)));
60
exit;
61
}
62
if
(
GETPOST
(
'search_customer_order'
) !=
''
) {
63
header(
"Location: "
.DOL_URL_ROOT.
'/commande/list.php?sall='
.urlencode(
GETPOST
(
'search_customer_order'
)));
64
exit;
65
}
66
if
(
GETPOST
(
'search_supplier_order'
) !=
''
) {
67
header(
"Location: "
.DOL_URL_ROOT.
'/fourn/commande/list.php?search_all='
.urlencode(
GETPOST
(
'search_supplier_order'
)));
68
exit;
69
}
70
if
(
GETPOST
(
'search_intervention'
) !=
''
) {
71
header(
"Location: "
.DOL_URL_ROOT.
'/fichinter/list.php?sall='
.urlencode(
GETPOST
(
'search_intervention'
)));
72
exit;
73
}
74
if
(
GETPOST
(
'search_contract'
) !=
''
) {
75
header(
"Location: "
.DOL_URL_ROOT.
'/contrat/list.php?sall='
.urlencode(
GETPOST
(
'search_contract'
)));
76
exit;
77
}
78
if
(
GETPOST
(
'search_invoice'
) !=
''
) {
79
header(
"Location: "
.DOL_URL_ROOT.
'/compta/facture/list.php?sall='
.urlencode(
GETPOST
(
'search_invoice'
)));
80
exit;
81
}
82
if
(
GETPOST
(
'search_supplier_invoice'
) !=
''
) {
83
header(
"Location: "
.DOL_URL_ROOT.
'/fourn/facture/list.php?sall='
.urlencode(
GETPOST
(
'search_supplier_invoice'
)));
84
exit;
85
}
86
if
(
GETPOST
(
'search_supplier_proposal'
) !=
''
) {
87
header(
"Location: "
.DOL_URL_ROOT.
'/supplier_proposal/list.php?sall='
.urlencode(
GETPOST
(
'search_supplier_proposal'
)));
88
exit;
89
}
90
if
(
GETPOST
(
'search_donation'
) !=
''
) {
91
header(
"Location: "
.DOL_URL_ROOT.
'/don/list.php?sall='
.urlencode(
GETPOST
(
'search_donation'
)));
92
exit;
93
}
94
if
(
GETPOST
(
'search_product'
) !=
''
) {
95
header(
"Location: "
.DOL_URL_ROOT.
'/product/list.php?search_all='
.urlencode(
GETPOST
(
'search_product'
)));
96
exit;
97
}
98
if
(
GETPOST
(
'search_thirdparty'
) !=
''
) {
99
header(
"Location: "
.DOL_URL_ROOT.
'/societe/list.php?mode=search&sall='
.urlencode(
GETPOST
(
'search_thirdparty'
)));
100
exit;
101
}
102
if
(
GETPOST
(
'search_contact'
) !=
''
) {
103
header(
"Location: "
.DOL_URL_ROOT.
'/contact/list.php?mode=search&sall='
.urlencode(
GETPOST
(
'search_contact'
)));
104
exit;
105
}
106
if
(
GETPOST
(
'search_expensereport'
) !=
''
) {
107
header(
"Location: "
.DOL_URL_ROOT.
'/expensereport/list.php?mode=search&sall='
.urlencode(
GETPOST
(
'search_expensereport'
)));
108
exit;
109
}
110
if
(
GETPOST
(
'search_holiday'
) !=
''
) {
111
header(
"Location: "
.DOL_URL_ROOT.
'/holiday/list.php?mode=search&sall='
.urlencode(
GETPOST
(
'search_holiday'
)));
112
exit;
113
}
114
if
(
GETPOST
(
'search_member'
) !=
''
) {
115
header(
"Location: "
.DOL_URL_ROOT.
'/adherents/list.php?mode=search&sall='
.urlencode(
GETPOST
(
'search_member'
)));
116
exit;
117
}
118
if
(
GETPOST
(
'search_project'
) !=
''
) {
119
header(
"Location: "
.DOL_URL_ROOT.
'/projet/list.php?mode=search&search_all='
.urlencode(
GETPOST
(
'search_project'
)));
120
exit;
121
}
122
if
(
GETPOST
(
'search_task'
) !=
''
) {
123
header(
"Location: "
.DOL_URL_ROOT.
'/projet/tasks/list.php?mode=search&search_all='
.urlencode(
GETPOST
(
'search_task'
)));
124
exit;
125
}
126
127
if
(
GETPOST
(
'search_user'
) !=
''
) {
128
header(
"Location: "
.DOL_URL_ROOT.
'/user/list.php?search_all='
.urlencode(
GETPOST
(
'search_user'
)));
129
exit;
130
}
131
if
(
GETPOST
(
'search_group'
) !=
''
) {
132
header(
"Location: "
.DOL_URL_ROOT.
'/user/group/list.php?search_all='
.urlencode(
GETPOST
(
'search_group'
)));
133
exit;
134
}
135
136
137
// If we are here, search was called with no supported criteria
138
print
'The wrapper search.php was called without any search criteria'
;
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition
functions.lib.php:1082
Generated on Mon Jun 22 2026 21:04:42 for
dolibarr
by Doxygen 1.11.0