*** empty log message ***

This commit is contained in:
Rodolphe Quiedeville 2002-05-29 15:18:01 +00:00
parent d846371b23
commit 8e3537b32d
4 changed files with 19 additions and 18 deletions

View File

@ -1,8 +1,5 @@
<?PHP
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* $Id$
* $Source$
*
* 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
@ -18,6 +15,9 @@
* 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.php3");
require("../contact.class.php3");

View File

@ -1,8 +1,5 @@
<?PHP
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* $Id$
* $Source$
*
* 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
@ -18,6 +15,9 @@
* 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("../main.inc.php3");
@ -33,7 +33,7 @@ function llxHeader($head = "", $urlp = "") {
$menu = new Menu();
$menu->add("/comm/index.php3", "Clients");
$menu->add("/comm/clients.php3", "Clients");
$menu->add("/fourn/index.php3", "Fournisseurs");

View File

@ -1,9 +1,6 @@
<?PHP
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* $Id$
* $Source$
*
* 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
@ -18,6 +15,9 @@
* 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.php3");
@ -135,11 +135,12 @@ if ($action == 'create') {
print '<tr><td colspan="2"><input type="submit" value="Mettre a jour"></td></tr>';
print '</table>';
print '</form>';
} else {
$soc = new Societe($db);
$soc->id = $socid;
$soc->fetch();
$soc->fetch($socid);
print "[<a href=\"soc.php3?socid=$socid&action=edit\">Editer</a>]";
print '<table border="1" cellpadding="3" cellspacing="0">';
print '<tr><td>Nom</td><td>'.$soc->nom.'</td></tr>';
@ -152,13 +153,9 @@ if ($action == 'create') {
print '<tr><td>Siren</td><td>'.$soc->siren.'</td></tr>';
print '<tr><td>Type</td><td><select name="type">';
print '</select>';
print '<tr><td>Client</td><td>'.$soc->client.'</td></tr>';
print '<tr><td>Fournisseur</td><td>'.$soc->fournisseur.'</td></tr>';
print '<tr><td>Effectif</td><td><select name="effectif">';
print '</select>';
print '</td></tr>';
print '</table>';

View File

@ -92,7 +92,7 @@ class Societe {
$sql = "SELECT s.idp, s.nom, s.address,".$this->db->pdate("s.datec")." as dc,";
$sql .= " s.tel, s.fax, s.url,s.cp,s.ville, s.note, s.siren";
$sql .= " s.tel, s.fax, s.url,s.cp,s.ville, s.note, s.siren, client, fournisseur";
$sql .= " FROM societe as s";
$sql .= " WHERE s.idp = ".$this->id;
@ -114,6 +114,10 @@ class Societe {
$this->ville = $obj->ville;
$this->siren = $obj->siren;
$this->client = $obj->client;
$this->fournisseur = $obj->fournisseur;
$this->note = $obj->note;
}