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 '
'; + + } +} +else +{ + + print '| Nom | '.$soc->nom.' | '; + print '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).' | '; + print 'Fax | '.dolibarr_print_phone($soc->fax).' |
| Web | '; + if ($soc->url) { print 'http://'.$soc->url.''; } + print ' | '; + + print 'Siren | '.$soc->siren.' |
| Forme juridique | '.$soc->forme_juridique.' | ||
| Effectif | '.$soc->effectif.' | '; + print 'Création | '.strftime("%d %B %Y",$soc->date_creation).' |
| Contact | '.$socdet->contact_nom.' '.$socdet->contact_email.' | '; + print '||
| '.img_file_new().' | '; + + if (file_exists($file)) + { + print ''.img_pdf().' | '; + print ''.filesize($file). ' bytes | '; + print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).' | '; + } + print '