Merge branch 'version_6_8'

Conflicts:
	html/ajax_misc.php
	html/popup.php
	include/ac_common.php
	include/ajax_mod_predf_op.php
	include/class_acc_ledger.php
	include/constant.php
	include/template/fiche_list.php
This commit is contained in:
Dany De Bontridder 2014-03-02 04:49:48 +01:00
commit 5eccf5a5a6
105 changed files with 20809 additions and 13789 deletions

View file

@ -6,8 +6,10 @@
# This file is a part of NOALYSS under GPL
# Author D. DE BONTRIDDER danydb@aevalys.eu
cd ../html/lang
echo "English"
cd en_US/LC_MESSAGES
msgfmt -c -v messages.po
echo "Dutch"
cd ../..
cd nl_NL/LC_MESSAGES
msgfmt -c -v messages.po

View file

@ -7,5 +7,17 @@
# Author D. DE BONTRIDDER danydb@aevalys.eu
echo "Extract"
cd ..
xgettext -L PHP -j --from-code=UTF-8 -p html/lang/en_US/LC_MESSAGES/ html/*.php include/*.php include/template/*.php
xgettext -L PHP -j --from-code=UTF-8 -p html/lang/nl_NL/LC_MESSAGES/ html/*.php include/*.php include/template/*.php
# CATALOG
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
echo "Dutch"
msgmerge -U -s html/lang/nl_NL/LC_MESSAGES/messages.po html/lang/messages.po
#For english
echo "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

39
dev/get_database_item.sh Executable file
View file

@ -0,0 +1,39 @@
#!/bin/bash
export PGUSER=dany
export PGPASSWORD=dany
export PGHOST=localhost
export PGDATABASE=rel671mod1
export PGPORT=5432
export PGCLUSTER=9.1/main
(
echo "<?php "
psql -A -F" " -t -c "select '\$menu[]=_('''||replace(me_menu,'''',E'\\\\''')||''');' , '\$desc[]=_('''||replace(me_description,'''',E'\\\\''')||''');' from menu_ref ;"
echo "?>" ) > ../include/database.item.php
(
echo "<?php "
psql -A -F" " -t -c "select '\$attr_def[]=_('''||replace(ad_text,'''',E'\\\\''')||''');' from attr_def ;"
echo "?>" ) >> ../include/database.item.php
(
echo "<?php "
psql -A -F" " -t -c "select '\$document_type[]=_('''||replace(dt_value,'''',E'\\\\''')||''');' from document_type ;"
echo "?>" ) >> ../include/database.item.php
(
echo "<?php "
psql -A -F" " -t -c "select '\$action[]=_('''||replace(ac_description,'''',E'\\\\''')||''');' from action ;"
echo "?>" ) >> ../include/database.item.php
(
echo "<?php "
psql -A -F" " -t -c "select '\$mdp[]=_('''||replace(mp_lib,'''',E'\\\\''')||''');' from mod_payment ;"
echo "?>" ) >> ../include/database.item.php
(
echo "<?php "
psql -A -F" " -t -c "select '\$jrn_def_name[]=_('''||replace(jrn_def_name,'''',E'\\\\''')||''');' from jrn_def ;"
echo "?>" ) >> ../include/database.item.php
(
echo "<?php "
psql -A -F" " -t -c "select '\$jrn_def_description[]=_('''||replace(jrn_def_description,'''',E'\\\\''')||''');' from jrn_def ;"
echo "?>" ) >> ../include/database.item.php
echo "File ../include/database.item.php is created"

View file

@ -1,13 +0,0 @@
#!/bin/bash
export PGUSER=dany
export PGPASSWORD=dany
export PGHOST=localhost
export PGDATABASE=trunkdossier25
export PGPORT=5000
export PGCLUSTER=9.0/main
(
echo "<?php "
psql -A -F" " -t -c "select '\$menu[]=_('''||replace(me_menu,'''',E'\\\\''')||''');' , '\$desc[]=_('''||replace(me_description,'''',E'\\\\''')||''');' from menu_ref ;"
echo "?>" ) > ../include/menu_translate.php

View file

@ -39,7 +39,7 @@ if ($User->admin != 1)
return;
}
load_all_script();
echo '<H2 class="info"> Administration Globale</H2>';
echo '<H2 class="info"> '._(' Administration Globale').'</H2>';
echo '<div class="topmenu">';
echo MenuAdmin()."</div>";
@ -91,4 +91,4 @@ if ( isset ($_REQUEST["action"]) )
<?php
html_page_stop();
?>
?>

View file

@ -72,7 +72,7 @@ foreach ($var as $v)
{
if ( ! isset ($_REQUEST [$v] ) )
{
echo "$v is not set ";
echo "$v._(' is not set ')";
$cont=1;
}
}
@ -103,7 +103,7 @@ case 'rmfa':
if ($g_user->check_action(FICCAT)==0)exit();
ob_start();
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'];
try
{
@ -127,7 +127,7 @@ case 'rmfa':
case 'dc':
$f=new Fiche($cn);
/* add title + close */
$html=HtmlInput::title_box("Détail fiche", $ctl);
$html=HtmlInput::title_box(_("Détail fiche"), $ctl);
if ( $qcode != '')
{
$f->get_by_qcode($qcode);
@ -157,7 +157,7 @@ case 'dc':
$html.=$card;
if ( $can_modify==1)
{
$html.=HtmlInput::submit('save','Sauver');
$html.=HtmlInput::submit('save',_('Sauver'));
}
$html.=HtmlInput::button('close_'.$ctl,'Fermer',"onclick=\"removeDiv('$ctl')\"");
if ( ! isset ($nohistory))$html.=HtmlInput::history_card_button($f->id,_('Historique'));
@ -170,7 +170,7 @@ case 'dc':
else
{
$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;
/* ------------------------------------------------------------ */
@ -179,7 +179,7 @@ case 'dc':
case 'bc':
if ( $g_user->check_action(FICADD)==1 )
{
$r=HtmlInput::title_box("Nouvelle fiche", $ctl);
$r=HtmlInput::title_box(_("Nouvelle fiche"), $ctl);
/* get cat. name */
$cat_name=$cn->get_value('select fd_label from fiche_def where fd_id=$1',
array($fd_id));
@ -190,7 +190,7 @@ case 'bc':
$r.=HtmlInput::hidden('fd_id',$fd_id);
$r.=HtmlInput::hidden('ctl',$ctl);
$r.=$f->blank($fd_id);
$r.=HtmlInput::submit('sc','Sauve');
$r.=HtmlInput::submit('sc',_('Sauve'));
$r.='</form>';
$html=$r;
}
@ -248,7 +248,7 @@ case 'st':
if ( strpos($where," in ()") != 0)
{
$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.=_("Aucune catégorie de fiche ne correspond à".
" votre demande, le journal pourrait n'avoir accès à aucune fiche");
@ -258,7 +258,7 @@ case 'st':
$sql.=" ".$where." order by fd_label";
$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))
{
@ -269,7 +269,8 @@ case 'st':
else
{
$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->value=$array;
$r.='<div style="text-align:center">';
@ -280,7 +281,7 @@ case 'st':
$r.=$isel->input();
$r.='<p>';
$r.=HtmlInput::submit('st','choix');
$r.=HtmlInput::button('Annuler','Annuler'," onclick=\"removeDiv('$ctl')\" ");
$r.=HtmlInput::button('Annuler',_('Annuler')," onclick=\"removeDiv('$ctl')\" ");
$r.='</p>';
$r.='</form>';
$r.='</div>';
@ -294,13 +295,13 @@ case 'st':
*
----------------------------------------------------------------------*/
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 )
{
$f=new Fiche($cn);
$f->insert($fd_id,$_POST);
$f->Get();
$html.='<h2 class="notice">Fiche sauvée</h2>';
$html.='<h2 class="notice">'._('Fiche sauvée').'</h2>';
$html.=$f->Display(true);
$js="";
if ( isset( $_POST['ref'])) $js=create_script(' window.location.reload()');
@ -310,7 +311,7 @@ case 'sc':
{
$html.=alert(_('Action interdite'),true);
}
$html.=HtmlInput::button('fermer','Fermer'," onclick=\"removeDiv('$ctl')\";");
$html.=HtmlInput::button('fermer',_('Fermer')," onclick=\"removeDiv('$ctl')\";");
break;
/*----------------------------------------------------------------------
* Search a card
@ -318,7 +319,7 @@ case 'sc':
*----------------------------------------------------------------------*/
case 'fs':
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;">';
$q=new IText('query');
$q->value=(isset($query))?$query:'';
@ -417,7 +418,7 @@ case 'ac':
$base='';
break;
case FICHE_TYPE_CONTACT:
$msg=(' de contacts');
$msg=_(' de contacts');
$base='';
}
@ -500,7 +501,7 @@ case 'upc':
else
{
$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']);
ob_start();

View file

@ -58,7 +58,7 @@ if ( isset($_GET['f_id']))
$year=$g_user->get_exercice();
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
{
@ -87,13 +87,13 @@ if ( isset($_GET['f_id']))
{
$obj="{div:'$div',f_id:'".$_GET['f_id']."',gDossier:'$dossier',select:this}";
$is=$exercice->select('p_exercice',$default,' onchange="update_history_card('.$obj.');"');
$old="Autre exercice ".$is->input();
$old=_("Autre exercice")." ".$is->input();
}
else
{
$old='<form method="get" action="popup.php">';
$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('act',$_GET['act']);
$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>';
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;
@ -128,7 +128,7 @@ if ( isset($_REQUEST['pcm_val']))
$year=$g_user->get_exercice();
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
{
@ -158,13 +158,13 @@ if ( isset($_REQUEST['pcm_val']))
{
$obj="{div:'$div',pcm_val:'".$_GET['pcm_val']."',gDossier:'$dossier',select:this}";
$is=$exercice->select('p_exercice',$default,' onchange="update_history_account('.$obj.');"');
$old="Autre exercice ".$is->input();
$old=_("Autre exercice")." ".$is->input();
}
else
{
$old='<form method="get" action="popup.php">';
$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('act',$_GET['act']);
$old.=HtmlInput::hidden('pcm_val',$_GET['pcm_val']);
@ -181,7 +181,7 @@ if ( isset($_REQUEST['pcm_val']))
if ( $poste->HtmlTable($array) == -1)
{
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;

View file

@ -197,7 +197,7 @@ case 'de':
catch (Exception $e)
{
echo HtmlInput::anchor_close($div);
echo '<h2 class="error">Désolé il y a une erreur</h2>';
echo '<h2 class="error">'._("Désolé il y a une erreur").'</h2>';
}
$html=ob_get_contents();
ob_end_clean();
@ -281,11 +281,11 @@ case 'file':
echo "<div>";
}
echo "<h1 class=\"legend\">Document</h1>";
echo "<h1 class=\"legend\">"._("Document")."</h1>";
echo '<div class="op_detail_frame">';
$x='';
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);
echo $x;
$filename= $obj->det->jr_pj_name;
@ -321,9 +321,9 @@ case 'loadfile':
echo " <LINK REL=\"stylesheet\" type=\"text/css\" href=\"$theme\" media=\"screen\">";
echo "</head>";
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">';
$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);
echo $x;
$filename= $obj->det->jr_pj_name;
@ -345,12 +345,12 @@ case 'rmf':
$theme=$repo->get_value("select the_filestyle from theme where the_name=$1",array($_SESSION['g_theme']));
echo " <LINK REL=\"stylesheet\" type=\"text/css\" href=\"$theme\" media=\"screen\">";
echo "</head><body class=\"op_detail_frame\">";
echo "<h2>Document</h2>";
echo "<h2>"._("Document")."</h2>";
echo '<div class="op_detail_frame">';
echo '<FORM METHOD="POST" ENCTYPE="multipart/form-data" id="form_file">';
$sp=new ISpan('file'.$div);
$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 HtmlInput::hidden('act','loadfile');
@ -501,7 +501,7 @@ case 'save':
catch (Exception $e)
{
if ( DEBUG ) echo $e->getMessage();
alert( "Changement impossible: on ne peut pas changer la date dans une période fermée");
alert(_( "Changement impossible: on ne peut pas changer la date dans une période fermée"));
}
$html=ob_get_contents();
ob_end_clean();
@ -524,7 +524,7 @@ case 'ask_extdate':
$date=new IDate('p_date');
$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.='<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::button_close($div);
$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>";
$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.='<div id="filtre" style="float:left;display:block">';
$r.='<form method="get" id="search_form" onsubmit="search_letter(this);return false">';
@ -455,7 +455,7 @@ EOF;
}
else
{
$form.='Mauvais type objet';
$form.=_('Mauvais type objet');
}
$form.=HtmlInput::submit('record', _('Sauver')) . $ret->input();

View file

@ -31,7 +31,7 @@ $User->Check();
if ($User->admin != 1)
{
echo "<script>alert('"."Vous n\'êtes pas administrateur"."') </script>";
echo "<script>alert('"._("Vous n\'êtes pas administrateur")."') </script>";
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 )
{
echo alert('Accès interdit');
echo alert(_('Accès interdit'));
redirect("do.php?".dossier::get());
exit();
}

View file

@ -161,11 +161,11 @@ if (sizeof($sql) != 0 )
echo '</ul>';
if (count($sql) > 12)
{
printf ('<i>...Résultat limité à 12 ...</i>');
printf ('<i>...'._('Résultat limité à 12').' ...</i>');
}
}
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

6442
html/lang/messages.po Normal file

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)
{
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\">";
exit();
}
@ -64,7 +64,7 @@ if ( isset ($_POST["p_user"] ) )
$valid = $img->check($_POST['captcha_code']);
if ( $valid == false )
{
echo alert('Code invalide');
echo alert(_('Code invalide'));
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=index.php\">";
exit();
}
@ -82,7 +82,7 @@ else
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\">";
exit();

View file

@ -27,7 +27,7 @@ require_once('class_database.php');
html_page_start("classic");
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">';
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";
}
echo '<a class="smallbutton" href="'.$href_csv.'">Export CSV</a>';
echo '<a class="smallbutton" href="'.$href_pdf.'">Export PDF</a>';
echo '<a class="smallbutton" href="'.$href_csv.'">'._("Export CSV").'</a>';
echo '<a class="smallbutton" href="'.$href_pdf.'">'._("Export PDF").'</a>';
}
echo '</div>';
echo HtmlInput::hidden('inpopup',1);

