dolibarr/htdocs/societe/info.php

73 lines
1.8 KiB
PHP
Raw Normal View History

2005-11-11 17:37:53 +01:00
<?php
2008-02-24 15:41:07 +01:00
/* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
2005-11-11 17:37:53 +01:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
\file htdocs/societe/info.php
\ingroup societe
\brief Page des informations d'une societe
2008-02-24 15:41:07 +01:00
\version $Id$
2005-11-11 17:37:53 +01:00
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
require_once(DOL_DOCUMENT_ROOT."/societe.class.php");
2005-11-11 17:37:53 +01:00
$langs->load("companies");
2005-12-02 14:20:06 +01:00
$langs->load("other");
2005-11-11 17:37:53 +01:00
2008-02-25 17:30:43 +01:00
// Security check
2006-03-10 18:32:47 +01:00
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
2008-02-25 21:03:21 +01:00
if ($user->societe_id) $socid=$user->societe_id;
2008-03-01 02:26:41 +01:00
$result = restrictedArea($user, 'societe','','');
2006-03-10 18:32:47 +01:00
2005-11-11 17:37:53 +01:00
/*
2008-02-24 15:41:07 +01:00
* View
*/
llxHeader();
2005-11-11 17:37:53 +01:00
$soc = new Societe($db);
2006-03-10 19:08:37 +01:00
$soc->id = $socid;
$soc->fetch($socid);
$soc->info($socid);
2005-11-11 17:37:53 +01:00
/*
* Affichage onglets
*/
$head = societe_prepare_head($soc);
2005-11-11 17:37:53 +01:00
2008-02-24 15:41:07 +01:00
dolibarr_fiche_head($head, 'info', $langs->trans("ThirdParty"));
2005-11-11 17:37:53 +01:00
print '<table width="100%"><tr><td>';
dolibarr_print_object_info($soc);
print '</td></tr></table>';
print '</div>';
// Juste pour <20>viter bug IE qui r<>organise mal div pr<70>c<EFBFBD>dents si celui-ci absent
print '<div class="tabsAction">';
print '</div>';
$db->close();
llxFooter('$Date$ - $Revision$');
?>