Translation:add gettext function, improve extract_text

Add everywhere the missing gettext function and improve
the script for extracting string
This commit is contained in:
Dany De Bontridder 2014-02-14 23:42:28 +01:00
parent b87f987c73
commit 38311bd212
97 changed files with 13993 additions and 15415 deletions

View file

@ -7,8 +7,15 @@
# Author D. DE BONTRIDDER danydb@aevalys.eu # Author D. DE BONTRIDDER danydb@aevalys.eu
echo "Extract" echo "Extract"
cd .. cd ..
# For english # CATALOG
xgettext -L PHP -j --from-code=UTF-8 -p html/lang/en_US/LC_MESSAGES/ html/*.php include/*.php include/template/*.php include/ext/*/*.php include/ext/*/include/*.php include/ext/*/include/template/*.php xgettext -L PHP -j --from-code=UTF-8 -p html/lang/ html/*.php include/*.php include/template/*.php include/ext/*/*.php include/ext/*/include/*.php include/ext/*/include/template/*.php
# For dutch # For dutch
xgettext -L PHP -j --from-code=UTF-8 -p html/lang/nl_NL/LC_MESSAGES/ html/*.php include/*.php include/template/*.php msgmerge -U -s html/lang/nl_NL/LC_MESSAGES/messages.po html/lang/messages.po
#For english
msgmerge -U -s html/lang/en_US/LC_MESSAGES/messages.po html/lang/messages.po
#For new language
# export LOCAL=nl_NL
# msginit --locale=$LOCAL -i html/lang/messages.po -o html/lang/$LOCAL/LC_MESSAGES/messages.po

View file

@ -103,7 +103,7 @@ case 'rmfa':
if ($g_user->check_action(FICCAT)==0)exit(); if ($g_user->check_action(FICCAT)==0)exit();
ob_start(); ob_start();
if( ! isset($_GET['ad_id']) || isNumber($_GET['ad_id']) ==0) if( ! isset($_GET['ad_id']) || isNumber($_GET['ad_id']) ==0)
throw new Exception ( "Parametre ad_id est invalide",11); throw new Exception ( _("Parametre ad_id est invalide"),11);
$ad_id= $_GET['ad_id']; $ad_id= $_GET['ad_id'];
try try
{ {
@ -127,7 +127,7 @@ case 'rmfa':
case 'dc': case 'dc':
$f=new Fiche($cn); $f=new Fiche($cn);
/* add title + close */ /* add title + close */
$html=HtmlInput::title_box("Détail fiche", $ctl); $html=HtmlInput::title_box(_("Détail fiche"), $ctl);
if ( $qcode != '') if ( $qcode != '')
{ {
$f->get_by_qcode($qcode); $f->get_by_qcode($qcode);
@ -157,7 +157,7 @@ case 'dc':
$html.=$card; $html.=$card;
if ( $can_modify==1) if ( $can_modify==1)
{ {
$html.=HtmlInput::submit('save','Sauver'); $html.=HtmlInput::submit('save',_('Sauver'));
} }
$html.=HtmlInput::button('close_'.$ctl,'Fermer',"onclick=\"removeDiv('$ctl')\""); $html.=HtmlInput::button('close_'.$ctl,'Fermer',"onclick=\"removeDiv('$ctl')\"");
if ( ! isset ($nohistory))$html.=HtmlInput::history_card_button($f->id,_('Historique')); if ( ! isset ($nohistory))$html.=HtmlInput::history_card_button($f->id,_('Historique'));
@ -170,7 +170,7 @@ case 'dc':
else else
{ {
$html.='<h2 class="error">'._('Aucune fiche demandée').'</h2>'; $html.='<h2 class="error">'._('Aucune fiche demandée').'</h2>';
$html.=HtmlInput::button('close_'.$ctl,'Fermer',"onclick=\"removeDiv('$ctl')\""); $html.=HtmlInput::button('close_'.$ctl,_('Fermer'),"onclick=\"removeDiv('$ctl')\"");
} }
break; break;
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
@ -179,7 +179,7 @@ case 'dc':
case 'bc': case 'bc':
if ( $g_user->check_action(FICADD)==1 ) if ( $g_user->check_action(FICADD)==1 )
{ {
$r=HtmlInput::title_box("Nouvelle fiche", $ctl); $r=HtmlInput::title_box(_("Nouvelle fiche"), $ctl);
/* get cat. name */ /* get cat. name */
$cat_name=$cn->get_value('select fd_label from fiche_def where fd_id=$1', $cat_name=$cn->get_value('select fd_label from fiche_def where fd_id=$1',
array($fd_id)); array($fd_id));
@ -190,7 +190,7 @@ case 'bc':
$r.=HtmlInput::hidden('fd_id',$fd_id); $r.=HtmlInput::hidden('fd_id',$fd_id);
$r.=HtmlInput::hidden('ctl',$ctl); $r.=HtmlInput::hidden('ctl',$ctl);
$r.=$f->blank($fd_id); $r.=$f->blank($fd_id);
$r.=HtmlInput::submit('sc','Sauve'); $r.=HtmlInput::submit('sc',_('Sauve'));
$r.='</form>'; $r.='</form>';
$html=$r; $html=$r;
} }
@ -248,7 +248,7 @@ case 'st':
if ( strpos($where," in ()") != 0) if ( strpos($where," in ()") != 0)
{ {
$html=HtmlInput::anchor_close('select_card_div'); $html=HtmlInput::anchor_close('select_card_div');
$html.=h2info('Choix de la catégorie'); $html.=h2info(_('Choix de la catégorie'));
$html.='<h3 class="notice">'; $html.='<h3 class="notice">';
$html.=_("Aucune catégorie de fiche ne correspond à". $html.=_("Aucune catégorie de fiche ne correspond à".
" votre demande, le journal pourrait n'avoir accès à aucune fiche"); " votre demande, le journal pourrait n'avoir accès à aucune fiche");
@ -258,7 +258,7 @@ case 'st':
$sql.=" ".$where." order by fd_label"; $sql.=" ".$where." order by fd_label";
$array=$cn->make_array($sql); $array=$cn->make_array($sql);
$html=HtmlInput::title_box("Choix de la catégorie", $ctl); $html=HtmlInput::title_box(_("Choix de la catégorie"), $ctl);
if ( empty($array)) if ( empty($array))
{ {
@ -269,7 +269,8 @@ case 'st':
else else
{ {
$r=''; $r='';
$r.='<p class="notice" style="padding-left:2em"> Choississez la catégorie de fiche à laquelle vous aimeriez ajouter une fiche</p>'; $r.='<p class="notice" style="padding-left:2em">';
$r.=_("Choississez la catégorie de fiche à laquelle vous aimeriez ajouter une fiche").'</p>';
$isel=new ISelect('fd_id'); $isel=new ISelect('fd_id');
$isel->value=$array; $isel->value=$array;
$r.='<div style="text-align:center">'; $r.='<div style="text-align:center">';
@ -280,7 +281,7 @@ case 'st':
$r.=$isel->input(); $r.=$isel->input();
$r.='<p>'; $r.='<p>';
$r.=HtmlInput::submit('st','choix'); $r.=HtmlInput::submit('st','choix');
$r.=HtmlInput::button('Annuler','Annuler'," onclick=\"removeDiv('$ctl')\" "); $r.=HtmlInput::button('Annuler',_('Annuler')," onclick=\"removeDiv('$ctl')\" ");
$r.='</p>'; $r.='</p>';
$r.='</form>'; $r.='</form>';
$r.='</div>'; $r.='</div>';
@ -294,13 +295,13 @@ case 'st':
* *
----------------------------------------------------------------------*/ ----------------------------------------------------------------------*/
case 'sc': case 'sc':
$html=HtmlInput::title_box("Choix de la catégorie", $ctl); $html=HtmlInput::title_box(_("Choix de la catégorie"), $ctl);
if ( $g_user->check_action(FICADD)==1 ) if ( $g_user->check_action(FICADD)==1 )
{ {
$f=new Fiche($cn); $f=new Fiche($cn);
$f->insert($fd_id,$_POST); $f->insert($fd_id,$_POST);
$f->Get(); $f->Get();
$html.='<h2 class="notice">Fiche sauvée</h2>'; $html.='<h2 class="notice">'._('Fiche sauvée').'</h2>';
$html.=$f->Display(true); $html.=$f->Display(true);
$js=""; $js="";
if ( isset( $_POST['ref'])) $js=create_script(' window.location.reload()'); if ( isset( $_POST['ref'])) $js=create_script(' window.location.reload()');
@ -310,7 +311,7 @@ case 'sc':
{ {
$html.=alert(_('Action interdite'),true); $html.=alert(_('Action interdite'),true);
} }
$html.=HtmlInput::button('fermer','Fermer'," onclick=\"removeDiv('$ctl')\";"); $html.=HtmlInput::button('fermer',_('Fermer')," onclick=\"removeDiv('$ctl')\";");
break; break;
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------
* Search a card * Search a card
@ -318,7 +319,7 @@ case 'sc':
*----------------------------------------------------------------------*/ *----------------------------------------------------------------------*/
case 'fs': case 'fs':
require_once('class_acc_ledger.php'); require_once('class_acc_ledger.php');
$r=HtmlInput::title_box("Détail fiche", 'search_card'); $r=HtmlInput::title_box(_("Détail fiche"), 'search_card');
$r.='<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">'; $r.='<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';
$q=new IText('query'); $q=new IText('query');
$q->value=(isset($query))?$query:''; $q->value=(isset($query))?$query:'';
@ -417,7 +418,7 @@ case 'ac':
$base=''; $base='';
break; break;
case FICHE_TYPE_CONTACT: case FICHE_TYPE_CONTACT:
$msg=(' de contacts'); $msg=_(' de contacts');
$base=''; $base='';
} }
@ -500,7 +501,7 @@ case 'upc':
else else
{ {
$html=HtmlInput::anchor_close($ctl); $html=HtmlInput::anchor_close($ctl);
$html.=h2info('Détail fiche (sauvée)'); $html.=h2info(_('Détail fiche (sauvée)'));
$f=new Fiche($cn,$_GET['f_id']); $f=new Fiche($cn,$_GET['f_id']);
ob_start(); ob_start();

View file

@ -58,7 +58,7 @@ if ( isset($_GET['f_id']))
$year=$g_user->get_exercice(); $year=$g_user->get_exercice();
if ( $year == 0 ) if ( $year == 0 )
{ {
$html="erreur aucune période par défaut, allez dans préférence pour en choisir une"; $html=_("erreur aucune période par défaut, allez dans préférence pour en choisir une");
} }
else else
{ {
@ -87,13 +87,13 @@ if ( isset($_GET['f_id']))
{ {
$obj="{div:'$div',f_id:'".$_GET['f_id']."',gDossier:'$dossier',select:this}"; $obj="{div:'$div',f_id:'".$_GET['f_id']."',gDossier:'$dossier',select:this}";
$is=$exercice->select('p_exercice',$default,' onchange="update_history_card('.$obj.');"'); $is=$exercice->select('p_exercice',$default,' onchange="update_history_card('.$obj.');"');
$old="Autre exercice ".$is->input(); $old=_("Autre exercice")." ".$is->input();
} }
else else
{ {
$old='<form method="get" action="popup.php">'; $old='<form method="get" action="popup.php">';
$is=$exercice->select('ex',$default,'onchange = "submit(this)"'); $is=$exercice->select('ex',$default,'onchange = "submit(this)"');
$old.="Autre exercice ".$is->input(); $old.=_("Autre exercice")." ".$is->input();
$old.=HtmlInput::hidden('div','popup'); $old.=HtmlInput::hidden('div','popup');
$old.=HtmlInput::hidden('act',$_GET['act']); $old.=HtmlInput::hidden('act',$_GET['act']);
$old.=HtmlInput::hidden('f_id',$_GET['f_id']); $old.=HtmlInput::hidden('f_id',$_GET['f_id']);
@ -110,7 +110,7 @@ if ( isset($_GET['f_id']))
echo '<p style="text-align:center;">'.$detail_card.'</p>'; echo '<p style="text-align:center;">'.$detail_card.'</p>';
if ( $fiche->HtmlTable($array,0,$from_div)==-1){ if ( $fiche->HtmlTable($array,0,$from_div)==-1){
echo h2("Aucune opération pour l'exercice courant",'class="error"'); echo h2(_("Aucune opération pour l'exercice courant"),'class="error"');
} }
echo $old; echo $old;
@ -128,7 +128,7 @@ if ( isset($_REQUEST['pcm_val']))
$year=$g_user->get_exercice(); $year=$g_user->get_exercice();
if ( $year == 0 ) if ( $year == 0 )
{ {
$html="erreur aucune période par défaut, allez dans préférence pour en choisir une"; $html=_("erreur aucune période par défaut, allez dans préférence pour en choisir une");
} }
else else
{ {
@ -158,13 +158,13 @@ if ( isset($_REQUEST['pcm_val']))
{ {
$obj="{div:'$div',pcm_val:'".$_GET['pcm_val']."',gDossier:'$dossier',select:this}"; $obj="{div:'$div',pcm_val:'".$_GET['pcm_val']."',gDossier:'$dossier',select:this}";
$is=$exercice->select('p_exercice',$default,' onchange="update_history_account('.$obj.');"'); $is=$exercice->select('p_exercice',$default,' onchange="update_history_account('.$obj.');"');
$old="Autre exercice ".$is->input(); $old=_("Autre exercice")." ".$is->input();
} }
else else
{ {
$old='<form method="get" action="popup.php">'; $old='<form method="get" action="popup.php">';
$is=$exercice->select('ex',$default,'onchange = "submit(this)"'); $is=$exercice->select('ex',$default,'onchange = "submit(this)"');
$old.="Autre exercice ".$is->input(); $old.=_("Autre exercice")." ".$is->input();
$old.=HtmlInput::hidden('div','popup'); $old.=HtmlInput::hidden('div','popup');
$old.=HtmlInput::hidden('act',$_GET['act']); $old.=HtmlInput::hidden('act',$_GET['act']);
$old.=HtmlInput::hidden('pcm_val',$_GET['pcm_val']); $old.=HtmlInput::hidden('pcm_val',$_GET['pcm_val']);
@ -181,7 +181,7 @@ if ( isset($_REQUEST['pcm_val']))
if ( $poste->HtmlTable($array) == -1) if ( $poste->HtmlTable($array) == -1)
{ {
echo h2($poste->id." ".$poste->name,' class="title"'); echo h2($poste->id." ".$poste->name,' class="title"');
echo h2("Aucune opération pour l'exercice courant",'class="error"'); echo h2(_("Aucune opération pour l'exercice courant"),'class="error"');
} }
echo $old; echo $old;

View file

@ -285,7 +285,7 @@ case 'file':
echo '<div class="op_detail_frame">'; echo '<div class="op_detail_frame">';
$x=''; $x='';
if ($access=='W') if ($access=='W')
$x=sprintf('<a class="notice" style="margin-left:12;margin-right:12" href="ajax_ledger.php?gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return confirm(\'Effacer le document ?\')">enlever</a>', $x=sprintf('<a class="notice" style="margin-left:12;margin-right:12" href="ajax_ledger.php?gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return confirm(\'Effacer le document ?\')">'._('enlever').'</a>',
$gDossier,$div,$jr_id); $gDossier,$div,$jr_id);
echo $x; echo $x;
$filename= $obj->det->jr_pj_name; $filename= $obj->det->jr_pj_name;
@ -323,7 +323,7 @@ case 'loadfile':
if ( ! isset($_REQUEST['ajax']) ) echo "<body class=\"op_detail_frame\">"; else echo "<body>"; if ( ! isset($_REQUEST['ajax']) ) echo "<body class=\"op_detail_frame\">"; else echo "<body>";
echo "<h2>"._("Document")."</h2>"; echo "<h2>"._("Document")."</h2>";
echo '<div class="op_detail_frame">'; echo '<div class="op_detail_frame">';
$x=sprintf('<a class="mtitle" class="notice" style="margin-left:12;margin-right:12px" href="ajax_ledger.php?gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return confirm(\'Effacer le document ?\')">enlever</a>', $x=sprintf('<a class="mtitle" class="notice" style="margin-left:12;margin-right:12px" href="ajax_ledger.php?gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return confirm(\'Effacer le document ?\')">'._('enlever').'</a>',
$gDossier,$div,$jr_id); $gDossier,$div,$jr_id);
echo $x; echo $x;
$filename= $obj->det->jr_pj_name; $filename= $obj->det->jr_pj_name;
@ -350,7 +350,7 @@ case 'rmf':
echo '<FORM METHOD="POST" ENCTYPE="multipart/form-data" id="form_file">'; echo '<FORM METHOD="POST" ENCTYPE="multipart/form-data" id="form_file">';
$sp=new ISpan('file'.$div); $sp=new ISpan('file'.$div);
$sp->style="display:none;width:155;height:15;background-color:red;color:white;font-size:10"; $sp->style="display:none;width:155;height:15;background-color:red;color:white;font-size:10";
$sp->value="Chargement"; $sp->value=_("Chargement");
echo $sp->input(); echo $sp->input();
echo HtmlInput::hidden('act','loadfile'); echo HtmlInput::hidden('act','loadfile');
@ -524,7 +524,7 @@ case 'ask_extdate':
$date=new IDate('p_date'); $date=new IDate('p_date');
$html.="<form id=\"form_".$div."\" onsubmit=\"return reverseOperation(this);\">"; $html.="<form id=\"form_".$div."\" onsubmit=\"return reverseOperation(this);\">";
$html.=HtmlInput::hidden('jr_id',$_REQUEST['jr_id']).HtmlInput::hidden('div',$div).dossier::hidden().HtmlInput::hidden('act','reverseop'); $html.=HtmlInput::hidden('jr_id',$_REQUEST['jr_id']).HtmlInput::hidden('div',$div).dossier::hidden().HtmlInput::hidden('act','reverseop');
$html.='<h2 class="info">entrez une date </H2>'.$date->input(); $html.='<h2 class="info">'._('entrez une date').' </H2>'.$date->input();
$html.=HtmlInput::submit('x','accepter'); $html.=HtmlInput::submit('x','accepter');
$html=HtmlInput::button_close($div); $html=HtmlInput::button_close($div);
$html.='</form>'; $html.='</form>';

View file

@ -294,7 +294,7 @@ EOF;
$detail = "<A class=\"detail\" style=\"display:inline\" HREF=\"javascript:modifyOperation('" . $row['jr_id'] . "'," . $gDossier . ")\" > " . $row['jr_internal'] . "</A>"; $detail = "<A class=\"detail\" style=\"display:inline\" HREF=\"javascript:modifyOperation('" . $row['jr_id'] . "'," . $gDossier . ")\" > " . $row['jr_internal'] . "</A>";
$r.='Date : ' . $row['j_date_fmt'] . ' ref :' . $detail . ' <br> '; $r.='Date : ' . $row['j_date_fmt'] . ' ref :' . $detail . ' <br> ';
$r.=h($row['jr_comment']) . " montant: " . ($row['j_montant']) . " " . (($row['j_debit'] == 't') ? 'D' : 'C'); $r.=h($row['jr_comment']) ." ". _("montant")." : " . ($row['j_montant']) . " " . (($row['j_debit'] == 't') ? 'D' : 'C');
$r.='</fieldset>'; $r.='</fieldset>';
$r.='<div id="filtre" style="float:left;display:block">'; $r.='<div id="filtre" style="float:left;display:block">';
$r.='<form method="get" id="search_form" onsubmit="search_letter(this);return false">'; $r.='<form method="get" id="search_form" onsubmit="search_letter(this);return false">';
@ -455,7 +455,7 @@ EOF;
} }
else else
{ {
$form.='Mauvais type objet'; $form.=_('Mauvais type objet');
} }
$form.=HtmlInput::submit('record', _('Sauver')) . $ret->input(); $form.=HtmlInput::submit('record', _('Sauver')) . $ret->input();

View file

@ -31,7 +31,7 @@ $User->Check();
if ($User->admin != 1) if ($User->admin != 1)
{ {
echo "<script>alert('"."Vous n\'êtes pas administrateur"."') </script>"; echo "<script>alert('"._("Vous n\'êtes pas administrateur")."') </script>";
return; return;
} }

View file

@ -38,7 +38,7 @@ $action=$g_user->check_dossier($gDossier);
if ( $action=='X' || ! isset($_GET['act']) || $g_user->check_print($_GET['act'])==0 ) if ( $action=='X' || ! isset($_GET['act']) || $g_user->check_print($_GET['act'])==0 )
{ {
echo alert('Accès interdit'); echo alert(_('Accès interdit'));
redirect("do.php?".dossier::get()); redirect("do.php?".dossier::get());
exit(); exit();
} }

View file

@ -161,11 +161,11 @@ if (sizeof($sql) != 0 )
echo '</ul>'; echo '</ul>';
if (count($sql) > 12) if (count($sql) > 12)
{ {
printf ('<i>...Résultat limité à 12 ...</i>'); printf ('<i>...'._('Résultat limité à 12').' ...</i>');
} }
} }
else else
{ {
echo "<ul><li>Non trouvé</li></ul>"; echo "<ul><li>"._("Non trouvé")."</li></ul>";
} }
?> ?>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -50,7 +50,7 @@ if ( isset ($_POST["p_user"] ) )
if ($version != DBVERSIONREPO) if ($version != DBVERSIONREPO)
{ {
echo alert('Version de base de données incorrectes, vous devez mettre à jour'); echo alert(_('Version de base de données incorrectes, vous devez mettre à jour'));
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=admin/setup.php\">"; echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=admin/setup.php\">";
exit(); exit();
} }
@ -64,7 +64,7 @@ if ( isset ($_POST["p_user"] ) )
$valid = $img->check($_POST['captcha_code']); $valid = $img->check($_POST['captcha_code']);
if ( $valid == false ) if ( $valid == false )
{ {
echo alert('Code invalide'); echo alert(_('Code invalide'));
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=index.php\">"; echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=index.php\">";
exit(); exit();
} }
@ -82,7 +82,7 @@ else
if ( $version != DBVERSIONREPO) if ( $version != DBVERSIONREPO)
{ {
echo alert('Version de base de données incorrectes, vous devez mettre à jour'); echo alert(_('Version de base de données incorrectes, vous devez mettre à jour'));
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"1;url=admin/setup.php\">"; echo "<META HTTP-EQUIV=\"REFRESH\" content=\"1;url=admin/setup.php\">";
exit(); exit();

View file

@ -27,7 +27,7 @@ require_once('class_database.php');
html_page_start("classic"); html_page_start("classic");
session_unset(); session_unset();
echo '<h2 class="info">Vous êtes déconnecté</h2>'; echo '<h2 class="info">'._('Vous êtes déconnecté').'</h2>';
echo '<META HTTP-EQUIV="REFRESH" content="0;url=index.html">'; echo '<META HTTP-EQUIV="REFRESH" content="0;url=index.html">';
html_page_stop(); html_page_stop();

View file

@ -51,8 +51,8 @@ if ( basename($_GET['ajax']) == 'ajax_history.php' )
$href_pdf="export.php?".$href.'&f_id='.$_GET['f_id'].'&ople=0&type=poste&'.$from_periode.'&'.$to_periode."&act=PDF:fichedetail"; $href_pdf="export.php?".$href.'&f_id='.$_GET['f_id'].'&ople=0&type=poste&'.$from_periode.'&'.$to_periode."&act=PDF:fichedetail";
} }
echo '<a class="button" href="'.$href_csv.'">Export CSV</a>'; echo '<a class="button" href="'.$href_csv.'">'._("Export CSV").'</a>';
echo '<a class="button" href="'.$href_pdf.'">Export PDF</a>'; echo '<a class="button" href="'.$href_pdf.'">'._("Export PDF").'</a>';
} }
echo '</div>'; echo '</div>';
echo HtmlInput::hidden('inpopup',1); echo HtmlInput::hidden('inpopup',1);

View file

@ -50,7 +50,7 @@ if ($act =='P')
} }
if ( $act=='X') if ( $act=='X')
{ {
alert('Accès interdit'); alert(_('Accès interdit'));
exit(); exit();
} }
// display a search box // display a search box

View file

@ -93,7 +93,7 @@ if ( $User->Admin() == 1)
} }
include_once("user_menu.php"); include_once("user_menu.php");
$priv=($User->admin==1)?"Administrateur":"Utilisateur"; $priv=($User->admin==1)?_("Administrateur"):_("Utilisateur");
load_all_script(); load_all_script();
if ( isset ($_POST['set_preference'])) { if ( isset ($_POST['set_preference'])) {
//// Save value //// Save value
@ -152,7 +152,7 @@ $result.='<TD class="tool" ><A class="cell" HREF="logout.php" >'._('Deconnexion
$result.="</TR>"; $result.="</TR>";
$result.="</table>"; $result.="</table>";
echo '<h2 class="info">'._('Bienvenue ').$User->first_name.' '.$User->name.' '._("dans NOALYSS")."</h2>"; echo '<h2 class="info">'._('Bienvenue')." ".$User->first_name.' '.$User->name.' '._("dans NOALYSS")."</h2>";
echo '<div id="module">'.$result.'</div>'; echo '<div id="module">'.$result.'</div>';
echo '</div>'; echo '</div>';
?> ?>

View file

@ -84,7 +84,7 @@ if ( isset ($_POST['val']) )
// comta style // comta style
include_once ("user_menu.php"); include_once ("user_menu.php");
echo "<h2 class=\"info\"> Pr&eacute;f&eacute;rences</h2>"; echo "<h2 class=\"info\">"._('Préférence')."</h2>";
require_once("pref.inc.php"); require_once("pref.inc.php");
html_page_stop(); html_page_stop();

View file

@ -605,9 +605,9 @@ function sql_filter_per($p_cn, $p_from, $p_to, $p_form='p_id', $p_field='jr_tech
$a_start = $pPeriode->get_date_limit($p_from); $a_start = $pPeriode->get_date_limit($p_from);
$a_end = $pPeriode->get_date_limit($p_to); $a_end = $pPeriode->get_date_limit($p_to);
if ($a_start == null || $a_end == null) if ($a_start == null || $a_end == null)
throw new Exception(__FILE__ . __LINE__ . 'Attention periode ' . throw new Exception(__FILE__ . __LINE__ . sprintf(_('Attention periode
' non trouvee periode p_from=' . $p_from . non trouvee periode p_from= %s p_to_periode = %s'), $p_from ,
'p_to_periode = ' . $p_to); $p_to));
$p_from = $a_start['p_start']; $p_from = $a_start['p_start'];
@ -657,7 +657,7 @@ function set_language()
{ {
$g_lang = 'fr_FR.utf8'; $g_lang = 'fr_FR.utf8';
$dir = setlocale(LC_MESSAGES, $g_lang); $dir = setlocale(LC_MESSAGES, $g_lang);
echo '<span class="notice">' . $_SESSION['g_lang'] . ' domaine non supporté</h2>'; // echo '<span class="notice">' . $_SESSION['g_lang'] . ' domaine non supporté</h2>';
} }
bindtextdomain('messages', './lang'); bindtextdomain('messages', './lang');
textdomain('messages'); textdomain('messages');
@ -779,9 +779,9 @@ function ajax_disconnected($div)
$html = $script; $html = $script;
$html.=HtmlInput::anchor_close($div); $html.=HtmlInput::anchor_close($div);
$html.='<div>'; $html.='<div>';
$html.=h2('Données non disponibles', 'class="info" style="width:auto"'); $html.=h2(_('Données non disponibles'), 'class="info" style="width:auto"');
$html.=h2('Veuillez vous reconnecter', ''); $html.=h2(_('Veuillez vous reconnecter'), '');
$html.=alert("Déconnecté", true); $html.=alert(_("Déconnecté"), true);
$html = escape_xml($html); $html = escape_xml($html);
header('Content-type: text/xml; charset=UTF-8'); header('Content-type: text/xml; charset=UTF-8');
@ -1058,11 +1058,11 @@ function display_dashboard_operation($p_array,$p_title,$p_div)
<?php if (count($p_array)>0) :?> <?php if (count($p_array)>0) :?>
<table class="result"> <table class="result">
<tr> <tr>
<th>Date</th> <th><?php echo _('Date')?></th>
<th>Code Interne</th> <th><?php echo _('Code Interne')?></th>
<th>Description</th> <th><?php echo _('Description')?></th>
<th> <th>
Montant <?php echo _('Montant')?>
</th> </th>
</tr> </tr>
@ -1088,7 +1088,7 @@ function display_dashboard_operation($p_array,$p_title,$p_div)
?> ?>
</table> </table>
<?php else: ?> <?php else: ?>
<h2 class="notice">Aucune donnée</h2> <h2 class="notice"><?php echo _('Aucune donnée')?></h2>
<?php <?php
endif; endif;
?> ?>

View file

@ -122,7 +122,7 @@ if ($sub_action == "update")
if ($g_user->can_write_action($act2->ag_id) == false ) if ($g_user->can_write_action($act2->ag_id) == false )
{ {
echo '<div class="redcontent">'; echo '<div class="redcontent">';
echo '<h2 class="error"> Cette action ne vous est pas autorisée Contactez votre responsable</h2>'; echo '<h2 class="error">'._('Cette action ne vous est pas autorisée Contactez votre responsable').'</h2>';
echo '</div>'; echo '</div>';
exit(); exit();
} }
@ -274,11 +274,11 @@ if ($sub_action == "save_action_st2")
// insert into action_gestion // insert into action_gestion
echo $act->save(); echo $act->save();
$url = "?$base&sa=detail&ag_id=" . $act->ag_id . '&' . dossier::get(); $url = "?$base&sa=detail&ag_id=" . $act->ag_id . '&' . dossier::get();
echo '<p><a class="mtitle" href="' . $url . '">' . hb('Action Sauvée : ' . $act->ag_ref) . '</a></p>'; echo '<p><a class="mtitle" href="' . $url . '">' . hb(_('Action Sauvée').' : ' . $act->ag_ref) . '</a></p>';
Follow_Up::show_action_list($cn,$base); Follow_Up::show_action_list($cn,$base);
$url = "?$base&sa=detail&ag_id=" . $act->ag_id . '&' . dossier::get(); $url = "?$base&sa=detail&ag_id=" . $act->ag_id . '&' . dossier::get();
echo '<p><a class="mtitle" href="' . $url . '">' . hb('Action Sauvée : ' . $act->ag_ref) . '</a></p>'; echo '<p><a class="mtitle" href="' . $url . '">' . hb(_('Action Sauvée').' : ' . $act->ag_ref) . '</a></p>';
} }
?> ?>

View file

@ -67,9 +67,9 @@ $me_code_dep->value=$ame_code_dep;
$p_type=new ISelect('p_type'); $p_type=new ISelect('p_type');
$p_type->value=$atype; $p_type->value=$atype;
$pm_default=new ICheckBox('pm_default'); $pm_default=new ICheckBox('pm_default');
echo HtmlInput::title_box("Nouveau menu", $ctl); echo HtmlInput::title_box(_("Nouveau menu"), $ctl);
?> ?>
<form method="POST" onsubmit="return confirm('Vous confirmez ?')"> <form method="POST" onsubmit="return confirm('<?php echo _('Vous confirmez');?> ?')">
<?php <?php
echo HtmlInput::hidden('tab','profile_menu_div'); echo HtmlInput::hidden('tab','profile_menu_div');
?> ?>
@ -116,14 +116,14 @@ select me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,
$me_code=new ISelect('me_code'); $me_code=new ISelect('me_code');
$me_code->value=$ame_code; $me_code->value=$ame_code;
echo HtmlInput::title_box("Nouveau menu", $ctl); echo HtmlInput::title_box(_("Nouveau menu"), $ctl);
if (count($ame_code)==0) if (count($ame_code)==0)
{ {
echo h2("Aucune impression disponible à ajouter",'class="notice"'); echo h2(_("Aucune impression disponible à ajouter"),'class="notice"');
return; return;
} }
?> ?>
<form method="POST" onsubmit="return confirm('Vous confirmez ?')"> <form method="POST" onsubmit="return confirm('<?php echo _('Vous confirmez ?')?>">
<?php <?php
echo HtmlInput::hidden('tab','profile_print_div'); echo HtmlInput::hidden('tab','profile_print_div');
?> ?>
@ -139,7 +139,7 @@ $me_code->value=$ame_code;
</table> </table>
<?php <?php
echo HtmlInput::submit('add_impress',"Valider"); echo HtmlInput::submit('add_impress',_("Valider"));
echo '</form>'; echo '</form>';
} }

View file

@ -38,7 +38,7 @@ require_once ('class_anc_account.php');
require_once ('class_anc_plan.php'); require_once ('class_anc_plan.php');
require_once('function_javascript.php'); require_once('function_javascript.php');
echo HtmlInput::title_box("Recherche activité", $ctl); echo HtmlInput::title_box(_("Recherche activité"), $ctl);
//------------- FORM ---------------------------------- //------------- FORM ----------------------------------
echo '<FORM id="anc_search_form" METHOD="GET" onsubmit="search_anc_form(this);return false">'; echo '<FORM id="anc_search_form" METHOD="GET" onsubmit="search_anc_form(this);return false">';
@ -62,7 +62,7 @@ if ( isset($_REQUEST['go']))
$plan=new Anc_Plan($cn,$_REQUEST['c2']); $plan=new Anc_Plan($cn,$_REQUEST['c2']);
$plan->pa_id=$_REQUEST['c2']; $plan->pa_id=$_REQUEST['c2'];
if ( $plan->exist()==false) if ( $plan->exist()==false)
exit("Ce plan n'existe pas"); exit(_("Ce plan n'existe pas"));
$sql="select po_name , po_description from poste_analytique ". $sql="select po_name , po_description from poste_analytique ".
"where pa_id=$1 and ". "where pa_id=$1 and ".
@ -71,12 +71,12 @@ if ( isset($_REQUEST['go']))
if (empty($array) == true) if (empty($array) == true)
{ {
echo "D&eacute;sol&eacute; aucun poste trouv&eacute;"; echo _("Aucun poste trouvé");
return; return;
} }
$button=new IButton(); $button=new IButton();
$button->name="Choix"; $button->name=_("Choix");
$button->label="Choix"; $button->label=_("Choix");
echo '<table>'; echo '<table>';
foreach ($array as $line) foreach ($array as $line)

View file

@ -25,7 +25,7 @@
* @brief user's bookmark * @brief user's bookmark
*/ */
if ( ! defined ('ALLOWED')) die('Appel direct ne sont pas permis'); if ( ! defined ('ALLOWED')) die('Appel direct ne sont pas permis');
echo HtmlInput::title_box("Favoris", "bookmark_div"); echo HtmlInput::title_box(_("Favoris"), "bookmark_div");
if (! isset($_GET['ac'])) { if (! isset($_GET['ac'])) {
/* /*
* find default module * find default module
@ -43,7 +43,7 @@ if (isset($_GET['bookmark_add'])){
$cn->exec_sql("insert into bookmark(b_action,login) values($1,$2)", $cn->exec_sql("insert into bookmark(b_action,login) values($1,$2)",
array($_GET['ac'],$g_user->login)); array($_GET['ac'],$g_user->login));
} else { } else {
$js="error_message('Ce favori a déjà été ajouté');"; $js="error_message('"._("Ce favori a déjà été ajouté")."');";
echo create_script($js); echo create_script($js);
} }
} }
@ -100,17 +100,17 @@ $url="do.php?gDossier=".Dossier::id()."&ac=";
</table> </table>
<?php <?php
if ( count($a_bookmark) > 0) : if ( count($a_bookmark) > 0) :
echo HtmlInput::submit("bookmark_delete", "Supprimez favoris sélectionnés","","smallbutton"); echo HtmlInput::submit("bookmark_delete",_("Supprimez favoris sélectionnés"),"","smallbutton");
endif; endif;
?> ?>
</form> </form>
<form id="bookmark_frm" method="get" onsubmit="save_bookmark();return false"> <form id="bookmark_frm" method="get" onsubmit="save_bookmark();return false">
<?php <?php
echo "Menu actuel : ".hb($_GET['ac']); echo _("Menu actuel")." : ".hb($_GET['ac']);
echo HtmlInput::array_to_hidden(array("gDossier","ac"), $_REQUEST); echo HtmlInput::array_to_hidden(array("gDossier","ac"), $_REQUEST);
?> ?>
<p> <p>
<?php echo HtmlInput::submit("bookmark_add", "Ajoutez le menu actuel à vos favoris","","smallbutton"); ?> <?php echo HtmlInput::submit("bookmark_add", _("Ajoutez le menu actuel à vos favoris"),"","smallbutton"); ?>
</form> </form>

View file

@ -36,39 +36,39 @@ $sql="
order by 2 order by 2
"; ";
$array=$cn->get_array($sql,array($_GET['card'])); $array=$cn->get_array($sql,array($_GET['card']));
echo HtmlInput::title_box("Résultat recherche", "boxsearch_card_div"); echo HtmlInput::title_box(_("Résultat recherche"), "boxsearch_card_div");
$max=(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array); $max=(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array);
?> ?>
<?php if (count($array)>MAX_CARD_SEARCH ): ?> <?php if (count($array)>MAX_CARD_SEARCH ): ?>
<h2 class="notice">Résultat limité à <?php echo MAX_CARD_SEARCH?>, nombre de fiches trouvées : <?php echo count($array)?> </h2> <h2 class="notice"><?php printf (_("Résultat limité à %d , %d nombre de fiches trouvées"), MAX_CARD_SEARCH,count($array))?> </h2>
<?php endif?> <?php endif?>
Filtre <?php echo HtmlInput::infobulle(26);echo HtmlInput::filter_table("tb_fiche", "0,1,2,3,4,5", 1); ?> <?php echo _('Filtre')?> <?php echo HtmlInput::infobulle(26);echo HtmlInput::filter_table("tb_fiche", "0,1,2,3,4,5", 1); ?> :
<table id="tb_fiche" class="sorttable" style="width:100%"> <table id="tb_fiche" class="sorttable" style="width:100%">
<tr> <tr>
<th> <th>
Quick Code <?php echo HtmlInput::infobulle(17); ?> <?php echo _("Quick Code");?> <?php echo HtmlInput::infobulle(17); ?>
</th> </th>
<th class=" sorttable_sorted"> <th class=" sorttable_sorted">
Nom Nom
<span id="sorttable_sortfwdind">&nbsp;&#x25BE;</span> <span id="sorttable_sortfwdind">&nbsp;&#x25BE;</span>
</th> </th>
<th> <th>
Categorie <?php echo _("Categorie");?>
</th> </th>
<th> <th>
Description <?php echo _("Description");?>
</th> </th>
<th> <th>
Numéro TVA <?php echo _("Numéro TVA");?>
</th> </th>
<th> <th>
Poste comptable <?php echo _("Poste comptable");?>
</th> </th>
</tr> </tr>
<?php if (count($array)==0) : ?> <?php if (count($array)==0) : ?>
<h2 class="notice"> Aucun résultat</h2> <h2 class="notice"> <?php echo _("Aucun résultat");?></h2>
<?php endif?> <?php endif?>
<?php for ($i=0;$i<$max;$i++):?> <?php for ($i=0;$i<$max;$i++):?>
<tr class="<?php echo ($i%2 == 0)?'even':'odd';?>"> <tr class="<?php echo ($i%2 == 0)?'even':'odd';?>">

View file

@ -20,7 +20,7 @@
if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_calendar.php'; require_once 'class_calendar.php';
ob_start(); ob_start();
echo HtmlInput::title_box("Calendrier", "calendar_zoom_div"); echo HtmlInput::title_box(_("Calendrier"), "calendar_zoom_div");
$cal=new Calendar(); $cal=new Calendar();
$cal->set_periode($_GET['in']); $cal->set_periode($_GET['in']);
echo $cal->zoom(); echo $cal->zoom();

View file

@ -37,7 +37,7 @@ if ( $_GET['id'] > 0 )
{ {
echo $fd->input_detail(); echo $fd->input_detail();
echo HtmlInput::button("retour_b", "Retour à la liste", "onclick=\"$('detail_category_div').hide();$('list_cat_div').show()\""); echo HtmlInput::button("retour_b", _("Retour à la liste"), "onclick=\"$('detail_category_div').hide();$('list_cat_div').show()\"");
} }
else else
{ {

View file

@ -67,34 +67,34 @@ $pm_default=new ICheckBox('pm_default','1');
$pm_default->set_check($array[0]['pm_default']); $pm_default->set_check($array[0]['pm_default']);
?> ?>
<form method="POST" onsubmit="return confirm('Vous confirmez ?')"> <form method="POST" onsubmit="return confirm('<?php echo _("Vous confirmez")?> ?')">
<?php echo HtmlInput::hidden('pm_id',$array[0]['pm_id'])?> <?php echo HtmlInput::hidden('pm_id',$array[0]['pm_id'])?>
<?php echo HtmlInput::hidden('p_id',$array[0]['p_id'])?> <?php echo HtmlInput::hidden('p_id',$array[0]['p_id'])?>
<table> <table>
<tr> <tr>
<td>Code</td> <td><?php echo _("Code");?></td>
<td><?php echo $me_code->input()?></td> <td><?php echo $me_code->input()?></td>
</tr> </tr>
<?php <?php
if ($array[0]['p_type_display']!='P'): if ($array[0]['p_type_display']!='P'):
?> ?>
<tr> <tr>
<td>Dépendant de </td> <td><?php echo _('Dépendant de');?> </td>
<td><?php echo $me_code_dep->input()?></td> <td><?php echo $me_code_dep->input()?></td>
</tr> </tr>
<tr> <tr>
<td>Ordre d'apparition</td> <td><?php echo _("Ordre d'apparition");?></td>
<td><?php echo $p_order->input()?></td> <td><?php echo $p_order->input()?></td>
</tr> </tr>
<tr> <tr>
<td>Menu par défaut</td> <td><?php echo _("Menu par défaut");?></td>
<td><?php echo $pm_default->input()?></td> <td><?php echo $pm_default->input()?></td>
</tr> </tr>
<?php endif;?> <?php endif;?>
</table> </table>
<p> <p>
Cochez cette case si vous souhaitez effacer ce menu <?php echo _("Cochez cette case si vous souhaitez effacer ce menu");?>
<?php <?php
$delete=new ICheckBox('delete',"1"); $delete=new ICheckBox('delete',"1");
echo $delete->input(); echo $delete->input();
@ -104,7 +104,7 @@ echo $delete->input();
if ($array[0]['p_type_display']!='P'): if ($array[0]['p_type_display']!='P'):
?> ?>
<p> <p>
Cochez cette case si vous souhaitez effacer ce menu ainsi que ceux qui en dépendent <?php echo _("Cochez cette case si vous souhaitez effacer ce menu ainsi que ceux qui en dépendent");?>
<?php <?php
$delete=new ICheckBox('del_dep',"1"); $delete=new ICheckBox('del_dep',"1");
echo $delete->input(); echo $delete->input();
@ -112,7 +112,7 @@ echo $delete->input();
</p> </p>
<?php endif;?> <?php endif;?>
<?php <?php
echo HtmlInput::submit('mod',"Valider"); echo HtmlInput::submit('mod',_("Valider"));
echo '</form>'; echo '</form>';

View file

@ -67,11 +67,11 @@ echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
echo HtmlInput::hidden('tab','profile_gen_div'); echo HtmlInput::hidden('tab','profile_gen_div');
echo HtmlInput::hidden('p_id',$profile->p_id); echo HtmlInput::hidden('p_id',$profile->p_id);
require_once("template/profile.php"); require_once("template/profile.php");
echo HtmlInput::submit("save_name","Modifier"); echo HtmlInput::submit("save_name",_("Modifier"));
echo '</form>'; echo '</form>';
if ($profile->p_id > 0) if ($profile->p_id > 0)
{ {
echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">'; echo '<form method="POST" onsubmit="return confirm (\''._("vous confirmez").'\')">';
echo 'Vous pouvez aussi copier ce profil et puis le corriger'; echo 'Vous pouvez aussi copier ce profil et puis le corriger';
@ -79,12 +79,12 @@ if ($profile->p_id > 0)
echo HtmlInput::submit("clone", "Copier"); echo HtmlInput::submit("clone", "Copier");
echo '</form>'; echo '</form>';
echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">'; echo '<form method="POST" onsubmit="return confirm (\''._("vous confirmez").'\')">';
echo 'Effacer ce profil'; echo 'Effacer ce profil';
echo HtmlInput::hidden('p_id', $profile->p_id); echo HtmlInput::hidden('p_id', $profile->p_id);
echo HtmlInput::submit("delete_profil", "Effacer ce profil"); echo HtmlInput::submit("delete_profil", _("Effacer ce profil"));
echo '</form>'; echo '</form>';
echo '</div>'; echo '</div>';
echo '<div style="display:none" id="profile_menu_div">'; echo '<div style="display:none" id="profile_menu_div">';
@ -95,7 +95,7 @@ if ($profile->p_id > 0)
$profile_menu->listing_profile($p_id); $profile_menu->listing_profile($p_id);
echo '</div>'; echo '</div>';
echo '<div style="display:none" id="profile_print_div">'; echo '<div style="display:none" id="profile_print_div">';
echo "<h2>Impression</h2>"; echo "<h2>"._("Impression")."</h2>";
$profile_menu->printing($p_id); $profile_menu->printing($p_id);
echo $add_impression; echo $add_impression;
echo '</div>'; echo '</div>';

View file

@ -29,7 +29,7 @@ require_once 'class_pre_operation.php';
$op=new Pre_Operation($cn,$_GET['id']); $op=new Pre_Operation($cn,$_GET['id']);
$array=$op->load(); $array=$op->load();
echo HtmlInput::anchor_close('mod_predf_op'); echo HtmlInput::anchor_close('mod_predf_op');
echo h2info('Modification du nom'); echo h2info(_('Modification du nom'));
echo ' echo '
<form method="POST" onsubmit="save_predf_op(this);return false;">'; <form method="POST" onsubmit="save_predf_op(this);return false;">';
@ -41,7 +41,7 @@ $opd_description=new ITextarea('od_description');
$opd_description->style=' class="itextarea" style="width:30em;height:4em;vertical-align:top"'; $opd_description->style=' class="itextarea" style="width:30em;height:4em;vertical-align:top"';
$opd_description->value=$op->od_description; $opd_description->value=$op->od_description;
echo '<p>'; echo '<p>';
echo "Description (max 50 car.)"; echo _("Description (max 50 car.)");
echo $opd_description->input(); echo $opd_description->input();
echo '</p>'; echo '</p>';
echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']); echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']);
@ -52,8 +52,8 @@ echo "<hr>";
echo $op->display(); echo $op->display();
echo HtmlInput::submit('save', 'Sauve'); echo HtmlInput::submit('save', _('Sauve'));
echo HtmlInput::button('close', 'Annuler', 'onclick="removeDiv(\'mod_predf_op\')"'); echo HtmlInput::button('close', _('Annuler'), 'onclick="removeDiv(\'mod_predf_op\')"');
echo '</form>'; echo '</form>';

View file

@ -36,7 +36,7 @@ $st=new Stock_Sql($_GET['r_id']);
<table> <table>
<tr> <tr>
<td> <td>
Nom <?php echo _("Nom");?>
</td> </td>
<td> <td>
<?php $name=new IText("r_name",$st->r_name); echo $name->input();?> <?php $name=new IText("r_name",$st->r_name); echo $name->input();?>
@ -44,7 +44,7 @@ $st=new Stock_Sql($_GET['r_id']);
</tr> </tr>
<tr> <tr>
<td> <td>
Adresse <?php echo _("Adresse");?>
</td> </td>
<td> <td>
<?php $name=new IText("r_adress",$st->r_adress); echo $name->input();?> <?php $name=new IText("r_adress",$st->r_adress); echo $name->input();?>
@ -52,7 +52,7 @@ $st=new Stock_Sql($_GET['r_id']);
</tr> </tr>
<tr> <tr>
<td> <td>
Ville <?php echo _("Ville");?>
</td> </td>
<td> <td>
<?php $name=new IText("r_city",$st->r_city); echo $name->input();?> <?php $name=new IText("r_city",$st->r_city); echo $name->input();?>
@ -60,7 +60,7 @@ $st=new Stock_Sql($_GET['r_id']);
</tr> </tr>
<tr> <tr>
<td> <td>
Pays <?php echo _("Pays");?>
</td> </td>
<td> <td>
<?php $name=new IText("r_country",$st->r_country); echo $name->input();?> <?php $name=new IText("r_country",$st->r_country); echo $name->input();?>
@ -68,7 +68,7 @@ $st=new Stock_Sql($_GET['r_id']);
</tr> </tr>
<tr> <tr>
<td> <td>
Téléphone <?php echo _("Téléphone");?>
</td> </td>
<td> <td>
<?php $name=new IText("r_phone",$st->r_phone); echo $name->input();?> <?php $name=new IText("r_phone",$st->r_phone); echo $name->input();?>
@ -76,5 +76,5 @@ $st=new Stock_Sql($_GET['r_id']);
</tr> </tr>
</table> </table>
<?php echo HtmlInput::submit("mod_stock","Sauver")?> <?php echo HtmlInput::submit("mod_stock",_("Sauver"))?>
</form> </form>

View file

@ -34,7 +34,7 @@ $a_menu=$cn->get_array($sql,array($_SESSION['g_user']));
?> ?>
<div class="content"> <div class="content">
<p> <p>
Vous permet d'accèder rapidement au menu qui vous intéresse, utiliser le filtre pour trouver plus rapidement <?php echo _("Vous permet d'accèder rapidement au menu qui vous intéresse, utiliser le filtre pour trouver plus rapidement")?>
</p> </p>
<p style='margin-left: 5%'> <p style='margin-left: 5%'>
Filtre : <?php Filtre : <?php
@ -49,14 +49,14 @@ $a_menu=$cn->get_array($sql,array($_SESSION['g_user']));
<span id="sorttable_sortfwdind">&nbsp;&blacktriangledown;</span> <span id="sorttable_sortfwdind">&nbsp;&blacktriangledown;</span>
</th> </th>
<th> <th>
Chemin <?php echo _("Chemin");?>
<?php echo HtmlInput::infobulle(35); ?> <?php echo HtmlInput::infobulle(35); ?>
</th> </th>
<th> <th>
Description complète <?php echo _("Description complète");?>
</th> </th>
<th> <th>
Aide sur le wiki <?php echo _("Aide sur le wiki");?>
</th> </th>
</tr> </tr>
<?php <?php
@ -99,11 +99,11 @@ for ($i=0;$i<$nMax;$i++):
</a> </a>
</td> </td>
<td> <td>
<?php if ($a_menu[$i]['p_type_display'] == 'PL') echo '(Extension)'; <?php if ($a_menu[$i]['p_type_display'] == 'PL') echo "("._('Extension').")";
echo $a_menu[$i]['me_description_etendue']; ?> echo $a_menu[$i]['me_description_etendue']; ?>
</td> </td>
<td> <td>
<a class="mtitle" style='text-decoration: underline' href="http://wiki.phpcompta.eu/doku.php?id=MENU:<?php echo $a_menu[$i]['me_code']; ?>" target='_blank'>sur le wiki : <?php echo $a_menu[$i]['me_code']; ?></a> <a class="mtitle" style='text-decoration: underline' href="http://wiki.phpcompta.eu/doku.php?id=MENU:<?php echo $a_menu[$i]['me_code']; ?>" target='_blank'><?php echo _("sur le wiki")?> : <?php echo $a_menu[$i]['me_code']; ?></a>
</td> </td>
</tr> </tr>
<?php endfor; ?> <?php endfor; ?>

View file

@ -26,36 +26,36 @@
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$msg=($new==1)?"Nouvelle extension":"Modification ".$me_menu->value; $msg=($new==1)?_("Nouvelle extension"):_("Modification"). " ".$me_menu->value;
echo HtmlInput::title_box($msg, $ctl); echo HtmlInput::title_box($msg, $ctl);
?> ?>
<form method="POST" onsubmit="return confirm('Vous confirmez')"> <form method="POST" onsubmit="return confirm('<?php echo _("Vous confirmez");?>')">
<table> <table>
<tr> <tr>
<TD>Label</td> <TD><?php echo _("Label");?></td>
<td><?php echo $me_menu->input();?></td> <td><?php echo $me_menu->input();?></td>
</tr> </tr>
<tr> <tr>
<TD>Code</td> <TD><?php echo _("Code");?></td>
<td><?php echo $me_code->input();?></td> <td><?php echo $me_code->input();?></td>
</tr> </tr>
<tr> <tr>
<TD>Description</td> <TD><?php echo _("Description");?></td>
<td><?php echo $me_description->input();?></td> <td><?php echo $me_description->input();?></td>
</tr> </tr>
<tr> <tr>
<TD>Fichier</td> <TD><?php echo _("Fichier");?></td>
<td><?php echo $me_file->input();?></td> <td><?php echo $me_file->input();?></td>
</tr> </tr>
</table> </table>
<?php <?php
if ($new ==1 ) if ($new ==1 )
{ {
echo HtmlInput::submit("save_plugin","Ajouter ce plugin"); echo HtmlInput::submit("save_plugin",_("Ajouter ce plugin"));
} else { } else {
$delete=new ICheckBox('delete_pl'); $delete=new ICheckBox('delete_pl');
echo "<p>Voulez-vous effacer ce plugin ? ".$delete->input()."</p>"; echo "<p>"._("Voulez-vous effacer ce plugin ?")." ".$delete->input()."</p>";
echo HtmlInput::submit("mod_plugin","Modifier ce plugin"); echo HtmlInput::submit("mod_plugin",_("Modifier ce plugin"));
} }
?> ?>

View file

@ -30,8 +30,9 @@ require_once('class_acc_report.php');
require_once('class_periode.php'); require_once('class_periode.php');
echo HtmlInput::title_box(_('Préférence'), 'preference_div'); echo HtmlInput::title_box(_('Préférence'), 'preference_div');
echo '<DIV class="content">'; echo '<DIV class="content">';
echo '<p class="notice"> Si vous validez, la page sera rechargée et vous pourriez perdre' echo '<p class="notice">';
. ' ce que vous faisiez</p>'; echo _("Si vous validez, la page sera rechargée et vous pourriez perdre ce que vous faisiez");
echo '</p>';
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// //
global $g_user; global $g_user;

View file

@ -12,7 +12,7 @@ ob_start();
$tag=new Tag($cn); $tag=new Tag($cn);
$tag->data->t_id=$_GET['tag']; $tag->data->t_id=$_GET['tag'];
$tag->data->load(); $tag->data->load();
echo HtmlInput::title_box("Détail du dossier / tag", "tag_div"); echo HtmlInput::title_box(_("Détail du dossier ou tag"), "tag_div");
?> ?>
<?php <?php

View file

@ -27,7 +27,7 @@ $tag->select();
//------------------- Propose to add a tag //------------------- Propose to add a tag
$js=sprintf("onclick=\"show_tag('%s','%s','%s','j')\"",Dossier::id(),'','-1'); $js=sprintf("onclick=\"show_tag('%s','%s','%s','j')\"",Dossier::id(),'','-1');
echo HtmlInput::button("tag_add", "Ajout d'un tag", $js); echo HtmlInput::button("tag_add", _("Ajout d'un tag"), $js);
$response= ob_get_clean(); $response= ob_get_clean();
$html=escape_xml($response); $html=escape_xml($response);

View file

@ -51,7 +51,7 @@ $op->set('direct',$d);
$url=http_build_query(array('action'=>'use_opd','p_jrn_predef'=>$l,'ac'=>$_GET['ac'],'gDossier'=>dossier::id())); $url=http_build_query(array('action'=>'use_opd','p_jrn_predef'=>$l,'ac'=>$_GET['ac'],'gDossier'=>dossier::id()));
$html=""; $html="";
$html.=HtmlInput::title_box("Modèle d'opérations ", 'modele_op_div', 'hide'); $html.=HtmlInput::title_box(_("Modèle d'opérations"), 'modele_op_div', 'hide');
$html.=$op->show_button('do.php?'.$url); $html.=$op->show_button('do.php?'.$url);
$html=escape_xml($html); $html=escape_xml($html);

View file

@ -30,7 +30,7 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$st=new Stock_Goods($cn); $st=new Stock_Goods($cn);
$array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id'])); $array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id']));
echo HtmlInput::title_box("Détail changement",$_GET['ctl']); echo HtmlInput::title_box(_("Détail changement"),$_GET['ctl']);
$p_array=array(); $p_array=array();
$p_array['p_date']=$cn->get_value("select to_char(c_date,'DD.MM.YYYY') from stock_change where c_id=$1",array($_GET['c_id'])); $p_array['p_date']=$cn->get_value("select to_char(c_date,'DD.MM.YYYY') from stock_change where c_id=$1",array($_GET['c_id']));
$p_array['p_motif']=$cn->get_value("select c_comment from stock_change where c_id=$1",array($_GET['c_id'])); $p_array['p_motif']=$cn->get_value("select c_comment from stock_change where c_id=$1",array($_GET['c_id']));
@ -49,10 +49,10 @@ echo $st->input($p_array,true);
<?php echo HtmlInput::hidden('c_id',$_GET['c_id']);?> <?php echo HtmlInput::hidden('c_id',$_GET['c_id']);?>
<p> <p>
<?php $ck=new ICheckBox("ok"," 1"); <?php $ck=new ICheckBox("ok"," 1");
$ck->label= "Cochez pour confirmer effacement "; $ck->label= _("Cochez pour confirmer effacement");
echo $ck->input();?> echo $ck->input();?>
</p> </p>
<?php echo HtmlInput::submit("del", "Effacer");?> <?php echo HtmlInput::submit("del",_("Effacer"));?>
<?php echo HtmlInput::button_close($_GET['ctl'])?> <?php echo HtmlInput::button_close($_GET['ctl'])?>
<?php echo HtmlInput::hidden('r_id',$p_array['p_depot'])?> <?php echo HtmlInput::hidden('r_id',$p_array['p_depot'])?>
</form> </form>

View file

@ -8,7 +8,7 @@ $tab = new Anc_Acc_List($cn);
$tab->get_request(); $tab->get_request();
echo '<form method="get">'; echo '<form method="get">';
echo $tab->display_form(); echo $tab->display_form();
echo '<p>' . HtmlInput::submit('Recherche', 'Recherche') . '</p>'; echo '<p>' . HtmlInput::submit('Recherche', _('Recherche')) . '</p>';
echo '</form>'; echo '</form>';
if (isset($_GET['result'])) if (isset($_GET['result']))

View file

@ -8,7 +8,7 @@ $tab = new Anc_Table($cn);
$tab->get_request(); $tab->get_request();
echo '<form method="get">'; echo '<form method="get">';
echo $tab->display_form(); echo $tab->display_form();
echo '<p>' . HtmlInput::submit('Recherche', 'Recherche') . '</p>'; echo '<p>' . HtmlInput::submit('Recherche', _('Recherche')) . '</p>';
echo '</form>'; echo '</form>';
if (isset($_GET['result'])) if (isset($_GET['result']))

View file

@ -8,7 +8,7 @@ $gl = new Anc_GrandLivre($cn);
$gl->get_request(); $gl->get_request();
echo '<form method="get">'; echo '<form method="get">';
echo $gl->display_form(); echo $gl->display_form();
echo '<p>' . HtmlInput::submit('Recherche', 'Recherche') . '</p>'; echo '<p>' . HtmlInput::submit('Recherche', _('Recherche')) . '</p>';
echo '</form>'; echo '</form>';
if (isset($_GET['result'])) if (isset($_GET['result']))
{ {

View file

@ -59,7 +59,7 @@ echo '<div class="content" >';
echo '<form method="post">'; echo '<form method="post">';
echo dossier::hidden(); echo dossier::hidden();
echo '<table class="result" >'; echo '<table class="result" >';
echo '<tr> <th> Code </th><th>Plan </td><th>Description</th></tr>'; echo '<tr> <th>'._("Code")." </th><th>"._("Plan")." </td><th>"._("Description").'</th></tr>';
foreach ($array as $idx=>$m) foreach ($array as $idx=>$m)
{ {
echo '<tr>'; echo '<tr>';
@ -78,13 +78,13 @@ $wPa_id->value=$val_pa_id;
echo "<td>".$w->input()."</td>"; echo "<td>".$w->input()."</td>";
echo "<td>".$wPa_id->input("pa_id")."</td>"; echo "<td>".$wPa_id->input("pa_id")."</td>";
echo "<td>".$wDesc->input("ga_description"). echo "<td>".$wDesc->input("ga_description").
HtmlInput::submit('add','Ajouter'). HtmlInput::submit('add',_('Ajouter')).
"</td>"; "</td>";
; ;
echo '</table>'; echo '</table>';
echo "<hr>"; echo "<hr>";
echo HtmlInput::submit('remove','Effacer'); echo HtmlInput::submit('remove',_('Effacer'));
echo '</div>'; echo '</div>';

View file

@ -8,7 +8,7 @@ $gr = new Anc_Group($cn);
$gr->get_request(); $gr->get_request();
echo '<form method="get">'; echo '<form method="get">';
echo $gr->display_form(); echo $gr->display_form();
echo '<p>' . HtmlInput::submit('Recherche', 'Recherche') . '</p>'; echo '<p>' . HtmlInput::submit('Recherche', _('Recherche')) . '</p>';
echo '</form>'; echo '</form>';
if (isset($_GET['result'])) if (isset($_GET['result']))
{ {

View file

@ -145,10 +145,10 @@ if ( isset($_GET['new']))
echo $a->form(); echo $a->form();
echo HtmlInput::submit("save","Sauver"); echo HtmlInput::submit("save","Sauver");
echo '</form>'; echo '</form>';
echo '<div class="info"> echo '<div class="info">';
D&eacute;bit = <span id="totalDeb"></span> echo _('Débit').' = <span id="totalDeb"></span>';
Cr&eacute;dit = <span id="totalCred"></span> echo _('Crédit').' = <span id="totalCred"></span>';
Difference = <span id="totalDiff"></span> echo _('Difference').' = <span id="totalDiff"></span>
</div> </div>
'; ';

View file

@ -44,12 +44,12 @@ if ( isset($_REQUEST['sa']))
if ( $new->isAppend() == true) if ( $new->isAppend() == true)
{ {
$ret.= '<div class="redcontent">'; $ret.= '<div class="redcontent">';
$ret.= '<h2 class="info">Nouveau plan</h2>'; $ret.= '<h2 class="info">'._("Nouveau plan").'</h2>';
$ret.= '<form method="post">'; $ret.= '<form method="post">';
$ret.=dossier::hidden(); $ret.=dossier::hidden();
$ret.= $new->form(); $ret.= $new->form();
$ret.= HtmlInput::hidden("sa","pa_write"); $ret.= HtmlInput::hidden("sa","pa_write");
$ret.=HtmlInput::submit("submit","Enregistre"); $ret.=HtmlInput::submit("submit",_("Enregistre"));
$ret.= '</form>'; $ret.= '</form>';
$ret.= '</div>'; $ret.= '</div>';
} }
@ -57,7 +57,7 @@ if ( isset($_REQUEST['sa']))
{ {
$ret.= '<div class="redcontent">'. $ret.= '<div class="redcontent">'.
'<h2 class="info">'. '<h2 class="info">'.
"Maximum de plan analytique est atteint". _("Maximum de plan analytique est atteint").
"</h2></div>"; "</h2></div>";
} }
} }
@ -70,7 +70,7 @@ if ( isset($_REQUEST['sa']))
if ( $new->isAppend() == false) if ( $new->isAppend() == false)
{ {
$ret.= '<h2 class="info">'. $ret.= '<h2 class="info">'.
"Maximum de plan analytique est atteint". _("Maximum de plan analytique est atteint").
"</h2>"; "</h2>";
} }
else else
@ -90,14 +90,14 @@ if ( isset($_REQUEST['sa']))
$new->get(); $new->get();
$ret.= '<div class="redcontent">'; $ret.= '<div class="redcontent">';
$ret.= '<h2 class="info">Mise &agrave; jour</h2>'; $ret.= '<h2 class="info">'._("Mise à jour").'</h2>';
$ret.= '<form method="post">'; $ret.= '<form method="post">';
$ret.=dossier::hidden(); $ret.=dossier::hidden();
$ret.= $new->form(); $ret.= $new->form();
$ret.= $wSa; $ret.= $wSa;
$ret.=HtmlInput::submit("submit","Enregistre"); $ret.=HtmlInput::submit("submit",_("Enregistre"));
$ret.=HtmlInput::button_anchor('Efface',"?ac=".$_REQUEST['ac']."&pa_id=".$_GET['pa_id']."&sa=pa_delete&$str_dossier",'Efface','onclick="return confirm(\'Effacer ?\')"'); $ret.=HtmlInput::button_anchor(_('Efface'),"?ac=".$_REQUEST['ac']."&pa_id=".$_GET['pa_id']."&sa=pa_delete&$str_dossier",'Efface','onclick="return confirm(\'Effacer ?\')"');
$ret.= '</form>'; $ret.= '</form>';
$ret.= '</div>'; $ret.= '</div>';
@ -124,7 +124,7 @@ if ( isset($_REQUEST['sa']))
$ret.=dossier::hidden(); $ret.=dossier::hidden();
$ret.=$po->form(); $ret.=$po->form();
$ret.=$wSa; $ret.=$wSa;
$ret.=HtmlInput::submit("add","Ajout"); $ret.=HtmlInput::submit("add",_("Ajout"));
$ret.="</form>"; $ret.="</form>";
$ret.="</div>"; $ret.="</div>";
} }
@ -191,11 +191,11 @@ if ( isset($_REQUEST['sa']))
$ret.='<div class="redcontent">'; $ret.='<div class="redcontent">';
$ret.='<table class="table_large">'; $ret.='<table class="table_large">';
$ret.="<tr>"; $ret.="<tr>";
$ret.="<th> Nom </td>"; $ret.="<th>"._("Nom")." </td>";
$ret.="<th> Montant </td>"; $ret.="<th>"._("Montant")." </td>";
$ret.="<th> Description </td>"; $ret.="<th>"._("Description")." </td>";
$ret.="<th>Groupe</th>"; $ret.="<th>"._("Groupe")."</th>";
$ret.="<th> Plan A </td>"; $ret.="<th>"._("Plan A")." </td>";
$ret.="</tr>"; $ret.="</tr>";
$class=""; $class="";
foreach ($array as $obj) foreach ($array as $obj)
@ -222,7 +222,7 @@ if ( isset($_REQUEST['sa']))
} }
$ret.="</table>"; $ret.="</table>";
$ret.=HtmlInput::button_anchor('Ajout',"?ac=".$_REQUEST['ac']."&sa=po_add&pa_id=".$_GET['pa_id']."&".$str_dossier); $ret.=HtmlInput::button_anchor(_('Ajout'),"?ac=".$_REQUEST['ac']."&sa=po_add&pa_id=".$_GET['pa_id']."&".$str_dossier);
$ret.='</div>'; $ret.='</div>';
} }
@ -245,14 +245,14 @@ if ( empty($list) )
echo '<div class="lmenu">'; echo '<div class="lmenu">';
echo '<TABLE>'; echo '<TABLE>';
echo '<TR><TD class="mtitle">'; echo '<TR><TD class="mtitle">';
echo '<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=add_pa&'.$str_dossier.'">Ajout d\'un plan comptable</a>'; echo '<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=add_pa&'.$str_dossier.'">'._("Ajout d'un plan comptable").'</a>';
echo '</TD></TR>'; echo '</TD></TR>';
echo '</TABLE>'; echo '</TABLE>';
echo '</div>'; echo '</div>';
if ( ! isset ( $_REQUEST['sa'])) if ( ! isset ( $_REQUEST['sa']))
echo '<div class="notice">'. echo '<div class="notice">'.
"Aucun plan analytique n'est d&eacute;fini". _("Aucun plan analytique n'est défini").
'</div>'; '</div>';
} }
@ -280,7 +280,7 @@ else
{ {
echo '<TABLE>'; echo '<TABLE>';
echo '<TR><TD class="mtitle">'; echo '<TR><TD class="mtitle">';
echo '<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=add_pa&'.$str_dossier.'">Ajout d\'un plan comptable</a>'; echo '<a class="mtitle" href="?ac='.$_REQUEST['ac'].'&sa=add_pa&'.$str_dossier.'">'._("Ajout d'un plan comptable").'</a>';
echo '</TD></TR>'; echo '</TD></TR>';
echo '</TABLE>'; echo '</TABLE>';
} }

View file

@ -33,11 +33,11 @@ if ( !defined ('ALLOWED')) die('Forbidden');
?> ?>
<TABLE CLASS="result" style="border-collapse:separate;border-spacing:2"> <TABLE CLASS="result" style="border-collapse:separate;border-spacing:2">
<tr> <tr>
<th>Utilisateur </th> <th><?php echo _("Utilisateur");?> </th>
<th>Date </th> <th><?php echo _("Date");?> </th>
<th>Adresse </th> <th><?php echo _("Adresse");?> </th>
<th>Module</th> <th><?php echo _("Module");?></th>
<th> Résultat</th> <th><?php echo _("Résultat");?></th>
</tr> </tr>
<TR> <TR>
<?php <?php

View file

@ -98,17 +98,17 @@ $array_cat=Acc_Ledger::array_cat();
echo '<ul style="list-style-type:none">'; echo '<ul style="list-style-type:none">';
if ( ! isset($_GET['p_filter']) || $_GET['p_filter']==0) $rad->selected='t'; if ( ! isset($_GET['p_filter']) || $_GET['p_filter']==0) $rad->selected='t';
else $rad->selected=false; else $rad->selected=false;
echo '<li>'.$rad->input('p_filter',0).'Aucun filtre, tous les journaux'.'</li>'; echo '<li>'.$rad->input('p_filter',0)._('Aucun filtre, tous les journaux').'</li>';
if ( isset($_GET['p_filter']) && $_GET['p_filter']==1) $rad->selected='t'; if ( isset($_GET['p_filter']) && $_GET['p_filter']==1) $rad->selected='t';
else $rad->selected=false; else $rad->selected=false;
echo '<li>'.$rad->input('p_filter',1).'Filtré par journal '; echo '<li>'.$rad->input('p_filter',1)._('Filtré par journal');
echo HtmlInput::button_choice_ledger(array('div'=>'bal','type'=>'ALL','all_type'=>1)); echo HtmlInput::button_choice_ledger(array('div'=>'bal','type'=>'ALL','all_type'=>1));
echo '</li>'; echo '</li>';
if ( isset($_GET['p_filter']) && $_GET['p_filter']==2) $rad->selected='t'; if ( isset($_GET['p_filter']) && $_GET['p_filter']==2) $rad->selected='t';
else $rad->selected=false; else $rad->selected=false;
echo '<li>'.$rad->input('p_filter',2).'Filtré par catégorie'.HtmlInput::select_cat($array_cat).'</li>'; echo '<li>'.$rad->input('p_filter',2)._('Filtré par catégorie').HtmlInput::select_cat($array_cat).'</li>';
echo '</ul>'; echo '</ul>';
echo 'Totaux par sous-niveaux'; echo _('Totaux par sous-niveaux');
$ck_lev1=new ICheckBox('lvl1'); $ck_lev1=new ICheckBox('lvl1');
$ck_lev2=new ICheckBox('lvl2'); $ck_lev2=new ICheckBox('lvl2');
$ck_lev3=new ICheckBox('lvl3'); $ck_lev3=new ICheckBox('lvl3');
@ -125,9 +125,9 @@ if (HtmlInput::default_value('lvl2',false,$_GET) !== false)
$ck_lev2->selected=true; $ck_lev2->selected=true;
if (HtmlInput::default_value('lvl3',false,$_GET) !== false) if (HtmlInput::default_value('lvl3',false,$_GET) !== false)
$ck_lev3->selected=true; $ck_lev3->selected=true;
echo '<li>'.$ck_lev1->input().'Niveau 1</li>'; echo '<li>'.$ck_lev1->input()._('Niveau 1').'</li>';
echo '<li>'.$ck_lev2->input().'Niveau 2</li>'; echo '<li>'.$ck_lev2->input()._('Niveau 2').'</li>';
echo '<li>'.$ck_lev3->input().'Niveau 3</li>'; echo '<li>'.$ck_lev3->input()._('Niveau 3').'</li>';
echo '</ul>'; echo '</ul>';
$unsold=new ICheckBox('unsold'); $unsold=new ICheckBox('unsold');
@ -159,20 +159,20 @@ $to_poste->value=(isset($_GET['to_poste']))?$_GET['to_poste']:"";
$to_span=new ISpan("to_poste_label",""); $to_span=new ISpan("to_poste_label","");
echo "<div>"; echo "<div>";
echo "Plage de postes :".$from_poste->input(); echo _("Plage de postes")." :".$from_poste->input();
echo $from_span->input(); echo $from_span->input();
echo " jusque :".$to_poste->input(); echo " "._("jusque")." :".$to_poste->input();
echo $to_span->input(); echo $to_span->input();
echo "</div>"; echo "</div>";
echo '<div>'; echo '<div>';
echo '<p>'; echo '<p>';
echo "Uniquement comptes non soldés ".$unsold->input(); echo _("Uniquement comptes non soldés")." ".$unsold->input();
echo '</p>'; echo '</p>';
echo '<p>'; echo '<p>';
echo "Avec la balance de l'année précédente".$previous_exc->input(); echo _("Avec la balance de l'année précédente")." ".$previous_exc->input();
echo '</p>'; echo '</p>';
echo '</div>'; echo '</div>';
echo HtmlInput::submit("view","Visualisation"); echo HtmlInput::submit("view",_("Visualisation"));
echo '</form>'; echo '</form>';
echo '<hr>'; echo '<hr>';
//----------------------------------------------------- //-----------------------------------------------------

View file

@ -33,7 +33,7 @@ $fiche=new Fiche($cn,$_GET['f_id']);
$year=$g_user->get_exercice(); $year=$g_user->get_exercice();
if ( $year == 0 ) if ( $year == 0 )
{ {
$html="erreur aucune période par défaut, allez dans préférence pour en choisir une"; $html=_("erreur aucune période par défaut, allez dans préférence pour en choisir une");
} }
else else
{ {
@ -67,7 +67,7 @@ else
} }
if ( $fiche->HtmlTable($array,0,0)==-1){ if ( $fiche->HtmlTable($array,0,0)==-1){
echo h2("Aucune opération pour l'exercice courant",'class="error"'); echo h2(_("Aucune opération pour l'exercice courant",'class="error"'));
} }
echo $old; echo $old;

View file

@ -46,7 +46,7 @@ if ( isset($_POST['delete_card'] ) )
{ {
if ( $g_user->check_action(FICADD) == 0 ) if ( $g_user->check_action(FICADD) == 0 )
{ {
alert('Vous ne pouvez pas enlever de fiche'); alert(_('Vous ne pouvez pas enlever de fiche'));
return; return;
} }
@ -70,7 +70,7 @@ if ( $low_action == "list" )
<form method="get" action="<?php echo $href; ?>"> <form method="get" action="<?php echo $href; ?>">
<?php <?php
echo dossier::hidden(); echo dossier::hidden();
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>'; echo '<h2>' ._( "Exercice")." " . $g_user->get_exercice() . '</h2>';
$a=(isset($_GET['query']))?$_GET['query']:""; $a=(isset($_GET['query']))?$_GET['query']:"";
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">', printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
$a); $a);

View file

@ -74,16 +74,16 @@ $size->size=5;
$extra=new IText('extra[]'); $extra=new IText('extra[]');
$select_type->value=array( $select_type->value=array(
array('value'=>'text','label'=>'Texte'), array('value'=>'text','label'=>_('Texte')),
array('value'=>'numeric','label'=>'Nombre'), array('value'=>'numeric','label'=>_('Nombre')),
array('value'=>'date','label'=>'Date'), array('value'=>'date','label'=>_('Date')),
array('value'=>'zone','label'=>'Zone de texte'), array('value'=>'zone','label'=>_('Zone de texte')),
array('value'=>'poste','label'=>'Poste Comptable'), array('value'=>'poste','label'=>_('Poste Comptable')),
array('value'=>'card','label'=>'Fiche'), array('value'=>'card','label'=>_('Fiche')),
array('value'=>'select','label'=>'Selection') array('value'=>'select','label'=>_('Selection'))
); );
$remove=new IButton('rmfa'); $remove=new IButton('rmfa');
$remove->label='Effacer'; $remove->label=_('Effacer');
echo '<div class="content">'; echo '<div class="content">';
echo '<form method="post">'; echo '<form method="post">';
@ -91,11 +91,11 @@ echo HtmlInput::hidden('sa','fat');
echo HtmlInput::hidden('p_action','divers'); echo HtmlInput::hidden('p_action','divers');
echo '<table id="tb_rmfa">'; echo '<table id="tb_rmfa">';
echo '<tr>'; echo '<tr>';
echo th("id"); echo th(_("id"));
echo th("Description"); echo th(_("Description"));
echo th("Type "); echo th(_("Type"));
echo th("Taille"); echo th(_("Taille"));
echo th("Paramètre"); echo th(_("Paramètre"));
echo '</tr>'; echo '</tr>';
for ($e=0;$e<count($array);$e++) for ($e=0;$e<count($array);$e++)
{ {
@ -121,7 +121,7 @@ for ($e=0;$e<count($array);$e++)
$remove->javascript=sprintf('if ( confirm(\'Vous confirmez ?\')) { removeCardAttribut(%d,%d,\'tb_rmfa\',this);}', $remove->javascript=sprintf('if ( confirm(\'Vous confirmez ?\')) { removeCardAttribut(%d,%d,\'tb_rmfa\',this);}',
$row->get_parameter('id'),$gDossier); $row->get_parameter('id'),$gDossier);
$msg='<span class="notice"> Attention : effacera les données qui y sont liées </span>'; $msg='<span class="notice">'._("Attention : effacera les données qui y sont liées").' </span>';
$r.=td($remove->input().$msg); $r.=td($remove->input().$msg);
} }
else else

View file

@ -66,8 +66,8 @@ if ( isset ($_POST['remove_cat']))
$remains=$fd_id->remove(); $remains=$fd_id->remove();
if ( $remains != 0 ) if ( $remains != 0 )
/* some card are not removed because it is used */ /* some card are not removed because it is used */
alert('Impossible d\'enlever cette catégorie, certaines fiches sont encore utilisées'."\n". alert(_('Impossible d\'enlever cette catégorie, certaines fiches sont encore utilisées'."\n".
'Les fiches non utilisées ont cependant été effacées'); 'Les fiches non utilisées ont cependant été effacées'));
} }
/*******************************************************************************************/ /*******************************************************************************************/
// Change some basis info // Change some basis info

View file

@ -47,7 +47,7 @@ if (isset($_POST['update']))
try try
{ {
$ledger->id=$_POST['p_jrn']; $ledger->id=$_POST['p_jrn'];
if ( $ledger->load() == -1) throw new Exception ('Journal inexistant'); if ( $ledger->load() == -1) throw new Exception (_('Journal inexistant'));
$ledger->verify_ledger($_POST); $ledger->verify_ledger($_POST);
$ledger->update($_POST); $ledger->update($_POST);
} catch (Exception $e) } catch (Exception $e)
@ -119,9 +119,9 @@ switch ($sa)
echo '<div class="redcontent">'; echo '<div class="redcontent">';
echo '<form method="POST">'; echo '<form method="POST">';
echo $ledger->display_ledger(); echo $ledger->display_ledger();
echo '<INPUT TYPE="SUBMIT" class="button" VALUE="Sauve" name="update"> echo '<INPUT TYPE="SUBMIT" class="button" VALUE="'._("Sauve").'" name="update">
<INPUT TYPE="RESET" class="button" VALUE="Reset"> <INPUT TYPE="RESET" class="button" VALUE="Reset">
<INPUT TYPE="submit" class="button" name="efface" value="Efface" onClick="return confirm(\'Vous effacez ce journal ?\')">'; <INPUT TYPE="submit" class="button" name="efface" value="'._("Efface").'" onClick="return confirm(\'Vous effacez ce journal ?\')">';
echo '</FORM>'; echo '</FORM>';
echo "</div>"; echo "</div>";
} }

View file

@ -48,9 +48,9 @@ if ( isset ($_POST['save_tag_sb']))
?> ?>
<div style="margin-left:10%;width:80%"> <div style="margin-left:10%;width:80%">
<p class="notice"> <p class="notice">
Vous pouvez utiliser ceci comme des étiquettes pour marquer des documents ou <?php echo _("Vous pouvez utiliser ceci comme des étiquettes pour marquer des documents ou
comme des dossiers pour rassembler des documents. Un document peut appartenir comme des dossiers pour rassembler des documents. Un document peut appartenir
à plusieurs dossiers ou avoir plusieurs étiquettes. à plusieurs dossiers ou avoir plusieurs étiquettes.");?>
</p> </p>
<?php <?php
$tag->show_list(); $tag->show_list();

View file

@ -63,7 +63,7 @@ class Acc_Account
return $this->$idx; return $this->$idx;
} }
else else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant'); exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
} }
function set_parameter($p_string,$p_value) function set_parameter($p_string,$p_value)
@ -74,7 +74,7 @@ class Acc_Account
if ($this->check($idx,$p_value) == true ) $this->$idx=$p_value; if ($this->check($idx,$p_value) == true ) $this->$idx=$p_value;
} }
else else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant'); exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
} }
@ -94,7 +94,7 @@ class Acc_Account
} }
else else
{ {
$this->pcm_lib="Poste inconnu"; $this->pcm_lib=_("Poste inconnu");
} }
return $this->pcm_lib; return $this->pcm_lib;
} }
@ -133,9 +133,9 @@ class Acc_Account
if ( strcmp ($k['value'],$p_value) == 0 ) return true; if ( strcmp ($k['value'],$p_value) == 0 ) return true;
} }
throw new Exception('type de compte incorrect '.$p_value); throw new Exception(_('type de compte incorrect ').$p_value);
} }
throw new Exception ('Donnee member inconnue '.$p_member); throw new Exception (_('Donnee member inconnue ').$p_member);
} }
} }
@ -219,7 +219,7 @@ class Acc_Account
array($p_old) array($p_old)
); );
if ($count != 0) if ($count != 0)
throw new Exception('Impossible de changer la valeur: poste déjà utilisé'); throw new Exception(_('Impossible de changer la valeur: poste déjà utilisé'));
} }
$this->pcm_lib=mb_substr($this->pcm_lib,0,150); $this->pcm_lib=mb_substr($this->pcm_lib,0,150);
$this->check(); $this->check();