View file

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

View file

@ -93,7 +93,7 @@ if ( $User->Admin() == 1)
}
include_once("user_menu.php");
$priv=($User->admin==1)?"Administrateur":"Utilisateur";
$priv=($User->admin==1)?_("Administrateur"):_("Utilisateur");
load_all_script();
if ( isset ($_POST['set_preference'])) {
//// Save value
@ -146,13 +146,13 @@ if ( $User->Admin() == 1 )
$result.="<TD class=\"tool\" ><A class=\"cell\" HREF=\"admin_repo.php\"> Administration </A></TD>";
}
$result.='<TD class="tool">';
$result.='<a onclick="set_preference(0)" title="Préférence" href="javascript:void(0)" class="cell">Préférence</a>';
$result.='<a onclick="set_preference(0)" title="Préférence" href="javascript:void(0)" class="cell">'._('Préférence').'</a>';
$result.= '</TD>';
$result.='<TD class="tool" ><A class="cell" HREF="logout.php" >'._('Deconnexion').'</a></TD>';
$result.="</TR>";
$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>';
?>

View file

@ -84,7 +84,7 @@ if ( isset ($_POST['val']) )
// comta style
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");
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_end = $pPeriode->get_date_limit($p_to);
if ($a_start == null || $a_end == null)
throw new Exception(__FILE__ . __LINE__ . 'Attention periode ' .
' non trouvee periode p_from=' . $p_from .
'p_to_periode = ' . $p_to);
throw new Exception(__FILE__ . __LINE__ . sprintf(_('Attention periode
non trouvee periode p_from= %s p_to_periode = %s'), $p_from ,
$p_to));
$p_from = $a_start['p_start'];
@ -658,7 +658,7 @@ function set_language()
{
$g_lang = 'fr_FR.utf8';
$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');
textdomain('messages');
@ -782,7 +782,7 @@ function ajax_disconnected($div)
$html.='<div>';
$html.=h2(_('Données non disponibles'), 'class="title" style="width:auto"');
$html.=h2(_('Veuillez vous reconnecter'), 'class="error"');
$html.=alert("Déconnecté", true);
$html.=alert(_("Déconnecté"), true);
$html = escape_xml($html);
header('Content-type: text/xml; charset=UTF-8');
@ -1059,11 +1059,11 @@ function display_dashboard_operation($p_array,$p_title,$p_div)
<?php if (count($p_array)>0) :?>
<table class="result">
<tr>
<th>Date</th>
<th>Code Interne</th>
<th>Description</th>
<th><?php echo _('Date')?></th>
<th><?php echo _('Code Interne')?></th>
<th><?php echo _('Description')?></th>
<th>
Montant
<?php echo _('Montant')?>
</th>
</tr>
@ -1089,7 +1089,7 @@ function display_dashboard_operation($p_array,$p_title,$p_div)
?>
</table>
<?php else: ?>
<h2 class="notice">Aucune donnée</h2>
<h2 class="notice"><?php echo _('Aucune donnée')?></h2>
<?php
endif;
?>

View file

@ -122,7 +122,7 @@ if ($sub_action == "update")
if ($g_user->can_write_action($act2->ag_id) == false )
{
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>';
exit();
}
@ -274,11 +274,11 @@ if ($sub_action == "save_action_st2")
// insert into action_gestion
echo $act->save();
$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);
$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->value=$atype;
$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
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->value=$ame_code;
echo HtmlInput::title_box("Nouveau menu", $ctl);
echo HtmlInput::title_box(_("Nouveau menu"), $ctl);
if (count($ame_code)==0)
{
echo h2("Aucune impression disponible à ajouter",'class="notice"');
echo h2(_("Aucune impression disponible à ajouter"),'class="notice"');
return;
}
?>
<form method="POST" onsubmit="return confirm('Vous confirmez ?')">
<form method="POST" onsubmit="return confirm('<?php echo _('Vous confirmez ?')?>">
<?php
echo HtmlInput::hidden('tab','profile_print_div');
?>
@ -139,7 +139,7 @@ $me_code->value=$ame_code;
</table>
<?php
echo HtmlInput::submit('add_impress',"Valider");
echo HtmlInput::submit('add_impress',_("Valider"));
echo '</form>';
}

View file

@ -38,7 +38,7 @@ require_once ('class_anc_account.php');
require_once ('class_anc_plan.php');
require_once('function_javascript.php');
echo HtmlInput::title_box("Recherche activité", $ctl);
echo HtmlInput::title_box(_("Recherche activité"), $ctl);
//------------- FORM ----------------------------------
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->pa_id=$_REQUEST['c2'];
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 ".
"where pa_id=$1 and ".
@ -71,12 +71,12 @@ if ( isset($_REQUEST['go']))
if (empty($array) == true)
{
echo "D&eacute;sol&eacute; aucun poste trouv&eacute;";
echo _("Aucun poste trouvé");
return;
}
$button=new IButton();
$button->name="Choix";
$button->label="Choix";
$button->name=_("Choix");
$button->label=_("Choix");
echo '<table>';
foreach ($array as $line)

View file

