mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update list.php
This commit is contained in:
parent
49f869352c
commit
997c9e763a
|
|
@ -34,6 +34,8 @@
|
|||
* \brief Page to show list of third parties
|
||||
*/
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
require_once '../main.inc.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||
|
|
@ -42,20 +44,27 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/client.class.php';
|
||||
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("companies", "commercial", "customers", "suppliers", "bills", "compta", "categories", "cashdesk"));
|
||||
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
|
||||
// Get parameters
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$massaction = GETPOST('massaction', 'alpha');
|
||||
$show_files = GETPOST('show_files', 'int');
|
||||
$confirm = GETPOST('confirm', 'alpha');
|
||||
$toselect = GETPOST('toselect', 'array');
|
||||
$confirm = GETPOST('confirm', 'alpha');
|
||||
$toselect = GETPOST('toselect', 'array');
|
||||
$contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'thirdpartylist';
|
||||
$optioncss = GETPOST('optioncss', 'alpha');
|
||||
$optioncss = GETPOST('optioncss', 'alpha');
|
||||
|
||||
if ($contextpage == 'poslist') {
|
||||
$optioncss = 'print';
|
||||
}
|
||||
|
||||
$mode = GETPOST("mode", 'alpha');
|
||||
|
||||
// search fields
|
||||
$search_all = trim(GETPOST('search_all', 'alphanohtml') ?GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
|
||||
$search_cti = preg_replace('/^0+/', '', preg_replace('/[^0-9]/', '', GETPOST('search_cti', 'alphanohtml'))); // Phone number without any special chars
|
||||
|
||||
|
|
@ -98,6 +107,7 @@ $search_stcomm = GETPOST('search_stcomm', 'int');
|
|||
$search_import_key = trim(GETPOST("search_import_key", "alpha"));
|
||||
$search_parent_name = trim(GETPOST('search_parent_name', 'alpha'));
|
||||
|
||||
|
||||
$type = GETPOST('type', 'alpha');
|
||||
$place = GETPOST('place', 'aZ09') ? GETPOST('place', 'aZ09') : '0'; // $place is string id of table for Bar or Restaurant
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user