View file

@ -131,10 +131,10 @@ class Acc_Bilan
if ( $count <> 0 ) if ( $count <> 0 )
{ {
echo '<ol>'.$ret.'</ol>'; echo '<ol>'.$ret.'</ol>';
echo '<span class="error">Nbres anomalies : '.$count.'</span>'; echo '<span class="error">'._("Nbres anomalies").' : '.$count.'</span>';
} }
else else
echo " Pas d'anomalie d&eacute;tect&eacute;e"; echo _("Pas d'anomalie détectée");
echo '</fieldset>'; echo '</fieldset>';
@ -143,18 +143,18 @@ class Acc_Bilan
function verify() function verify()
{ {
bcscale(2); bcscale(2);
echo '<h3> Comptes normaux </h3>'; echo '<h3>'._("Comptes normaux").'</h3>';
$this->warning('Actif avec un solde crediteur','ACT','D'); $this->warning(_('Actif avec un solde crediteur'),'ACT','D');
$this->warning('Passif avec un solde debiteur','PAS','C'); $this->warning(_('Passif avec un solde debiteur'),'PAS','C');
$this->warning('Compte de resultat : Charge avec un solde crediteur','CHA','D'); $this->warning(_('Compte de resultat : Charge avec un solde crediteur'),'CHA','D');
$this->warning('Compte de resultat : produit avec un solde debiteur','PRO','C'); $this->warning(_('Compte de resultat : produit avec un solde debiteur'),'PRO','C');
echo '<hr>'; echo '<hr>';
echo '<h3> Comptes inverses </h3>'; echo '<h3>'._("Comptes inverses").' </h3>';
$this->warning('Compte inverse : actif avec un solde debiteur','ACTINV','C'); $this->warning(_('Compte inverse : actif avec un solde debiteur'),'ACTINV','C');
$this->warning('Compte inverse : passif avec un solde crediteur','PASINV','D'); $this->warning(_('Compte inverse : passif avec un solde crediteur'),'PASINV','D');
$this->warning('Compte inverse : Charge avec un solde debiteur','CHAINV','C'); $this->warning(_('Compte inverse : Charge avec un solde debiteur'),'CHAINV','C');
$this->warning('Compte inverse : produit avec un solde crediteur','PROINV','D'); $this->warning(_('Compte inverse : produit avec un solde crediteur'),'PROINV','D');
echo '<h3>Solde </h3>'; echo '<h3'._("Solde").' </h3>';
/* set the periode filter */ /* set the periode filter */
$sql_periode=sql_filter_per($this->db,$this->from,$this->to,'p_id','j_tech_per'); $sql_periode=sql_filter_per($this->db,$this->from,$this->to,'p_id','j_tech_per');
/* debit Actif */ /* debit Actif */
@ -172,7 +172,7 @@ class Acc_Bilan
$credit_actif=$this->db->get_value($sql); $credit_actif=$this->db->get_value($sql);
$total_actif=abs(bcsub($debit_actif,$credit_actif)); $total_actif=abs(bcsub($debit_actif,$credit_actif));
echo '<table >'; echo '<table >';
echo tr(td( 'Total actif ').td($total_actif,'style="text-align:right"')); echo tr(td(_('Total actif')).td($total_actif,'style="text-align:right"'));
/* debit passif */ /* debit passif */
$sql="select sum(j_montant) from jrnx join tmp_pcmn on (j_poste=pcm_val)". $sql="select sum(j_montant) from jrnx join tmp_pcmn on (j_poste=pcm_val)".
@ -189,7 +189,7 @@ class Acc_Bilan
$total_passif=abs(bcsub($debit_passif,$credit_passif)); $total_passif=abs(bcsub($debit_passif,$credit_passif));
/* diff actif / passif */ /* diff actif / passif */
echo tr(td('Total passif ').td($total_passif,'style="text-align:right"')); echo tr(td(_('Total passif')).td($total_passif,'style="text-align:right"'));
if ( $total_actif != $total_passif ) if ( $total_actif != $total_passif )
{ {
$diff=bcsub($total_actif,$total_passif); $diff=bcsub($total_actif,$total_passif);
@ -208,7 +208,7 @@ class Acc_Bilan
$sql.="and $sql_periode"; $sql.="and $sql_periode";
$credit_charge=$this->db->get_value($sql); $credit_charge=$this->db->get_value($sql);
$total_charge=abs(bcsub($debit_charge,$credit_charge)); $total_charge=abs(bcsub($debit_charge,$credit_charge));
echo tr(td('Total charge ').td($total_charge,'style="text-align:right"')); echo tr(td(_('Total charge ')).td($total_charge,'style="text-align:right"'));
/* debit prod */ /* debit prod */
@ -223,11 +223,11 @@ class Acc_Bilan
$sql.="and $sql_periode"; $sql.="and $sql_periode";
$credit_pro=$this->db->get_value($sql); $credit_pro=$this->db->get_value($sql);
$total_pro=abs(bcsub($debit_pro,$credit_pro)); $total_pro=abs(bcsub($debit_pro,$credit_pro));
echo tr(td('Total produit ').td($total_pro,'style="text-align:right"')); echo tr(td(_('Total produit')).td($total_pro,'style="text-align:right"'));
$diff=bcsub($total_pro,$total_charge); $diff=bcsub($total_pro,$total_charge);
echo tr( td("Difference Produit - Charge",'style="padding-right:20px"').td($diff,'style="text-align:right"'),'style="font-weight:bolder"'); echo tr( td(_("Difference Produit - Charge"),'style="padding-right:20px"').td($diff,'style="text-align:right"'),'style="font-weight:bolder"');
echo '</table>'; echo '</table>';
} }
/*! /*!
@ -253,7 +253,7 @@ class Acc_Bilan
$res=$this->db->exec_sql($sql); $res=$this->db->exec_sql($sql);
if ( Database::num_row($res)==0) if ( Database::num_row($res)==0)
throw new Exception ('Aucun enregistrement trouve'); throw new Exception (_('Aucun enregistrement trouve'));
$array=Database::fetch_array($res,0); $array=Database::fetch_array($res,0);
foreach ($array as $name=>$value) foreach ($array as $name=>$value)
$this->$name=$value; $this->$name=$value;
@ -345,7 +345,7 @@ class Acc_Bilan
$work_file=basename($file_base); $work_file=basename($file_base);
if ( copy ($file_base,$work_file) == false ) if ( copy ($file_base,$work_file) == false )
{ {
echo "Je ne peux pas ouvrir ce fichier "; echo _("erreur Ouverture fichier");
exit(); exit();
} }
ob_start(); ob_start();
@ -653,13 +653,13 @@ class Acc_Bilan
$p_file=fopen($dirname.DIRECTORY_SEPARATOR.'content.xml','wb'); $p_file=fopen($dirname.DIRECTORY_SEPARATOR.'content.xml','wb');
if ( $p_file == false ) if ( $p_file == false )
{ {
exit('Je ne peux pas ouvrir content.xml'); exit ( _("erreur Ouverture fichier").' content.xml');
} }
$a=fwrite($p_file,$p_result); $a=fwrite($p_file,$p_result);
if ( $a==false) if ( $a==false)
{ {
echo "Je ne peux pas ecrire dans content.xml"; echo _("erreur écriture fichier").' content.xml';
exit(); exit();
} }
// repack // repack
@ -678,7 +678,7 @@ class Acc_Bilan
$fdoc=fopen($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type,'r'); $fdoc=fopen($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type,'r');
if ( $fdoc == false ) if ( $fdoc == false )
{ {
exit('Je ne peux pas ouvrir ce document'); exit (_("erreur Ouverture fichier"));
} }
$buffer=fread ($fdoc,filesize($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type)); $buffer=fread ($fdoc,filesize($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type));
echo $buffer; echo $buffer;

View file

@ -91,7 +91,7 @@ class Acc_Compute
return $this->$idx; return $this->$idx;
} }
else else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant'); exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
} }
public function set_parameter($p_string,$p_value) public function set_parameter($p_string,$p_value)
{ {
@ -101,7 +101,7 @@ class Acc_Compute
$this->$idx=$p_value; $this->$idx=$p_value;
} }
else else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant'); exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
} }
@ -191,7 +191,7 @@ class Acc_Compute
{ {
foreach (self::$variable as $key=>$value) foreach (self::$variable as $key=>$value)
if ( $this->$value < 0 ) if ( $this->$value < 0 )
throw new Exception ("Montant invalide "); throw new Exception (_("Montant invalide"));
if ( $p_obj != null ) if ( $p_obj != null )
{ {
@ -202,7 +202,7 @@ class Acc_Compute
$cmp=bcadd($p_obj->amount,$p_obj->amount_vat); $cmp=bcadd($p_obj->amount,$p_obj->amount_vat);
$diff=bcsub($sum,$cmp); $diff=bcsub($sum,$cmp);
if ( $diff != 0.0 ) if ( $diff != 0.0 )
throw new Exception ("ECHEC VERIFICATION : valeur totale = $sum valeur attendue = $cmp diff = $diff"); throw new Exception (_("ECHEC VERIFICATION : valeur totale = $sum valeur attendue = $cmp diff = $diff"));
} }
} }
function display() function display()

View file

@ -104,7 +104,7 @@ class Acc_Ledger extends jrn_def_sql
{ {
if ($this->id == 0) if ($this->id == 0)
{ {
$this->name = " Tous les journaux"; $this->name = _(" Tous les journaux");
$this->type = "GL"; $this->type = "GL";
return "GL"; return "GL";
} }
@ -184,7 +184,7 @@ class Acc_Ledger extends jrn_def_sql
{ {
$this->db->start(); $this->db->start();
if (!isset($this->jr_id) || $this->jr_id == '') if (!isset($this->jr_id) || $this->jr_id == '')
throw new Exception("this->jr_id is not set ou opération inconnue"); throw new Exception(_("this->jr_id is not set ou opération inconnue"));
/* check if the date is valid */ /* check if the date is valid */
if (isDate($p_date) == null) if (isDate($p_date) == null)
@ -243,7 +243,7 @@ class Acc_Ledger extends jrn_def_sql
$Res = $this->db->exec_sql($sql, array($p_date, $grp_new, $p_internal, $g_user->id, $per->p_id, $row)); $Res = $this->db->exec_sql($sql, array($p_date, $grp_new, $p_internal, $g_user->id, $per->p_id, $row));
// Check return code // Check return code
if ($Res == false) if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]")); throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
$aj_id = $this->db->fetch(0); $aj_id = $this->db->fetch(0);
$j_id = $aj_id['j_id']; $j_id = $aj_id['j_id'];
@ -271,7 +271,7 @@ class Acc_Ledger extends jrn_def_sql
FROM quant_purchase where j_id=$3", array($p_internal, $j_id, $row)); FROM quant_purchase where j_id=$3", array($p_internal, $j_id, $row));
if ($Res == false) if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]")); throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
} }
$sql = "insert into jrn ( $sql = "insert into jrn (
jr_id, jr_id,
@ -292,14 +292,14 @@ class Acc_Ledger extends jrn_def_sql
$Res = $this->db->exec_sql($sql, array($seq, $p_date, $grp_new, $p_internal, $per->p_id, $this->jr_id)); $Res = $this->db->exec_sql($sql, array($seq, $p_date, $grp_new, $p_internal, $per->p_id, $this->jr_id));
// Check return code // Check return code
if ($Res == false) if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]")); throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
// reverse in QUANT_FIN table // reverse in QUANT_FIN table
$Res = $this->db->exec_sql(" INSERT INTO quant_fin( $Res = $this->db->exec_sql(" INSERT INTO quant_fin(
qf_bank, qf_other, qf_amount,jr_id) qf_bank, qf_other, qf_amount,jr_id)
SELECT qf_bank, qf_other, qf_amount*(-1),$1 SELECT qf_bank, qf_other, qf_amount*(-1),$1
FROM quant_fin where jr_id=$2", array($seq, $this->jr_id)); FROM quant_fin where jr_id=$2", array($seq, $this->jr_id));
if ($Res == false) if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]")); throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR[ $sql ]"));
// Add a "concerned operation to bound these op.together // Add a "concerned operation to bound these op.together
// //
@ -310,7 +310,7 @@ class Acc_Ledger extends jrn_def_sql
// Check return code // Check return code
if ($Res == false) if ($Res == false)
{ {
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]")); throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
} }
@ -321,7 +321,7 @@ class Acc_Ledger extends jrn_def_sql
from stock_goods natural join jrnx where j_grpt=" . $this->jr_grpt_id . ")"; from stock_goods natural join jrnx where j_grpt=" . $this->jr_grpt_id . ")";
$Res = $this->db->exec_sql($sql); $Res = $this->db->exec_sql($sql);
if ($Res == false) if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]")); throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
} }
catch (Exception $e) catch (Exception $e)
{ {
@ -339,7 +339,7 @@ class Acc_Ledger extends jrn_def_sql
{ {
if ($this->id == 0) if ($this->id == 0)
{ {
$this->name = " Grand Livre "; $this->name = _("Grand Livre");
return $this->name; return $this->name;
} }
@ -652,20 +652,20 @@ class Acc_Ledger extends jrn_def_sql
$r.="<tr >"; $r.="<tr >";
$r.="<th>Selection</th>"; $r.="<th>"._("Selection")."</th>";
$r.="<th>Internal</th>"; $r.="<th>"._("Internal")."</th>";
if ($this->type == 'ALL') if ($this->type == 'ALL')
{ {
$r.=th('Journal'); $r.=th(_('Journal'));
} }
$r.='<th>Date</th>'; $r.='<th>'._("Date").'</th>';
$r.='<th>Pièce</td>'; $r.='<th>'._("Pièce").'</td>';
$r.=th('tiers'); $r.=th(_('tiers'));
$r.='<th>Description</th>'; $r.='<th>'._("Description").'</th>';
$r.=th('Notes', ' '); $r.=th(_('Notes'), ' ');
$r.='<th>Montant</th>'; $r.='<th>'._("Montant").'</th>';
$r.="<th>" . _('Concerne') . "</th>"; $r.="<th>" . _('Concerne') . "</th>";
$r.="</tr>"; $r.="</tr>";
// Total Amount // Total Amount
@ -759,7 +759,7 @@ class Acc_Ledger extends jrn_def_sql
if ($row['jr_valid'] == 'f') if ($row['jr_valid'] == 'f')
{ {
$r.="<TD> Op&eacute;ration annul&eacute;e</TD>"; $r.="<TD>"._("Opération annulée")."</TD>";
} }
// end row // end row
$r.="</tr>"; $r.="</tr>";
@ -813,13 +813,13 @@ class Acc_Ledger extends jrn_def_sql
// Sort // Sort
$url = "?" . CleanUrl(); $url = "?" . CleanUrl();
$str_dossier = dossier::get(); $str_dossier = dossier::get();
$table->add("Date", $url, 'order by jr_date asc,substring(jr_pj_number,\'[0-9]+$\')::numeric asc', 'order by jr_date desc,substring(jr_pj_number,\'[0-9]+$\')::numeric desc', "da", "dd"); $table->add(_("Date"), $url, 'order by jr_date asc,substring(jr_pj_number,\'[0-9]+$\')::numeric asc', 'order by jr_date desc,substring(jr_pj_number,\'[0-9]+$\')::numeric desc', "da", "dd");
$table->add('Echeance', $url, " order by jr_ech asc", " order by jr_ech desc", 'ea', 'ed'); $table->add(_('Echeance'), $url, " order by jr_ech asc", " order by jr_ech desc", 'ea', 'ed');
$table->add('Paiement', $url, " order by jr_date_paid asc", " order by jr_date_paid desc", 'eap', 'edp'); $table->add(_('Paiement'), $url, " order by jr_date_paid asc", " order by jr_date_paid desc", 'eap', 'edp');
$table->add('PJ', $url, ' order by substring(jr_pj_number,\'[0-9]+$\')::numeric asc ', ' order by substring(jr_pj_number,\'[0-9]+$\')::numeric desc ', "pja", "pjd"); $table->add(_('Pièce'), $url, ' order by substring(jr_pj_number,\'[0-9]+$\')::numeric asc ', ' order by substring(jr_pj_number,\'[0-9]+$\')::numeric desc ', "pja", "pjd");
$table->add('Tiers', $url, " order by name asc", " order by name desc", 'na', 'nd'); $table->add(_('Tiers'), $url, " order by name asc", " order by name desc", 'na', 'nd');
$table->add('Montant', $url, " order by jr_montant asc", " order by jr_montant desc", "ma", "md"); $table->add(_('Montant'), $url, " order by jr_montant asc", " order by jr_montant desc", "ma", "md");
$table->add("Description", $url, "order by jr_comment asc", "order by jr_comment desc", "ca", "cd"); $table->add(_("Description"), $url, "order by jr_comment asc", "order by jr_comment desc", "ca", "cd");
$ord = (!isset($_GET['ord'])) ? 'da' : $_GET['ord']; $ord = (!isset($_GET['ord'])) ? 'da' : $_GET['ord'];
$order = $table->get_sql_order($ord); $order = $table->get_sql_order($ord);
@ -846,7 +846,7 @@ class Acc_Ledger extends jrn_def_sql
$r.="<tr >"; $r.="<tr >";
$r.="<th>Internal</th>"; $r.="<th>"._("n° interne")."</th>";
if ($this->type == 'ALL') if ($this->type == 'ALL')
{ {
$r.=th('Journal'); $r.=th('Journal');
@ -987,7 +987,7 @@ class Acc_Ledger extends jrn_def_sql
if ($row['jr_valid'] == 'f') if ($row['jr_valid'] == 'f')
{ {
$r.="<TD> Op&eacute;ration annul&eacute;e</TD>"; $r.="<TD>"._("Opération annulée")."</TD>";
} }
else else
{ {
@ -1016,11 +1016,11 @@ class Acc_Ledger extends jrn_def_sql
if ($p_paid != 0) if ($p_paid != 0)
{ {
$r.="<TR>"; $r.="<TR>";
$r.='<TD COLSPAN="5">Pay&eacute;</TD>'; $r.='<TD COLSPAN="5">'._("Payé").'</TD>';
$r.='<TD ALIGN="RIGHT">' . nbm($amount_paid) . "</TD>"; $r.='<TD ALIGN="RIGHT">' . nbm($amount_paid) . "</TD>";
$r.="</tr>"; $r.="</tr>";
$r.="<TR>"; $r.="<TR>";
$r.='<TD COLSPAN="5">Non pay&eacute;</TD>'; $r.='<TD COLSPAN="5">'._("Non payé").'</TD>';
$r.='<TD ALIGN="RIGHT">' . nbm($amount_unpaid) . "</TD>"; $r.='<TD ALIGN="RIGHT">' . nbm($amount_unpaid) . "</TD>";
$r.="</tr>"; $r.="</tr>";
} }
@ -1418,7 +1418,7 @@ class Acc_Ledger extends jrn_def_sql
$ret = ""; $ret = "";
if (!empty($msg)) if (!empty($msg))
{ {
$ret.=$this->display_warning($msg, "Attention : il vaut mieux utiliser les fiches que les postes comptables pour"); $ret.=$this->display_warning($msg, _("Attention : il vaut mieux utiliser les fiches que les postes comptables"));
} }
$ret.="<table >"; $ret.="<table >";
$ret.="<tr><td>" . _('Date') . " : </td><td>$e_date</td></tr>"; $ret.="<tr><td>" . _('Date') . " : </td><td>$e_date</td></tr>";
@ -1889,7 +1889,7 @@ class Acc_Ledger extends jrn_def_sql
$f->quick_code = ${'qc_' . $i}; $f->quick_code = ${'qc_' . $i};
if ($f->belong_ledger($p_jrn) < 0) if ($f->belong_ledger($p_jrn) < 0)
throw new Exception("La fiche quick_code = " . throw new Exception("La fiche quick_code = " .
$f->quick_code . " n\'est pas dans ce journal", 4); $f->quick_code . " n'est pas dans ce journal", 4);
if (strlen(trim(${'qc_' . $i})) != 0 && isNumber(${'amount' . $i}) == 0) if (strlen(trim(${'qc_' . $i})) != 0 && isNumber(${'amount' . $i}) == 0)
throw new Exception('Montant invalide', 3); throw new Exception('Montant invalide', 3);
@ -1980,7 +1980,7 @@ class Acc_Ledger extends jrn_def_sql
$msg = $this->verify($p_array); $msg = $this->verify($p_array);
if (!empty($msg)) if (!empty($msg))
{ {
echo $this->display_warning($msg, "Attention : il vaut mieux utiliser les fiches que les postes comptables pour"); echo $this->display_warning($msg, _("Attention : il vaut mieux utiliser les fiches que les postes comptables "));
} }
$this->db->start(); $this->db->start();
@ -2080,7 +2080,7 @@ class Acc_Ledger extends jrn_def_sql
$jr_id = $acc_end->insert_jrn(); $jr_id = $acc_end->insert_jrn();
$this->jr_id = $jr_id; $this->jr_id = $jr_id;
if ($jr_id == false) if ($jr_id == false)
throw new Exception('Balance incorrecte'); throw new Exception(_('Balance incorrecte'));
$acc_end->pj = $e_pj; $acc_end->pj = $e_pj;
/* if e_suggest != e_pj then do not increment sequence */ /* if e_suggest != e_pj then do not increment sequence */
@ -2117,7 +2117,7 @@ class Acc_Ledger extends jrn_def_sql
catch (Exception $e) catch (Exception $e)
{ {
$this->db->rollback(); $this->db->rollback();
echo 'OPERATION ANNULEE '; echo _('OPERATION ANNULEE ');
echo '<hr>'; echo '<hr>';
echo __FILE__ . __LINE__ . $e->getMessage(); echo __FILE__ . __LINE__ . $e->getMessage();
exit(); exit();
@ -2373,7 +2373,7 @@ class Acc_Ledger extends jrn_def_sql
$empl->get_by_qcode($e_mp_qcode); $empl->get_by_qcode($e_mp_qcode);
if ($empl->empty_attribute(ATTR_DEF_ACCOUNT) == true) if ($empl->empty_attribute(ATTR_DEF_ACCOUNT) == true)
{ {
throw new Exception('Celui qui paie n\' a pas de poste comptable', 20); throw new Exception(_("Celui qui paie n' a pas de poste comptable"), 20);
} }
/* get the account and explode if necessary */ /* get the account and explode if necessary */
$sposte = $empl->strAttribut(ATTR_DEF_ACCOUNT); $sposte = $empl->strAttribut(ATTR_DEF_ACCOUNT);
@ -2390,7 +2390,7 @@ class Acc_Ledger extends jrn_def_sql
$poste = new Acc_Account_Ledger($this->db, $poste_val); $poste = new Acc_Account_Ledger($this->db, $poste_val);
if ($poste->load() == false) if ($poste->load() == false)
{ {
throw new Exception('Pour la fiche' . $empl->quick_code . ' le poste comptable [' . $poste->id . 'n\'existe pas', 9); throw new Exception(sprintf(_("Pour la fiche %s le poste comptable [%s] n'existe pas"),$empl->quick_code,$poste->id ), 9);
} }
} }
} }
@ -2851,7 +2851,7 @@ class Acc_Ledger extends jrn_def_sql
$r.= HtmlInput::hidden("sc", $_REQUEST['sc']); $r.= HtmlInput::hidden("sc", $_REQUEST['sc']);
if (isset($_REQUEST['f_id'])) if (isset($_REQUEST['f_id']))
$r.=HtmlInput::hidden("f_id", $_REQUEST['f_id']); $r.=HtmlInput::hidden("f_id", $_REQUEST['f_id']);
$r.=HtmlInput::button_anchor('Fermer', 'javascript:void(0)', 'fsearch_form', 'onclick="$(\'search_form\').style.display=\'none\';"'); $r.=HtmlInput::button_anchor(_('Fermer'), 'javascript:void(0)', 'fsearch_form', 'onclick="$(\'search_form\').style.display=\'none\';"');
$r.='</FORM>'; $r.='</FORM>';
@ -3229,10 +3229,10 @@ class Acc_Ledger extends jrn_def_sql
static function array_cat() static function array_cat()
{ {
$r = array( $r = array(
array('cat' => 'VEN', 'name' => 'Journaux de vente'), array('cat' => 'VEN', 'name' => _("Journaux de vente")),
array('cat' => 'ACH', 'name' => 'Journaux d\'achat'), array('cat' => 'ACH', 'name' => _("'Journaux d'achat")),
array('cat' => 'FIN', 'name' => 'Journaux Financier'), array('cat' => 'FIN', 'name' => _("'Journaux Financier")),
array('cat' => 'ODS', 'name' => 'Journaux d\'Opérations diverses') array('cat' => 'ODS', 'name' => _("'Journaux d'Opérations diverses"))
); );
return $r; return $r;
} }
@ -3403,17 +3403,17 @@ class Acc_Ledger extends jrn_def_sql
if (isNumber($p_jrn) == 0) if (isNumber($p_jrn) == 0)
throw new Exception("Id invalide"); throw new Exception("Id invalide");
if (isNumber($p_jrn_deb_max_line) == 0) if (isNumber($p_jrn_deb_max_line) == 0)
throw new Exception("Nombre de ligne incorrect"); throw new Exception(_("Nombre de ligne incorrect"));
if (trim($p_jrn_name) == "") if (trim($p_jrn_name) == "")
throw new Exception("Nom de journal invalide"); throw new Exception("Nom de journal invalide");
if ($this->db->get_value("select count(*) from jrn_def where jrn_def_name=$1 and jrn_Def_id<>$2", array($p_jrn_name, $p_jrn)) > 0) if ($this->db->get_value("select count(*) from jrn_def where jrn_def_name=$1 and jrn_Def_id<>$2", array($p_jrn_name, $p_jrn)) > 0)
throw new Exception("Un journal avec ce nom existe déjà"); throw new Exception(_("Un journal avec ce nom existe déjà"));
if ($p_jrn_type == 'FIN') if ($p_jrn_type == 'FIN')
{ {
$a = new Fiche($this->db); $a = new Fiche($this->db);
$result = $a->get_by_qcode(trim(strtoupper($_POST['bank'])), false); $result = $a->get_by_qcode(trim(strtoupper($_POST['bank'])), false);
if ($result == 1) if ($result == 1)
throw new Exception("Aucun compte en banque n'est donné"); throw new Exception(_("Aucun compte en banque n'est donné"));
} }
} }
catch (Exception $e) catch (Exception $e)
@ -3458,7 +3458,7 @@ class Acc_Ledger extends jrn_def_sql
$bank = $a->id; $bank = $a->id;
$this->jrn_def_bank = $bank; $this->jrn_def_bank = $bank;
if ($result == -1) if ($result == -1)
throw new Exception("Aucun compte en banque n'est donné"); throw new Exception(_("Aucun compte en banque n'est donné"));
$this->jrn_def_num_op = (isset($numb_operation)) ? 1 : 0; $this->jrn_def_num_op = (isset($numb_operation)) ? 1 : 0;
break; break;
} }
@ -3524,7 +3524,7 @@ class Acc_Ledger extends jrn_def_sql
$name = ""; $name = "";
$code = ""; $code = "";
$wType = new ISelect(); $wType = new ISelect();
$a_jrn= $this->db->make_array("select '-1',' -- choix du type de journal -- ' union select jrn_type_id,jrn_desc from jrn_type"); $a_jrn= $this->db->make_array("select '-1',' -- "._("choix du type de journal")." -- ' union select jrn_type_id,jrn_desc from jrn_type");
$wType->selected='-1'; $wType->selected='-1';
$wType->value =$a_jrn; $wType->value =$a_jrn;
$wType->name = "p_jrn_type"; $wType->name = "p_jrn_type";
@ -3591,7 +3591,7 @@ class Acc_Ledger extends jrn_def_sql
$bank = $a->id; $bank = $a->id;
$this->jrn_def_bank = $bank; $this->jrn_def_bank = $bank;
if ($result == -1) if ($result == -1)
throw new Exception("Aucun compte en banque n'est donné"); throw new Exception(_("Aucun compte en banque n'est donné"));
$this->jrn_def_num_op = (isset($numb_operation)) ? 1 : 0; $this->jrn_def_num_op = (isset($numb_operation)) ? 1 : 0;
break; break;
} }
@ -3608,7 +3608,7 @@ class Acc_Ledger extends jrn_def_sql
try try
{ {
if ($this->db->get_value("select count(jr_id) from jrn where jr_def_id=$1", array($this->jrn_def_id)) > 0) if ($this->db->get_value("select count(jr_id) from jrn where jr_def_id=$1", array($this->jrn_def_id)) > 0)
throw new Exception("Impossible d'effacer un journal qui contient des opérations"); throw new Exception(_("Impossible d'effacer un journal qui contient des opérations"));
parent::delete(); parent::delete();
} }
catch (Exception $e) catch (Exception $e)
@ -3681,7 +3681,7 @@ class Acc_Ledger extends jrn_def_sql
{ {
global $g_user; global $g_user;
if (isNumber($p_ag_id)==0) return null; if (isNumber($p_ag_id)==0) return null;
if (! $g_user->can_read_action($p_ag_id)) die ('Action non accessible'); if (! $g_user->can_read_action($p_ag_id)) die (_('Action non accessible'));
$array=array(); $array=array();
// retrieve info from action_gestion // retrieve info from action_gestion

View file

@ -4,7 +4,7 @@
?> ?>
<?php <?php
echo HtmlInput::button("other_bt", "Autres actions", 'onclick="$(\'other_div\').style.display=\'block\';action_show_checkbox();"', "smallbutton"); echo HtmlInput::button("other_bt", _("Autres actions"), 'onclick="$(\'other_div\').style.display=\'block\';action_show_checkbox();"', "smallbutton");
$radio=new IRadio("othact"); $radio=new IRadio("othact");
/* /*
@ -14,16 +14,16 @@ echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
"tdoc", "action_query","date_start","date_end","hsstate","searchtag")); "tdoc", "action_query","date_start","date_end","hsstate","searchtag"));
?> ?>
<div id="other_div" class="inner_box" style="width:40%;display: none"> <div id="other_div" class="inner_box" style="width:40%;display: none">
<?php echo HtmlInput::title_box('Actions sur plusieurs documents','other_div', 'hide') ?> <?php echo HtmlInput::title_box(_('Actions sur plusieurs documents'),'other_div', 'hide') ?>
Sélectionner les documents et l' action : <?php echo _("Sélectionner les documents et l' action :")?>
<ul style='list-style-type: none;padding-left:30px;margin: 0px' > <ul style='list-style-type: none;padding-left:30px;margin: 0px' >
<li > <li >
<?php $radio->value="IMP"; $radio->selected=true;echo $radio->input(); ?> <?php $radio->value="IMP"; $radio->selected=true;echo $radio->input(); ?>
Impression <?php echo _("Impression");?>
</li> </li>
<li> <li>
<?php $radio->value="ST";$radio->selected=false;echo $radio->input(); ?> <?php $radio->value="ST";$radio->selected=false;echo $radio->input(); ?>
Changement des états <?php echo _("Changement des états");?>
<?php <?php
$etat=new ISelect('ag_state'); $etat=new ISelect('ag_state');
$etat->value=$cn->make_array('select s_id,s_value from document_state order by s_value'); $etat->value=$cn->make_array('select s_id,s_value from document_state order by s_value');
@ -32,7 +32,7 @@ echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
</li> </li>
<li> <li>
<?php $radio->value="ETIADD";echo $radio->input(); ?> <?php $radio->value="ETIADD";echo $radio->input(); ?>
Ajout d'étiquettes <?php echo _("Ajout d'étiquettes");?>
<?php echo Tag::button_search('add'); ?> <?php echo Tag::button_search('add'); ?>
<?php echo Tag::add_clear_button('add'); ?> <?php echo Tag::add_clear_button('add'); ?>
<span id="addtag_choose_td"> <span id="addtag_choose_td">
@ -40,7 +40,7 @@ echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
</li> </li>
<li> <li>
<?php $radio->value="ETIREM";echo $radio->input(); ?> <?php $radio->value="ETIREM";echo $radio->input(); ?>
Enlever des étiquettes <?php echo _("Enlever des étiquettes");?>
<?php echo Tag::button_search('rem'); ?> <?php echo Tag::button_search('rem'); ?>
<?php echo Tag::add_clear_button('rem'); ?> <?php echo Tag::add_clear_button('rem'); ?>
<span id="remtag_choose_td"> <span id="remtag_choose_td">
@ -48,11 +48,11 @@ echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
</li> </li>
<li> <li>
<?php $radio->value="ETICLEAR";echo $radio->input(); ?> <?php $radio->value="ETICLEAR";echo $radio->input(); ?>
Enlever toutes les étiquettes des documents choisis <?php echo _("Enlever toutes les étiquettes des documents choisis");?>
</li> </li>
<li> <li>
<?php $radio->value="DOCREM";echo $radio->input(); ?> <?php $radio->value="DOCREM";echo $radio->input(); ?>
Effacer les documents choisis <?php echo _("Effacer les documents choisis");?>
</li> </li>
</ul> </ul>

View file

@ -28,11 +28,11 @@
?> ?>
<?php if (! $inner ) : ?> <?php if (! $inner ) : ?>
<div id="search_action" class="op_detail_frame" style="position:absolute;display:none;margin-left:120px;width:70%;clear:both;z-index:2;height:auto;border:1px #000080 solid"> <div id="search_action" class="op_detail_frame" style="position:absolute;display:none;margin-left:120px;width:70%;clear:both;z-index:2;height:auto;border:1px #000080 solid">
<?php echo HtmlInput::anchor_hide('Fermer', "$('search_action').style.display='none';");?> <?php echo HtmlInput::anchor_hide(_('Fermer'), "$('search_action').style.display='none';");?>
<?php endif; ?> <?php endif; ?>
<?php if ( $inner ) : ?> <?php if ( $inner ) : ?>
<div id="search_action" class=""> <div id="search_action" class="">
<?php echo HtmlInput::anchor_hide('Fermer', "removeDiv('search_action_div');");?> <?php echo HtmlInput::anchor_hide(_('Fermer'), "removeDiv('search_action_div');");?>
<?php endif; ?> <?php endif; ?>
<h2 class="info"> <h2 class="info">
@ -48,19 +48,19 @@
<?php echo dossier::hidden()?> <?php echo dossier::hidden()?>
<table style="width:100%"> <table style="width:100%">
<tr> <tr>
<td style="width:180px;text-align:right"> Date de rappel après</td> <td style="width:180px;text-align:right"> <?php echo _("Date de rappel après");?></td>
<td> <td>
<?php echo $remind_date->input();?> <?php echo $remind_date->input();?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width:180px;text-align:right"> Date de rappel avant</td> <td style="width:180px;text-align:right"> <?php echo _("Date de rappel avant");?></td>
<td> <td>
<?php echo $remind_date_end->input();?> <?php echo $remind_date_end->input();?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width:180px;text-align:right"> Affiche aussi les actions fermées</td> <td style="width:180px;text-align:right"> <?php echo _("Affiche aussi les actions fermées");?></td>
<td><?php echo $closed_action->input();?></td> <td><?php echo $closed_action->input();?></td>
</tr> </tr>
<tr> <tr>
@ -79,13 +79,13 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width:180px;text-align:right"> Référence</td> <td style="width:180px;text-align:right"> <?php echo _("Référence");?></td>
<td> <td>
<?php echo $osag_ref->input();?> <?php echo $osag_ref->input();?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width:180px;text-align:right"> Numéro document</td> <td style="width:180px;text-align:right"> <?php echo _("Numéro document");?></td>
<td> <td>
<?php $num=new INum('ag_id');echo $num->input();?> <?php $num=new INum('ag_id');echo $num->input();?>
</td> </td>

View file

@ -29,7 +29,7 @@
?> ?>
<form onsubmit="set_action_related('fresultaction');return false;" id="fresultaction"> <form onsubmit="set_action_related('fresultaction');return false;" id="fresultaction">
<?php echo HtmlInput::hidden('ctlc',$_GET['ctlc'])?> <?php echo HtmlInput::hidden('ctlc',$_GET['ctlc'])?>
<?php echo HtmlInput::submit("save_action", "Mettre à jour")?> <?php echo HtmlInput::submit("save_action", _("Mettre à jour"))?>
<?php if (isset($limit)) : ?> <?php if (isset($limit)) : ?>
<h2 class="notice">Recherche limitée à <?php echo $limit?> résultats</h2> <h2 class="notice">Recherche limitée à <?php echo $limit?> résultats</h2>
<?php endif;?> <?php endif;?>
@ -41,19 +41,19 @@
</th> </th>
<th> <th>
Date <?php echo _("Date");?>
</th> </th>
<th> <th>
Ref <?php echo _("Ref");?>
</th> </th>
<th> <th>
Titre <?php echo _("Titre");?>
</th> </th>
<th> <th>
Destinataire <?php echo _("Destinataire");?>
</th> </th>
<th> <th>
Type <?php echo _("Type");?>
</th> </th>
</tr> </tr>
<?php for ($i=0;$i<$limit;$i++):?> <?php for ($i=0;$i<$limit;$i++):?>
@ -85,5 +85,5 @@
<?php endfor;?> <?php endfor;?>
</table> </table>
<?php echo HtmlInput::submit("save_action", "Mettre à jour")?> <?php echo HtmlInput::submit("save_action", _("Mettre à jour"))?>
</form> </form>

View file

@ -46,9 +46,9 @@ if ( $prev != $array[$i]['ga_id'])
?> ?>
<tr> <tr>
<th>Activité</th> <th>Activité</th>
<th style="text-align:right">Débit</th> <th style="text-align:right"><?php echo _("Débit");?></th>
<th style="text-align:right" >Crébit</th> <th style="text-align:right" ><?php echo _("Crébit");?></th>
<th style="text-align:right" >Solde</th> <th style="text-align:right" ><?php echo _("Solde");?></th>
</tr> </tr>
<?php <?php
} }
@ -69,7 +69,7 @@ endfor;
echo '<tr>'; echo '<tr>';
echo td('Solde'); echo td(_('Solde'));
echo td(nbm($tot_group_deb),' class="num"'); echo td(nbm($tot_group_deb),' class="num"');
echo td(nbm($tot_group_cred),' class="num"'); echo td(nbm($tot_group_cred),' class="num"');
echo td(nbm(bcsub($tot_group_cred,$tot_group_deb)),' class="num"'); echo td(nbm(bcsub($tot_group_cred,$tot_group_deb)),' class="num"');

View file

@ -87,29 +87,29 @@ $array=$todo->load_all();
?> ?>
<div style="float:right;width: 100%"> <div style="float:right;width: 100%">
<fieldset> <fieldset>
<legend> Situation </legend> <legend> <?php echo _("Situation");?> </legend>
<table class='result'> <table class='result'>
<tr> <tr>
<th> <th>
</th> </th>
<th> <th>
Pour aujourd'hui <?php echo _("Pour aujourd'hui")?>
</th> </th>
<th> <th>
En retard <?php echo _("En retard")?>
</th> </th>
</tr> </tr>
<tr> <tr>
<td> <td>
Action <?php echo _("Action")?>
</td> </td>
<td> <td>
<?php if (count($last_operation)>0): ?> <?php if (count($last_operation)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder;"onclick="display_detail('action_now_div')"> <A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder;"onclick="display_detail('action_now_div')">
<span class="notice"> <span class="notice">
<?php echo count($last_operation) ?> <?php echo count($last_operation) ?>
&nbsp;détail &nbsp;<?php echo _("détail")?>
</span> </span>
</A> </A>
<?php else: ?> <?php else: ?>
@ -121,7 +121,7 @@ $array=$todo->load_all();
<?php if (count($late_operation)>0): ?> <?php if (count($late_operation)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;;font-weight: bolder" onclick="display_detail('action_late_div')"> <A class="mtitle" style="color:red;text-decoration:underline;;font-weight: bolder" onclick="display_detail('action_late_div')">
<span class="notice"><?php echo count($late_operation) ?> <span class="notice"><?php echo count($late_operation) ?>
&nbsp;détail &nbsp;<?php echo _("détail")?>
</span> </span>
</A> </A>
<?php else: ?> <?php else: ?>
@ -132,12 +132,12 @@ $array=$todo->load_all();
</tr> </tr>
<tr> <tr>
<td> <td>
Paiement fournisseur <?php echo _("Paiement fournisseur")?>
</td> </td>
<td > <td >
<?php if (count($supplier_now)>0): ?> <?php if (count($supplier_now)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_now_div')"> <A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_now_div')">
<span class="notice"><?php echo count($supplier_now) ?>&nbsp;détail</span> <span class="notice"><?php echo count($supplier_now) ?>&nbsp;<?php echo _("détail")?></span>
</A> </A>
<?php else: ?> <?php else: ?>
@ -147,7 +147,7 @@ $array=$todo->load_all();
<td > <td >
<?php if (count($supplier_late)>0): ?> <?php if (count($supplier_late)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_late_div')"> <A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_late_div')">
<span class="notice"><?php echo count($supplier_late) ?>&nbsp;détail</span> <span class="notice"><?php echo count($supplier_late) ?>&nbsp;<?php echo _("détail")?></span>
</A> </A>
<?php else: ?> <?php else: ?>
@ -157,12 +157,12 @@ $array=$todo->load_all();
</tr> </tr>
<tr> <tr>
<td> <td>
Paiement client <?php echo _("Paiement client")?>
</td> </td>
<td> <td>
<?php if (count($customer_now)>0): ?> <?php if (count($customer_now)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_now_div')"> <A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_now_div')">
<span class="notice"><?php echo count($customer_now) ?>&nbsp;détail</span> <span class="notice"><?php echo count($customer_now) ?>&nbsp;<?php echo _("détail")?></span>
</A> </A>
<?php else: ?> <?php else: ?>
@ -172,7 +172,7 @@ $array=$todo->load_all();
<td> <td>
<?php if (count($customer_late)>0): ?> <?php if (count($customer_late)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_late_div')"> <A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_late_div')">
<span class="notice"><?php echo count($customer_late) ?>&nbsp;détail</span> <span class="notice"><?php echo count($customer_late) ?>&nbsp;<?php echo _("détail")?></span>
</A> </A>
<?php else: ?> <?php else: ?>
@ -188,7 +188,7 @@ $array=$todo->load_all();
echo HtmlInput::button('add',_('Ajout'),'onClick="add_todo()"',' smallbutton'); echo HtmlInput::button('add',_('Ajout'),'onClick="add_todo()"',' smallbutton');
if ( ! empty ($array) ) { if ( ! empty ($array) ) {
echo '<table id="table_todo" class="sortable" width="100%">'; echo '<table id="table_todo" class="sortable" width="100%">';
echo '<tr><th class=" sorttable_sorted_reverse">Date <span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span></th><th>Titre</th><th></th>'; echo '<tr><th class=" sorttable_sorted_reverse">Date <span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span></th><th>'._('Titre').'</th><th></th>';
$nb=0; $nb=0;
$today=date('d.m.Y'); $today=date('d.m.Y');
@ -219,7 +219,7 @@ if ( ! empty ($array) ) {
<div id="action_late_div" class="inner_box" style="display:none;margin-left:25%;top:25%;width: 50%;min-height:50%;overflow: auto;"> <div id="action_late_div" class="inner_box" style="display:none;margin-left:25%;top:25%;width: 50%;min-height:50%;overflow: auto;">
<?php <?php
echo HtmlInput::title_box("Action en retard", "action_late_div","hide") echo HtmlInput::title_box(_("Action en retard"), "action_late_div","hide")
?> ?>
<ol> <ol>
<?php if (count($late_operation)> 0) : <?php if (count($late_operation)> 0) :
@ -244,13 +244,13 @@ if ( ! empty ($array) ) {
<?php endfor;?> <?php endfor;?>
</ol> </ol>
<?php else : ?> <?php else : ?>
<h2 class='notice'>Aucune action en retard</h2> <h2 class='notice'><?php echo _("Aucune action en retard")?></h2>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div id="action_now_div" class="inner_box" style="display:none;margin-left:25%;width: 50%;top:25%;min-height:50%;overflow: auto;"> <div id="action_now_div" class="inner_box" style="display:none;margin-left:25%;width: 50%;top:25%;min-height:50%;overflow: auto;">
<?php <?php
echo HtmlInput::title_box("Action pour aujourd'hui", "action_now_div","hide") echo HtmlInput::title_box(_("Action pour aujourd'hui"), "action_now_div","hide")
?> ?>
<ol> <ol>
<?php <?php
@ -278,10 +278,10 @@ if ( ! empty ($array) ) {
<h2 class='notice'>Aucune action pour aujourd'hui</h2> <h2 class='notice'>Aucune action pour aujourd'hui</h2>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php display_dashboard_operation($supplier_now,"Fournisseurs à payer aujourd'hui",'supplier_now_div'); ?> <?php display_dashboard_operation($supplier_now,_("Fournisseurs à payer aujourd'hui"),'supplier_now_div'); ?>
<?php display_dashboard_operation($supplier_late,"Fournisseurs en retad",'supplier_late_div'); ?> <?php display_dashboard_operation($supplier_late,_("Fournisseurs en retad"),'supplier_late_div'); ?>
<?php display_dashboard_operation($customer_now,"Encaissement clients aujourd'hui",'customer_now_div'); ?> <?php display_dashboard_operation($customer_now,_("Encaissement clients aujourd'hui"),'customer_now_div'); ?>
<?php display_dashboard_operation($customer_late,"Clients en retard",'customer_late_div'); ?> <?php display_dashboard_operation($customer_late,_("Clients en retard"),'customer_late_div'); ?>
</div> </div>

View file

@ -156,7 +156,7 @@
$rmOperation=sprintf("javascript:if ( confirm('"._('Voulez-vous effacer cette opération ')."')==true ) {remove_operation('%s','%s');}", $rmOperation=sprintf("javascript:if ( confirm('"._('Voulez-vous effacer cette opération ')."')==true ) {remove_operation('%s','%s');}",
dossier::id(), dossier::id(),
$operation[$o]['ago_id']); $operation[$o]['ago_id']);
$js= '<a class="mtitle" style="color:orange" id="acop'.$operation[$o]['ago_id'].'" href="'.$rmOperation.'">Effacer</a>'; $js= '<a class="mtitle" style="color:orange" id="acop'.$operation[$o]['ago_id'].'" href="'.$rmOperation.'">'._("Effacer").'</a>';
echo '<li id="op'.$operation[$o]['ago_id'].'">'.$operation[$o]['str_date']." ".HtmlInput::detail_op($operation[$o]['jr_id'],$operation[$o]['jr_internal'])." ".h($operation[$o]['jr_comment'])." " echo '<li id="op'.$operation[$o]['ago_id'].'">'.$operation[$o]['str_date']." ".HtmlInput::detail_op($operation[$o]['jr_id'],$operation[$o]['jr_internal'])." ".h($operation[$o]['jr_comment'])." "
.$js.'</li>'; .$js.'</li>';
} }
@ -173,7 +173,7 @@
</div> </div>
<div style="float:left;width:45%"> <div style="float:left;width:45%">
<h4 style="display:inline">Actions concernées</h4> <h4 style="display:inline"><?php echo _("Actions concernées")?></h4>
<ol> <ol>
<?php <?php
@ -186,7 +186,7 @@
dossier::id(), dossier::id(),
$action[$o]['ag_id'],$_REQUEST['ag_id']); $action[$o]['ag_id'],$_REQUEST['ag_id']);
$showAction='<a class="line" href="'.$base."&ag_id=".$action[$o]['ag_id'].'">'; $showAction='<a class="line" href="'.$base."&ag_id=".$action[$o]['ag_id'].'">';
$js= '<a class="mtitle" style="color:orange" id="acact'.$action[$o]['ag_id'].'" href="'.$rmAction.'">Effacer</a>'; $js= '<a class="mtitle" style="color:orange" id="acact'.$action[$o]['ag_id'].'" href="'.$rmAction.'">'._("Effacer").'</a>';
echo '<li id="act'.$action[$o]['ag_id'].'">'.$showAction.$action[$o]['str_date']." ".$action[$o]['ag_ref']." ". echo '<li id="act'.$action[$o]['ag_id'].'">'.$showAction.$action[$o]['str_date']." ".$action[$o]['ag_ref']." ".
h($action[$o]['sub_title']).'('.h($action[$o]['dt_value']).')</a>'." " h($action[$o]['sub_title']).'('.h($action[$o]['dt_value']).')</a>'." "
.$js.'</li>'; .$js.'</li>';
@ -237,7 +237,7 @@ Document créé le <?php echo $this->ag_timestamp ?> par <?php echo $this->ag_ow
for( $c=0;$c<count($acomment);$c++){ for( $c=0;$c<count($acomment);$c++){
if ( $p_view != 'READ') if ( $p_view != 'READ')
{ {
$rmComment=sprintf("javascript:if ( confirm('"._('Voulez-vous effacer ce commentaire ')."')==true ) {remove_comment('%s','%s');}", $rmComment=sprintf("javascript:if ( confirm('"._('Voulez-vous effacer ce commentaire')." ?')==true ) {remove_comment('%s','%s');}",
dossier::id(), dossier::id(),
$acomment[$c]['agc_id']); $acomment[$c]['agc_id']);
$js= '<a class="mtitle" style="color:red" id="accom'.$acomment[$c]['agc_id'].'" href="'.$rmComment.'">Effacer</a>'; $js= '<a class="mtitle" style="color:red" id="accom'.$acomment[$c]['agc_id'].'" href="'.$rmComment.'">Effacer</a>';
@ -459,7 +459,7 @@ catch(exception) { alert('<?php echo j(_('Je ne peux pas ajouter de fichier'))?>
</li> </li>
</ol> </ol>
<span > <span >
<input type="button" class="button" onclick="addFiles();" value="Ajouter un fichier"> <input type="button" class="button" onclick="addFiles();" value="<?php echo _("Ajouter un fichier")?>">
</span> </span>
</div> </div>
<?php endif;?> <?php endif;?>

View file

@ -3,7 +3,7 @@
//see licence.txt //see licence.txt
?><TABLE BORDER="0" CELLSPACING="0"> ?><TABLE BORDER="0" CELLSPACING="0">
<TR> <TR>
<TD><?php echo ('Catégorie de fiche')?> </TD> <TD><?php echo _('Catégorie de fiche')?> </TD>
<TD><INPUT TYPE="INPUT" NAME="nom_mod"></TD> <TD><INPUT TYPE="INPUT" NAME="nom_mod"></TD>
</TR> </TR>
<tr> <tr>
@ -20,7 +20,7 @@
<td><span id="class_base_label"></span></td> <td><span id="class_base_label"></span></td>
</TR> </TR>
<TR> <TR>
<TD colspan='2'> <INPUT TYPE="CHECKBOX" NAME="create" CHECKED><?php echo _('Création automatique du poste comptable uniquement s\'il n\y a qu\'un seul poste')?></TD> <TD colspan='2'> <INPUT TYPE="CHECKBOX" NAME="create" CHECKED><?php echo _("Création automatique du poste comptable uniquement s'il n'y a qu'un seul poste")?></TD>
</TR> </TR>
<?php <?php
if ( sizeof($ref) ) { if ( sizeof($ref) ) {

View file

@ -63,7 +63,7 @@ for ($i=0;$i<$max;$i++):
</td> </td>
<td> <td>
<?php <?php
$v=($row['fd_create_account']=='t')?"Automatique":"Manuel"; $v=($row['fd_create_account']=='t')?_("Automatique"):_("Manuel");
echo $v; echo $v;
?> ?>
</td> </td>
@ -81,7 +81,7 @@ endfor;
?> ?>
</table> </table>
<?php <?php
echo HtmlInput::button("cat_fiche_def_add","Ajout d'une nouvelle catégorie", "onclick=\"detail_category_show('detail_category_div','".$dossier."','-1')\""); echo HtmlInput::button("cat_fiche_def_add",_("Ajout d'une nouvelle catégorie"), "onclick=\"detail_category_show('detail_category_div','".$dossier."','-1')\"");
?> ?>
</div> </div>
<div id="detail_category_div" style="display:none""> <div id="detail_category_div" style="display:none"">

View file

@ -27,26 +27,26 @@
*/ */
?> ?>
<?php echo $bar?> <?php echo $bar?>
<form method="POST" class="print" style="display:inline" onsubmit="return confirm('Vous confirmez ?')"> <form method="POST" class="print" style="display:inline" onsubmit="return confirm('<?php echo _("Vous confirmez ?")?>')">
<table class="result"> <table class="result">
<tr> <tr>
<th> <th>
Quick Code <?php echo _("Quick Code")?>
</th> </th>
<th> <th>
Nom <?php echo _("Nom")?>
</th> </th>
<th> <th>
Poste Comptable <?php echo _("Poste Comptable")?>
</th> </th>
<?php if ($allcard == 1 ) : ?> <?php if ($allcard == 1 ) : ?>
<th> <th>
Catégorie <?php echo _("Catégorie")?>
</th> </th>
<?php endif; ?> <?php endif; ?>
<th> <th>
Selection <?php echo _("Selection")?>
</th> </th>
</tr> </tr>
<?php for ($i = 0; $i < $nb_line; $i++) :?> <?php for ($i = 0; $i < $nb_line; $i++) :?>
@ -84,9 +84,9 @@
</table> </table>
<?php echo $str_add_card?> <?php echo $str_add_card?>
<?php echo HtmlInput::hidden('action',"1");?> <?php echo HtmlInput::hidden('action',"1");?>
<?php echo HtmlInput::submit('delete','Effacer la sélection ')?> <?php echo HtmlInput::submit('delete',_('Effacer la sélection '))?>
<?php if ( $allcard == 0 ): ?> <?php if ( $allcard == 0 ): ?>
<?php echo HtmlInput::submit('move','Déplacer la sélection vers')?> <?php echo HtmlInput::submit('move',_('Déplacer la sélection vers'))?>
<?php <?php
$iselect=new ISelect('move_to'); $iselect=new ISelect('move_to');
$iselect->value=$cn->make_array("select fd_id,fd_label from fiche_def order by 2"); $iselect->value=$cn->make_array("select fd_id,fd_label from fiche_def order by 2");

View file

@ -5,8 +5,8 @@
<legend> <legend>
<?php echo $str_action;?></legend> <?php echo $str_action;?></legend>
<?php echo $str_name;?> <?php echo $str_name;?>
Date de début <?php echo $str_start_date?> <?php echo _("Date de début")?> <?php echo $str_start_date?>
Date de fin <?php echo $str_end_date ?> <?php echo _("Date de fin")?> <?php echo $str_end_date ?>
<h2> <?php echo _('Catégories');?></h2> <h2> <?php echo _('Catégories');?></h2>
<table> <table>

View file

@ -9,8 +9,8 @@
<?php <?php
$wchdate=new ISelect('chdate'); $wchdate=new ISelect('chdate');
$wchdate->value=array( $wchdate->value=array(
array('value'=>1,'label'=>"Avec date d'extrait"), array('value'=>1,'label'=>_("Avec date d'extrait")),
array('value'=>2,'label'=>"Avec date opérations") array('value'=>2,'label'=>_("Avec date opérations"))
); );
$wchdate->selected=(isset($chdate))?$chdate:1; $wchdate->selected=(isset($chdate))?$chdate:1;
$wchdate->javascript='onchange="show_fin_chdate(\'chdate\')"'; $wchdate->javascript='onchange="show_fin_chdate(\'chdate\')"';

View file

@ -9,7 +9,7 @@
$str=$_SERVER['QUERY_STRING']."&act=de&ajax=$callback"; $str=$_SERVER['QUERY_STRING']."&act=de&ajax=$callback";
echo '<A id="popmeout" HREF="javascript:void(0)" onclick="var a=window.open(\'popup.php?'.$str.'\',\'\',\'fullscreen=yes,location=no,toolbar=no,scrollbars=yes,resizable=yes,status=no,location=no\'); a.focus();removeDiv(\''.$div.'\')"> echo '<A id="popmeout" HREF="javascript:void(0)" onclick="var a=window.open(\'popup.php?'.$str.'\',\'\',\'fullscreen=yes,location=no,toolbar=no,scrollbars=yes,resizable=yes,status=no,location=no\'); a.focus();removeDiv(\''.$div.'\')">
!pop me out ! </A>'; !pop me out ! </A>';
echo '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>'; echo '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">'._("Fermer").'</A>';
} }
?> ?>
</div> </div>