@ -25,7 +25,7 @@
* @brief user's bookmark
*/
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'])) {
/*
* find default module
@ -43,7 +43,7 @@ if (isset($_GET['bookmark_add'])){
$cn->exec_sql("insert into bookmark(b_action,login) values($1,$2)",
array($_GET['ac'],$g_user->login));
} 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);
}
}
@ -100,17 +100,17 @@ $url="do.php?gDossier=".Dossier::id()."&ac=";
</table>
<?php
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;
?>
</form>
<form id="bookmark_frm" method="get" onsubmit="save_bookmark();return false">
<?php
echo "Menu actuel : ".hb($_GET['ac']);
echo _("Menu actuel")." : ".hb($_GET['ac']);
echo HtmlInput::array_to_hidden(array("gDossier","ac"), $_REQUEST);
?>
<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>

View file

@ -36,39 +36,39 @@ $sql="
order by 2
";
$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);
?>
<?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?>
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%">
<tr>
<th>
Quick Code <?php echo HtmlInput::infobulle(17); ?>
<?php echo _("Quick Code");?> <?php echo HtmlInput::infobulle(17); ?>
</th>
<th class=" sorttable_sorted">
Nom
<span id="sorttable_sortfwdind">&nbsp;&#x25BE;</span>
</th>
<th>
Categorie
<?php echo _("Categorie");?>
</th>
<th>
Description
<?php echo _("Description");?>
</th>
<th>
Numéro TVA
<?php echo _("Numéro TVA");?>
</th>
<th>
Poste comptable
<?php echo _("Poste comptable");?>
</th>
</tr>
<?php if (count($array)==0) : ?>
<h2 class="notice"> Aucun résultat</h2>
<h2 class="notice"> <?php echo _("Aucun résultat");?></h2>
<?php endif?>
<?php for ($i=0;$i<$max;$i++):?>
<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');
require_once 'class_calendar.php';
ob_start();
echo HtmlInput::title_box("Calendrier", "calendar_zoom_div");
echo HtmlInput::title_box(_("Calendrier"), "calendar_zoom_div");
$cal=new Calendar();
$cal->set_periode($_GET['in']);
echo $cal->zoom();

View file

@ -37,7 +37,7 @@ if ( $_GET['id'] > 0 )
{
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
{

View file

@ -67,34 +67,34 @@ $pm_default=new ICheckBox('pm_default','1');
$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('p_id',$array[0]['p_id'])?>
<table>
<tr>
<td>Code</td>
<td><?php echo _("Code");?></td>
<td><?php echo $me_code->input()?></td>
</tr>
<?php
if ($array[0]['p_type_display']!='P'):
?>
<tr>
<td>Dépendant de </td>
<td><?php echo _('Dépendant de');?> </td>
<td><?php echo $me_code_dep->input()?></td>
</tr>
<tr>
<td>Ordre d'apparition</td>
<td><?php echo _("Ordre d'apparition");?></td>
<td><?php echo $p_order->input()?></td>
</tr>
<tr>
<td>Menu par défaut</td>
<td><?php echo _("Menu par défaut");?></td>
<td><?php echo $pm_default->input()?></td>
</tr>
<?php endif;?>
</table>
<p>
Cochez cette case si vous souhaitez effacer ce menu
<?php echo _("Cochez cette case si vous souhaitez effacer ce menu");?>
<?php
$delete=new ICheckBox('delete',"1");
echo $delete->input();
@ -104,7 +104,7 @@ echo $delete->input();
if ($array[0]['p_type_display']!='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
$delete=new ICheckBox('del_dep',"1");
echo $delete->input();
@ -112,7 +112,7 @@ echo $delete->input();
</p>
<?php endif;?>
<?php
echo HtmlInput::submit('mod',"Valider");
echo HtmlInput::submit('mod',_("Valider"));
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('p_id',$profile->p_id);
require_once("template/profile.php");
echo HtmlInput::submit("save_name","Modifier");
echo HtmlInput::submit("save_name",_("Modifier"));
echo '</form>';
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';
@ -79,12 +79,12 @@ if ($profile->p_id > 0)
echo HtmlInput::submit("clone", "Copier");
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 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 '</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);
echo '</div>';
echo '<div style="display:none" id="profile_print_div">';
echo "<h2>Impression</h2>";
echo "<h2>"._("Impression")."</h2>";
$profile_menu->printing($p_id);
echo $add_impression;
echo '</div>';

View file

@ -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->value=$op->od_description;
echo '<p>';
echo "Description (max 50 car.)";
echo _("Description (max 50 car.)");
echo $opd_description->input();
echo '</p>';
echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']);

View file

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

View file

@ -34,7 +34,7 @@ $a_menu=$cn->get_array($sql,array($_SESSION['g_user']));
?>
<div class="content">
<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 style='margin-left: 5%'>
Filtre : <?php
@ -49,14 +49,14 @@ $a_menu=$cn->get_array($sql,array($_SESSION['g_user']));
<span id="sorttable_sortfwdind">&nbsp;&blacktriangledown;</span>
</th>
<th>
Chemin
<?php echo _("Chemin");?>
<?php echo HtmlInput::infobulle(35); ?>
</th>
<th>
Description complète
<?php echo _("Description complète");?>
</th>
<th>
Aide sur le wiki
<?php echo _("Aide sur le wiki");?>
</th>
</tr>
<?php
@ -99,11 +99,11 @@ for ($i=0;$i<$nMax;$i++):
</a>
</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']; ?>
</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>
</tr>
<?php endfor; ?>

View file

@ -26,36 +26,36 @@
*
*/
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);
?>
<form method="POST" onsubmit="return confirm('Vous confirmez')">
<form method="POST" onsubmit="return confirm('<?php echo _("Vous confirmez");?>')">
<table>
<tr>
<TD>Label</td>
<TD><?php echo _("Label");?></td>
<td><?php echo $me_menu->input();?></td>
</tr>
<tr>
<TD>Code</td>
<TD><?php echo _("Code");?></td>
<td><?php echo $me_code->input();?></td>
</tr>
<tr>
<TD>Description</td>
<TD><?php echo _("Description");?></td>
<td><?php echo $me_description->input();?></td>
</tr>
<tr>
<TD>Fichier</td>
<TD><?php echo _("Fichier");?></td>
<td><?php echo $me_file->input();?></td>
</tr>
</table>
<?php
if ($new ==1 )
{
echo HtmlInput::submit("save_plugin","Ajouter ce plugin");
echo HtmlInput::submit("save_plugin",_("Ajouter ce plugin"));
} else {
$delete=new ICheckBox('delete_pl');
echo "<p>Voulez-vous effacer ce plugin ? ".$delete->input()."</p>";
echo HtmlInput::submit("mod_plugin","Modifier ce plugin");
echo "<p>"._("Voulez-vous effacer ce plugin ?")." ".$delete->input()."</p>";
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');
echo HtmlInput::title_box(_('Préférence'), 'preference_div');
echo '<DIV class="content">';
echo '<p class="notice"> Si vous validez, la page sera rechargée et vous pourriez perdre'
. ' ce que vous faisiez</p>';
echo '<p class="notice">';
echo _("Si vous validez, la page sera rechargée et vous pourriez perdre ce que vous faisiez");
echo '</p>';
//----------------------------------------------------------------------
//
global $g_user;

View file

@ -12,7 +12,7 @@ ob_start();
$tag=new Tag($cn);
$tag->data->t_id=$_GET['tag'];
$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

View file

@ -27,7 +27,7 @@ $tag->select();
//------------------- Propose to add a tag
$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();
$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()));
$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=escape_xml($html);

View file

@ -30,7 +30,7 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$st=new Stock_Goods($cn);
$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['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']));
@ -49,10 +49,10 @@ echo $st->input($p_array,true);
<?php echo HtmlInput::hidden('c_id',$_GET['c_id']);?>
<p>
<?php $ck=new ICheckBox("ok"," 1");
$ck->label= "Cochez pour confirmer effacement ";
$ck->label= _("Cochez pour confirmer effacement");
echo $ck->input();?>
</p>
<?php echo HtmlInput::submit("del", "Effacer");?>
<?php echo HtmlInput::submit("del",_("Effacer"));?>
<?php echo HtmlInput::button_close($_GET['ctl'])?>
<?php echo HtmlInput::hidden('r_id',$p_array['p_depot'])?>
</form>

View file

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

View file

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

View file

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

View file

@ -59,7 +59,7 @@ echo '<div class="content" >';
echo '<form method="post">';
echo dossier::hidden();
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)
{
echo '<tr>';
@ -78,13 +78,13 @@ $wPa_id->value=$val_pa_id;
echo "<td>".$w->input()."</td>";
echo "<td>".$wPa_id->input("pa_id")."</td>";
echo "<td>".$wDesc->input("ga_description").
HtmlInput::submit('add','Ajouter').
HtmlInput::submit('add',_('Ajouter')).
"</td>";
;
echo '</table>';
echo "<hr>";
echo HtmlInput::submit('remove','Effacer');
echo HtmlInput::submit('remove',_('Effacer'));
echo '</div>';

View file

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

View file

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

View file

@ -44,12 +44,12 @@ if ( isset($_REQUEST['sa']))
if ( $new->isAppend() == true)
{
$ret.= '<div class="redcontent">';
$ret.= '<h2 class="info">Nouveau plan</h2>';
$ret.= '<h2 class="info">'._("Nouveau plan").'</h2>';
$ret.= '<form method="post">';
$ret.=dossier::hidden();
$ret.= $new->form();
$ret.= HtmlInput::hidden("sa","pa_write");
$ret.=HtmlInput::submit("submit","Enregistre");
$ret.=HtmlInput::submit("submit",_("Enregistre"));
$ret.= '</form>';
$ret.= '</div>';
}
@ -57,7 +57,7 @@ if ( isset($_REQUEST['sa']))
{
$ret.= '<div class="redcontent">'.
'<h2 class="info">'.
"Maximum de plan analytique est atteint".
_("Maximum de plan analytique est atteint").
"</h2></div>";
}
}
@ -70,7 +70,7 @@ if ( isset($_REQUEST['sa']))
if ( $new->isAppend() == false)
{
$ret.= '<h2 class="info">'.
"Maximum de plan analytique est atteint".
_("Maximum de plan analytique est atteint").
"</h2>";
}
else
@ -90,14 +90,14 @@ if ( isset($_REQUEST['sa']))
$new->get();
$ret.= '<div class="redcontent">';
$ret.= '<h2 class="info">Mise &agrave; jour</h2>';
$ret.= '<h2 class="info">'._("Mise à jour").'</h2>';
$ret.= '<form method="post">';
$ret.=dossier::hidden();
$ret.= $new->form();
$ret.= $wSa;
$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::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.= '</form>';
$ret.= '</div>';
@ -124,7 +124,7 @@ if ( isset($_REQUEST['sa']))
$ret.=dossier::hidden();
$ret.=$po->form();
$ret.=$wSa;
$ret.=HtmlInput::submit("add","Ajout");
$ret.=HtmlInput::submit("add",_("Ajout"));
$ret.="</form>";
$ret.="</div>";
}
@ -191,11 +191,11 @@ if ( isset($_REQUEST['sa']))
$ret.='<div class="redcontent">';
$ret.='<table class="table_large">';
$ret.="<tr>";
$ret.="<th> Nom </td>";
$ret.="<th> Montant </td>";
$ret.="<th> Description </td>";
$ret.="<th>Groupe</th>";
$ret.="<th> Plan A </td>";
$ret.="<th>"._("Nom")." </td>";
$ret.="<th>"._("Montant")." </td>";
$ret.="<th>"._("Description")." </td>";
$ret.="<th>"._("Groupe")."</th>";
$ret.="<th>"._("Plan A")." </td>";
$ret.="</tr>";
$class="";
foreach ($array as $obj)
@ -222,7 +222,7 @@ if ( isset($_REQUEST['sa']))
}
$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>';
}
@ -245,14 +245,14 @@ if ( empty($list) )
echo '<div class="lmenu">';
echo '<TABLE>';
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 '</TABLE>';
echo '</div>';
if ( ! isset ( $_REQUEST['sa']))
echo '<div class="notice">'.
"Aucun plan analytique n'est d&eacute;fini".
_("Aucun plan analytique n'est défini").
'</div>';
}
@ -280,7 +280,7 @@ else
{
echo '<TABLE>';
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 '</TABLE>';
}

