Fix: La redirection http est faite par "header..." et non "print header..."
This commit is contained in:
parent
1c091ce211
commit
f13ae452ca
@ -39,10 +39,8 @@ $langs->load("customers");
|
|||||||
$langs->load("suppliers");
|
$langs->load("suppliers");
|
||||||
|
|
||||||
|
|
||||||
/*
|
// Sécurité accés client
|
||||||
* Sécurité accés client
|
$socid=0;
|
||||||
*/
|
|
||||||
|
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$action = '';
|
$action = '';
|
||||||
@ -50,8 +48,6 @@ if ($user->societe_id > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// llxHeader();
|
|
||||||
|
|
||||||
$search_nom=isset($_GET["search_nom"])?$_GET["search_nom"]:$_POST["search_nom"];
|
$search_nom=isset($_GET["search_nom"])?$_GET["search_nom"]:$_POST["search_nom"];
|
||||||
$search_ville=isset($_GET["search_ville"])?$_GET["search_ville"]:$_POST["search_ville"];
|
$search_ville=isset($_GET["search_ville"])?$_GET["search_ville"]:$_POST["search_ville"];
|
||||||
|
|
||||||
@ -71,9 +67,11 @@ $pagenext = $page + 1;
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Recherche
|
* Actions
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Recherche
|
||||||
$mode=isset($_GET["mode"])?$_GET["mode"]:$_POST["mode"];
|
$mode=isset($_GET["mode"])?$_GET["mode"]:$_POST["mode"];
|
||||||
$modesearch=isset($_GET["mode-search"])?$_GET["mode-search"]:$_POST["mode-search"];
|
$modesearch=isset($_GET["mode-search"])?$_GET["mode-search"]:$_POST["mode-search"];
|
||||||
|
|
||||||
@ -91,15 +89,12 @@ if ($mode == 'search')
|
|||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$socid = $obj->idp;
|
$socid = $obj->idp;
|
||||||
print header("location: soc.php?socid=$socid");
|
header("location: soc.php?socid=$socid");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
|
// Sécurité accès client
|
||||||
/*
|
|
||||||
* Sécurité accés client
|
|
||||||
*/
|
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$action = '';
|
$action = '';
|
||||||
@ -107,6 +102,7 @@ if ($mode == 'search')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
// As-t-on cliqué sur purge des criètres de recherche
|
// As-t-on cliqué sur purge des criètres de recherche
|
||||||
@ -130,7 +126,6 @@ $sql .= ", s.siren";
|
|||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."c_stcomm as st";
|
$sql.= ", ".MAIN_DB_PREFIX."c_stcomm as st";
|
||||||
$sql.= " WHERE s.fk_stcomm = st.id";
|
$sql.= " WHERE s.fk_stcomm = st.id";
|
||||||
|
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$sql .= " AND s.idp = " . $user->societe_id;
|
$sql .= " AND s.idp = " . $user->societe_id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user