View file

@ -4,22 +4,22 @@
?><table class="result" style="width:80%;margin-left:10%"> ?><table class="result" style="width:80%;margin-left:10%">
<tr> <tr>
<th> <th>
<?php echo _("")?>
</th> </th>
<th> <th>
Date <?php echo _("Date")?>
</th> </th>
<th> <th>
op <?php echo _("N° op")?>
</th> </th>
<th> <th>
pièce <?php echo _("n° pièce")?>
</th> </th>
<th> <th>
Libellé <?php echo _("Libellé")?>
</th> </th>
<th style="text-align:right"> <th style="text-align:right">
Montant <?php echo _("Montant")?>
</th> </th>
</tr> </tr>
<?php <?php

View file

@ -7,22 +7,22 @@
</th> </th>
<th style="text-align:right"> <th style="text-align:right">
Prix HTVA <?php echo _("Prix HTVA")?>
</th> </th>
<th style="text-align:right"> <th style="text-align:right">
Non Deductible <?php echo _("Non Deductible")?>
</th> </th>
<th style="text-align:right" > <th style="text-align:right" >
code tva <?php echo _("code tva")?>
</th> </th>
<th style="text-align:right"> <th style="text-align:right">
TVA <?php echo _("TVA")?>
</th> </th>
<th style="text-align:right"> <th style="text-align:right">
Tva ND <?php echo _("Tva ND")?>
</th> </th>
<th style="text-align:right"> <th style="text-align:right">
TVAC <?php echo _("TVAC")?>
</th> </th>
</tr> </tr>
<?php <?php

