From 485c169d9a0f5c16cbb126fcbee3696f64a23e41 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 8 Oct 2004 16:44:49 +0000 Subject: [PATCH] Nouveau fichier --- htdocs/lolix/societe/fiche.php | 177 +++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 htdocs/lolix/societe/fiche.php diff --git a/htdocs/lolix/societe/fiche.php b/htdocs/lolix/societe/fiche.php new file mode 100644 index 00000000000..add2bf8001c --- /dev/null +++ b/htdocs/lolix/societe/fiche.php @@ -0,0 +1,177 @@ + + * + * 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. + * + * $Id$ + * $Source$ + * + */ + +require("pre.inc.php"); + +/* + * Sécurité accés client + */ + +$socid = $_GET["id"]; + +/* + * + * + */ +llxHeader(); +$form = new Form($db); + +$soc = new LolixSociete($db); +$soc->fetch($_GET["id"]); + +fiche_header($soc->id); + +/* + * + */ + +if ($_GET["action"] == 'edit') +{ + print_titre("Edition de la société"); + + if ($socid) + { + $soc = new Societe($db); + $soc->id = $socid; + $soc->fetch($socid); + + print '
'; + print ''; + + print ''; + print ''; + print ''; + + print ''; + print ''; + + print ''; + + print ''; + print ''; + print ''; + + print ''; + print ''; + + print ''; + print ''; + + + print ''; + + print ''; + + print ''; + print ''; + + print ''; + print ''; + print ''; + print '
Nom
AdresseCP '; + print 'Ville 
Département'; + print $form->select_departement($soc->departement_id); + print 'Pays'; + print $form->select_pays($soc->pays_id); + print '
TéléphoneFax
Webhttp://
SirenSiret
ApeCapital '.MAIN_MONNAIE.'
Forme juridique'; + $html = new Form($db); + print $html->select_array("forme_juridique_id",$soc->forme_juridique_array(), $soc->forme_juridique_id,0,1); + print '
Effectif'; + print $html->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id); + print '
'; + print '
'; + + } +} +else +{ + + print ''; + print ''; + print ''; + + + print ''; + + + print ''; + print ''; + print ''; + + print ''; + + print ''; + print ''; + print ''; + + print ''; + print ''; + + $file = DOL_DOCUMENT_ROOT . "/document/sl/catalogue-".$soc->id.".pdf"; + + print ''; + + if (file_exists($file)) + { + print ''; + print ''; + print ''; + } + print ''; +/* + * + */ + + +print '
Nom'.$soc->nom.'Mise à jour'.strftime("%d %B %Y %H:%M",$socdet->date_fiche_update).' '; + print '
Adresse'.nl2br($soc->adresse).' '; + print '
'.$soc->cp.' '.$soc->ville.'
'.$soc->pays.'
Téléphone'.dolibarr_print_phone($soc->tel).'Fax'.dolibarr_print_phone($soc->fax).'
Web'; + if ($soc->url) { print 'http://'.$soc->url.''; } + print 'Siren'.$soc->siren.' 
Forme juridique'.$soc->forme_juridique.'
Effectif'.$soc->effectif.'Création'.strftime("%d %B %Y",$soc->date_creation).'
Contact'.$socdet->contact_nom.' '.$socdet->contact_email.'  
'.img_file_new().''.img_pdf().''.filesize($file). ' bytes'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'
'; +print '
'; +/* + * + */ + +} + +print '
'; + +if ($soc->active == 0) +{ + print 'Activer'; +} + + + +print '
'; +/* + * + */ + + +$db->close(); + +llxFooter("Dernière modification $Date$ révision $Revision$"); +?>