Nouveau look

This commit is contained in:
Rodolphe Quiedeville 2004-02-13 14:23:48 +00:00
parent b77885c5d5
commit 29cbe0d72b

View File

@ -1,5 +1,5 @@
<?PHP <?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -70,10 +70,10 @@ print '<tr><td valign="top" width="30%">';
* *
*/ */
print '<form method="post" action="facture.php">'; print '<form method="post" action="facture.php">';
print '<table border="0" cellspacing="0" cellpadding="3" width="100%">'; print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
print "<tr class=\"liste_titre\">"; print "<tr class=\"liste_titre\">";
print '<td colspan="2">Rechercher une facture</td></tr>'; print '<td colspan="2">Rechercher une facture</td></tr>';
print "<tr $bc[1]><td>"; print "<tr $bc[0]><td>";
print 'Num. : <input type="text" name="sf_ref">&nbsp;<input type="submit" value="Rechercher" class="flat"></td></tr>'; print 'Num. : <input type="text" name="sf_ref">&nbsp;<input type="submit" value="Rechercher" class="flat"></td></tr>';
print "</table></form>"; print "</table></form>";
@ -210,10 +210,10 @@ if ($user->comm > 0 && $conf->commercial )
if ($num) if ($num)
{ {
$i = 0; $i = 0;
print '<table border="0" cellspacing="0" cellpadding="3" width="100%">'; print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
print "<tr class=\"liste_titre\">"; print "<tr class=\"liste_titre\">";
print '<td colspan="2">'.translate("Commandes à facturer").'</td></tr>'; print '<td colspan="2">'.translate("Commandes à facturer").'</td></tr>';
$var = True;
while ($i < $num) while ($i < $num)
{ {
$var=!$var; $var=!$var;
@ -245,10 +245,9 @@ if ( $db->query($sql) )
if ($num) if ($num)
{ {
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">'; print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
print "<TR class=\"liste_titre\">"; print '<tr class="liste_titre"><td colspan="3">Factures impayées</td></tr>';
print '<td colspan="3">Factures impayées</td></tr>'; $var = True;
while ($i < $num) while ($i < $num)
{ {
$obj = $db->fetch_object( $i); $obj = $db->fetch_object( $i);
@ -267,26 +266,27 @@ else
print $sql; print $sql;
} }
$result = 0; $result = 0;
if ( $result ) { if ( $result )
{
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">'; print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
print "<TR class=\"liste_titre\">"; print '<tr class="liste_titre"><td colspan="2">Actions à faire</td>';
print "<td colspan=\"2\">Actions à faire</td>"; print "</tr>\n";
print "</TR>\n"; $var = True;
$i = 0; $i = 0;
while ($i < $db->num_rows() ) { while ($i < $db->num_rows() )
$obj = $db->fetch_object($i); {
$var=!$var; $obj = $db->fetch_object($i);
$var=!$var;
print "<tr $bc[$var]><td>".strftime("%d %b %Y",$obj->da)."</td><td><a href=\"action/fiche.php\">$obj->libelle $obj->label</a></td></tr>";
$i++; print "<tr $bc[$var]><td>".strftime("%d %b %Y",$obj->da)."</td><td><a href=\"action/fiche.php\">$obj->libelle $obj->label</a></td></tr>";
} $i++;
}
$db->free(); $db->free();
print "</table><br>"; print "</table><br>";
} else { }
else
{
print $db->error(); print $db->error();
} }
/* /*
@ -310,12 +310,11 @@ if ($user->societe_id == 0)
$num = $db->num_rows(); $num = $db->num_rows();
if ($num) if ($num)
{ {
print '<table border="0" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<TR class="liste_titre">'; print '<tr class="liste_titre"><td colspan="2">Factures à payer</td>';
print '<TD colspan="2">Factures à payer</td>'; print "</tr>\n";
print "</TR>\n";
$i = 0; $i = 0;
$var = True;
while ($i < $num) while ($i < $num)
{ {
$obj = $db->fetch_object( $i); $obj = $db->fetch_object( $i);