View file

@ -20,20 +20,20 @@
<?php <?php
$date = new IDate('p_date'); $date = new IDate('p_date');
$date->value = format_date($obj->det->jr_date); $date->value = format_date($obj->det->jr_date);
echo td('Date') . td($date->input()); echo td(_('Date')) . td($date->input());
?> ?>
<tr> <tr>
<td></td> <td></td>
<?php <?php
$date_ech = new IDate('p_ech'); $date_ech = new IDate('p_ech');
$date_ech->value = format_date($obj->det->jr_ech); $date_ech->value = format_date($obj->det->jr_ech);
echo td('Echeance') . td($date_ech->input()); echo td(_('Echeance')) . td($date_ech->input());
?> ?>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td> <td>
Date paiement <?php echo _("Date paiement")?>
</td> </td>
<td> <td>
<?php <?php

View file

@ -3,13 +3,13 @@
$other=new IText('OTHER',$obj->info->other); $other=new IText('OTHER',$obj->info->other);
?> ?>
<div class="myfieldset"> <div class="myfieldset">
<h1 class="legend">Informations</h1> <h1 class="legend">"<?php echo _("Informations")?></h1>
<table> <table>
<tr> <tr>
<td> Bon de commande :</td><td> <?php echo HtmlInput::infobulle(31)." ".$cmd->input(); ?></td> <td><?php echo _(" Bon de commande")?> :</td><td> <?php echo HtmlInput::infobulle(31)." ".$cmd->input(); ?></td>
</tr> </tr>
<tr> <tr>
<td> Autre information : </td><td><?php echo HtmlInput::infobulle(30)." ".$other->input();?></td> <td> <?php echo _("Autre information")?> : </td><td><?php echo HtmlInput::infobulle(30)." ".$other->input();?></td>
</tr> </tr>
</table> </table>
</div> </div>
@ -98,8 +98,8 @@ require_once('template/ledger_detail_file.php');
<?php <?php
if ( $div != 'popup' ) { if ( $div != 'popup' ) {
$a=new IButton('Fermer','Fermer'); $a=new IButton('Fermer',_('Fermer'));
$a->label="Fermer"; $a->label=_("Fermer");
$a->javascript="removeDiv('".$div."')"; $a->javascript="removeDiv('".$div."')";
echo $a->input(); echo $a->input();
} }

