Fix on search all (trim search + search from smartphone).
This commit is contained in:
parent
1251807f54
commit
af1028576d
@ -61,9 +61,10 @@ $search_type=GETPOST("search_type");
|
|||||||
$search_email=GETPOST("search_email");
|
$search_email=GETPOST("search_email");
|
||||||
$search_categ = GETPOST("search_categ",'int');
|
$search_categ = GETPOST("search_categ",'int');
|
||||||
$catid = GETPOST("catid",'int');
|
$catid = GETPOST("catid",'int');
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
|
||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
|
|
||||||
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
|
|
||||||
if ($statut < -1) $statut = '';
|
if ($statut < -1) $statut = '';
|
||||||
|
|
||||||
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
||||||
|
|||||||
@ -41,7 +41,7 @@ $pagenext = $page + 1;
|
|||||||
if (! $sortorder) $sortorder="DESC";
|
if (! $sortorder) $sortorder="DESC";
|
||||||
if (! $sortfield) $sortfield="m.date_creat";
|
if (! $sortfield) $sortfield="m.date_creat";
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$sref=GETPOST("sref", "alpha");
|
$sref=GETPOST("sref", "alpha");
|
||||||
$filteremail=GETPOST('filteremail','alpha');
|
$filteremail=GETPOST('filteremail','alpha');
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ $viewstatut=GETPOST('viewstatut','alpha');
|
|||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
$object_statut=GETPOST('propal_statut','alpha');
|
$object_statut=GETPOST('propal_statut','alpha');
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg"));
|
$mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg"));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -67,7 +67,7 @@ $search_zip=GETPOST('search_zip','alpha');
|
|||||||
$search_state=trim(GETPOST("search_state"));
|
$search_state=trim(GETPOST("search_state"));
|
||||||
$search_country=GETPOST("search_country",'int');
|
$search_country=GETPOST("search_country",'int');
|
||||||
$search_type_thirdparty=GETPOST("search_type_thirdparty",'int');
|
$search_type_thirdparty=GETPOST("search_type_thirdparty",'int');
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$socid=GETPOST('socid','int');
|
$socid=GETPOST('socid','int');
|
||||||
$search_user=GETPOST('search_user','int');
|
$search_user=GETPOST('search_user','int');
|
||||||
$search_sale=GETPOST('search_sale','int');
|
$search_sale=GETPOST('search_sale','int');
|
||||||
|
|||||||
@ -52,7 +52,7 @@ $action = GETPOST('action','alpha');
|
|||||||
$confirm = GETPOST('confirm','alpha');
|
$confirm = GETPOST('confirm','alpha');
|
||||||
$sref = GETPOST('sref');
|
$sref = GETPOST('sref');
|
||||||
$sref_client = GETPOST('sref_client');
|
$sref_client = GETPOST('sref_client');
|
||||||
$sall = GETPOST('sall', 'alphanohtml');
|
$sall = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$socid = GETPOST('socid','int');
|
$socid = GETPOST('socid','int');
|
||||||
$selected = GETPOST('orders_to_invoice');
|
$selected = GETPOST('orders_to_invoice');
|
||||||
$sortfield = GETPOST("sortfield",'alpha');
|
$sortfield = GETPOST("sortfield",'alpha');
|
||||||
|
|||||||
@ -53,7 +53,7 @@ $langs->load('bills');
|
|||||||
$langs->load('companies');
|
$langs->load('companies');
|
||||||
$langs->load('products');
|
$langs->load('products');
|
||||||
|
|
||||||
$sall=trim(GETPOST('sall', 'alphanohtml'));
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$projectid=(GETPOST('projectid')?GETPOST('projectid','int'):0);
|
$projectid=(GETPOST('projectid')?GETPOST('projectid','int'):0);
|
||||||
|
|
||||||
$id=(GETPOST('id','int')?GETPOST('id','int'):GETPOST('facid','int')); // For backward compatibility
|
$id=(GETPOST('id','int')?GETPOST('id','int'):GETPOST('facid','int')); // For backward compatibility
|
||||||
|
|||||||
@ -47,7 +47,7 @@ $ref = ''; // There is no ref for contacts
|
|||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
$result = restrictedArea($user, 'contact', $contactid,'');
|
$result = restrictedArea($user, 'contact', $contactid,'');
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=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
|
$search_cti=preg_replace('/^0+/', '', preg_replace('/[^0-9]/', '', GETPOST('search_cti', 'alphanohtml'))); // Phone number without any special chars
|
||||||
$search_phone=GETPOST("search_phone");
|
$search_phone=GETPOST("search_phone");
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@ $search_type_thirdparty=GETPOST("search_type_thirdparty",'int');
|
|||||||
$search_contract=GETPOST('search_contract');
|
$search_contract=GETPOST('search_contract');
|
||||||
$search_ref_customer=GETPOST('search_ref_customer','alpha');
|
$search_ref_customer=GETPOST('search_ref_customer','alpha');
|
||||||
$search_ref_supplier=GETPOST('search_ref_supplier','alpha');
|
$search_ref_supplier=GETPOST('search_ref_supplier','alpha');
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_status=GETPOST('search_status');
|
$search_status=GETPOST('search_status');
|
||||||
$socid=GETPOST('socid');
|
$socid=GETPOST('socid');
|
||||||
$search_user=GETPOST('search_user','int');
|
$search_user=GETPOST('search_user','int');
|
||||||
|
|||||||
@ -130,11 +130,11 @@ if (! empty($conf->user->enabled) && empty($conf->global->MAIN_SEARCHFORM_USER_D
|
|||||||
}
|
}
|
||||||
if (! empty($conf->expensereport->enabled) && empty($conf->global->MAIN_SEARCHFORM_EXPENSEREPORT_DISABLED) && $user->rights->expensereport->lire)
|
if (! empty($conf->expensereport->enabled) && empty($conf->global->MAIN_SEARCHFORM_EXPENSEREPORT_DISABLED) && $user->rights->expensereport->lire)
|
||||||
{
|
{
|
||||||
$arrayresult['searchintoexpensereport']=array('position'=>210, 'img'=>'object_trip', 'label'=>$langs->trans("SearchIntoExpenseReports", $search_boxvalue), 'text'=>img_picto('','object_trip').' '.$langs->trans("SearchIntoExpenseReports", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/expensereport/list.php?mainmenu=hrm'.($search_boxvalue?'?sall='.urlencode($search_boxvalue):''));
|
$arrayresult['searchintoexpensereport']=array('position'=>210, 'img'=>'object_trip', 'label'=>$langs->trans("SearchIntoExpenseReports", $search_boxvalue), 'text'=>img_picto('','object_trip').' '.$langs->trans("SearchIntoExpenseReports", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/expensereport/list.php?mainmenu=hrm'.($search_boxvalue?'&sall='.urlencode($search_boxvalue):''));
|
||||||
}
|
}
|
||||||
if (! empty($conf->holiday->enabled) && empty($conf->global->MAIN_SEARCHFORM_HOLIDAY_DISABLED) && $user->rights->holiday->read)
|
if (! empty($conf->holiday->enabled) && empty($conf->global->MAIN_SEARCHFORM_HOLIDAY_DISABLED) && $user->rights->holiday->read)
|
||||||
{
|
{
|
||||||
$arrayresult['searchintoleaves']=array('position'=>220, 'img'=>'object_holiday', 'label'=>$langs->trans("SearchIntoLeaves", $search_boxvalue), 'text'=>img_picto('','object_holiday').' '.$langs->trans("SearchIntoLeaves", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/holiday/list.php?mainmenu=hrm&'.($search_boxvalue?'sall='.urlencode($search_boxvalue):''));
|
$arrayresult['searchintoleaves']=array('position'=>220, 'img'=>'object_holiday', 'label'=>$langs->trans("SearchIntoLeaves", $search_boxvalue), 'text'=>img_picto('','object_holiday').' '.$langs->trans("SearchIntoLeaves", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/holiday/list.php?mainmenu=hrm'.($search_boxvalue?'&sall='.urlencode($search_boxvalue):''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -766,7 +766,7 @@ class Form
|
|||||||
$out .= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
$out .= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
$out.= '<select id="'.$htmlname.'" class="flat selectincoterm noenlargeonsmartphone" name="'.$htmlname.'" '.$htmloption.'>';
|
$out.= '<select id="'.$htmlname.'" class="flat selectincoterm minwidth100imp noenlargeonsmartphone" name="'.$htmlname.'" '.$htmloption.'>';
|
||||||
$out.= '<option value="0"> </option>';
|
$out.= '<option value="0"> </option>';
|
||||||
$num = $this->db->num_rows($resql);
|
$num = $this->db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
@ -86,9 +86,8 @@ else
|
|||||||
{
|
{
|
||||||
$tmp=explode('?', $val['url']);
|
$tmp=explode('?', $val['url']);
|
||||||
$urlaction=$tmp[0];
|
$urlaction=$tmp[0];
|
||||||
$keysearch=$tmp[1];
|
$keysearch='search_all';
|
||||||
$keysearch=preg_replace('/mainmenu=(.*)&/','',$keysearch);
|
|
||||||
$keysearch=preg_replace('/=/','',$keysearch);
|
|
||||||
$accesskey='';
|
$accesskey='';
|
||||||
if (! $accesskeyalreadyassigned[$val['label'][0]])
|
if (! $accesskeyalreadyassigned[$val['label'][0]])
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,7 +43,7 @@ if (! $sortorder) $sortorder="DESC";
|
|||||||
if (! $sortfield) $sortfield="d.datedon";
|
if (! $sortfield) $sortfield="d.datedon";
|
||||||
|
|
||||||
$statut=(GETPOST("statut",'intcomma')!='')?GETPOST("statut",'intcomma'):"-1";
|
$statut=(GETPOST("statut",'intcomma')!='')?GETPOST("statut",'intcomma'):"-1";
|
||||||
$search_all=GETPOST('sall', 'alphanohtml');
|
$search_all=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_ref=GETPOST('search_ref','alpha');
|
$search_ref=GETPOST('search_ref','alpha');
|
||||||
$search_company=GETPOST('search_company','alpha');
|
$search_company=GETPOST('search_company','alpha');
|
||||||
$search_name=GETPOST('search_name','alpha');
|
$search_name=GETPOST('search_name','alpha');
|
||||||
|
|||||||
@ -50,7 +50,7 @@ $search_state=trim(GETPOST("search_state"));
|
|||||||
$search_country=GETPOST("search_country",'int');
|
$search_country=GETPOST("search_country",'int');
|
||||||
$search_type_thirdparty=GETPOST("search_type_thirdparty",'int');
|
$search_type_thirdparty=GETPOST("search_type_thirdparty",'int');
|
||||||
$search_billed=GETPOST("search_billed",'int');
|
$search_billed=GETPOST("search_billed",'int');
|
||||||
$sall = GETPOST('sall', 'alphanohtml');
|
$sall = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
|
|
||||||
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
||||||
|
|||||||
@ -66,7 +66,7 @@ if (!$sortfield) $sortfield="d.date_debut";
|
|||||||
|
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
|
|
||||||
$sall = GETPOST('sall', 'alphanohtml');
|
$sall = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_ref = GETPOST('search_ref');
|
$search_ref = GETPOST('search_ref');
|
||||||
$search_user = GETPOST('search_user','int');
|
$search_user = GETPOST('search_user','int');
|
||||||
$search_amount_ht = GETPOST('search_amount_ht','alpha');
|
$search_amount_ht = GETPOST('search_amount_ht','alpha');
|
||||||
|
|||||||
@ -46,7 +46,7 @@ $search_ref=GETPOST('search_ref')?GETPOST('search_ref','alpha'):GETPOST('search_
|
|||||||
$search_company=GETPOST('search_company','alpha');
|
$search_company=GETPOST('search_company','alpha');
|
||||||
$search_desc=GETPOST('search_desc','alpha');
|
$search_desc=GETPOST('search_desc','alpha');
|
||||||
$search_status=GETPOST('search_status');
|
$search_status=GETPOST('search_status');
|
||||||
$sall=GETPOST('sall');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
$socid=GETPOST('socid','int');
|
$socid=GETPOST('socid','int');
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ if (! $sortfield)
|
|||||||
// Initialize technical object to manage context to save list fields
|
// Initialize technical object to manage context to save list fields
|
||||||
$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'interventionlist';
|
$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'interventionlist';
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_ref=GETPOST('search_ref')?GETPOST('search_ref','alpha'):GETPOST('search_inter','alpha');
|
$search_ref=GETPOST('search_ref')?GETPOST('search_ref','alpha'):GETPOST('search_inter','alpha');
|
||||||
$search_company=GETPOST('search_company','alpha');
|
$search_company=GETPOST('search_company','alpha');
|
||||||
$search_desc=GETPOST('search_desc','alpha');
|
$search_desc=GETPOST('search_desc','alpha');
|
||||||
|
|||||||
@ -53,7 +53,7 @@ $action = GETPOST('action', 'alpha');
|
|||||||
$confirm = GETPOST('confirm', 'alpha');
|
$confirm = GETPOST('confirm', 'alpha');
|
||||||
$sref = GETPOST('sref');
|
$sref = GETPOST('sref');
|
||||||
$sref_client = GETPOST('sref_client');
|
$sref_client = GETPOST('sref_client');
|
||||||
$sall = GETPOST('sall', 'alphanohtml');
|
$sall = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$socid = GETPOST('socid', 'int');
|
$socid = GETPOST('socid', 'int');
|
||||||
$selected = GETPOST('orders_to_invoice');
|
$selected = GETPOST('orders_to_invoice');
|
||||||
$sortfield = GETPOST("sortfield", 'alpha');
|
$sortfield = GETPOST("sortfield", 'alpha');
|
||||||
|
|||||||
@ -68,7 +68,7 @@ if ($user->societe_id > 0)
|
|||||||
|
|
||||||
$mode=GETPOST("mode");
|
$mode=GETPOST("mode");
|
||||||
|
|
||||||
$search_all = GETPOST('sall', 'alphanohtml');
|
$search_all = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_label = GETPOST("search_label","alpha");
|
$search_label = GETPOST("search_label","alpha");
|
||||||
$search_company = GETPOST("search_company","alpha");
|
$search_company = GETPOST("search_company","alpha");
|
||||||
$search_amount_no_tax = GETPOST("search_amount_no_tax","alpha");
|
$search_amount_no_tax = GETPOST("search_amount_no_tax","alpha");
|
||||||
|
|||||||
@ -73,7 +73,7 @@ if (! $sortorder) $sortorder="DESC";
|
|||||||
|
|
||||||
$id = GETPOST('id','int');
|
$id = GETPOST('id','int');
|
||||||
|
|
||||||
$sall = GETPOST('sall', 'alphanohtml');
|
$sall = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_ref = GETPOST('search_ref');
|
$search_ref = GETPOST('search_ref');
|
||||||
$month_create = GETPOST('month_create');
|
$month_create = GETPOST('month_create');
|
||||||
$year_create = GETPOST('year_create');
|
$year_create = GETPOST('year_create');
|
||||||
|
|||||||
@ -1829,10 +1829,6 @@ function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinpu
|
|||||||
{
|
{
|
||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
|
|
||||||
if (empty($htmlinputid)) {
|
|
||||||
$htmlinputid = $htmlinputname;
|
|
||||||
}
|
|
||||||
|
|
||||||
$ret='';
|
$ret='';
|
||||||
$ret.='<form action="'.$urlaction.'" method="post" class="searchform">';
|
$ret.='<form action="'.$urlaction.'" method="post" class="searchform">';
|
||||||
$ret.='<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
$ret.='<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|||||||
@ -327,7 +327,7 @@ class ActionsCardProduct
|
|||||||
$this->list_datas = array();
|
$this->list_datas = array();
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
$sall=trim(GETPOST('sall', 'alphanohtml'));
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
|
|
||||||
foreach($this->field_list as $field)
|
foreach($this->field_list as $field)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -51,7 +51,7 @@ $show_files=GETPOST('show_files','int');
|
|||||||
$confirm=GETPOST('confirm','alpha');
|
$confirm=GETPOST('confirm','alpha');
|
||||||
$toselect = GETPOST('toselect', 'array');
|
$toselect = GETPOST('toselect', 'array');
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_ref=GETPOST("search_ref");
|
$search_ref=GETPOST("search_ref");
|
||||||
$search_barcode=GETPOST("search_barcode");
|
$search_barcode=GETPOST("search_barcode");
|
||||||
$search_label=GETPOST("search_label");
|
$search_label=GETPOST("search_label");
|
||||||
|
|||||||
@ -42,7 +42,7 @@ $result=restrictedArea($user,'produit|service');
|
|||||||
$action=GETPOST('action','alpha');
|
$action=GETPOST('action','alpha');
|
||||||
$sref=GETPOST("sref");
|
$sref=GETPOST("sref");
|
||||||
$snom=GETPOST("snom");
|
$snom=GETPOST("snom");
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$type=GETPOST("type","int");
|
$type=GETPOST("type","int");
|
||||||
$search_barcode=GETPOST("search_barcode");
|
$search_barcode=GETPOST("search_barcode");
|
||||||
$catid=GETPOST('catid','int');
|
$catid=GETPOST('catid','int');
|
||||||
|
|||||||
@ -45,7 +45,7 @@ $result=restrictedArea($user,'produit|service');
|
|||||||
$action=GETPOST('action','alpha');
|
$action=GETPOST('action','alpha');
|
||||||
$sref=GETPOST("sref");
|
$sref=GETPOST("sref");
|
||||||
$snom=GETPOST("snom");
|
$snom=GETPOST("snom");
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$type=GETPOST("type","int");
|
$type=GETPOST("type","int");
|
||||||
$search_barcode=GETPOST("search_barcode",'alpha');
|
$search_barcode=GETPOST("search_barcode",'alpha');
|
||||||
$search_warehouse=GETPOST('search_warehouse','alpha');
|
$search_warehouse=GETPOST('search_warehouse','alpha');
|
||||||
|
|||||||
@ -32,7 +32,7 @@ $langs->load("stocks");
|
|||||||
// Security check
|
// Security check
|
||||||
$result=restrictedArea($user,'stock');
|
$result=restrictedArea($user,'stock');
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_ref=GETPOST("sref","alpha")?GETPOST("sref","alpha"):GETPOST("search_ref","alpha");
|
$search_ref=GETPOST("sref","alpha")?GETPOST("sref","alpha"):GETPOST("search_ref","alpha");
|
||||||
$search_label=GETPOST("snom","alpha")?GETPOST("snom","alpha"):GETPOST("search_label","alpha");
|
$search_label=GETPOST("snom","alpha")?GETPOST("snom","alpha"):GETPOST("search_label","alpha");
|
||||||
$search_status=GETPOST("search_status","int");
|
$search_status=GETPOST("search_status","int");
|
||||||
|
|||||||
@ -48,7 +48,7 @@ $result=restrictedArea($user,'produit|service');
|
|||||||
$action = GETPOST('action','alpha');
|
$action = GETPOST('action','alpha');
|
||||||
$sref = GETPOST('sref', 'alpha');
|
$sref = GETPOST('sref', 'alpha');
|
||||||
$snom = GETPOST('snom', 'alpha');
|
$snom = GETPOST('snom', 'alpha');
|
||||||
$sall = GETPOST('sall', 'alphanohtml');
|
$sall = trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$type = GETPOST('type','int');
|
$type = GETPOST('type','int');
|
||||||
$tobuy = GETPOST('tobuy', 'int');
|
$tobuy = GETPOST('tobuy', 'int');
|
||||||
$salert = GETPOST('salert', 'alpha');
|
$salert = GETPOST('salert', 'alpha');
|
||||||
|
|||||||
@ -31,9 +31,9 @@ $langs->load("stocks");
|
|||||||
// Security check
|
// Security check
|
||||||
$result=restrictedArea($user,'stock');
|
$result=restrictedArea($user,'stock');
|
||||||
|
|
||||||
$sref=GETPOST("sref");
|
$sref=GETPOST("sref",'alpha');
|
||||||
$snom=GETPOST("snom");
|
$snom=GETPOST("snom",'alpha');
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
|
|
||||||
$sortfield = GETPOST("sortfield");
|
$sortfield = GETPOST("sortfield");
|
||||||
$sortorder = GETPOST("sortorder");
|
$sortorder = GETPOST("sortorder");
|
||||||
|
|||||||
@ -49,7 +49,7 @@ $socid = GETPOST('socid','int');
|
|||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
$result = restrictedArea($user,'societe',$socid,'');
|
$result = restrictedArea($user,'societe',$socid,'');
|
||||||
|
|
||||||
$search_all=trim(GETPOST('sall', 'alphanohtml'));
|
$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
|
$search_cti=preg_replace('/^0+/', '', preg_replace('/[^0-9]/', '', GETPOST('search_cti', 'alphanohtml'))); // Phone number without any special chars
|
||||||
|
|
||||||
$search_id=trim(GETPOST("search_id","int"));
|
$search_id=trim(GETPOST("search_id","int"));
|
||||||
|
|||||||
@ -74,7 +74,7 @@ $search_montant_ttc=GETPOST('search_montant_ttc','alpha');
|
|||||||
$search_status=GETPOST('viewstatut','alpha')?GETPOST('viewstatut','alpha'):GETPOST('search_status','int');
|
$search_status=GETPOST('viewstatut','alpha')?GETPOST('viewstatut','alpha'):GETPOST('search_status','int');
|
||||||
$object_statut=$db->escape(GETPOST('supplier_proposal_statut'));
|
$object_statut=$db->escape(GETPOST('supplier_proposal_statut'));
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg"));
|
$mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg"));
|
||||||
$year=GETPOST("year");
|
$year=GETPOST("year");
|
||||||
$month=GETPOST("month");
|
$month=GETPOST("month");
|
||||||
|
|||||||
@ -40,7 +40,7 @@ if (! empty($conf->multicompany->enabled) && $conf->entity > 1 && $conf->global-
|
|||||||
|
|
||||||
$langs->load("users");
|
$langs->load("users");
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_group=GETPOST('search_group');
|
$search_group=GETPOST('search_group');
|
||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ $socid=0;
|
|||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
$socid = $user->societe_id;
|
$socid = $user->societe_id;
|
||||||
|
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_user=GETPOST('search_user','alpha');
|
$search_user=GETPOST('search_user','alpha');
|
||||||
|
|
||||||
$userstatic=new User($db);
|
$userstatic=new User($db);
|
||||||
|
|||||||
@ -107,7 +107,7 @@ if (is_array($extrafields->attribute_label) && count($extrafields->attribute_lab
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Init search fields
|
// Init search fields
|
||||||
$sall=GETPOST('sall', 'alphanohtml');
|
$sall=trim((GETPOST('search_all', 'alphanohtml')!='')?GETPOST('search_all', 'alphanohtml'):GETPOST('sall', 'alphanohtml'));
|
||||||
$search_user=GETPOST('search_user','alpha');
|
$search_user=GETPOST('search_user','alpha');
|
||||||
$search_login=GETPOST('search_login','alpha');
|
$search_login=GETPOST('search_login','alpha');
|
||||||
$search_lastname=GETPOST('search_lastname','alpha');
|
$search_lastname=GETPOST('search_lastname','alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user