* * $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 * (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. * */ require("./pre.inc.php3"); /* * */ llxHeader(); $db = new Db(); if ($sortorder == "") { $sortfield="lower(s.nom)"; $sortorder="ASC"; } if ($action == 'stcomm') { $sql = "UPDATE societe SET fk_stcomm=$stcommid WHERE idp=$socid"; $result = $db->query($sql); $sql = "INSERT INTO socstatutlog (datel, fk_soc, fk_statut, author) VALUES (now(),$socid,$stcommid,'" . $GLOBALS["REMOTE_USER"] . "')"; $result = $db->query($sql); if ($actioncommid) { $sql = "INSERT INTO actioncomm (datea, fk_action, fk_soc) VALUES (now(),$actioncommid,$socid)"; $result = $db->query($sql); } } if ($socid > 0) { $soc = new Societe($db, $socid); $soc->fetch($socid); /* * */ print_titre($soc->nom); print ''; print ""; print ""; print ""; print "
"; print "
id\">"; print ""; print "
"; print ""; print "
Notes actuelles
".nl2br($soc->note)."
"; } $db->close(); llxFooter(); ?>