View file

@ -21,7 +21,7 @@ require_once('class_anc_operation.php');
<?php <?php
$date=new IDate('p_date'); $date=new IDate('p_date');
$date->value=format_date($obj->det->jr_date); $date->value=format_date($obj->det->jr_date);
echo td('Date').td($date->input()); echo td(_('Date')).td($date->input());
?> ?>
@ -31,7 +31,7 @@ $date->value=format_date($obj->det->jr_date);
<?php <?php
$bk=new Fiche($cn,$obj->det->array[0]['qf_bank']); $bk=new Fiche($cn,$obj->det->array[0]['qf_bank']);
$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" '); $view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" ');
echo td('Compte en banque').td($view_card_detail).td();; echo td(_('Compte en banque')).td($view_card_detail).td();;
?> ?>
</tr> </tr>
@ -41,7 +41,7 @@ echo td('Compte en banque').td($view_card_detail).td();;
$bk=new Fiche($cn,$obj->det->array[0]['qf_other']); $bk=new Fiche($cn,$obj->det->array[0]['qf_other']);
$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" '); $view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" ');
echo td('Tiers').td($view_card_detail); echo td(_('Tiers')).td($view_card_detail);
?> ?>
</tr> </tr>
@ -56,7 +56,7 @@ echo td('Tiers').td($view_card_detail);
?> ?>
</tr> </tr>
<tr> <tr>
<?php echo td('montant').td(nbm($obj->det->array[0]['qf_amount']),' class="inum"');?> <?php echo td(_('montant')).td(nbm($obj->det->array[0]['qf_amount']),' class="inum"');?>
</tr> </tr>
<tr> <tr>
<?php <?php