View file

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

View file

@ -98,17 +98,17 @@ $array_cat=Acc_Ledger::array_cat();
echo '<ul style="list-style-type:none">';
if ( ! isset($_GET['p_filter']) || $_GET['p_filter']==0) $rad->selected='t';
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';
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 '</li>';
if ( isset($_GET['p_filter']) && $_GET['p_filter']==2) $rad->selected='t';
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 'Totaux par sous-niveaux';
echo _('Totaux par sous-niveaux');
$ck_lev1=new ICheckBox('lvl1');
$ck_lev2=new ICheckBox('lvl2');
$ck_lev3=new ICheckBox('lvl3');
@ -125,9 +125,9 @@ if (HtmlInput::default_value('lvl2',false,$_GET) !== false)
$ck_lev2->selected=true;
if (HtmlInput::default_value('lvl3',false,$_GET) !== false)
$ck_lev3->selected=true;
echo '<li>'.$ck_lev1->input().'Niveau 1</li>';
echo '<li>'.$ck_lev2->input().'Niveau 2</li>';
echo '<li>'.$ck_lev3->input().'Niveau 3</li>';
echo '<li>'.$ck_lev1->input()._('Niveau 1').'</li>';
echo '<li>'.$ck_lev2->input()._('Niveau 2').'</li>';
echo '<li>'.$ck_lev3->input()._('Niveau 3').'</li>';
echo '</ul>';
$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","");
echo "<div>";
echo "Plage de postes :".$from_poste->input();
echo _("Plage de postes")." :".$from_poste->input();
echo $from_span->input();
echo " jusque :".$to_poste->input();
echo " "._("jusque")." :".$to_poste->input();
echo $to_span->input();
echo "</div>";
echo '<div>';
echo '<p>';
echo "Uniquement comptes non soldés ".$unsold->input();
echo _("Uniquement comptes non soldés")." ".$unsold->input();
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 '</div>';
echo HtmlInput::submit("view","Visualisation");
echo HtmlInput::submit("view",_("Visualisation"));
echo '</form>';
echo '<hr>';
//-----------------------------------------------------

View file

@ -32,7 +32,7 @@ $fiche=new Fiche($cn,$_GET['f_id']);
$year=$g_user->get_exercice();
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
{
@ -66,7 +66,7 @@ else
}
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;

View file

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

View file

@ -74,16 +74,16 @@ $size->size=5;
$extra=new IText('extra[]');
$select_type->value=array(
array('value'=>'text','label'=>'Texte'),
array('value'=>'numeric','label'=>'Nombre'),
array('value'=>'date','label'=>'Date'),
array('value'=>'zone','label'=>'Zone de texte'),
array('value'=>'poste','label'=>'Poste Comptable'),
array('value'=>'card','label'=>'Fiche'),
array('value'=>'select','label'=>'Selection')
array('value'=>'text','label'=>_('Texte')),
array('value'=>'numeric','label'=>_('Nombre')),
array('value'=>'date','label'=>_('Date')),
array('value'=>'zone','label'=>_('Zone de texte')),
array('value'=>'poste','label'=>_('Poste Comptable')),
array('value'=>'card','label'=>_('Fiche')),
array('value'=>'select','label'=>_('Selection'))
);
$remove=new IButton('rmfa');
$remove->label='Effacer';
$remove->label=_('Effacer');
echo '<div class="content">';
echo '<form method="post">';
@ -91,11 +91,11 @@ echo HtmlInput::hidden('sa','fat');
echo HtmlInput::hidden('p_action','divers');
echo '<table id="tb_rmfa">';
echo '<tr>';
echo th("id");
echo th("Description");
echo th("Type ");
echo th("Taille");
echo th("Paramètre");
echo th(_("id"));
echo th(_("Description"));
echo th(_("Type"));
echo th(_("Taille"));
echo th(_("Paramètre"));
echo '</tr>';
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);}',
$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);
}
else

View file

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

View file

@ -47,7 +47,7 @@ if (isset($_POST['update']))
try
{
$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->update($_POST);
} catch (Exception $e)
@ -119,9 +119,9 @@ switch ($sa)
echo '<div class="redcontent">';
echo '<form method="POST">';
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="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 "</div>";
}

View file

@ -48,9 +48,9 @@ if ( isset ($_POST['save_tag_sb']))
?>
<div style="margin-left:10%;width:80%">
<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
à plusieurs dossiers ou avoir plusieurs étiquettes.
à plusieurs dossiers ou avoir plusieurs étiquettes.");?>
</p>
<?php
$tag->show_list();

View file

@ -63,7 +63,7 @@ class Acc_Account
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}
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;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}
@ -94,7 +94,7 @@ class Acc_Account
}
else
{
$this->pcm_lib="Poste inconnu";
$this->pcm_lib=_("Poste inconnu");
}
return $this->pcm_lib;
}
@ -133,9 +133,9 @@ class Acc_Account
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)
);
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->check();

View file

