forked from Wavyzz/dolibarr
57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
<?PHP
|
|
/* 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
|
|
* 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");
|
|
|
|
if ($HTTP_POST_VARS["action"] == 'add') {
|
|
$sql = "UPDATE llx_societe SET note='$note' WHERE idp=$socid";
|
|
$result = $db->query($sql);
|
|
}
|
|
/*
|
|
*
|
|
*/
|
|
llxHeader();
|
|
|
|
if ($socid > 0) {
|
|
|
|
$soc = new Societe($db, $socid);
|
|
$soc->fetch($socid);
|
|
/*
|
|
*
|
|
*/
|
|
|
|
print_titre($soc->nom);
|
|
|
|
print '<table class="border" border="1" width="100%" cellspacing="0" cellpadding="3">';
|
|
print "<tr><td>";
|
|
print "<form method=\"post\" action=\"socnote.php?socid=$soc->id\">";
|
|
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
|
|
print "<textarea name=\"note\" cols=\"60\" rows=\"10\">$soc->note</textarea><br>";
|
|
print '<input type="submit" value="Enregistrer">';
|
|
print "</form></td></tr>";
|
|
print "</table>";
|
|
}
|
|
|
|
$db->close();
|
|
|
|
llxFooter();
|
|
?>
|