View file

@ -2,5 +2,5 @@
//This file is part of NOALYSS and is under GPL //This file is part of NOALYSS and is under GPL
//see licence.txt //see licence.txt
?><div style="margin:0;padding:0;background-color:red;text-align:center;"> ?><div style="margin:0;padding:0;background-color:red;text-align:center;">
<h2 class="error">Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable</h2>; <h2 class="error"><?php echo _("Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable")?></h2>;
</div> </div>

View file

@ -24,7 +24,7 @@ require_once ('class_anc_plan.php');
<?php <?php
$date=new IDate('p_date'); $date=new IDate('p_date');
$date->value=format_date($obj->det->jr_date); $date->value=format_date($obj->det->jr_date);
echo td('Date').td($date->input()); echo td(_('Date')).td($date->input());
?> ?>
</td> </td>
@ -41,7 +41,7 @@ require_once ('class_anc_plan.php');
?> ?>
</td></tr> </td></tr>
<tr><td> <tr><td>
<?php echo td('montant').td(nbm($obj->det->jr_montant),' class="inum"');?> <?php echo td(_('Montant')).td(nbm($obj->det->jr_montant),' class="inum"');?>
</td></tr> </td></tr>
<tr><td> <tr><td>
<?php <?php

View file

@ -8,7 +8,7 @@
$str=$_SERVER['QUERY_STRING']."&act=$action&ajax=$callback"; $str=$_SERVER['QUERY_STRING']."&act=$action&ajax=$callback";
echo '<A id="close_div" HREF="javascript:void(0)" onclick="var a=window.open(\'popup.php?'.$str.'\',\'\',\'location=no,toolbar=no,fullscreen=yes,scrollbars=yes,resizable=yes,status=no\'); a.focus();removeDiv(\''.$div.'\')"> echo '<A id="close_div" HREF="javascript:void(0)" onclick="var a=window.open(\'popup.php?'.$str.'\',\'\',\'location=no,toolbar=no,fullscreen=yes,scrollbars=yes,resizable=yes,status=no\'); a.focus();removeDiv(\''.$div.'\')">
!pop me out ! </A>'; !pop me out ! </A>';
echo '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>'; echo '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">'._("Fermer").'</A>';
} }
?> ?>
</div> </div>

