diff --git a/htdocs/actioncomm.class.php3 b/htdocs/actioncomm.class.php similarity index 100% rename from htdocs/actioncomm.class.php3 rename to htdocs/actioncomm.class.php diff --git a/htdocs/cactioncomm.class.php3 b/htdocs/cactioncomm.class.php3 deleted file mode 100644 index 8109a51afc3..00000000000 --- a/htdocs/cactioncomm.class.php3 +++ /dev/null @@ -1,91 +0,0 @@ - - * - * 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$ - * - */ - -class CActioncomm { - var $id; - var $libelle; - - Function CActioncomm($DB=0) - { - $this->db = $DB; - } - /* - * - * - * - */ - - Function liste_array() - { - $ga = array(); - - $sql = "SELECT id, libelle FROM c_actioncomm"; - $sql .= " ORDER BY id"; - - if ($this->db->query($sql) ) - { - $nump = $this->db->num_rows(); - - if ($nump) - { - $i = 0; - while ($i < $nump) - { - $obj = $this->db->fetch_object($i); - - $ga[$obj->id] = $obj->libelle; - $i++; - } - } - return $ga; - } - else - { - print $this->db->error(); - } - } - - - Function fetch($db, $id) - { - - $sql = "SELECT libelle FROM c_actioncomm WHERE id=$id;"; - - if ($db->query($sql) ) - { - if ($db->num_rows()) - { - $obj = $db->fetch_object(0); - - $this->id = $id; - $this->libelle = $obj->libelle; - - $db->free(); - } - } - else - { - print $db->error(); - } - } -} -?> diff --git a/htdocs/charge.class.php3 b/htdocs/charge.class.php similarity index 100% rename from htdocs/charge.class.php3 rename to htdocs/charge.class.php diff --git a/htdocs/chargesociales.class.php3 b/htdocs/chargesociales.class.php similarity index 100% rename from htdocs/chargesociales.class.php3 rename to htdocs/chargesociales.class.php diff --git a/htdocs/compta/bank/bank.lib.php3 b/htdocs/compta/bank/bank.lib.php similarity index 100% rename from htdocs/compta/bank/bank.lib.php3 rename to htdocs/compta/bank/bank.lib.php diff --git a/htdocs/compta/bank/bilan.php3 b/htdocs/compta/bank/bilan.php similarity index 100% rename from htdocs/compta/bank/bilan.php3 rename to htdocs/compta/bank/bilan.php diff --git a/htdocs/compta/bank/rappro.php3 b/htdocs/compta/bank/rappro.php similarity index 100% rename from htdocs/compta/bank/rappro.php3 rename to htdocs/compta/bank/rappro.php diff --git a/htdocs/compta/bank/virement.php3 b/htdocs/compta/bank/virement.php similarity index 100% rename from htdocs/compta/bank/virement.php3 rename to htdocs/compta/bank/virement.php diff --git a/htdocs/compta/charges.php3 b/htdocs/compta/charges.php similarity index 100% rename from htdocs/compta/charges.php3 rename to htdocs/compta/charges.php diff --git a/htdocs/compta/clients.php3 b/htdocs/compta/clients.php similarity index 100% rename from htdocs/compta/clients.php3 rename to htdocs/compta/clients.php diff --git a/htdocs/compta/config.php3 b/htdocs/compta/config.php similarity index 100% rename from htdocs/compta/config.php3 rename to htdocs/compta/config.php diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php similarity index 100% rename from htdocs/compta/facture.php3 rename to htdocs/compta/facture.php diff --git a/htdocs/compta/genfac.php3 b/htdocs/compta/genfac.php3 deleted file mode 100644 index ca58b2eed16..00000000000 --- a/htdocs/compta/genfac.php3 +++ /dev/null @@ -1,221 +0,0 @@ - - * - * $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"); -require("../lib/functions.inc.php3"); -llxHeader(); - -if ($sortorder == "") { - $sortfield="lower(s.nom)"; - $sortorder="ASC"; -} -$bc[0]="bgcolor=\"#90c090\""; -$bc[1]="bgcolor=\"#b0e0b0\""; - -$yn["1"] = "oui"; -$yn["0"] = "non"; - -if ($action == 'valid') { - $sql = "UPDATE llx_facture set fk_statut = 1 WHERE rowid = $facid ;"; - $result = $db->query( $sql); -} - -if ($action == 'payed') { - $sql = "UPDATE llx_facture set paye = 1 WHERE rowid = $facid ;"; - $result = $db->query( $sql); -} - -if ($action == 'delete') { - $sql = "DELETE FROM llx_facture WHERE rowid = $facid ; DELETE FROM llx_fa_pr WHERE fk_facture = $facid"; - $result = $db->query( $sql); - $facid = 0 ; -} - - -if ($facid > 0) { - - $sql = "SELECT s.nom as socnom, s.idp as socidp, f.facnumber, f.amount, int(f.datef) as df, f.paye, f.fk_statut as statut, f.author "; - $sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.rowid = $facid"; - - $result = $db->query( $sql); - - if ($result) { - $num = $db->num_rows(); - if ($num) { - $obj = $db->fetch_object( $i); - } - $db->free(); - } - - - $factex = "\documentclass[a4paper,11pt]{article} - -\usepackage[francais]{babel} - -\usepackage[dvips]{graphics} - -\usepackage{fancyhdr} -% -% - -\\newcommand{\aquatre}{ - \setlength{\oddsidemargin}{0.5cm} - \setlength{\evensidemargin}{0.5cm} - \setlength{\\textwidth}{16cm} - %\setlength{\\topmargin}{0.5cm} - %\setlength{\\textheight}{24cm} - %\setlength{\headheight}{0cm} - %\setlength{\headsep}{0cm} - \setlength{\parindent}{0.5cm} - \setlength{\parskip}{0.2cm} -} - -% -% Debut du document -% -\aquatre - - -\\title{Conseil d'administration du 30 juin 2001} - -\fancyhead{} -\fancyhead[RO,LE]{Conseil d'administration du 30 juin 2001} -\fancyfoot[C]{Page \\thepage} -\pagestyle{fancy} - -\begin{document} - -toto - -\end{document}"; - - - $filename = "/tmp/fac.tex"; - - $fp = fopen($filename, "w"); - - fwrite($fp, $factex); - - fclose($fp); - print "latex $filename

"; - - $outp = `cd /tmp ; pdflatex $filename`; - - print "

$outp

"; - - -} else { - /* - * Liste - * - */ - - function liste($db, $paye) { - global $bc, $year, $month; - $sql = "SELECT s.nom, s.idp, f.facnumber, f.amount, int(f.datef) as df, f.paye, f.rowid as facid "; - $sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.paye = $paye"; - - if ($socidp) { - $sql .= " AND s.idp = $socidp"; - } - - if ($month > 0) { - $sql .= " AND date_part('month', date(f.datef)) = $month"; - } - if ($year > 0) { - $sql .= " AND date_part('year', date(f.datef)) = $year"; - } - - $sql .= " ORDER BY f.datef DESC "; - - $result = $db->query($sql); - if ($result) { - $num = $db->num_rows(); - if ($num > 0) { - $i = 0; - print "

"; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "\n"; - $var=True; - while ($i < $num) { - $objp = $db->fetch_object( $i); - $var=!$var; - print ""; - print "\n"; - print "\n"; - - - print "\n"; - - if ($objp->df > 0 ) { - print "\n"; - } else { - print "\n"; - } - - print "\n"; - - $yn[1] = "oui"; - $yn[0] = "non"; - - $total = $total + $objp->amount; - print "\n"; - print "\n"; - print "\n"; - - - - $i++; - } - print ""; - print ""; - print ""; - print "
[Tous]SocieteNumDateMontantPayéMoyenne
[idp\">Filtre]idp\">$objp->nomfacid\">$objp->facnumber"; - $y = strftime("%Y",$objp->df); - $m = strftime("%m",$objp->df); - - print strftime("%d",$objp->df)."\n"; - print " "; - print strftime("%B",$objp->df)."\n"; - print " "; - print strftime("%Y",$objp->df)."!!!$objp->amount".$yn[$objp->paye]."".round($total / ($i + 1))."
$i facturesTotal : ".round($total * 6.55957)." FFTotal : $totaleuros HTMoyenne : ".round($total/ $i)."
"; - $db->free(); - } - } - } - print "

"; - liste($db, 0); - print "

"; - liste($db, 1); - -} - -$db->close(); - -llxFooter("Dernière modification $Date$ révision $Revision$"); -?> diff --git a/htdocs/compta/ligne.php3 b/htdocs/compta/ligne.php similarity index 100% rename from htdocs/compta/ligne.php3 rename to htdocs/compta/ligne.php diff --git a/htdocs/compta/paiement.php3 b/htdocs/compta/paiement.php similarity index 100% rename from htdocs/compta/paiement.php3 rename to htdocs/compta/paiement.php diff --git a/htdocs/compta/pmt.php3 b/htdocs/compta/pmt.php similarity index 100% rename from htdocs/compta/pmt.php3 rename to htdocs/compta/pmt.php diff --git a/htdocs/compta/pointmort.php3 b/htdocs/compta/pointmort.php similarity index 100% rename from htdocs/compta/pointmort.php3 rename to htdocs/compta/pointmort.php diff --git a/htdocs/compta/propal.php3 b/htdocs/compta/propal.php similarity index 100% rename from htdocs/compta/propal.php3 rename to htdocs/compta/propal.php diff --git a/htdocs/compta/tva.php3 b/htdocs/compta/tva.php similarity index 100% rename from htdocs/compta/tva.php3 rename to htdocs/compta/tva.php diff --git a/htdocs/contact.class.php3 b/htdocs/contact.class.php similarity index 100% rename from htdocs/contact.class.php3 rename to htdocs/contact.class.php diff --git a/htdocs/fourn/contact.php3 b/htdocs/fourn/contact.php similarity index 100% rename from htdocs/fourn/contact.php3 rename to htdocs/fourn/contact.php diff --git a/htdocs/fourn/people.php3 b/htdocs/fourn/people.php similarity index 100% rename from htdocs/fourn/people.php3 rename to htdocs/fourn/people.php diff --git a/htdocs/lib/mysql.lib.php3 b/htdocs/lib/mysql.lib.php similarity index 100% rename from htdocs/lib/mysql.lib.php3 rename to htdocs/lib/mysql.lib.php diff --git a/htdocs/product.class.php3 b/htdocs/product.class.php similarity index 100% rename from htdocs/product.class.php3 rename to htdocs/product.class.php diff --git a/htdocs/project.class.php3 b/htdocs/project.class.php similarity index 100% rename from htdocs/project.class.php3 rename to htdocs/project.class.php diff --git a/htdocs/service.class.php3 b/htdocs/service.class.php similarity index 100% rename from htdocs/service.class.php3 rename to htdocs/service.class.php diff --git a/htdocs/soc.php3 b/htdocs/soc.php similarity index 100% rename from htdocs/soc.php3 rename to htdocs/soc.php diff --git a/htdocs/societe.class.php3 b/htdocs/societe.class.php similarity index 100% rename from htdocs/societe.class.php3 rename to htdocs/societe.class.php diff --git a/htdocs/tva.class.php3 b/htdocs/tva.class.php similarity index 100% rename from htdocs/tva.class.php3 rename to htdocs/tva.class.php