@ -131,10 +131,10 @@ class Acc_Bilan
if ( $count <> 0 )
{
echo '<ol>'.$ret.'</ol>';
echo '<span class="error">Nbres anomalies : '.$count.'</span>';
echo '<span class="error">'._("Nbres anomalies").' : '.$count.'</span>';
}
else
echo " Pas d'anomalie d&eacute;tect&eacute;e";
echo _("Pas d'anomalie détectée");
echo '</fieldset>';
@ -143,18 +143,18 @@ class Acc_Bilan
function verify()
{
bcscale(2);
echo '<h3> Comptes normaux </h3>';
$this->warning('Actif avec un solde crediteur','ACT','D');
$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 : produit avec un solde debiteur','PRO','C');
echo '<h3>'._("Comptes normaux").'</h3>';
$this->warning(_('Actif avec un solde crediteur'),'ACT','D');
$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 : produit avec un solde debiteur'),'PRO','C');
echo '<hr>';
echo '<h3> Comptes inverses </h3>';
$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 : Charge avec un solde debiteur','CHAINV','C');
$this->warning('Compte inverse : produit avec un solde crediteur','PROINV','D');
echo '<h3>Solde </h3>';
echo '<h3>'._("Comptes inverses").' </h3>';
$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 : Charge avec un solde debiteur'),'CHAINV','C');
$this->warning(_('Compte inverse : produit avec un solde crediteur'),'PROINV','D');
echo '<h3'._("Solde").' </h3>';
/* set the periode filter */
$sql_periode=sql_filter_per($this->db,$this->from,$this->to,'p_id','j_tech_per');
/* debit Actif */
@ -172,7 +172,7 @@ class Acc_Bilan
$credit_actif=$this->db->get_value($sql);
$total_actif=abs(bcsub($debit_actif,$credit_actif));
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 */
$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));
/* 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 )
{
$diff=bcsub($total_actif,$total_passif);
@ -208,7 +208,7 @@ class Acc_Bilan
$sql.="and $sql_periode";
$credit_charge=$this->db->get_value($sql);
$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 */
@ -223,11 +223,11 @@ class Acc_Bilan
$sql.="and $sql_periode";
$credit_pro=$this->db->get_value($sql);
$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);
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>';
}
/*!
@ -253,7 +253,7 @@ class Acc_Bilan
$res=$this->db->exec_sql($sql);
if ( Database::num_row($res)==0)
throw new Exception ('Aucun enregistrement trouve');
throw new Exception (_('Aucun enregistrement trouve'));
$array=Database::fetch_array($res,0);
foreach ($array as $name=>$value)
$this->$name=$value;
@ -345,7 +345,7 @@ class Acc_Bilan
$work_file=basename($file_base);
if ( copy ($file_base,$work_file) == false )
{
echo "Je ne peux pas ouvrir ce fichier ";
echo _("erreur Ouverture fichier");
exit();
}
ob_start();
@ -653,13 +653,13 @@ class Acc_Bilan
$p_file=fopen($dirname.DIRECTORY_SEPARATOR.'content.xml','wb');
if ( $p_file == false )
{
exit('Je ne peux pas ouvrir content.xml');
exit ( _("erreur Ouverture fichier").' content.xml');
}
$a=fwrite($p_file,$p_result);
if ( $a==false)
{
echo "Je ne peux pas ecrire dans content.xml";
echo _("erreur écriture fichier").' content.xml';
exit();
}
// repack
@ -678,7 +678,7 @@ class Acc_Bilan
$fdoc=fopen($dirname.DIRECTORY_SEPARATOR.$this->b_name.'.'.$this->b_type,'r');
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));
echo $buffer;

View file

@ -91,7 +91,7 @@ class Acc_Compute
return $this->$idx;
}
else
exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
exit (__FILE__.":".__LINE__._('Erreur attribut inexistant'));
}
public function set_parameter($p_string,$p_value)
{
@ -101,7 +101,7 @@ class Acc_Compute
$this->$idx=$p_value;
}
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)
if ( $this->$value < 0 )
throw new Exception ("Montant invalide ");
throw new Exception (_("Montant invalide"));
if ( $p_obj != null )
{
@ -202,7 +202,7 @@ class Acc_Compute
$cmp=bcadd($p_obj->amount,$p_obj->amount_vat);
$diff=bcsub($sum,$cmp);
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()

View file

@ -104,7 +104,7 @@ class Acc_Ledger extends jrn_def_sql
{
if ($this->id == 0)
{
$this->name = " Tous les journaux";
$this->name = _(" Tous les journaux");
$this->type = "GL";
return "GL";
}
@ -184,7 +184,7 @@ class Acc_Ledger extends jrn_def_sql
{
$this->db->start();
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 */
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));
// Check return code
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);
$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));
if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]"));
throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
}
$sql = "insert into jrn (
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));
// Check return code
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
$Res = $this->db->exec_sql(" INSERT INTO quant_fin(
qf_bank, qf_other, qf_amount,jr_id)
SELECT qf_bank, qf_other, qf_amount*(-1),$1
FROM quant_fin where jr_id=$2", array($seq, $this->jr_id));
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
//
@ -310,7 +310,7 @@ class Acc_Ledger extends jrn_def_sql
// Check return code
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 . ")";
$Res = $this->db->exec_sql($sql);
if ($Res == false)
throw (new Exception(__FILE__ . __LINE__ . "sql a echoue [ $sql ]"));
throw (new Exception(__FILE__ . __LINE__ . "SQL ERROR [ $sql ]"));
}
catch (Exception $e)
{
@ -339,7 +339,7 @@ class Acc_Ledger extends jrn_def_sql
{
if ($this->id == 0)
{
$this->name = " Grand Livre ";
$this->name = _("Grand Livre");
return $this->name;
}
@ -652,20 +652,20 @@ class Acc_Ledger extends jrn_def_sql
$r.="<tr >";
$r.="<th>Selection</th>";
$r.="<th>Internal</th>";
$r.="<th>"._("Selection")."</th>";
$r.="<th>"._("Internal")."</th>";
if ($this->type == 'ALL')
{
$r.=th('Journal');
$r.=th(_('Journal'));
}
$r.='<th>Date</th>';
$r.='<th>Pièce</td>';
$r.=th('tiers');
$r.='<th>Description</th>';
$r.=th('Notes', ' ');
$r.='<th>Montant</th>';
$r.='<th>'._("Date").'</th>';
$r.='<th>'._("Pièce").'</td>';
$r.=th(_('tiers'));
$r.='<th>'._("Description").'</th>';
$r.=th(_('Notes'), ' ');
$r.='<th>'._("Montant").'</th>';
$r.="<th>" . _('Concerne') . "</th>";
$r.="</tr>";
// Total Amount
@ -759,7 +759,7 @@ class Acc_Ledger extends jrn_def_sql
if ($row['jr_valid'] == 'f')
{
$r.="<TD> Op&eacute;ration annul&eacute;e</TD>";
$r.="<TD>"._("Opération annulée")."</TD>";
}
// end row
$r.="</tr>";
@ -813,13 +813,13 @@ class Acc_Ledger extends jrn_def_sql
// Sort
$url = "?" . CleanUrl();
$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('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('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('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("Description", $url, "order by jr_comment asc", "order by jr_comment desc", "ca", "cd");
$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(_('Paiement'), $url, " order by jr_date_paid asc", " order by jr_date_paid desc", 'eap', 'edp');
$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(_('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");
$ord = (!isset($_GET['ord'])) ? 'da' : $_GET['ord'];
$order = $table->get_sql_order($ord);
@ -846,7 +846,7 @@ class Acc_Ledger extends jrn_def_sql
$r.="<tr >";
$r.="<th>Internal</th>";
$r.="<th>"._("n° interne")."</th>";
if ($this->type == 'ALL')
{
$r.=th('Journal');
@ -987,7 +987,7 @@ class Acc_Ledger extends jrn_def_sql
if ($row['jr_valid'] == 'f')
{
$r.="<TD> Op&eacute;ration annul&eacute;e</TD>";
$r.="<TD>"._("Opération annulée")."</TD>";
}
else
{
@ -1016,11 +1016,11 @@ class Acc_Ledger extends jrn_def_sql
if ($p_paid != 0)
{
$r.="<TR>";
$r.='<TD COLSPAN="5">Pay&eacute;</TD>';
$r.='<TD COLSPAN="5">'._("Payé").'</TD>';
$r.='<TD ALIGN="RIGHT">' . nbm($amount_paid) . "</TD>";
$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.="</tr>";
}
@ -1418,7 +1418,7 @@ class Acc_Ledger extends jrn_def_sql
$ret = "";
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.="<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};
if ($f->belong_ledger($p_jrn) < 0)
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)
throw new Exception('Montant invalide', 3);
@ -1980,7 +1980,7 @@ class Acc_Ledger extends jrn_def_sql
$msg = $this->verify($p_array);
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();
@ -2080,7 +2080,7 @@ class Acc_Ledger extends jrn_def_sql
$jr_id = $acc_end->insert_jrn();
$this->jr_id = $jr_id;
if ($jr_id == false)
throw new Exception('Balance incorrecte');
throw new Exception(_('Balance incorrecte'));
$acc_end->pj = $e_pj;
/* if e_suggest != e_pj then do not increment sequence */
@ -2117,7 +2117,7 @@ class Acc_Ledger extends jrn_def_sql
catch (Exception $e)
{
$this->db->rollback();
echo 'OPERATION ANNULEE ';
echo _('OPERATION ANNULEE ');
echo '<hr>';
echo __FILE__ . __LINE__ . $e->getMessage();
exit();
@ -2373,7 +2373,7 @@ class Acc_Ledger extends jrn_def_sql
$empl->get_by_qcode($e_mp_qcode);
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 */
$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);
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);
}
}
}
@ -3229,10 +3229,10 @@ class Acc_Ledger extends jrn_def_sql
static function array_cat()
{
$r = array(
array('cat' => 'VEN', 'name' => 'Journaux de vente'),
array('cat' => 'ACH', 'name' => 'Journaux d\'achat'),
array('cat' => 'FIN', 'name' => 'Journaux Financier'),
array('cat' => 'ODS', 'name' => 'Journaux d\'Opérations diverses')
array('cat' => 'VEN', 'name' => _("Journaux de vente")),
array('cat' => 'ACH', 'name' => _("'Journaux d'achat")),
array('cat' => 'FIN', 'name' => _("'Journaux Financier")),
array('cat' => 'ODS', 'name' => _("'Journaux d'Opérations diverses"))
);
return $r;
}
@ -3403,17 +3403,17 @@ class Acc_Ledger extends jrn_def_sql
if (isNumber($p_jrn) == 0)
throw new Exception("Id invalide");
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) == "")
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)
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')
{
$a = new Fiche($this->db);
$result = $a->get_by_qcode(trim(strtoupper($_POST['bank'])), false);
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)
@ -3458,7 +3458,7 @@ class Acc_Ledger extends jrn_def_sql
$bank = $a->id;
$this->jrn_def_bank = $bank;
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;
break;
}
@ -3524,7 +3524,7 @@ class Acc_Ledger extends jrn_def_sql
$name = "";
$code = "";
$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->value =$a_jrn;
$wType->name = "p_jrn_type";
@ -3591,7 +3591,7 @@ class Acc_Ledger extends jrn_def_sql
$bank = $a->id;
$this->jrn_def_bank = $bank;
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;
break;
}
@ -3608,7 +3608,7 @@ class Acc_Ledger extends jrn_def_sql
try
{
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();
}
catch (Exception $e)
@ -3681,7 +3681,7 @@ class Acc_Ledger extends jrn_def_sql
{
global $g_user;
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();
// retrieve info from action_gestion

View file

@ -84,7 +84,7 @@ define ('MAX_FORECAST_ITEM',10);
define ('MAX_PREDEFINED_OPERATION',50);
define ('MAX_COMPTE_CARD',4);
define ('COMPTA_MAX_YEAR',2100);
define ('COMPTA_MIN_YEAR',1990);
define ('COMPTA_MIN_YEAR',1900);
define ('MAX_RECONCILE',25);
define ('MAX_QCODE',4);
define ('MAX_SEARCH_CARD',20);
@ -98,7 +98,7 @@ if ( DEBUG ) {
error_reporting(0);
ini_set("display_errors",1);
ini_set("html_errors",1);
}
// Erreur
define ("NOERROR",0);
@ -177,6 +177,7 @@ define ("FICHE_TYPE_ADM_TAX",14);
define ("FICHE_TYPE_ACH_MAR",2);
define ("FICHE_TYPE_ACH_SER",3);
define ("FICHE_TYPE_ACH_MAT",7);
define ("FICHE_TYPE_PROJET",26);
/** -- pour utiliser unoconv démarrer un server libreoffice
* commande
* libreoffice --headless --accept="socket,host=127.0.0.1,port=2002;urp;" --nofirststartwizard

206
include/database.item.php Normal file
View file

@ -0,0 +1,206 @@
<?php
$menu[]=_('Achat'); $desc[]=_('Nouvel achat ou dépense');
$menu[]=_('Historique'); $desc[]=_('Historique des imputations analytiques');
$menu[]=_('Balance simple'); $desc[]=_('Balance simple des imputations analytiques');
$menu[]=_('Tableau'); $desc[]=_('Tableau lié à la comptabilité');
$menu[]=_('Balance Analytique/comptabilité'); $desc[]=_('Lien entre comptabilité et Comptabilité analytique');
$menu[]=_('Groupe'); $desc[]=_('Balance par groupe');
$menu[]=_('TVA'); $desc[]=_('Config. de la tva');
$menu[]=_('Vente'); $desc[]=_('Nouvelle vente ou recette');
$menu[]=_('Config. Menu'); $desc[]=_('Configuration des menus et plugins');
$menu[]=_('Fournisseur'); $desc[]=_('Suivi fournisseur');
$menu[]=_('Opérations diverses'); $desc[]=_('OD analytique');
$menu[]=_('Création de rapport'); $desc[]=_('Création de rapport');
$menu[]=_('saut de ligne'); $desc[]=_('Saut de ligne');
$menu[]=_('Client'); $desc[]=_('Suivi client');
$menu[]=_('Historique stock'); $desc[]=_('Historique des mouvement de stock');
$menu[]=_('Export Historique');
$menu[]=_('Export Journaux');
$menu[]=_('Export Journaux');
$menu[]=_('Export Poste détail');
$menu[]=_('Export Poste détail');
$menu[]=_('Export Fiche détail');
$menu[]=_('Export Fiche détail');
$menu[]=_('Export Fiche balance');
$menu[]=_('Export Fiche balance');
$menu[]=_('Export report');
$menu[]=_('Export report');
$menu[]=_('Export Fiche');
$menu[]=_('Export Fiche');
$menu[]=_('Export Grand Livre');
$menu[]=_('Export Grand Livre');
$menu[]=_('Export Sécurité');
$menu[]=_('Export Comptabilité analytique');
$menu[]=_('Export Comptabilité analytique balance simple');
$menu[]=_('Export Comptabilité analytique');
$menu[]=_('Export Comptabilité analytique balance double');
$menu[]=_('Export Comptabilité analytique balance double');
$menu[]=_('Export Balance comptable');
$menu[]=_('Export Balance comptable');
$menu[]=_('Export Tableau Analytique');
$menu[]=_('Export Historique Compt. Analytique');
$menu[]=_('Export Balance groupe analytique');
$menu[]=_('Export Bilan');
$menu[]=_('Impression Grand-Livre');
$menu[]=_('Export définition d\'un raport');
$menu[]=_('Export Action Gestion');
$menu[]=_('Export Historique mouvement stock');
$menu[]=_('Export Résumé list stock');
$menu[]=_('Plan Compt. analytique'); $desc[]=_('Plan analytique');
$menu[]=_('Groupe'); $desc[]=_('Groupe analytique');
$menu[]=_('Contact'); $desc[]=_('Liste des contacts');
$menu[]=_('Extension'); $desc[]=_('Extensions (plugins)');
$menu[]=_('Ecriture prédefinie'); $desc[]=_('Gestion des opérations prédéfinifies');
$menu[]=_('Opérations Diverses'); $desc[]=_('Nouvelle opérations diverses');
$menu[]=_('Nouvel extrait'); $desc[]=_('Nouvel extrait bancaire');
$menu[]=_('Recherche'); $desc[]=_('Recherche');
$menu[]=_('Paramètre'); $desc[]=_('Module paramètre');
$menu[]=_('Catégorie de documents'); $desc[]=_('Config. catégorie de documents');
$menu[]=_('Lettrage par Fiche'); $desc[]=_('Lettrage par fiche');
$menu[]=_('Historique achat'); $desc[]=_('Historique achat');
$menu[]=_('Historique opérations diverses'); $desc[]=_('Historique opérations diverses');
$menu[]=_('Poste'); $desc[]=_('Impression du détail d\'un poste comptable');
$menu[]=_('Rapport'); $desc[]=_('Impression de rapport');
$menu[]=_('Grand Livre'); $desc[]=_('Impression du grand livre');
$menu[]=_('Balance'); $desc[]=_('Impression des balances comptables');
$menu[]=_('Achat'); $desc[]=_('Menu achat');
$menu[]=_('Menu et profil'); $desc[]=_('Menu ');
$menu[]=_('Impression'); $desc[]=_('Menu impression');
$menu[]=_('Banque'); $desc[]=_('Information Banque');
$menu[]=_('Grand\'Livre'); $desc[]=_('Grand livre analytique');
$menu[]=_('Gestion'); $desc[]=_('Module gestion');
$menu[]=_('Lettrage'); $desc[]=_('Lettrage');
$menu[]=_('Accueil'); $desc[]=_('Accueil');
$menu[]=_('Comptabilité'); $desc[]=_('Module comptabilité');
$menu[]=_('Divers'); $desc[]=_('Paramètres divers');
$menu[]=_('Sortie'); $desc[]=_('Sortie');
$menu[]=_('Profil'); $desc[]=_('Configuration profil');
$menu[]=_('Poste'); $desc[]=_('Config. poste comptable de base');
$menu[]=_('Fiche'); $desc[]=_('Liste,Balance,Historique par fiche');
$menu[]=_('Préférence'); $desc[]=_('Préférence');
$menu[]=_('Configuration étiquette'); $desc[]=_('Configuration des tags');
$menu[]=_('Balance croisée double'); $desc[]=_('Balance double croisées des imputations analytiques');
$menu[]=_('Sociétés'); $desc[]=_('Parametre societe');
$menu[]=_('Période'); $desc[]=_('Gestion des périodes');
$menu[]=_('Vérification '); $desc[]=_('Vérification de la comptabilité');
$menu[]=_('Ecriture Ouverture'); $desc[]=_('Ecriture d\'ouverture');
$menu[]=_('Document'); $desc[]=_('Config. modèle de document');
$menu[]=_('journaux'); $desc[]=_('Configuration des journaux');
$menu[]=_('Sécurité'); $desc[]=_('configuration de la sécurité');
$menu[]=_('Attribut de fiche'); $desc[]=_('Gestion des attributs de fiches ');
$menu[]=_('Etat des stock'); $desc[]=_('Etat des stock');
$menu[]=_('Modification Stocks'); $desc[]=_('Modification des stocks (inventaire)');
$menu[]=_('Histo. Changement'); $desc[]=_('Liste des changements manuels des stocks');
$menu[]=_('Navigateur'); $desc[]=_('Menu simplifié pour retrouver rapidement un menu');
$menu[]=_('Recherche'); $desc[]=_('Recherche');
$menu[]=_('Historique'); $desc[]=_('Historique');
$menu[]=_('Rapprochement'); $desc[]=_('Rapprochement bancaire');
$menu[]=_('Soldes'); $desc[]=_('Solde des comptes en banques, caisse...');
$menu[]=_('Lettrage par Poste'); $desc[]=_('lettrage par poste comptable');
$menu[]=_('Balance'); $desc[]=_('Balance par catégorie de fiche');
$menu[]=_('Plan Comptable'); $desc[]=_('Config. du plan comptable');
$menu[]=_('Historique vente'); $desc[]=_('Historique des ventes');
$menu[]=_('Historique financier'); $desc[]=_('Historique financier');
$menu[]=_('Rapprochement'); $desc[]=_('Impression des rapprochements');
$menu[]=_('Bilan'); $desc[]=_('Impression de bilan');
$menu[]=_('Configuration des dépôts'); $desc[]=_('Configuration dépôts');
$menu[]=_('Stock'); $desc[]=_('Stock');
$menu[]=_('Catégorie de fiche'); $desc[]=_('Gestion catégorie de fiche');
$menu[]=_('Fiche'); $desc[]=_('Configuration de catégorie de fiches');
$menu[]=_('Etat des documents'); $desc[]=_('Etat des documents');
$menu[]=_('Opérations diverses'); $desc[]=_('Menu opérations diverses');
$menu[]=_('Impression Journaux'); $desc[]=_('Impression des journaux');
$menu[]=_('Vente / Recette'); $desc[]=_('Menu ventes et recettes');
$menu[]=_('Impression'); $desc[]=_('Impression compta. analytique');
$menu[]=_('Compta Analytique'); $desc[]=_('Module comptabilité analytique');
$menu[]=_('Tableau de bord'); $desc[]=_('Tableau de bord');
$menu[]=_('Avancé'); $desc[]=_('Menu avancé');
$menu[]=_('Favori'); $desc[]=_('Raccourci vers vos menus préférés');
$menu[]=_('Trésorerie'); $desc[]=_('Menu Financier');
$menu[]=_('Liste Suivi'); $desc[]=_('Document de suivi sous forme de liste');
$menu[]=_('Moyen de paiement'); $desc[]=_('Config. des méthodes de paiement');
$menu[]=_('Administration'); $desc[]=_('Suivi administration, banque');
$menu[]=_('Prévision'); $desc[]=_('Prévision');
$menu[]=_('Export opérations rapprochées'); $desc[]=_('Export opérations rapprochées en CSV');
$menu[]=_('Administrateur'); $desc[]=_('Suivi des gérants, administrateurs et salariés');
$menu[]=_('Menu par défaut'); $desc[]=_('Configuration des menus par défaut');
$menu[]=_('Agenda'); $desc[]=_('Agenda');
?>
<?php
$attr_def[]=_('Prix vente');
$attr_def[]=_('Prix achat');
$attr_def[]=_('Durée Amortissement');
$attr_def[]=_('Montant initial');
$attr_def[]=_('TVA non déductible');
$attr_def[]=_('TVA non déductible récupérable par l\'impôt');
$attr_def[]=_('Partie fiscalement non déductible');
$attr_def[]=_('Dépense charge du grant (partie privé) ');
$attr_def[]=_('Compte bancaire');
$attr_def[]=_('Date début');
$attr_def[]=_('Nom');
$attr_def[]=_('Taux TVA');
$attr_def[]=_('Nom de la banque');
$attr_def[]=_('Description');
$attr_def[]=_('Personne de contact ');
$attr_def[]=_('numéro de tva ');
$attr_def[]=_('Adresse ');
$attr_def[]=_('pays ');
$attr_def[]=_('téléphone ');
$attr_def[]=_('email ');
$attr_def[]=_('Quick Code');
$attr_def[]=_('Ville');
$attr_def[]=_('Fax');
$attr_def[]=_('GSM');
$attr_def[]=_('code postal');
$attr_def[]=_('Numero de client');
$attr_def[]=_('Prénom');
$attr_def[]=_('Contrepartie pour TVA récup par impot');
$attr_def[]=_('Contrepartie pour TVA non Ded.');
$attr_def[]=_('Contrepartie pour dépense à charge du gérant');
$attr_def[]=_('Contrepartie pour dépense fiscal. non déd.');
$attr_def[]=_('Poste Comptable');
$attr_def[]=_('Date Fin');
$attr_def[]=_('Gestion stock');
$attr_def[]=_('Société');
?>
<?php
$document_type[]=_('Document Interne');
$document_type[]=_('Bons de commande client');
$document_type[]=_('Bon de commande Fournisseur');
$document_type[]=_('Facture');
$document_type[]=_('Lettre de rappel');
$document_type[]=_('Courrier');
$document_type[]=_('Proposition');
$document_type[]=_('Email');
$document_type[]=_('Divers');
$document_type[]=_('Note de frais');
$document_type[]=_('Réception commande Fournisseur');
$document_type[]=_('Réception commande Client');
$document_type[]=_('Réception magazine');
?>
<?php
$action[]=_('Ajout de fiche');
$action[]=_('Création, modification et effacement de fiche');
$action[]=_('création, modification et effacement de catégorie de fiche');
$action[]=_('Effacer les documents du suivi');
$action[]=_('Voir les documents du suivi');
$action[]=_('Modifier le type de document');
?>
<?php
$mdp[]=_('Caisse');
$mdp[]=_('Paiement électronique');
$mdp[]=_('Caisse');
$mdp[]=_('Par gérant ou administrateur');
?>
<?php
$jrn_def_name[]=_('Achat');
$jrn_def_name[]=_('Financier');
$jrn_def_name[]=_('Opération Diverses');
$jrn_def_name[]=_('Vente');
?>
<?php
$jrn_def_description[]=_('Concerne tous les achats, factures reçues, notes de crédit reçues et notes de frais');
$jrn_def_description[]=_('Concerne tous les mouvements financiers (comptes en banque, caisses, visa...)');
$jrn_def_description[]=_('Concerne toutes les opérations comme les amortissements, les comptes TVA, ...');
$jrn_def_description[]=_('Concerne toutes les ventes, notes de crédit envoyées');
?>

View file

@ -109,14 +109,14 @@ global $cn;
$table=new Sort_Table();
$url=$_SERVER['REQUEST_URI'];
$table->add('Code',$url,"order by me_code asc","order by me_code desc","codea","coded");
$table->add('Menu',$url,"order by me_menu asc","order by me_menu desc","menua","menud");
$table->add('Description',$url,"order by me_description asc","order by me_description desc","desa","desd");
$table->add('Type',$url,"order by me_type asc","order by me_type desc","ta","td");
$table->add('Fichier',$url,"order by me_file asc","order by me_file desc","fa","fd");
$table->add('URL',$url,"order by me_url asc","order by me_url desc","urla","urld");
$table->add('Paramètre',$url,"order by me_parametere asc","order by me_parameter desc","paa","pad");
$table->add('Javascript',$url,"order by me_javascript asc","order by me_javascript desc","jsa","jsd");
$table->add(_('Code'),$url,"order by me_code asc","order by me_code desc","codea","coded");
$table->add(_('Menu'),$url,"order by me_menu asc","order by me_menu desc","menua","menud");
$table->add(_('Description'),$url,"order by me_description asc","order by me_description desc","desa","desd");
$table->add(_('Type'),$url,"order by me_type asc","order by me_type desc","ta","td");
$table->add(_('Fichier'),$url,"order by me_file asc","order by me_file desc","fa","fd");
$table->add(_('URL'),$url,"order by me_url asc","order by me_url desc","urla","urld");
$table->add(_('Paramètre'),$url,"order by me_parametere asc","order by me_parameter desc","paa","pad");
$table->add(_('Javascript'),$url,"order by me_javascript asc","order by me_javascript desc","jsa","jsd");
$ord=(isset($_REQUEST['ord']))?$_REQUEST['ord']:'codea';
@ -126,11 +126,11 @@ $order=$table->get_sql_order($ord);
$iselect=new ISelect('p_type');
$iselect->value=array(
array("value"=>'',"label"=>"Tout"),
array("value"=>'ME',"label"=>"Menu"),
array("value"=>'PR',"label"=>"Impression"),
array("value"=>'PL',"label"=>"Extension / Plugin"),
array("value"=>'SP',"label"=>"Valeurs spéciales")
array("value"=>'',"label"=>_("Tout")),
array("value"=>'ME',"label"=>_("Menu")),
array("value"=>'PR',"label"=>_("Impression")),
array("value"=>'PL',"label"=>_("Extension / Plugin")),
array("value"=>'SP',"label"=>_("Valeurs spéciales"))
);
$iselect->selected=(isset($_REQUEST['p_type']))?$_REQUEST['p_type']:'';
$sql="";
@ -144,15 +144,15 @@ $ret=$menu->seek($sql.$order);
<fieldset><legend>Recherche</legend>
<form method="GET">
<?php echo $iselect->input()?>
<?php echo HtmlInput::submit("search", "Recherche")?>
<?php echo HtmlInput::submit("search", _("Recherche"))?>
<?php echo HtmlInput::request_to_hidden(array('ac','gDossier','ord'))?>
</form>
Filtre <?php echo HtmlInput::filter_table('menu_tb', '0,1,2,4', '1'); ?>
<?php echo _('Filtre'),HtmlInput::filter_table('menu_tb', '0,1,2,4', '1'); ?>
</fieldset>
<?php
$gDossier=Dossier::id();
echo HtmlInput::button("Add_plugin", "Ajout d'un plugin", "onclick=add_plugin($gDossier)");
echo HtmlInput::button("Add_menu", "Ajout d'un menu", "onclick=create_menu($gDossier)");
echo HtmlInput::button("Add_plugin", _("Ajout d'un plugin"), "onclick=add_plugin($gDossier)");
echo HtmlInput::button("Add_menu", _("Ajout d'un menu"), "onclick=create_menu($gDossier)");
echo '<table class="result" id="menu_tb">';
echo '<tr>';
@ -182,8 +182,8 @@ for ($i = 0; $i < Database::num_row($ret); $i++)
$class = ( $i % 2 == 0) ? $class = ' class="odd"' : $class = ' class="even"';
echo "<tr $class>";
echo td($js);
echo td($row->me_menu);
echo td(h($row->me_description));
echo td(_($row->me_menu));
echo td(h(_($row->me_description)));
echo td(h($row->me_type));
echo td(h($row->me_file));
echo td(h($row->me_url));

View file

@ -4,7 +4,7 @@
?>
<?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");
/*
@ -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"));
?>
<div id="other_div" class="inner_box" style="width:40%;display: none">
<?php echo HtmlInput::title_box('Actions sur plusieurs documents','other_div', 'hide') ?>
Sélectionner les documents et l' action :
<?php echo HtmlInput::title_box(_('Actions sur plusieurs documents'),'other_div', 'hide') ?>
<?php echo _("Sélectionner les documents et l' action :")?>
<ul style='list-style-type: none;padding-left:30px;margin: 0px' >
<li >
<?php $radio->value="IMP"; $radio->selected=true;echo $radio->input(); ?>
Impression
<?php echo _("Impression");?>
</li>
<li>
<?php $radio->value="ST";$radio->selected=false;echo $radio->input(); ?>
Changement des états
<?php echo _("Changement des états");?>
<?php
$etat=new ISelect('ag_state');
$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>
<?php $radio->value="ETIADD";echo $radio->input(); ?>
Ajout d'étiquettes
<?php echo _("Ajout d'étiquettes");?>
<?php echo Tag::button_search('add'); ?>
<?php echo Tag::add_clear_button('add'); ?>
<span id="addtag_choose_td">
@ -40,7 +40,7 @@ echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
</li>
<li>
<?php $radio->value="ETIREM";echo $radio->input(); ?>
Enlever des étiquettes
<?php echo _("Enlever des étiquettes");?>
<?php echo Tag::button_search('rem'); ?>
<?php echo Tag::add_clear_button('rem'); ?>
<span id="remtag_choose_td">
@ -48,11 +48,11 @@ echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
</li>
<li>
<?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>
<?php $radio->value="DOCREM";echo $radio->input(); ?>
Effacer les documents choisis
<?php echo _("Effacer les documents choisis");?>
</li>
</ul>

View file

@ -28,11 +28,11 @@
?>
<?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">
<?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 if ( $inner ) : ?>
<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; ?>
<h2 class="info">
@ -48,19 +48,19 @@
<?php echo dossier::hidden()?>
<table style="width:100%">
<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>
<?php echo $remind_date->input();?>
</td>
</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>
<?php echo $remind_date_end->input();?>
</td>
</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>
</tr>
<tr>
@ -79,13 +79,13 @@
</td>
</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>
<?php echo $osag_ref->input();?>
</td>
</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>
<?php $num=new INum('ag_id');echo $num->input();?>
</td>

View file

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

View file

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

View file

@ -64,10 +64,6 @@ if ( ! empty ($array) ) {
</th>
<th>
<?php echo _("Pour aujourd'hui"); ?>
</th>
<th>
<?php echo _("En retard"); ?>
</th>
</tr>
<tr>
@ -208,7 +204,7 @@ endif;
<div id="action_late_div" class="inner_box" style="display:none;margin-left:25%;top:25%;width: 50%;min-height:50%;overflow: auto;">
<?php
echo HtmlInput::title_box("Action en retard", "action_late_div","hide")
echo HtmlInput::title_box(_("Action en retard"), "action_late_div","hide")
?>
<ol>
<?php if (count($late_operation)> 0) :
@ -233,13 +229,13 @@ endif;
<?php endfor;?>
</ol>
<?php else : ?>
<h2 class='notice'>Aucune action en retard</h2>
<h2 class='notice'><?php echo _("Aucune action en retard")?></h2>
<?php endif; ?>
</div>
<div id="action_now_div" class="inner_box" style="display:none;margin-left:25%;width: 50%;top:25%;min-height:50%;overflow: auto;">
<?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>
<?php
@ -265,10 +261,10 @@ endif;
</ol>
<?php endif; ?>
</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($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($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($customer_now,_("Encaissement clients aujourd'hui"),'customer_now_div'); ?>
<?php display_dashboard_operation($customer_late,_("Clients en retard"),'customer_late_div'); ?>
</div>
@ -340,4 +336,4 @@ for (i=0;i < array.length;i++) {
new Draggable(array[i],{});
}
} catch (e) { alert(e.getMessage);}
</script>
</script>

View file

@ -156,7 +156,7 @@
$rmOperation=sprintf("javascript:if ( confirm('"._('Voulez-vous effacer cette opération ')."')==true ) {remove_operation('%s','%s');}",
dossier::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'])." "
.$js.'</li>';
}
@ -173,7 +173,7 @@
</div>
<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>
<?php
@ -186,7 +186,7 @@
dossier::id(),
$action[$o]['ag_id'],$_REQUEST['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']." ".
h($action[$o]['sub_title']).'('.h($action[$o]['dt_value']).')</a>'." "
.$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++){
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(),
$acomment[$c]['agc_id']);
$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>
</ol>
<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>
</div>
<?php endif;?>

View file

@ -3,7 +3,7 @@
//see licence.txt
?><TABLE BORDER="0" CELLSPACING="0">
<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>
</TR>
<tr>
@ -20,7 +20,7 @@
<td><span id="class_base_label"></span></td>
</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>
<?php
if ( sizeof($ref) ) {

View file

@ -63,7 +63,7 @@ for ($i=0;$i<$max;$i++):
</td>
<td>
<?php
$v=($row['fd_create_account']=='t')?"Automatique":"Manuel";
$v=($row['fd_create_account']=='t')?_("Automatique"):_("Manuel");
echo $v;
?>
</td>
@ -81,7 +81,7 @@ endfor;
?>
</table>
<?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 id="detail_category_div" style="display:none"">

View file

@ -27,27 +27,26 @@
*/
?>
<?php echo $bar?>
<div class="content">
<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">
<tr>
<th>
Quick Code
<?php echo _("Quick Code")?>
</th>
<th>
Nom
<?php echo _("Nom")?>
</th>
<th>
Poste Comptable
<?php echo _("Poste Comptable")?>
</th>
<?php if ($allcard == 1 ) : ?>
<th>
Catégorie
<?php echo _("Catégorie")?>
</th>
<?php endif; ?>
<th>
Selection
<?php echo _("Selection")?>
</th>
</tr>
<?php for ($i = 0; $i < $nb_line; $i++) :?>
@ -85,9 +84,9 @@
</table>
<?php echo $str_add_card?>
<?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 echo HtmlInput::submit('move','Déplacer la sélection vers')?>
<?php echo HtmlInput::submit('move',_('Déplacer la sélection vers'))?>
<?php
$iselect=new ISelect('move_to');
$iselect->value=$cn->make_array("select fd_id,fd_label from fiche_def order by 2");

View file

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

View file

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

View file

@ -9,7 +9,7 @@
$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.'\')">
!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>

View file

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

View file

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

View file

@ -20,20 +20,20 @@
<?php
$date = new IDate('p_date');
$date->value = format_date($obj->det->jr_date);
echo td('Date') . td($date->input());
echo td(_('Date')) . td($date->input());
?>
<tr>
<td></td>
<?php
$date_ech = new IDate('p_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>
Date paiement
<?php echo _("Date paiement")?>
</td>
<td>
<?php

View file

@ -3,13 +3,13 @@
$other=new IText('OTHER',$obj->info->other);
?>
<div class="myfieldset">
<h1 class="legend">Informations</h1>
<h1 class="legend">"<?php echo _("Informations")?></h1>
<table>
<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>
<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>
</table>
</div>
@ -98,8 +98,8 @@ require_once('template/ledger_detail_file.php');
<?php
if ( $div != 'popup' ) {
$a=new IButton('Fermer','Fermer');
$a->label="Fermer";
$a=new IButton('Fermer',_('Fermer'));
$a->label=_("Fermer");
$a->javascript="removeDiv('".$div."')";
echo $a->input();
}

View file

@ -21,7 +21,7 @@ require_once('class_anc_operation.php');
<?php
$date=new IDate('p_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
$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" ');
echo td('Compte en banque').td($view_card_detail).td();;
echo td(_('Compte en banque')).td($view_card_detail).td();;
?>
</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']);
$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>
@ -56,7 +56,7 @@ echo td('Tiers').td($view_card_detail);
?>
</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>
<?php

View file

@ -2,5 +2,5 @@
//This file is part of NOALYSS and is under GPL
//see licence.txt
?><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>

View file

@ -24,7 +24,7 @@ require_once ('class_anc_plan.php');
<?php
$date=new IDate('p_date');
$date->value=format_date($obj->det->jr_date);
echo td('Date').td($date->input());
echo td(_('Date')).td($date->input());
?>
</td>
@ -41,7 +41,7 @@ require_once ('class_anc_plan.php');
?>
</td></tr>
<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>
<tr><td>
<?php

View file

@ -8,7 +8,7 @@
$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.'\')">
!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>

View file

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

View file

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

View file

@ -148,18 +148,18 @@ if ($i<$linked_limit)
}
endfor;
$delta = bcsub($amount_deb, $amount_cred);
$side = 'Créditeur';
$side = _('Créditeur');
if ($delta < 0 ) {
$side = "Débiteur";
$side = _("Débiteur");
$delta = abs($delta);
}
?>
</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 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 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_all',_('Sélectionner tout'),' onclick="select_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_js=new IText('me_javascript',$m->me_javascript);
$a_type=array (
array ('label'=>'Impression','value'=>'PR' ),
array ('label'=>'Menu','value'=>'ME' )
array ('label'=>_('Impression'),'value'=>'PR' ),
array ('label'=>_('Menu'),'value'=>'ME' )
);
$str_type=new ISelect("me_type", $a_type);
$str_type->selected=$m->me_type;
@ -24,7 +24,7 @@ $str_type->selected=$m->me_type;
<table>
<tr>
<td>
Code du menu
<?php echo _("Code du menu")?>
</td>
<td>
<?php echo $str_code->input()?>
@ -32,7 +32,7 @@ $str_type->selected=$m->me_type;
</tr>
<tr>
<td>
Libellé du menu
<?php echo _("Libellé du menu")?>
</td>
<td>
<?php echo $str_menu->input()?>
@ -40,7 +40,7 @@ $str_type->selected=$m->me_type;
</tr>
<tr>
<td>
Description
<?php echo _("Description")?>
</td>
<td>
<?php echo $str_desc->input()?>
@ -48,7 +48,7 @@ $str_type->selected=$m->me_type;
</tr>
<tr>
<td>
Type
<?php echo _("Type")?>
</td>
<td>
<?php echo $str_type->input();?>
@ -56,7 +56,7 @@ $str_type->selected=$m->me_type;
</tr>
<tr>
<td>
Fichier à inclure (depuis le répertoire include)
<?php echo _("Fichier à inclure (depuis le répertoire include)")?>
</td>
<td>
<?php echo $str_file->input()?>

View file

@ -2,12 +2,12 @@
//This file is part of NOALYSS and is under GPL
//see licence.txt
?><?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">
<table>
<tr>
<td>Nom du document</td>
<td><?php echo _("Nom du document")?></td>
<td>
<?php
@ -20,7 +20,7 @@ echo $a->input();
<tr>
<td>
Catégorie de document
<?php echo _("Catégorie de document")?>
</td>
<td>
<?php
@ -37,7 +37,7 @@ Catégorie de document
</tr>
<tr>
<td>
Affectation
<?php echo _("Affectation")?>
</td>
<td>
<?php
@ -58,7 +58,7 @@ Affectation
<tr>
<td>
Fichier
<?php echo _("Fichier")?>
<?php
$s=dossier::get();
@ -77,7 +77,7 @@ echo $file->input();
<tr>
<td>
Dernier numéro utilisé pour ce type de document
<?php echo _("Dernier numéro utilisé pour ce type de document")?>
</td>
<td>
<?php
@ -98,7 +98,7 @@ echo $last;
</tr>
<tr>
<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>
<?php
@ -115,7 +115,7 @@ echo HtmlInput::hidden('p_action','document');
echo dossier::hidden();
echo HtmlInput::hidden('sa','mod_template');
echo HtmlInput::hidden('id',$doc->md_id);
echo HtmlInput::submit("mod",'Sauver');
echo HtmlInput::submit("mod",_('Sauver'));
?>
</form>

View file

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

View file

@ -12,13 +12,13 @@ pour faire toutes les écritures de fin d'exercice: amortissements, régulations
</li>
</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
echo HtmlInput::hidden("ac",$_REQUEST['ac']);
echo $nb_exercice->input();
echo HtmlInput::hidden("jrn_def_id","0");
echo Dossier::hidden();
echo HtmlInput::submit("add_exercice","Ajout d'un exercice comptable");
echo HtmlInput::submit("add_exercice",_("Ajout d'un exercice comptable"));
?>
</form>

View file

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

View file

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

View file

@ -56,4 +56,4 @@
</tr>
<?php endfor;?>
</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
//see licence.txt
?><div class="content">
Filtre rapide :
<?php echo _("Filtre")?> :
<?php
$col="";$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">
<tr>
<?php
echo th('Détail');
echo th(_('Détail'));
for ($i=0;$i<count($aHeading);$i++) :
$span="";$sort="";
if ($i==0)

View file

@ -33,10 +33,10 @@
if ($div == "search_op") {
$callback=$_SERVER['PHP_SELF'];
$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>
<?php echo h2info('Recherche')?>
<?php echo h2info(_('Recherche'))?>
</div>

View file

@ -27,45 +27,45 @@
*/
?>
<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">
<?php echo HtmlInput::get_to_hidden(array("gDossier", "ac"))?>
<table>
<tr>
<td> Code Stock </td>
<td> <?php echo _("Code Stock")?> </td>
<td> <?php echo $wcode_stock->input()?><?php echo $wcode_stock->search()?> </td>
</tr>
<tr>
<td> Fiche </td>
<td> <?php echo _("Fiche")?> </td>
<td> <?php echo $wcard->input()?><?php echo $wcard->search()?> </td>
</tr>
<tr>
<td> A partir de </td>
<td> <?php echo _("A partir de")?> </td>
<td> <?php echo $wdate_start->input()?> </td>
</tr>
<tr>
<td> Jusque </td>
<td> <?php echo _("Jusque")?> </td>
<td> <?php echo $wdate_end->input()?> </td>
</tr>
<tr>
<td> Dépôt </td>
<td> <?php echo _("Dépôt")?> </td>
<td> <?php echo $wrepo->input()?> </td>
</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>
</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>
</tr>
<tr>
<td> Direction </td>
<td> <?php echo _("Direction")?> </td>
<td> <?php echo $wdirection->input()?> </td>
</tr>
</table>
<?php echo HtmlInput::submit("search_histo_b", "Recherche")?>
<?php echo HtmlInput::submit("search_histo_b",_("Recherche"))?>
</form>
</div>

View file

@ -28,10 +28,10 @@
*/
?>
<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>
<tr><td>
Date
<?php echo _("Date")?>
</td>
<td>
<?php echo $date->input()?>
@ -39,7 +39,7 @@
</tr>
<tr>
<td>
Dépot
<?php echo _("Dépot")?>
</td>
<td>
<?php echo $idepo->input()?>
@ -47,7 +47,7 @@
</tr>
<tr>
<td>
Motif de changement
<?php echo _("Motif de changement")?>
</td>
<td>
<?php echo $motif->input()?>
@ -57,15 +57,15 @@
<table id="stock_tb" style="width: 80%">
<tr>
<th style="text-align: left">
Code Stock
<?php echo _("Code Stock")?>
</th>
<?php if ( $p_readonly == true ) :?>
<th style="text-align: left">
Fiche
<?php echo _("Fiche")?>
</th>
<?php endif;?>
<th style="text-align:right">
Quantité
<?php echo _("Quantité")?>
</th>
</tr>
<?php for($i=0;$i<$nb;$i++): ?>
@ -100,8 +100,8 @@
</tr>
<?php endfor; ?>
</table>
<?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::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::hidden('row',$nb)?>
</form>
</div>

View file

@ -32,7 +32,7 @@
<table>
<tr>
<td>
Exercice
<?php echo _("Exercice")?>
</td>
<td>
<?php echo $iexercice->input()?>
@ -40,12 +40,12 @@
</tr>
<tr>
<td>
Présentation
<?php echo _("Présentation")?>
</td>
<td>
<?php echo $presentation->input()?>
</td>
</tr>
</table>
<?php echo HtmlInput::submit('sfilter','Filtrer')?>
<?php echo HtmlInput::submit('sfilter',_('Filtrer'))?>
</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">
<?php for ($r=0;$r<count($a_repo);$r++):?>
<h1><?php echo $a_repo[$r]['r_name']?></h1>
<p>Adresse <?php echo $a_repo[$r]['r_adress']?></p>
<p>Ville <?php echo $a_repo[$r]['r_city']?></p>
<p>Pays <?php echo $a_repo[$r]['r_country']?></p>
<p>Téléphone <?php echo $a_repo[$r]['r_phone']?></p>
<p><?php echo _("Adresse")?> <?php echo $a_repo[$r]['r_adress']?></p>
<p><?php echo _("Ville")?> <?php echo $a_repo[$r]['r_city']?></p>
<p><?php echo _("Pays")?> <?php echo $a_repo[$r]['r_country']?></p>
<p><?php echo _("Téléphone")?> <?php echo $a_repo[$r]['r_phone']?></p>
<table class="result">
<tr>
<th>Code</th>
<th>Détail</th>
<th style="text-align: right">IN</th>
<th style="text-align: right">OUT</th>
<th style="text-align: right">En Stock</th>
<th><?php echo _("Code")?></th>
<th><?php echo _("Détail")?></th>
<th style="text-align: right"><?php echo _("IN")?></th>
<th style="text-align: right"><?php echo _("OUT")?></th>
<th style="text-align: right"><?php echo _("En Stock")?></th>
</tr>
<?php
$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" ');
$sep=" ,";
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 class="num">

View file

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

View file

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

Some files were not shown because too many files have changed in this diff Show more