diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index 44a29a276..e19683a0d 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -120,7 +120,7 @@ $str_add_card = ($g_user->check_action(FICADD) == 1) ? $h_add_card_b->input() :
if ($array == null)
{
echo '
';
- echo '
Aucune fiche trouvée
';
+ echo ' '._('Aucune fiche trouvée').'
';
echo $str_add_card;
echo '';
exit();
@@ -275,8 +275,8 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
{
if (isDate($_REQUEST['start']) == null || isDate($_REQUEST['end']) == null)
{
- echo h2('Date invalide !', 'class="error"');
- alert('Date invalide !');
+ echo h2(_('Date invalide !'), 'class="error"');
+ alert(_('Date invalide !'));
exit;
}
if ( $allcard == 0 ) echo $str_add_card;
@@ -287,7 +287,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
$fd = new Fiche_Def($cn, $_REQUEST['cat']);
if ($allcard == 0 && $fd->hasAttribute(ATTR_DEF_ACCOUNT) == false)
{
- echo alert("Cette catégorie n'ayant pas de poste comptable n'a pas de balance");
+ echo alert(_("Cette catégorie n'ayant pas de poste comptable n'a pas de balance"));
exit;
}
// all card
@@ -313,9 +313,9 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
continue;
}
echo '' . $cn->get_value("select fd_label from fiche_def where fd_id=$1", array($afiche[$e]['fd_id'])) . '
';
- $id="table_".$afiche[$e]."_id";
+ $id="table_".$afiche[$e]['fd_id']."_id";
echo _('Filtre rapide:').HtmlInput::filter_table($id, '0,1,2', '1');
- echo '';
+ echo '';
echo tr(
th('Quick Code') .
th('Libellé') .
@@ -364,7 +364,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
td(nbm($sum_deb), 'style="text-align:right"').
td(nbm($sum_cred), 'style="text-align:right"').
td(nbm(abs($sum_solde)), 'style="text-align:right"').
- td((($sum_deb < $sum_cred) ? 'CRED' : 'DEB'), 'style="text-align:right"'),"");
+ td((($sum_deb < $sum_cred) ? 'CRED' : 'DEB'), 'style="text-align:right"'),' class="highlight"');
echo '';
echo '
';
}
@@ -433,11 +433,13 @@ for ($e = 0; $e < count($afiche); $e++)
/* skip if nothing to display */
if (count($letter->content) == 0)
continue;
- $detail_card = HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), $row->strAttribut(ATTR_DEF_NAME))."poste :".$row->strAttribut(ATTR_DEF_ACCOUNT).HtmlInput::infobulle(27);
+ $detail_card = HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), $row->strAttribut(ATTR_DEF_NAME));
- echo '' . $detail_card . '
';
+ echo '' . $detail_card ;
+ echo "poste "
+ . ":".HtmlInput::history_account($row->strAttribut(ATTR_DEF_ACCOUNT),$row->strAttribut(ATTR_DEF_ACCOUNT),'display:inline').HtmlInput::infobulle(27).'
';
- echo '';
+ echo '';
echo '';
echo th(_('Date'));
echo th(_('ref'));