Esempio n. 1
0
	}
	else
	{
		Header("Location: commerciaux.php?socid=".$_GET["socid"]);
		exit;
	}
}

if($_GET["socid"] && $_GET["delcommid"])
{
	if ($user->rights->societe->creer)
	{
		$soc = new Societe($db);
		$soc->id = $_GET["socid"];
		$soc->fetch($_GET["socid"]);
		$soc->del_commercial($user, $_GET["delcommid"]);

		Header("Location: commerciaux.php?socid=".$soc->id);
		exit;
	}
	else
	{
		Header("Location: commerciaux.php?socid=".$_GET["socid"]);
		exit;
	}
}


/*
 *	View
 */