* * 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"); $page = $_GET["page"]; $sortorder = $_GET["sortorder"]; $sortfield = $_GET["sortfield"]; if ($_GET["action"] == "create") { $ct = new CommandeTableur($db, $user); $ct->create(); } llxHeader("","Telephonie - Commande - Archives"); /* * Sécurité accés client */ if ($user->societe_id > 0) { $action = ''; $socidp = $user->societe_id; } /* ***************************************** */ $sql = "SELECT c.filename, u.name, u.firstname, f.nom,".$db->pdate("c.datec"). " as datec"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_commande as c"; $sql .= " , ".MAIN_DB_PREFIX."telephonie_fournisseur as f"; $sql .= " ,".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE c.fk_user_creat = u.rowid AND c.fk_fournisseur = f.rowid"; if ($_GET["search_ligne"]) { $sql .= " AND l.ligne LIKE '%".$_GET["search_ligne"]."%'"; } $sql .= " ORDER BY c.datec DESC";//$sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); $result = $db->query($sql); if ($result) { $num = $db->num_rows(); $i = 0; print_barre_liste("Commandes archives", $page, "liste.php", "", $sortfield, $sortorder, '', $num); print ''; print ''; print ''; print ''; print ''; print "\n"; /* print ''; print ''; print ''; print ''; print ''; */ print ''; $var=True; while ($i < min($num,$conf->liste_limit)) { $obj = $db->fetch_object($i); $var=!$var; print ""; print "\n"; print "\n"; print "\n"; $dir = $conf->telephonie->dir_output . "/ligne/commande/"; $relativepath = urlencode("ligne/commande/".$obj->filename); print ''; print "\n"; $i++; } print "
DateUtilisateurFournisseurFichier
".strftime("%a %d %b %Y %HH%M",$obj->datec)."".$obj->firstname . " ".$obj->name."".$obj->nom."'.$obj->filename.'
"; $db->free(); } else { dolibarr_print_error($db); } /* ******************************************** */ $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$"); ?>