* * $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 ($sortfield == "") { $sortfield="a.datea"; } if ($sortorder == "") { $sortorder="DESC"; } if ($action == 'del') { $sql = "DELETE FROM llx_soc_recontact WHERE rowid=$rowid"; $result = $db->query( $sql); } $yn["t"] = "oui"; $yn["f"] = "non"; if ($page == -1) { $page = 0 ; } $limit = 26; $offset = $limit * $page ; $pageprev = $page - 1; $pagenext = $page + 1; print "
"; print "< Prev\n| "; for ($i = 65 ; $i < 91; $i++) { print ""; print chr($i) ; print " | "; } print " Next >\n"; print "

"; $bc[0]="bgcolor=\"#90c090\""; $bc[1]="bgcolor=\"#b0e0b0\""; $sql = "SELECT s.nom as societe, s.idp as socidp,".$db->pdate("re.datere")." as datere, re.rowid, re.author"; $sql .= " FROM societe as s, llx_soc_recontact as re"; $sql .= " WHERE re.fk_soc = s.idp"; $sql .= " ORDER BY re.datere ASC "; $sql .= $db->plimit( $limit, $offset); $result = $db->query($sql); if ($result) { $num = $db->num_rows(); $i = 0; $j = 0 ; print "

"; print ""; print ""; print ""; print ""; print "\n"; $var=True; while ($i < $num) { $obj = $db->fetch_object( $i); $var=!$var; print ""; print ""; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; $j++; $objold = $obj; $i++; } print "
 SocieteA recontacter leAuteur
" . ($j + 1 + ($limit * $page)) . "socidp\">$obj->societe" .strftime("%d",$obj->datere)."" .strftime("%B",$obj->datere)."" .strftime("%Y",$obj->datere)."$obj->authorrowid\">Supprimer ce rappel
"; } $db->free(); $db->close(); llxFooter(); ?>