Trad: Traductions des onglets des fiches projets
This commit is contained in:
parent
cba98b1365
commit
e7acc2a59b
@ -32,6 +32,9 @@ require("../propal.class.php");
|
|||||||
require("../facture.class.php");
|
require("../facture.class.php");
|
||||||
require("../commande/commande.class.php");
|
require("../commande/commande.class.php");
|
||||||
|
|
||||||
|
$langs->load("projects");
|
||||||
|
$langs->load("companies");
|
||||||
|
|
||||||
llxHeader("","../");
|
llxHeader("","../");
|
||||||
|
|
||||||
$projet = new Project($db);
|
$projet = new Project($db);
|
||||||
@ -39,40 +42,43 @@ $projet->fetch($_GET["id"]);
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Fiche projet';
|
$head[$h][1] = $langs->trans("Project");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled) {
|
||||||
|
$langs->load("propal");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Prop. Commerciales';
|
$head[$h][1] = $langs->trans("Proposals");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled) {
|
if ($conf->commande->enabled) {
|
||||||
|
$langs->load("orders");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Commandes';
|
$head[$h][1] = $langs->trans("Orders");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled) {
|
||||||
|
$langs->load("bills");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Factures';
|
$head[$h][1] = $langs->trans("Bills");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected);
|
dolibarr_fiche_head($head, $hselected);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$projet->societe->fetch($projet->societe->id);
|
$projet->societe->fetch($projet->societe->id);
|
||||||
|
|
||||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td width="20%">Titre</td><td>'.$projet->title.'</td>';
|
print '<tr><td width="20%">'.$langs->trans("Title").'</td><td>'.$projet->title.'</td>';
|
||||||
print '<td width="20%">'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
print '<td width="20%">'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
||||||
print '<tr><td>Société</td><td colspan="3"><a href="../comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
print '<tr><td>'.$langs->trans("Company").'</td><td colspan="3"><a href="../comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -84,10 +90,10 @@ $total = 0 ;
|
|||||||
if (sizeof($commandes)>0 && is_array($commandes))
|
if (sizeof($commandes)>0 && is_array($commandes))
|
||||||
{
|
{
|
||||||
print_titre('Listes des commandes associées au projet');
|
print_titre('Listes des commandes associées au projet');
|
||||||
print '<TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table border="0" width="100%">';
|
||||||
|
|
||||||
print '<TR class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">Montant</td><td> </td></tr>';
|
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">'.$langs->trans("Amount").'</td><td> </td></tr>';
|
||||||
|
|
||||||
for ($i = 0; $i<sizeof($commandes);$i++)
|
for ($i = 0; $i<sizeof($commandes);$i++)
|
||||||
{
|
{
|
||||||
@ -95,10 +101,10 @@ if (sizeof($commandes)>0 && is_array($commandes))
|
|||||||
$commande->fetch($commandes[$i]);
|
$commande->fetch($commandes[$i]);
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<TR $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td><a href=\"../commande/fiche.php?id=$commande->id\">$commande->ref</a></TD>\n";
|
print "<td><a href=\"../commande/fiche.php?id=$commande->id\">$commande->ref</a></td>\n";
|
||||||
print '<td>'.strftime("%d %B %Y",$commande->date).'</td>';
|
print '<td>'.strftime("%d %B %Y",$commande->date).'</td>';
|
||||||
print '<TD align="right">'.price($commande->total_ht).'</td><td> </td></tr>';
|
print '<td align="right">'.price($commande->total_ht).'</td><td> </td></tr>';
|
||||||
|
|
||||||
$total = $total + $commande->total_ht;
|
$total = $total + $commande->total_ht;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,6 +32,10 @@ require("../propal.class.php");
|
|||||||
require("../facture.class.php");
|
require("../facture.class.php");
|
||||||
require("../commande/commande.class.php");
|
require("../commande/commande.class.php");
|
||||||
|
|
||||||
|
$langs->load("projects");
|
||||||
|
$langs->load("companies");
|
||||||
|
|
||||||
|
|
||||||
$user->getrights('projet');
|
$user->getrights('projet');
|
||||||
|
|
||||||
if (!$user->rights->projet->lire)
|
if (!$user->rights->projet->lire)
|
||||||
@ -44,40 +48,43 @@ $projet->fetch($_GET["id"]);
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Fiche projet';
|
$head[$h][1] = $langs->trans("Project");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled) {
|
||||||
|
$langs->load("propal");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Prop. Commerciales';
|
$head[$h][1] = $langs->trans("Proposals");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled) {
|
if ($conf->commande->enabled) {
|
||||||
|
$langs->load("orders");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Commandes';
|
$head[$h][1] = $langs->trans("Orders");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled) {
|
||||||
|
$langs->load("bills");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Factures';
|
$head[$h][1] = $langs->trans("Bills");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected);
|
dolibarr_fiche_head($head, $hselected);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$projet->societe->fetch($projet->societe->id);
|
$projet->societe->fetch($projet->societe->id);
|
||||||
|
|
||||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td width="20%">Titre</td><td>'.$projet->title.'</td>';
|
print '<tr><td width="20%">'.$langs->trans("Title").'</td><td>'.$projet->title.'</td>';
|
||||||
print '<td width="20%">'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
print '<td width="20%">'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
||||||
print '<tr><td>Société</td><td colspan="3"><a href="../comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
print '<tr><td>'.$langs->trans("Company").'</td><td colspan="3"><a href="../comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
|
|
||||||
@ -90,7 +97,7 @@ print '</table><br>';
|
|||||||
if (sizeof($factures)>0 && is_array($factures))
|
if (sizeof($factures)>0 && is_array($factures))
|
||||||
{
|
{
|
||||||
print_titre('Listes des factures associées au projet');
|
print_titre('Listes des factures associées au projet');
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">Montant</td><td> </td></tr>';
|
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">Montant</td><td> </td></tr>';
|
||||||
|
|||||||
@ -122,23 +122,26 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Fiche projet';
|
$head[$h][1] = $langs->trans("Project");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled) {
|
||||||
|
$langs->load("propal");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Prop. Commerciales';
|
$head[$h][1] = $langs->trans("Proposals");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled) {
|
if ($conf->commande->enabled) {
|
||||||
|
$langs->load("orders");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||||
$head[$h][1] = $langs->trans("Orders");
|
$head[$h][1] = $langs->trans("Orders");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled) {
|
||||||
|
$langs->load("bills");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||||
$head[$h][1] = $langs->trans("Bills");
|
$head[$h][1] = $langs->trans("Bills");
|
||||||
$h++;
|
$h++;
|
||||||
|
|||||||
@ -40,9 +40,9 @@ if ($user->societe_id > 0)
|
|||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader("","Liste des Projets","Projet");
|
llxHeader("",$langs->trans("Projects"),"Projet");
|
||||||
|
|
||||||
print_titre("Projets");
|
print_titre($langs->trans("Projects"));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@ -76,7 +76,7 @@ print '<table class="noborder" width="100%">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Title"),"index.php","p.title");
|
print_liste_field_titre($langs->trans("Title"),"index.php","p.title");
|
||||||
print '<td>'.$langs->trans("Ref").'</td>';
|
print '<td>'.$langs->trans("Ref").'</td>';
|
||||||
print_liste_field_titre("Société","index.php","s.nom");
|
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom");
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$sql = "SELECT s.nom, s.idp, p.rowid as projectid, p.ref, p.title, s.client,".$db->pdate("p.dateo")." as do";
|
$sql = "SELECT s.nom, s.idp, p.rowid as projectid, p.ref, p.title, s.client,".$db->pdate("p.dateo")." as do";
|
||||||
@ -120,11 +120,12 @@ if ( $db->query($sql) )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $db->error();
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -29,17 +29,16 @@
|
|||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
require("./project.class.php");
|
require("./project.class.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = "", $title="", $help_url='')
|
||||||
{
|
{
|
||||||
/*
|
global $langs;
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/projet/", "Projets");
|
$menu->add(DOL_URL_ROOT."/projet/", $langs->trans("Projects"));
|
||||||
|
|
||||||
left_menu($menu->liste, $help_url);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -31,6 +32,8 @@ require("../propal.class.php");
|
|||||||
require("../facture.class.php");
|
require("../facture.class.php");
|
||||||
require("../commande/commande.class.php");
|
require("../commande/commande.class.php");
|
||||||
|
|
||||||
|
$langs->load("projects");
|
||||||
|
$langs->load("companies");
|
||||||
|
|
||||||
llxHeader("","../");
|
llxHeader("","../");
|
||||||
|
|
||||||
@ -39,42 +42,44 @@ $projet->fetch($_GET["id"]);
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Fiche projet';
|
$head[$h][1] = $langs->trans("Project");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled) {
|
||||||
|
$langs->load("propal");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Prop. Commerciales';
|
$head[$h][1] = $langs->trans("Proposals");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled) {
|
if ($conf->commande->enabled) {
|
||||||
|
$langs->load("orders");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Commandes';
|
$head[$h][1] = $langs->trans("Orders");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled) {
|
||||||
|
$langs->load("bills");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||||
$head[$h][1] = 'Factures';
|
$head[$h][1] = $langs->trans("Bills");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected);
|
dolibarr_fiche_head($head, $hselected);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$propales = array();
|
$propales = array();
|
||||||
|
|
||||||
$projet->societe->fetch($projet->societe->id);
|
$projet->societe->fetch($projet->societe->id);
|
||||||
|
|
||||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td width="20%">Titre</td><td>'.$projet->title.'</td>';
|
print '<tr><td width="20%">'.$langs->trans("Title").'</td><td>'.$projet->title.'</td>';
|
||||||
print '<td width="20%">'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
print '<td width="20%">'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
||||||
print '<tr><td>Société</td><td colspan="3"><a href="../comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
print '<tr><td>'.$langs->trans("Company").'</td><td colspan="3"><a href="../comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
$propales = $projet->get_propal_list();
|
$propales = $projet->get_propal_list();
|
||||||
@ -82,10 +87,10 @@ $propales = $projet->get_propal_list();
|
|||||||
if (sizeof($propales)>0 && is_array($propales))
|
if (sizeof($propales)>0 && is_array($propales))
|
||||||
{
|
{
|
||||||
print_titre('Listes des propositions commerciales associées au projet');
|
print_titre('Listes des propositions commerciales associées au projet');
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">Montant</td><td> </td></tr>';
|
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">'.$langs->trans("Date").'</td><td align="right">'.$langs->trans("Amount").'</td><td> </td></tr>';
|
||||||
|
|
||||||
for ($i = 0; $i<sizeof($propales);$i++)
|
for ($i = 0; $i<sizeof($propales);$i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user