Gestion du statut lors de la creation
This commit is contained in:
parent
016a0bd62b
commit
9d96b45cc7
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* 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
|
||||
@ -41,6 +41,9 @@ if ($action == 'add')
|
||||
$soc->url = $url;
|
||||
$soc->siren = $siren;
|
||||
|
||||
$soc->client = $client;
|
||||
$soc->fournisseur = $fournisseur;
|
||||
|
||||
$socid = $soc->create();
|
||||
}
|
||||
|
||||
@ -88,7 +91,13 @@ if ($action == 'create')
|
||||
|
||||
print '<tr><td>Siren</td><td><input type="text" name="siren"></td></tr>';
|
||||
|
||||
print '<tr><td>Client</td><td><select name="client">';
|
||||
print_oui_non($soc->client);
|
||||
print '</select>';
|
||||
|
||||
print '<tr><td>Fournisseur</td><td><select name="fournisseur">';
|
||||
print_oui_non($soc->fournisseur);
|
||||
print '</select>';
|
||||
|
||||
print '<tr><td colspan="2" align="center"><input type="submit" value="Ajouter"></td></tr>';
|
||||
print '</table>';
|
||||
@ -153,7 +162,14 @@ elseif ($action == 'edit')
|
||||
|
||||
print '<tr><td>Siren</td><td>'.$soc->siren.' </td></tr>';
|
||||
print '<tr><td>Client</td><td>'.$soc->client.'</td></tr>';
|
||||
print '<tr><td>Fournisseur</td><td>'.$soc->fournisseur.'</td></tr>';
|
||||
if ($soc->fournisseur)
|
||||
{
|
||||
print '<tr><td>Fournisseur</td><td>'.$soc->fournisseur.'</td><td><a href="/fourn/">Fiche</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<tr><td>Fournisseur</td><td>'.$soc->fournisseur.'</td></tr>';
|
||||
}
|
||||
print '</table>';
|
||||
|
||||
print "[<a href=\"soc.php3?socid=$socid&action=edit\">Editer</a>]";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* 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
|
||||
@ -34,6 +34,8 @@ class Societe {
|
||||
var $siren;
|
||||
var $client;
|
||||
var $note;
|
||||
var $fournisseur;
|
||||
|
||||
|
||||
Function Societe($DB, $id=0) {
|
||||
global $config;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user