* * $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(); $db = new Db(); if ($sortfield == "") { $sortfield="a.datea"; } if ($sortorder == "") { $sortorder="DESC"; } $active["1"] = "Offres en ligne"; $active["-1"] = "Moderation"; $active["-2"] = "Refusées"; $active["0"] = "Rédaction"; $active["-3"] = "Désactivées"; $active["-4"] = "Supprimées"; $yn["t"] = "oui"; $yn["f"] = "non"; $deacmeth["b"] = "robots"; if ($page == -1) { $page = 0 ; } $limit = 26; $offset = $limit * $page ; $pageprev = $page - 1; $pagenext = $page + 1; print "
"; $bc[0]="bgcolor=\"#90c090\""; $bc[1]="bgcolor=\"#b0e0b0\""; $sql = "SELECT a.fk_action, s.nom as societe, s.idp as socidp,a.id, int(a.datea) as da, a.datea, c.libelle, a.author FROM actioncomm as a, c_actioncomm as c, societe as s WHERE a.fk_soc = s.idp AND c.id=a.fk_action"; $sql .= " ORDER BY a.fk_soc ASC, a.datea ASC "; $sql .= " LIMIT $limit OFFSET $offset"; $result = $db->query($sql); $num = $db->num_rows(); $i = 0; $j = 0 ; print "
| "; print " | Societe | "; print "Date | "; print "Dernière action | "; print "Auteur | "; print "|
| " . ($j + 1 + ($limit * $page)) . " | "; print "socidp\">$objold->societe | \n"; print "" .gljftime("%d %b %Y %H:%M",$objold->datea)." | \n"; print "$objold->libelle | \n"; print "$objold->author | \n"; print "$objold->stcomm | \n"; print "
| " . ($j + 1 + ($limit * $page)) . " | "; print "socidp\">$objold->societe | \n"; print "" .gljftime("%d %b %Y %H:%M",$objold->datea)." | \n"; print "$objold->libelle | \n"; print "$objold->author | \n"; print "$objold->stcomm | \n"; print "