From b996645589462a954837d3c5f157b33de07ac17f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 15 Oct 2009 16:04:46 +0000 Subject: [PATCH] Fix: Bad link --- htdocs/compta/bank/search.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 68c8ec64b40..c9df6c9e546 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -82,7 +82,7 @@ $sql.= MAIN_DB_PREFIX."bank as b, ".MAIN_DB_PREFIX."bank_account as ba)"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank_url as bu on (bu.fk_bank = b.rowid AND type = 'company')"; $sql.= " WHERE b.fk_account = ba.rowid"; $sql.= " AND ba.entity = ".$conf->entity; -if (! empty($_REQUEST["bid"])) +if (! empty($_REQUEST["bid"])) { $sql.= " AND b.rowid=l.lineid AND l.fk_categ=".$_REQUEST["bid"]; } @@ -132,7 +132,7 @@ if ($resql) { print_barre_liste($langs->trans("BankTransactions"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num); } - + print ''; print ''; print_liste_field_titre($langs->trans('Ref'),$_SERVER['PHP_SELF'],'b.rowid','',$param,'',$sortfield,$sortorder); @@ -144,7 +144,7 @@ if ($resql) print ''; print ''; print "\n"; - + print ''; print ''; print ''; @@ -169,9 +169,9 @@ if ($resql) print ''; print ''; print ''; - - // Loop on each record - while ($i < min($num,$limit)) + + // Loop on each record + while ($i < min($num,$limit)) { $objp = $db->fetch_object($resql); @@ -189,7 +189,7 @@ if ($resql) print "'; - + // Debit/Credit if ($objp->amount < 0) { @@ -223,7 +223,7 @@ if ($resql) // Bank account print '\n"; @@ -233,7 +233,7 @@ if ($resql) } print "
'.$langs->trans("Type").''.$langs->trans("Account").'
rowid&account=$objp->fk_account\">"; $reg=array(); - eregi('\((.+)\)',$objp->label,$reg); // Si texte entouré de parenthèe on tente recherche de traduction + eregi('\((.+)\)',$objp->label,$reg); // Si texte entour� de parenth�e on tente recherche de traduction if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]); else print dol_trunc($objp->label,40); print " "; @@ -207,7 +207,7 @@ if ($resql) print ' '; } print ''; - $bankaccountstatic->id=$objp->url_id; + $bankaccountstatic->id=$objp->bankid; $bankaccountstatic->label=$objp->bankref; print $bankaccountstatic->getNomUrl(1); print "
"; - + $db->free($resql); } else @@ -241,8 +241,8 @@ else dol_print_error($db); } -// Si accès issu d'une recherche et rien de trouvé -if ($_POST["action"] == "search" && ! $num) +// Si acc�s issu d'une recherche et rien de trouv� +if ($_POST["action"] == "search" && ! $num) { print $langs->trans("NoRecordFound"); }