Uniformisation du style class="noborder" au lieu de border="0"

This commit is contained in:
Laurent Destailleur 2004-04-10 19:04:14 +00:00
parent 427c4764c5
commit 0162df1793
8 changed files with 70 additions and 55 deletions

View File

@ -164,14 +164,14 @@ if ( $db->query($sql) )
print_barre_liste("Liste des actions commerciales réalisées ou à faire", $page, $PHP_SELF,'',$sortfield,$sortorder,'',$num); print_barre_liste("Liste des actions commerciales réalisées ou à faire", $page, $PHP_SELF,'',$sortfield,$sortorder,'',$num);
} }
$i = 0; $i = 0;
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">';
print '<TD colspan="4">Date</TD>'; print '<td colspan="4">Date</td>';
print '<TD>Avancement</TD>'; print '<td>Avancement</td>';
print '<TD>Action</TD>'; print '<td>Action</td>';
print '<TD>Société</td>'; print '<td>Société</td>';
print '<td>Contact</TD>'; print '<td>Contact</Td>';
print "<td>Commentaires</td><td>Auteur</TD>"; print "<td>Commentaires</td><td>Auteur</td>";
print "</tr>\n"; print "</tr>\n";
$var=True; $var=True;
while ($i < min($num,$limit)) while ($i < min($num,$limit))
@ -180,7 +180,7 @@ if ( $db->query($sql) )
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<tr $bc[$var]>";
if ($oldyear == strftime("%Y",$obj->da) ) if ($oldyear == strftime("%Y",$obj->da) )
{ {
@ -188,7 +188,7 @@ if ( $db->query($sql) )
} }
else else
{ {
print "<TD width=\"30\">" .strftime("%Y",$obj->da)."</TD>\n"; print "<td width=\"30\">" .strftime("%Y",$obj->da)."</td>\n";
$oldyear = strftime("%Y",$obj->da); $oldyear = strftime("%Y",$obj->da);
} }
@ -198,19 +198,19 @@ if ( $db->query($sql) )
} }
else else
{ {
print "<TD width=\"20\">" .strftime("%b",$obj->da)."</TD>\n"; print "<td width=\"20\">" .strftime("%b",$obj->da)."</td>\n";
$oldmonth = strftime("%Y%b",$obj->da); $oldmonth = strftime("%Y%b",$obj->da);
} }
print "<TD width=\"20\">" .strftime("%d",$obj->da)."</TD>\n"; print "<td width=\"20\">" .strftime("%d",$obj->da)."</td>\n";
print "<TD width=\"30\">" .strftime("%H:%M",$obj->da)."</TD>\n"; print "<td width=\"30\">" .strftime("%H:%M",$obj->da)."</td>\n";
if ($obj->percent < 100) { if ($obj->percent < 100) {
print "<TD align=\"center\">".$obj->percent."%</TD>"; print "<td align=\"center\">".$obj->percent."%</td>";
} }
else { else {
print "<TD align=\"center\"><b>réalisé</b></TD>"; print "<td align=\"center\"><b>réalisé</b></td>";
} }
print '<TD><a href="fiche.php?id='.$obj->id.'">'.$obj->libelle.'</a></td>'; print '<td><a href="fiche.php?id='.$obj->id.'">'.$obj->libelle.'</a></td>';
print '<td>'; print '<td>';
@ -245,12 +245,12 @@ if ( $db->query($sql) )
* *
*/ */
print '<td>'.substr($obj->note, 0, 20).' ...</td>'; print '<td>'.substr($obj->note, 0, 20).' ...</td>';
print "<TD>$obj->code</TD>\n"; print "<td>$obj->code</td>\n";
print "</TR>\n"; print "</tr>\n";
$i++; $i++;
} }
print "</TABLE>"; print "</table>";
$db->free(); $db->free();
} }
else else

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* 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
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -33,7 +34,7 @@ print '<tr><td valign="top" width="30%">';
* *
*/ */
print '<form method="post" action="liste.php">'; print '<form method="post" action="liste.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"><td colspan="2">Rechercher une commande</td></tr>'; print '<tr class="liste_titre"><td colspan="2">Rechercher une commande</td></tr>';
print "<tr $bc[1]><td>"; print "<tr $bc[1]><td>";
print 'Num. : <input type="text" name="sf_ref"><input type="submit" value="Rechercher" class="flat"></td></tr>'; print 'Num. : <input type="text" name="sf_ref"><input type="submit" value="Rechercher" class="flat"></td></tr>';

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* 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
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -82,9 +83,9 @@ if ( $db->query($sql) )
print_barre_liste("Commandes", $_GET["page"], $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num); print_barre_liste("Commandes", $_GET["page"], $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0; $i = 0;
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">';
print_liste_field_titre_new ("Réf",$PHP_SELF,"c.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield); print_liste_field_titre_new ("Réf",$PHP_SELF,"c.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield);

View File

@ -38,7 +38,7 @@ $month=$_GET["month"];
if (! $year) { $year = strftime("%Y", time()); } if (! $year) { $year = strftime("%Y", time()); }
print_titre("Résultat comptable".($year?" année $year":"").", détail par client/fournisseur"); print_titre("Détail recettes-dépenses par client/fournisseur.".($year?"&nbsp; <a href='$PHP_SELF?year=".($year-1)."'>".img_previous()."</a> Année $year <a href='$PHP_SELF?year=".($year+1)."'>".img_next()."</a>":""));
print '<br>'; print '<br>';
@ -48,7 +48,11 @@ print '<td width="10%">&nbsp;</td><td>El
print "<td align=\"right\">Montant HT</td>"; print "<td align=\"right\">Montant HT</td>";
print "</tr>\n"; print "</tr>\n";
/* Factures clients */
/*
* Factures clients
*
*/
$sql = "SELECT s.nom,s.idp,sum(f.total) as amount"; $sql = "SELECT s.nom,s.idp,sum(f.total) as amount";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f WHERE f.fk_soc = s.idp AND f.fk_statut = 1"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f WHERE f.fk_soc = s.idp AND f.fk_statut = 1";
@ -87,11 +91,12 @@ if ($result) {
print $db->error(); print $db->error();
} }
print '<tr><td colspan="3" align="right">'.price($total).'</td></tr>'; print '<tr><td colspan="3" align="right">'.price($total).'</td></tr>';
/* /*
* Frais, factures fournisseurs. * Frais, factures fournisseurs.
* *
*
*/ */
$sql = "SELECT s.nom,s.idp,sum(f.total_ht) as amount"; $sql = "SELECT s.nom,s.idp,sum(f.total_ht) as amount";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture_fourn as f WHERE f.fk_soc = s.idp"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture_fourn as f WHERE f.fk_soc = s.idp";
if ($year) { if ($year) {
@ -133,6 +138,7 @@ print '<tr><td colspan="3" align="right">'.price($subtotal).'</td></tr>';
* Charges sociales * Charges sociales
* *
*/ */
$subtotal = 0; $subtotal = 0;
print '<tr><td colspan="4">Prestations/Charges déductibles</td></tr>'; print '<tr><td colspan="4">Prestations/Charges déductibles</td></tr>';
@ -167,10 +173,12 @@ if ( $db->query($sql) ) {
print '<tr><td colspan="3" align="right">'.price($subtotal).'</td></tr>'; print '<tr><td colspan="3" align="right">'.price($subtotal).'</td></tr>';
print '<tr><td align="right" colspan="2">Résultat</td><td class="border" align="right">'.price($total).'</td></tr>'; print '<tr><td align="right" colspan="2">Résultat</td><td class="border" align="right">'.price($total).'</td></tr>';
/* /*
* Charges sociales non déductibles * Charges sociales non déductibles
* *
*/ */
$subtotal = 0; $subtotal = 0;
print '<tr><td colspan="4">Prestations/Charges NON déductibles</td></tr>'; print '<tr><td colspan="4">Prestations/Charges NON déductibles</td></tr>';

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* 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
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -66,23 +67,23 @@ if ( $db->query($sql) )
print_barre_liste("Liste des contrats", $page, $PHP_SELF, "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num); print_barre_liste("Liste des contrats", $page, $PHP_SELF, "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$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"><td>'; print '<tr class="liste_titre"><td>';
print_liste_field_titre("Libellé",$PHP_SELF, "p.label"); print_liste_field_titre("Libellé",$PHP_SELF, "p.label");
print "</td><td>"; print "</td><td>";
print_liste_field_titre("Société",$PHP_SELF, "s.nom"); print_liste_field_titre("Société",$PHP_SELF, "s.nom");
print '</td><td align="center">Etat</td>'; print '</td><td align="center">Etat</td>';
print "</TR>\n"; print "</tr>\n";
$var=True; $var=True;
while ($i < min($num,$limit)) while ($i < min($num,$limit))
{ {
$obj = $db->fetch_object( $i); $obj = $db->fetch_object( $i);
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<tr $bc[$var]>";
print "<TD><a href=\"fiche.php?id=$obj->cid\">$obj->label</a></td>\n"; print "<td><a href=\"fiche.php?id=$obj->cid\">$obj->label</a></td>\n";
print "<TD><a href=\"../comm/fiche.php?socid=$obj->sidp\">$obj->nom</a></TD>\n"; print "<td><a href=\"../comm/fiche.php?socid=$obj->sidp\">$obj->nom</a></td>\n";
print '<td align="center">'; print '<td align="center">';
if ($obj->enservice == 1) if ($obj->enservice == 1)
{ {
@ -96,7 +97,7 @@ if ( $db->query($sql) )
{ {
print "A mettre en service</td>"; print "A mettre en service</td>";
} }
print "</TR>\n"; print "</tr>\n";
$i++; $i++;
} }
$db->free(); $db->free();

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* 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
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -85,9 +86,9 @@ if ( $db->query($sql) )
print_barre_liste("Expeditions", $_GET["page"], $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num); print_barre_liste("Expeditions", $_GET["page"], $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0; $i = 0;
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">';
print_liste_field_titre_new ("Réf",$PHP_SELF,"e.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield); print_liste_field_titre_new ("Réf",$PHP_SELF,"e.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield);
@ -102,8 +103,8 @@ if ( $db->query($sql) )
$objp = $db->fetch_object( $i); $objp = $db->fetch_object( $i);
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<tr $bc[$var]>";
print "<TD><a href=\"fiche.php?id=$objp->rowid\">$objp->ref</a></TD>\n"; print "<td><a href=\"fiche.php?id=$objp->rowid\">$objp->ref</a></td>\n";
$now = time(); $now = time();
$lim = 3600 * 24 * 15 ; $lim = 3600 * 24 * 15 ;
@ -117,7 +118,7 @@ if ( $db->query($sql) )
print "<td>&nbsp;</td>"; print "<td>&nbsp;</td>";
} }
print "<TD align=\"right\">"; print "<td align=\"right\">";
$y = strftime("%Y",$objp->date_expedition); $y = strftime("%Y",$objp->date_expedition);
$m = strftime("%m",$objp->date_expedition); $m = strftime("%m",$objp->date_expedition);

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* 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
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -68,37 +69,37 @@ if ( $db->query($sql) )
print_barre_liste("Liste des fiches d'intervention", $page, $PHP_SELF,"&amp;socid=$socid",$sortfield,$sortorder,'',$num); print_barre_liste("Liste des fiches d'intervention", $page, $PHP_SELF,"&amp;socid=$socid",$sortfield,$sortorder,'',$num);
$i = 0; $i = 0;
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\">";
print_liste_field_titre_new ("Num",$PHP_SELF,"f.ref","","&amp;socid=$socid",'width="15%"',$sortfield); print_liste_field_titre_new ("Num",$PHP_SELF,"f.ref","","&amp;socid=$socid",'width="15%"',$sortfield);
print_liste_field_titre_new ("Société",$PHP_SELF,"s.nom","","&amp;socid=$socid",'',$sortfield); print_liste_field_titre_new ("Société",$PHP_SELF,"s.nom","","&amp;socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Date",$PHP_SELF,"f.datei","","&amp;socid=$socid",'',$sortfield); print_liste_field_titre_new ("Date",$PHP_SELF,"f.datei","","&amp;socid=$socid",'',$sortfield);
print '<TD align="center">Durée</TD>'; print '<td align="center">Durée</td>';
print '<TD align="center">Statut</TD><td>&nbsp;</td>'; print '<td align="center">Statut</td><td>&nbsp;</td>';
print "</TR>\n"; print "</tr>\n";
$var=True; $var=True;
while ($i < $num) while ($i < $num)
{ {
$objp = $db->fetch_object( $i); $objp = $db->fetch_object( $i);
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<tr $bc[$var]>";
print "<TD><a href=\"fiche.php?id=$objp->fichid\">$objp->ref</a></TD>\n"; print "<td><a href=\"fiche.php?id=$objp->fichid\">$objp->ref</a></td>\n";
print '<td><a href="index.php?socid='.$objp->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0"></a>&nbsp;'; print '<td><a href="index.php?socid='.$objp->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0"></a>&nbsp;';
print "<a href=\"../comm/fiche.php?socid=$objp->idp\">$objp->nom</a></TD>\n"; print "<a href=\"../comm/fiche.php?socid=$objp->idp\">$objp->nom</a></td>\n";
print "<TD>".strftime("%d %B %Y",$objp->dp)."</TD>\n"; print "<td>".strftime("%d %B %Y",$objp->dp)."</TD>\n";
print '<TD align="center">'.sprintf("%.1f",$objp->duree).'</TD>'; print '<td align="center">'.sprintf("%.1f",$objp->duree).'</td>';
print '<TD align="center">'.$objp->fk_statut.'</TD>'; print '<Td align="center">'.$objp->fk_statut.'</td>';
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
print '<TD align="center"><a href="fiche.php?socidp='.$objp->idp.'&amp;action=create">[Fiche Inter]</A></td>'; print '<td align="center"><a href="fiche.php?socidp='.$objp->idp.'&amp;action=create">[Fiche Inter]</a></td>';
} }
else else
{ {
print "<td>&nbsp;</td>"; print "<td>&nbsp;</td>";
} }
print "</TR>\n"; print "</tr>\n";
$i++; $i++;
} }

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* 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
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -74,8 +75,9 @@ $pagenext = $page + 1;
* *
* *
*/ */
print '<p><TABLE border="0" width="100%" cellspacing="0" cellpadding="4">'; print '<br>';
print '<TR class="liste_titre"><td>'; print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td>';
print_liste_field_titre("Titre",$PHP_SELF,"p.title"); print_liste_field_titre("Titre",$PHP_SELF,"p.title");
print "</td><td>Réf</td><td>"; print "</td><td>Réf</td><td>";
print_liste_field_titre("Société",$PHP_SELF,"s.nom"); print_liste_field_titre("Société",$PHP_SELF,"s.nom");
@ -101,9 +103,9 @@ if ( $db->query($sql) )
{ {
$objp = $db->fetch_object( $i); $objp = $db->fetch_object( $i);
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<tr $bc[$var]>";
print "<TD><a href=\"fiche.php?id=$objp->projectid\">$objp->title</a></TD>\n"; print "<td><a href=\"fiche.php?id=$objp->projectid\">$objp->title</a></td>\n";
print "<TD><a href=\"fiche.php?id=$objp->projectid\">$objp->ref</a></TD>\n"; print "<td><a href=\"fiche.php?id=$objp->projectid\">$objp->ref</a></td>\n";
if ($obj->client == 1) if ($obj->client == 1)
{ {
print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>'; print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>';