[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * 4 * $Id: index.php,v 1.10 2005/03/18 23:56:43 eldy Exp $ 5 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/domain/index.php,v $ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 * 21 */ 22 23 require ("./pre.inc.php"); 24 25 llxHeader(); 26 27 28 29 print_titre("Noms de domaines internet"); 30 31 32 $sql = "SELECT label "; 33 $sql .= " FROM ".MAIN_DB_PREFIX."domain ORDER BY label ASC"; 34 35 $result = $db->query($sql); 36 if ($result) { 37 38 print "<form method=\"post\" action=\"index.php?viewall=$viewall&vline=$vline&account=$account\">"; 39 print "<input type=\"hidden\" name=\"action\" value=\"add\">"; 40 print "<table class=\"border\" width=\"100%\">"; 41 print "<tr class=\"liste_titre\">"; 42 print '<td>Date</td><td>'.$langs->trans("Description").'</td>'; 43 print '<td align="right">'.$langs->trans("Amount").'</td>'; 44 print "<td align=\"right\">Réduction</td>"; 45 print "</tr>\n"; 46 47 48 $var=True; 49 $num = $db->num_rows(); 50 $i = 0; $total = 0; 51 52 $sep = 0; 53 54 while ($i < $num) { 55 $objp = $db->fetch_object($result); 56 $total = $total + $objp->amount; 57 $time = time(); 58 59 $var=!$var; 60 61 print "<tr $bc[$var]>"; 62 63 print "<td>$objp->label</td>"; 64 65 print '<td><a href="http://www.'.$objp->label.'/">www.'.$objp->label.'</a></td>'; 66 67 print "</tr>"; 68 69 70 $i++; 71 } 72 $db->free(); 73 74 print "</table></form>"; 75 76 } else { 77 dolibarr_print_error($db); 78 } 79 80 81 $db->close(); 82 83 llxFooter("<em>Dernière modification $Date: 2005/03/18 23:56:43 $ révision $Revision: 1.10 $</em>"); 84 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |