Look: Utilisation feuille de style

This commit is contained in:
Laurent Destailleur 2005-04-27 21:57:59 +00:00
parent d8e072e529
commit 0c6249b5c9
3 changed files with 39 additions and 29 deletions

View File

@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copytight (C) 2004 Christophe Combelles <ccomb@free.fr>
*
* This program is free software; you can redistribute it and/or modify
@ -23,7 +23,8 @@
*
*/
/** \file htdocs/compta/bank/account.php
/**
\file htdocs/compta/bank/account.php
\ingroup banque
\brief Page de détail des transactions bancaires
\version $Revision$
@ -202,7 +203,7 @@ if ($account > 0)
*/
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Date").'</td><td>Valeur</td><td>'.$langs->trans("Type").'</td><td>'.$langs->trans("Description").'</td>';
print '<td>'.$langs->trans("Date").'</td><td>'.$langs->trans("Value").'</td><td>'.$langs->trans("Type").'</td><td>'.$langs->trans("Description").'</td>';
print '<td align="right">'.$langs->trans("Debit").'</td><td align="right">'.$langs->trans("Credit").'</td><td align="right">Solde</td>';
print '<td align="center">'.$langs->trans("AccountStatement").'</td></tr>';
@ -211,7 +212,7 @@ if ($account > 0)
print '<input type="hidden" name="account" value="' . $acct->id . '">';
print '<tr class="liste_titre">';
print '<td colspan="3">&nbsp;</td>';
print '<td><input type="text" name="req_desc" value="'.$_POST["req_desc"].'" size="40"></td>';
print '<td><input type="text" class="flat" name="req_desc" value="'.$_POST["req_desc"].'" size="40"></td>';
print '<td align="right"><input type="text" class="flat" name="req_debit" value="'.$_POST["req_debit"].'" size="6"></td>';
print '<td align="right"><input type="text" class="flat" name="req_credit" value="'.$_POST["req_credit"].'" size="6"></td>';
print '<td align="center"><input type="submit" class="button" value="'.$langs->trans("Search").'"></td>';

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -20,6 +20,13 @@
* $Source$
*/
/**
\file htdocs/compta/bank/search.php
\ingroup banque
\brief Page de recherche de transactions bancaires
\version $Revision$
*/
require("./pre.inc.php");
require("./bank.lib.php");
@ -40,13 +47,13 @@ if ($vline) {
print_titre("Recherche écriture bancaire");
print '<br>';
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="2">';
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\">";
print '<td>Date</td><td>'.$langs->trans("Description").'</td>';
print "<td align=\"right\">Debit</td>";
print "<td align=\"right\">Credit</td>";
print '<td align="right">'.$langs->trans("Debit").'</td>';
print '<td align="right">'.$langs->trans("Credit").'</td>';
print "<td align=\"center\">".$langs->trans("Type")."</td>";
print "<td align=\"left\">Compte</td>";
print '<td align="left">'.$langs->trans("Account").'</td>';
print "</tr>\n";
?>
@ -54,13 +61,13 @@ print "</tr>\n";
<tr class="liste_titre">
<td>&nbsp;</td>
<td>
<input type="text" name="description" size="40" value=<?php echo $description ?>>
<input type="text" class="flat" name="description" size="40" value=<?php echo $description ?>>
</td>
<td align="right">
<input type="text" name="debit" size="6" value=<?php echo $debit ?>>
<input type="text" class="flat" name="debit" size="6" value=<?php echo $debit ?>>
</td>
<td align="right">
<input type="text" name="credit" size="6" value=<?php echo $credit ?>>
<input type="text" class="flat" name="credit" size="6" value=<?php echo $credit ?>>
</td>
<td align="center">
<select name="type">
@ -72,7 +79,7 @@ print "</tr>\n";
</select>
</td>
<td align="left">
<input type="submit" name="submit" value="<?php echo $langs->trans("Search") ?>">
<input type="submit" class="button" name="submit" value="<?php echo $langs->trans("Search") ?>">
</td>
</tr>
@ -145,31 +152,33 @@ if ($result)
$var=!$var;
print "<tr $bc[$var]>";
print "<td>".strftime("%d %b %y",$objp->do)."</TD>\n";
print "<td>".strftime("%d %b %y",$objp->do)."</td>\n";
print "<td><a href=\"ligne.php?rowid=$objp->rowid&amp;account=$objp->fk_account\">$objp->label</a>&nbsp;";
if ($objp->amount < 0)
{
print "<td align=\"right\">".price($objp->amount * -1)."</TD><td>&nbsp;</td>\n";
print "<td align=\"right\">".price($objp->amount * -1)."</td><td>&nbsp;</td>\n";
}
else
{
print "<td>&nbsp;</td><td align=\"right\">".price($objp->amount)."</TD>\n";
print "<td>&nbsp;</td><td align=\"right\">".price($objp->amount)."</td>\n";
}
print "<td align=\"center\">".$objp->fk_type."</TD>\n";
print "<td align=\"center\">".$objp->fk_type."</td>\n";
print "<td align=\"left\"><small>".$objp->labelaccount."</small></TD>\n";
print "<td align=\"left\"><small>".$objp->labelaccount."</small></td>\n";
print "</tr>";
$i++;
}
$db->free();
} else {
print $db->error() .' <div class="div.titre">' . $sql .'</div>';
}
else
{
dolibarr_print_error($db);
}
print "</table>";
@ -182,5 +191,5 @@ if ($_POST["submit"] && ! $num) {
$db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
llxFooter('$Date$ - $Revision$');
?>

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -21,7 +21,7 @@
*
*/
/*!
/**
\file htdocs/compta/bank/virement.php
\ingroup banque
\brief Page de saisie d'un virement
@ -101,7 +101,7 @@ print '<tr class="liste_titre">';
print '<td>'.$langs->trans("From").'</td><td>'.$langs->trans("To").'</td><td>'.$langs->trans("Date").'</td><td>'.$langs->trans("Description").'</td><td>'.$langs->trans("Amount").'</td>';
print '</tr>';
print "<tr $bc[1]><td>";
print "<select name=\"account_from\">";
print "<select class=\"flat\" name=\"account_from\">";
$sql = "SELECT rowid, label FROM ".MAIN_DB_PREFIX."bank_account";
$result = $db->query($sql);
if ($result)
@ -119,7 +119,7 @@ if ($result)
}
print "</select></td><td>\n";
print "<select name=\"account_to\">";
print "<select class=\"flat\" name=\"account_to\">";
$sql = "SELECT rowid, label FROM ".MAIN_DB_PREFIX."bank_account";
$result = $db->query($sql);
if ($result)
@ -140,16 +140,16 @@ print "</select></td>\n";
print "<td>";
$html->select_date();
print "</td>\n";
print '<td><input name="label" type="text" size="40"></td>';
print '<td><input name="amount" type="text" size="8"></td>';
print '<td><input name="label" class="flat" type="text" size="40"></td>';
print '<td><input name="amount" class="flat" type="text" size="8"></td>';
print "</table>";
print '<p align="center"><input type="submit" value="'.$langs->trans("Add").'"</p>';
print '<br><center><input type="submit" class="button" value="'.$langs->trans("Add").'"></center>';
print "</form>";
$db->close();
llxFooter(" - <em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
llxFooter('$Date$ - $Revision$');
?>