View file

@ -22,7 +22,7 @@
<?php <?php
$date = new IDate('p_date'); $date = new IDate('p_date');
$date->value = format_date($obj->det->jr_date); $date->value = format_date($obj->det->jr_date);
echo td('Date') . td($date->input()); echo td(_('Date')) . td($date->input());
?> ?>
</tr> </tr>
<tr> <tr>
@ -30,12 +30,12 @@
<?php <?php
$date_ech = new IDate('p_ech'); $date_ech = new IDate('p_ech');
$date_ech->value = format_date($obj->det->jr_ech); $date_ech->value = format_date($obj->det->jr_ech);
echo td('Echeance') . td($date_ech->input()); echo td(_('Echeance')) . td($date_ech->input());
?> ?>
<tr> <tr>
<td></td> <td></td>
<td> <td>
Date paiement <?php echo _("Date paiement")?>
</td> </td>
<td> <td>
<?php <?php
@ -76,7 +76,7 @@ echo td(_('Libellé')) . td($itext->input(), ' colspan="2" ');
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td>Payé</td> <td><?php echo _("Payé")?></td>
<td> <td>
<?php <?php
$ipaid = new ICheckBox("ipaid", 'paid'); $ipaid = new ICheckBox("ipaid", 'paid');
@ -92,7 +92,7 @@ echo $ipaid->input();
<table style="width:100%;border:solid 1px yellow"> <table style="width:100%;border:solid 1px yellow">
<tr> <tr>
<td> <td>
Note <?php echo _("Note")?>
</td></tr> </td></tr>
<tr> <tr>
<td> <td>

View file

@ -105,14 +105,14 @@ $amount_cred+=($this->content[$i]['j_debit']=='f')?$this->content[$i]['j_montant
endfor; endfor;
?> ?>
</table> </table>
<h2 class="info2" style="margin:0 0"> Solde débit : <?php echo nb($amount_deb);?></h2> <h2 class="info2" style="margin:0 0"> <?php echo _("Solde débit")?> : <?php echo nb($amount_deb);?></h2>
<h2 class="info2" style="margin:0 0"> Solde crédit : <?php echo nb($amount_cred);?></h2> <h2 class="info2" style="margin:0 0"> <?php echo _("Solde crédit")?> : <?php echo nb($amount_cred);?></h2>
<?php <?php
bcscale(2); bcscale(2);
$solde=bcsub($amount_deb,$amount_cred); $solde=bcsub($amount_deb,$amount_cred);
if ( $solde > 0 ) : if ( $solde > 0 ) :
?> ?>
<h2 class="info2" style="margin:0 0"> Solde débiteur : <?php echo nb($solde)?></h2> <h2 class="info2" style="margin:0 0"> <?php echo _("Solde débiteur")?> : <?php echo nb($solde)?></h2>
<?php else : ?> <?php else : ?>
<h2 class="info2" style="margin:0 0"> Solde créditeur : <?php echo nb(abs($solde))?></h2> <h2 class="info2" style="margin:0 0"> <?php echo _("Solde créditeur")?> : <?php echo nb(abs($solde))?></h2>
<?php endif; ?> <?php endif; ?>

View file

@ -148,18 +148,18 @@ if ($i<$linked_limit)
} }
endfor; endfor;
$delta = bcsub($amount_deb, $amount_cred); $delta = bcsub($amount_deb, $amount_cred);
$side = 'Créditeur'; $side = _('Créditeur');
if ($delta < 0 ) { if ($delta < 0 ) {
$side = "Débiteur"; $side = _("Débiteur");
$delta = abs($delta); $delta = abs($delta);
} }
?> ?>
</TABLE> </TABLE>
<h2 class="info"> Total lettré</h2> <h2 class="info"> <?php echo _("Total lettré")?></h2>
<span style="display:block;font-size:14px"><?php echo _('Total Debit')?> <?php echo $amount_deb?></span> <span style="display:block;font-size:14px"><?php echo _('Total Debit')?> <?php echo $amount_deb?></span>
<span style="display:block;font-size:14px"><?php echo _('Total Credit')?> <?php echo $amount_cred?></span> <span style="display:block;font-size:14px"><?php echo _('Total Credit')?> <?php echo $amount_cred?></span>
<span style="display:block;font-size:14px"><?php echo _('Total ').$side?> <?php echo $delta?></span> <span style="display:block;font-size:14px"><?php echo _('Total')." ".$side?> <?php echo $delta?></span>
<?php endif;?> <?php endif;?>
<?php echo HtmlInput::button('check_all','Sélectionner tout',' onclick="select_checkbox(\'letter_form\')"');?> <?php echo HtmlInput::button('check_all',_('Sélectionner tout'),' onclick="select_checkbox(\'letter_form\')"');?>
<?php echo HtmlInput::button('check_none','Tout Désélectionner ',' onclick="unselect_checkbox(\'letter_form\')"');?> <?php echo HtmlInput::button('check_none',_('Tout Désélectionner'),' onclick="unselect_checkbox(\'letter_form\')"');?>

View file

@ -15,8 +15,8 @@ $str_url=new IText('me_url',$m->me_url);
$str_parameter=new IText('me_parameter',$m->me_parameter); $str_parameter=new IText('me_parameter',$m->me_parameter);
$str_js=new IText('me_javascript',$m->me_javascript); $str_js=new IText('me_javascript',$m->me_javascript);
$a_type=array ( $a_type=array (
array ('label'=>'Impression','value'=>'PR' ), array ('label'=>_('Impression'),'value'=>'PR' ),
array ('label'=>'Menu','value'=>'ME' ) array ('label'=>_('Menu'),'value'=>'ME' )
); );
$str_type=new ISelect("me_type", $a_type); $str_type=new ISelect("me_type", $a_type);
$str_type->selected=$m->me_type; $str_type->selected=$m->me_type;
@ -24,7 +24,7 @@ $str_type->selected=$m->me_type;
<table> <table>
<tr> <tr>
<td> <td>
Code du menu <?php echo _("Code du menu")?>
</td> </td>
<td> <td>
<?php echo $str_code->input()?> <?php echo $str_code->input()?>
@ -32,7 +32,7 @@ $str_type->selected=$m->me_type;
</tr> </tr>
<tr> <tr>
<td> <td>
Libellé du menu <?php echo _("Libellé du menu")?>
</td> </td>
<td> <td>
<?php echo $str_menu->input()?> <?php echo $str_menu->input()?>
@ -40,7 +40,7 @@ $str_type->selected=$m->me_type;
</tr> </tr>
<tr> <tr>
<td> <td>
Description <?php echo _("Description")?>
</td> </td>
<td> <td>
<?php echo $str_desc->input()?> <?php echo $str_desc->input()?>
@ -48,7 +48,7 @@ $str_type->selected=$m->me_type;
</tr> </tr>
<tr> <tr>
<td> <td>
Type <?php echo _("Type")?>
</td> </td>
<td> <td>
<?php echo $str_type->input();?> <?php echo $str_type->input();?>
@ -56,7 +56,7 @@ $str_type->selected=$m->me_type;
</tr> </tr>
<tr> <tr>
<td> <td>
Fichier à inclure (depuis le répertoire include) <?php echo _("Fichier à inclure (depuis le répertoire include)")?>
</td> </td>
<td> <td>
<?php echo $str_file->input()?> <?php echo $str_file->input()?>

View file

