Fix: Bad link
This commit is contained in:
parent
4875d5b969
commit
b996645589
@ -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.= " 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.= " WHERE b.fk_account = ba.rowid";
|
||||||
$sql.= " AND ba.entity = ".$conf->entity;
|
$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"];
|
$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_barre_liste($langs->trans("BankTransactions"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num);
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<table class="liste" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans('Ref'),$_SERVER['PHP_SELF'],'b.rowid','',$param,'',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans('Ref'),$_SERVER['PHP_SELF'],'b.rowid','',$param,'',$sortfield,$sortorder);
|
||||||
@ -144,7 +144,7 @@ if ($resql)
|
|||||||
print '<td class="liste_titre" align="center">'.$langs->trans("Type").'</td>';
|
print '<td class="liste_titre" align="center">'.$langs->trans("Type").'</td>';
|
||||||
print '<td class="liste_titre" align="left">'.$langs->trans("Account").'</td>';
|
print '<td class="liste_titre" align="left">'.$langs->trans("Account").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
print '<form method="post" action="search.php">';
|
print '<form method="post" action="search.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -169,9 +169,9 @@ if ($resql)
|
|||||||
print '<input type="image" class="liste_titre" name="submit" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" alt="'.$langs->trans("Search").'">';
|
print '<input type="image" class="liste_titre" name="submit" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" alt="'.$langs->trans("Search").'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Loop on each record
|
// Loop on each record
|
||||||
while ($i < min($num,$limit))
|
while ($i < min($num,$limit))
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object($resql);
|
$objp = $db->fetch_object($resql);
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ if ($resql)
|
|||||||
|
|
||||||
print "<td><a href=\"ligne.php?rowid=$objp->rowid&account=$objp->fk_account\">";
|
print "<td><a href=\"ligne.php?rowid=$objp->rowid&account=$objp->fk_account\">";
|
||||||
$reg=array();
|
$reg=array();
|
||||||
eregi('\((.+)\)',$objp->label,$reg); // Si texte entouré de parenthèe on tente recherche de traduction
|
eregi('\((.+)\)',$objp->label,$reg); // Si texte entour<EFBFBD> de parenth<74>e on tente recherche de traduction
|
||||||
if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]);
|
if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]);
|
||||||
else print dol_trunc($objp->label,40);
|
else print dol_trunc($objp->label,40);
|
||||||
print "</a> ";
|
print "</a> ";
|
||||||
@ -207,7 +207,7 @@ if ($resql)
|
|||||||
print ' ';
|
print ' ';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Debit/Credit
|
// Debit/Credit
|
||||||
if ($objp->amount < 0)
|
if ($objp->amount < 0)
|
||||||
{
|
{
|
||||||
@ -223,7 +223,7 @@ if ($resql)
|
|||||||
|
|
||||||
// Bank account
|
// Bank account
|
||||||
print '<td align="left" nowrap="nowrap">';
|
print '<td align="left" nowrap="nowrap">';
|
||||||
$bankaccountstatic->id=$objp->url_id;
|
$bankaccountstatic->id=$objp->bankid;
|
||||||
$bankaccountstatic->label=$objp->bankref;
|
$bankaccountstatic->label=$objp->bankref;
|
||||||
print $bankaccountstatic->getNomUrl(1);
|
print $bankaccountstatic->getNomUrl(1);
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
@ -233,7 +233,7 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -241,8 +241,8 @@ else
|
|||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Si accès issu d'une recherche et rien de trouvé
|
// Si acc<EFBFBD>s issu d'une recherche et rien de trouv<75>
|
||||||
if ($_POST["action"] == "search" && ! $num)
|
if ($_POST["action"] == "search" && ! $num)
|
||||||
{
|
{
|
||||||
print $langs->trans("NoRecordFound");
|
print $langs->trans("NoRecordFound");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user