@ -2,12 +2,12 @@
//This file is part of NOALYSS and is under GPL //This file is part of NOALYSS and is under GPL
//see licence.txt //see licence.txt
?><?php echo HtmlInput::anchor_close('mod_doc');?> ?><?php echo HtmlInput::anchor_close('mod_doc');?>
<h2 class="info">Modèle de document</h2> <h2 class="info">"<?php echo _("Modèle de document")?></h2>
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
<table> <table>
<tr> <tr>
<td>Nom du document</td> <td><?php echo _("Nom du document")?></td>
<td> <td>
<?php <?php
@ -20,7 +20,7 @@ echo $a->input();
<tr> <tr>
<td> <td>
Catégorie de document <?php echo _("Catégorie de document")?>
</td> </td>
<td> <td>
<?php <?php
@ -37,7 +37,7 @@ Catégorie de document
</tr> </tr>
<tr> <tr>
<td> <td>
Affectation <?php echo _("Affectation")?>
</td> </td>
<td> <td>
<?php <?php
@ -58,7 +58,7 @@ Affectation
<tr> <tr>
<td> <td>
Fichier <?php echo _("Fichier")?>
<?php <?php
$s=dossier::get(); $s=dossier::get();
@ -77,7 +77,7 @@ echo $file->input();
<tr> <tr>
<td> <td>
Dernier numéro utilisé pour ce type de document <?php echo _("Dernier numéro utilisé pour ce type de document")?>
</td> </td>
<td> <td>
<?php <?php
@ -98,7 +98,7 @@ echo $last;
</tr> </tr>
<tr> <tr>
<td> <td>
Redémarrer la séquence (laisser à 0 pour ne pas changer) <?php echo _("Redémarrer la séquence (laisser à 0 pour ne pas changer)")?>
</td> </td>
<td> <td>
<?php <?php
@ -115,7 +115,7 @@ echo HtmlInput::hidden('p_action','document');
echo dossier::hidden(); echo dossier::hidden();
echo HtmlInput::hidden('sa','mod_template'); echo HtmlInput::hidden('sa','mod_template');
echo HtmlInput::hidden('id',$doc->md_id); echo HtmlInput::hidden('id',$doc->md_id);
echo HtmlInput::submit("mod",'Sauver'); echo HtmlInput::submit("mod",_('Sauver'));
?> ?>
</form> </form>

View file

@ -28,10 +28,10 @@
*/ */
echo '<table class="result">'; echo '<table class="result">';
echo '<tr>'; echo '<tr>';
echo th('Compte en banque'); echo th(_('Compte en banque'));
echo th('Tiers'); echo th(_('Tiers'));
echo th('Libellé'); echo th(_('Libellé'));
echo th('Montant'); echo th(_('Montant'));
echo '</tr>'; echo '</tr>';
echo '<tr>'; echo '<tr>';

View file

@ -12,13 +12,13 @@ pour faire toutes les écritures de fin d'exercice: amortissements, régulations
</li> </li>
</ul> </ul>
<form method="post" onsubmit="return confirm('Confirmez vous l\'ajout d\'un exercice comptable ?')"> <form method="post" onsubmit="return confirm('<?php echo _("Confirmez vous l'ajout d\'un exercice comptable ?")?>')">
<?php <?php
echo HtmlInput::hidden("ac",$_REQUEST['ac']); echo HtmlInput::hidden("ac",$_REQUEST['ac']);
echo $nb_exercice->input(); echo $nb_exercice->input();
echo HtmlInput::hidden("jrn_def_id","0"); echo HtmlInput::hidden("jrn_def_id","0");
echo Dossier::hidden(); echo Dossier::hidden();
echo HtmlInput::submit("add_exercice","Ajout d'un exercice comptable"); echo HtmlInput::submit("add_exercice",_("Ajout d'un exercice comptable"));
?> ?>
</form> </form>

View file

@ -3,12 +3,12 @@
//see licence.txt //see licence.txt
?><TABLE class="result"> ?><TABLE class="result">
<tr> <tr>
<th>Pièce</th> <th><?php echo _("Pièce")?></th>
<th>Date</th> <th><?php echo _("Date")?></th>
<th>Paiement</th> <th><?php echo _("Paiement")?></th>
<th>Ref</th> <th><?php echo _("Ref")?></th>
<th>Client / Fournisseur</th> <th><?php echo _("Client")."/"._("Fournisseur")?></th>
<th>Description</th> <th><?php echo _("Description")?></th>
<th style="text-align:right">HTVA</th> <th style="text-align:right">HTVA</th>
<th style="text-align:right">Privé</th> <th style="text-align:right">Privé</th>
<th style="text-align:right">DNA</th> <th style="text-align:right">DNA</th>
@ -28,7 +28,7 @@ $col_tva="";
echo $col_tva; echo $col_tva;
?> ?>
<th style="text-align:right">TVAC</th> <th style="text-align:right">TVAC</th>
<th>Opérations rapprochées</th> <th><?php echo _("Opérations rapprochées")?></th>
</tr> </tr>
<?php <?php
$i = 0; $i = 0;

View file

@ -30,19 +30,19 @@
?> ?>
<table> <table>
<tr> <tr>
<td>Nom</td> <td><?php echo _("Nom")?></td>
<td><?php echo $name->input();?></td> <td><?php echo $name->input();?></td>
</tr> </tr>
<tr> <tr>
<td>Description</td> <td><?php echo _("Description")?></td>
<td><?php echo $desc->input()?></td> <td><?php echo $desc->input()?></td>
</tr> </tr>
<tr> <tr>
<td>Avec Calculatrice</td> <td><?php echo _("Avec Calculatrice")?></td>
<td><?php echo $with_calc->input()?></td> <td><?php echo $with_calc->input()?></td>
</tr> </tr>
<tr> <tr>
<td>Avec Direct Form</td> <td><?php echo _("Avec Direct Form")?></td>
<td><?php echo $with_direct_form->input()?></td> <td><?php echo $with_direct_form->input()?></td>
</tr> </tr>
</table> </table>

View file

@ -56,4 +56,4 @@
</tr> </tr>
<?php endfor;?> <?php endfor;?>
</table> </table>
<?php echo HtmlInput::submit("change_stock", "Sauver")?> <?php echo HtmlInput::submit("change_stock", _("Sauver"))?>

View file

@ -2,7 +2,7 @@
//This file is part of NOALYSS and is under GPL //This file is part of NOALYSS and is under GPL
//see licence.txt //see licence.txt
?><div class="content"> ?><div class="content">
Filtre rapide : <?php echo _("Filtre")?> :
<?php <?php
$col="";$sp=""; $col="";$sp="";
for ($e=0;$e<count($aHeading);$e++) {$col.=$sp.$e; $sp=",";} for ($e=0;$e<count($aHeading);$e++) {$col.=$sp.$e; $sp=",";}
@ -11,7 +11,7 @@ Filtre rapide :
<table id="fiche_tb_id" class="sortable"> <table id="fiche_tb_id" class="sortable">
<tr> <tr>
<?php <?php
echo th('Détail'); echo th(_('Détail'));
for ($i=0;$i<count($aHeading);$i++) : for ($i=0;$i<count($aHeading);$i++) :
$span="";$sort=""; $span="";$sort="";
if ($i==0) if ($i==0)

View file

@ -33,10 +33,10 @@
if ($div == "search_op") { if ($div == "search_op") {
$callback=$_SERVER['PHP_SELF']; $callback=$_SERVER['PHP_SELF'];
$str="recherche.php?".Dossier::get().'&ac=SEARCH'; $str="recherche.php?".Dossier::get().'&ac=SEARCH';
echo '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>'; echo '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">'._("Fermer").'</A>';
} }
?> ?>
</div> </div>
<div> <div>
<?php echo h2info('Recherche')?> <?php echo h2info(_('Recherche'))?>
</div> </div>

View file

@ -27,45 +27,45 @@
*/ */
?> ?>
<div id="histo_search_d" class="inner_box" style="width:60%;height:280px;display:none"> <div id="histo_search_d" class="inner_box" style="width:60%;height:280px;display:none">
<?php echo HtmlInput::title_box("Recherche", "histo_search_d", "hide")?> <?php echo HtmlInput::title_box(_("Recherche"), "histo_search_d", "hide")?>
<form method="GET"> <form method="GET">
<?php echo HtmlInput::get_to_hidden(array("gDossier", "ac"))?> <?php echo HtmlInput::get_to_hidden(array("gDossier", "ac"))?>
<table> <table>
<tr> <tr>
<td> Code Stock </td> <td> <?php echo _("Code Stock")?> </td>
<td> <?php echo $wcode_stock->input()?><?php echo $wcode_stock->search()?> </td> <td> <?php echo $wcode_stock->input()?><?php echo $wcode_stock->search()?> </td>
</tr> </tr>
<tr> <tr>
<td> Fiche </td> <td> <?php echo _("Fiche")?> </td>
<td> <?php echo $wcard->input()?><?php echo $wcard->search()?> </td> <td> <?php echo $wcard->input()?><?php echo $wcard->search()?> </td>
</tr> </tr>
<tr> <tr>
<td> A partir de </td> <td> <?php echo _("A partir de")?> </td>
<td> <?php echo $wdate_start->input()?> </td> <td> <?php echo $wdate_start->input()?> </td>
</tr> </tr>
<tr> <tr>
<td> Jusque </td> <td> <?php echo _("Jusque")?> </td>
<td> <?php echo $wdate_end->input()?> </td> <td> <?php echo $wdate_end->input()?> </td>
</tr> </tr>
<tr> <tr>
<td> Dépôt </td> <td> <?php echo _("Dépôt")?> </td>
<td> <?php echo $wrepo->input()?> </td> <td> <?php echo $wrepo->input()?> </td>
</tr> </tr>
<tr> <tr>
<td> Montant supérieur ou égal à </td> <td> <?php echo _("Montant supérieur ou égal à")?> </td>
<td> <?php echo $wamount_start->input()?> </td> <td> <?php echo $wamount_start->input()?> </td>
</tr> </tr>
<tr> <tr>
<td> Montant inférieur ou égal à </td> <td> <?php echo _("Montant inférieur ou égal à")?> </td>
<td> <?php echo $wamount_end->input()?> </td> <td> <?php echo $wamount_end->input()?> </td>
</tr> </tr>
<tr> <tr>
<td> Direction </td> <td> <?php echo _("Direction")?> </td>
<td> <?php echo $wdirection->input()?> </td> <td> <?php echo $wdirection->input()?> </td>
</tr> </tr>
</table> </table>
<?php echo HtmlInput::submit("search_histo_b", "Recherche")?> <?php echo HtmlInput::submit("search_histo_b",_("Recherche"))?>
</form> </form>
</div> </div>

View file

@ -28,10 +28,10 @@
*/ */
?> ?>
<div class="content"> <div class="content">
<form method="POST" class="print" onsubmit="return confirm('Vous confirmez ?')"> <form method="POST" class="print" onsubmit="return confirm('<?php echo _("Vous confirmez ?")?>')">
<table> <table>
<tr><td> <tr><td>
Date <?php echo _("Date")?>
</td> </td>
<td> <td>
<?php echo $date->input()?> <?php echo $date->input()?>
@ -39,7 +39,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
Dépot <?php echo _("Dépot")?>
</td> </td>
<td> <td>
<?php echo $idepo->input()?> <?php echo $idepo->input()?>
@ -47,7 +47,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
Motif de changement <?php echo _("Motif de changement")?>
</td> </td>
<td> <td>
<?php echo $motif->input()?> <?php echo $motif->input()?>
@ -57,15 +57,15 @@
<table id="stock_tb" style="width: 80%"> <table id="stock_tb" style="width: 80%">
<tr> <tr>
<th style="text-align: left"> <th style="text-align: left">
Code Stock <?php echo _("Code Stock")?>
</th> </th>
<?php if ( $p_readonly == true ) :?> <?php if ( $p_readonly == true ) :?>
<th style="text-align: left"> <th style="text-align: left">
Fiche <?php echo _("Fiche")?>
</th> </th>
<?php endif;?> <?php endif;?>
<th style="text-align:right"> <th style="text-align:right">
Quantité <?php echo _("Quantité")?>
</th> </th>
</tr> </tr>
<?php for($i=0;$i<$nb;$i++): ?> <?php for($i=0;$i<$nb;$i++): ?>
@ -100,8 +100,8 @@
</tr> </tr>
<?php endfor; ?> <?php endfor; ?>
</table> </table>
<?php if ($p_readonly == false) echo HtmlInput::button_action('Ajouter une ligne','stock_add_row();')?> <?php if ($p_readonly == false) echo HtmlInput::button_action(_('Ajouter une ligne'),'stock_add_row();')?>
<?php if ($p_readonly == false) echo HtmlInput::submit('save','Sauver')?> <?php if ($p_readonly == false) echo HtmlInput::submit('save',_('Sauver'))?>
<?php if ($p_readonly == false) echo HtmlInput::hidden('row',$nb)?> <?php if ($p_readonly == false) echo HtmlInput::hidden('row',$nb)?>
</form> </form>
</div> </div>

View file

@ -32,7 +32,7 @@
<table> <table>
<tr> <tr>
<td> <td>
Exercice <?php echo _("Exercice")?>
</td> </td>
<td> <td>
<?php echo $iexercice->input()?> <?php echo $iexercice->input()?>
@ -40,12 +40,12 @@
</tr> </tr>
<tr> <tr>
<td> <td>
Présentation <?php echo _("Présentation")?>
</td> </td>
<td> <td>
<?php echo $presentation->input()?> <?php echo $presentation->input()?>
</td> </td>
</tr> </tr>
</table> </table>
<?php echo HtmlInput::submit('sfilter','Filtrer')?> <?php echo HtmlInput::submit('sfilter',_('Filtrer'))?>
</form> </form>

View file

@ -36,17 +36,17 @@ $a_repo=$cn->get_array("select distinct t.r_id,r_name,r_adress,r_city,r_country,
<div class="content"> <div class="content">
<?php for ($r=0;$r<count($a_repo);$r++):?> <?php for ($r=0;$r<count($a_repo);$r++):?>
<h1><?php echo $a_repo[$r]['r_name']?></h1> <h1><?php echo $a_repo[$r]['r_name']?></h1>
<p>Adresse <?php echo $a_repo[$r]['r_adress']?></p> <p><?php echo _("Adresse")?> <?php echo $a_repo[$r]['r_adress']?></p>
<p>Ville <?php echo $a_repo[$r]['r_city']?></p> <p><?php echo _("Ville")?> <?php echo $a_repo[$r]['r_city']?></p>
<p>Pays <?php echo $a_repo[$r]['r_country']?></p> <p><?php echo _("Pays")?> <?php echo $a_repo[$r]['r_country']?></p>
<p>Téléphone <?php echo $a_repo[$r]['r_phone']?></p> <p><?php echo _("Téléphone")?> <?php echo $a_repo[$r]['r_phone']?></p>
<table class="result"> <table class="result">
<tr> <tr>
<th>Code</th> <th><?php echo _("Code")?></th>
<th>Détail</th> <th><?php echo _("Détail")?></th>
<th style="text-align: right">IN</th> <th style="text-align: right"><?php echo _("IN")?></th>
<th style="text-align: right">OUT</th> <th style="text-align: right"><?php echo _("OUT")?></th>
<th style="text-align: right">En Stock</th> <th style="text-align: right"><?php echo _("En Stock")?></th>
</tr> </tr>
<?php <?php
$a_stock=$cn->get_array( $a_stock=$cn->get_array(
@ -84,7 +84,7 @@ $a_repo=$cn->get_array("select distinct t.r_id,r_name,r_adress,r_city,r_country,
echo $sep.HtmlInput::card_detail($a_card[$c]['quick_code'], $a_card[$c]['vw_name'], ' class="line" '); echo $sep.HtmlInput::card_detail($a_card[$c]['quick_code'], $a_card[$c]['vw_name'], ' class="line" ');
$sep=" ,"; $sep=" ,";
endfor; endfor;
if ( count($a_card)== 0 ) echo '<span class="notice">Changement manuel</span>'; if ( count($a_card)== 0 ) echo '<span class="notice">'._("Changement manuel").'</span>';
?> ?>
</td> </td>
<td class="num"> <td class="num">

View file

@ -30,7 +30,7 @@
<table class="result"> <table class="result">
<tr> <tr>
<th> <th>
Code Stock <?php echo _("Code Stock")?>
</th> </th>
<?php for ($i = 0; $i < count($a_repository); $i++):?> <?php for ($i = 0; $i < count($a_repository); $i++):?>
<th> <th>
@ -38,7 +38,7 @@
</th> </th>
<?php endfor;?> <?php endfor;?>
<th> <th>
Total <?php echo _("Total")?>
</th> </th>
</tr> </tr>
<?php <?php
@ -70,7 +70,7 @@
<table> <table>
<tr> <tr>
<td> <td>
IN : <?php echo _("IN")?> :
</td> </td>
<td class="num"> <td class="num">
<?php echo nbm($array[0]['s_qin'])?> <?php echo nbm($array[0]['s_qin'])?>
@ -78,7 +78,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
OUT : <?php echo _("OUT")?> :
</td> </td>
<td class="num"> <td class="num">
<?php echo nbm($array[0]['s_qout'])?> <?php echo nbm($array[0]['s_qout'])?>
@ -86,7 +86,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
DIFF : <?php echo _("DIFF")?> :
</td> </td>
<td class="num"> <td class="num">
<?php echo nbm((bcsub($array[0]['s_qin'],$array[0]['s_qout'])))?> <?php echo nbm((bcsub($array[0]['s_qin'],$array[0]['s_qout'])))?>
@ -104,7 +104,7 @@
<table> <table>
<tr> <tr>
<td> <td>
IN : <?php echo _("IN")?> :
</td> </td>
<td class="num"> <td class="num">
<?php echo nbm($n_in)?> <?php echo nbm($n_in)?>
@ -112,7 +112,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
OUT : <?php echo _("OUT")?> :
</td> </td>
<td class="num"> <td class="num">
<?php echo nbm($n_out)?> <?php echo nbm($n_out)?>
@ -120,7 +120,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
DIFF : <?php echo _("DIFF")?> :
</td> </td>
<td class="num"> <td class="num">
<?php echo nbm((bcsub($n_in,$n_out)))?> <?php echo nbm((bcsub($n_in,$n_out)))?>

View file

@ -2,10 +2,10 @@
//This file is part of NOALYSS and is under GPL //This file is part of NOALYSS and is under GPL
//see licence.txt //see licence.txt
?><?php ?><?php
echo HtmlInput::title_box('Etiquette', 'tag_div'); echo HtmlInput::title_box(_('Etiquette'), 'tag_div');
$max=$this->cn->count($ret); $max=$this->cn->count($ret);
if ( $max == 0 ) { if ( $max == 0 ) {
echo h2("Aucune étiquette disponible",' class="notice"'); echo h2(_("Aucune étiquette disponible"),' class="notice"');
return; return;
} }
?> ?>

View file

@ -12,16 +12,16 @@ $t_description=new ITextarea('t_description',$data->t_description);
$t_description->style=' class="itextarea" style="width:50em;height:5em;vertical-align: top;"'; $t_description->style=' class="itextarea" style="width:50em;height:5em;vertical-align: top;"';
?> ?>
<p> <p>
Etiquette (tag) : <?php echo $t_tag->input(); ?> <?php echo _("Etiquette (tag)")?> : <?php echo $t_tag->input(); ?>
</p> </p>
<p> <p>
Description (tag) : <?php echo $t_description->input(); ?> <?php echo _("Description")?> : <?php echo $t_description->input(); ?>
</p> </p>
<?php <?php
// If exist you can remove it // If exist you can remove it
if ( $data->t_id != '-1') : if ( $data->t_id != '-1') :
?> ?>
<p>Cochez pour cette case pour effacer ce tag<input type="checkbox" name="remove"> <p><?php echo _("Cochez pour cette case pour effacer ce tag")?><input type="checkbox" name="remove">
</p> </p>
<?php <?php

View file

@ -8,10 +8,10 @@ echo HtmlInput::filter_table("tag_tb", '0,1', '1');
<table id="tag_tb"> <table id="tag_tb">
<tr> <tr>
<th> <th>
Tag <?php echo _("Tag")?>
</th> </th>
<th> <th>
Description <?php echo _("Description")?>
</th> </th>
</tr> </tr>
<?php <?php

View file

@ -5,7 +5,7 @@
echo HtmlInput::title_box('Tag', $p_prefix.'tag_div'); echo HtmlInput::title_box('Tag', $p_prefix.'tag_div');
$max=$this->cn->count($ret); $max=$this->cn->count($ret);
if ( $max == 0 ) { if ( $max == 0 ) {
echo h2("Aucune étiquette disponible",' class="notice"'); echo h2(_("Aucune étiquette disponible"),' class="notice"');
return; return;
} }
?> ?>
@ -13,10 +13,10 @@ Filtrer = <?php echo HtmlInput::filter_table($p_prefix.'tag_tb_id', '0,1', 1); ?
<table id="<?php echo $p_prefix;?>tag_tb_id"> <table id="<?php echo $p_prefix;?>tag_tb_id">
<tr> <tr>
<th> <th>
Tag <?php echo _("Tag")?>
</th> </th>
<th> <th>
Description <?php echo _("Description")?>
</th> </th>
</tr> </tr>
<?php <?php

View file

@ -5,7 +5,7 @@
echo HtmlInput::title_box('Tag', 'tag_div'); echo HtmlInput::title_box('Tag', 'tag_div');
$max=$this->cn->count($ret); $max=$this->cn->count($ret);
if ( $max == 0 ) { if ( $max == 0 ) {
echo h2("Aucune étiquette disponible",' class="notice"'); echo h2(_("Aucune étiquette disponible"),' class="notice"');
return; return;
} }
?> ?>
@ -13,10 +13,10 @@ Filtrer = <?php echo HtmlInput::filter_table('tag_tb_id', '0,1', 1); ?>
<table id="tag_tb_id"> <table id="tag_tb_id">
<tr> <tr>
<th> <th>
Tag <?php echo _("Tag")?>
</th> </th>
<th> <th>
Description <?php echo _("Description")?>
</th> </th>
</tr> </tr>
<?php <?php

View file

@ -55,5 +55,5 @@
</tr> </tr>
<?php endfor;?> <?php endfor;?>
</table> </table>
<?php echo HtmlInput::submit("change_profile", "Sauver")?> <?php echo HtmlInput::submit("change_profile", _("Sauver"))?>
</form> </form>