Trad: Traductions des onglets des fiches projets
This commit is contained in:
parent
cba98b1365
commit
e7acc2a59b
@ -32,47 +32,53 @@ require("../propal.class.php");
|
||||
require("../facture.class.php");
|
||||
require("../commande/commande.class.php");
|
||||
|
||||
$langs->load("projects");
|
||||
$langs->load("companies");
|
||||
|
||||
llxHeader("","../");
|
||||
|
||||
$projet = new Project($db);
|
||||
$projet->fetch($_GET["id"]);
|
||||
|
||||
$h=0;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Fiche projet';
|
||||
$h++;
|
||||
|
||||
if ($conf->propal->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Prop. Commerciales';
|
||||
$h++;
|
||||
}
|
||||
$h=0;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Project");
|
||||
$h++;
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Commandes';
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Factures';
|
||||
$h++;
|
||||
}
|
||||
if ($conf->propal->enabled) {
|
||||
$langs->load("propal");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Proposals");
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$langs->load("orders");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Orders");
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$langs->load("bills");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Bills");
|
||||
$h++;
|
||||
}
|
||||
|
||||
dolibarr_fiche_head($head, $hselected);
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
$projet->societe->fetch($projet->societe->id);
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<tr><td width="20%">Titre</td><td>'.$projet->title.'</td>';
|
||||
print '<table class="border" width="100%">';
|
||||
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 '<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>';
|
||||
|
||||
/*
|
||||
@ -84,10 +90,10 @@ $total = 0 ;
|
||||
if (sizeof($commandes)>0 && is_array($commandes))
|
||||
{
|
||||
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 '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">Montant</td><td> </td></tr>';
|
||||
print '<tr class="liste_titre">';
|
||||
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++)
|
||||
{
|
||||
@ -95,10 +101,10 @@ if (sizeof($commandes)>0 && is_array($commandes))
|
||||
$commande->fetch($commandes[$i]);
|
||||
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<td><a href=\"../commande/fiche.php?id=$commande->id\">$commande->ref</a></TD>\n";
|
||||
print "<tr $bc[$var]>";
|
||||
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 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;
|
||||
}
|
||||
|
||||
@ -32,6 +32,10 @@ require("../propal.class.php");
|
||||
require("../facture.class.php");
|
||||
require("../commande/commande.class.php");
|
||||
|
||||
$langs->load("projects");
|
||||
$langs->load("companies");
|
||||
|
||||
|
||||
$user->getrights('projet');
|
||||
|
||||
if (!$user->rights->projet->lire)
|
||||
@ -42,42 +46,45 @@ llxHeader("","../");
|
||||
$projet = new Project($db);
|
||||
$projet->fetch($_GET["id"]);
|
||||
|
||||
$h=0;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Fiche projet';
|
||||
$h++;
|
||||
|
||||
if ($conf->propal->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Prop. Commerciales';
|
||||
$h++;
|
||||
}
|
||||
$h=0;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Project");
|
||||
$h++;
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Commandes';
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Factures';
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
}
|
||||
if ($conf->propal->enabled) {
|
||||
$langs->load("propal");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Proposals");
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$langs->load("orders");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Orders");
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$langs->load("bills");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Bills");
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
}
|
||||
|
||||
dolibarr_fiche_head($head, $hselected);
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
$projet->societe->fetch($projet->societe->id);
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<tr><td width="20%">Titre</td><td>'.$projet->title.'</td>';
|
||||
print '<table class="border" width="100%">';
|
||||
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 '<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>';
|
||||
|
||||
|
||||
@ -90,7 +97,7 @@ print '</table><br>';
|
||||
if (sizeof($factures)>0 && is_array($factures))
|
||||
{
|
||||
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 '<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;
|
||||
$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;
|
||||
$h++;
|
||||
|
||||
if ($conf->propal->enabled) {
|
||||
$langs->load("propal");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Prop. Commerciales';
|
||||
$head[$h][1] = $langs->trans("Proposals");
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$langs->load("orders");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Orders");
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$langs->load("bills");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Bills");
|
||||
$h++;
|
||||
|
||||
@ -40,9 +40,9 @@ if ($user->societe_id > 0)
|
||||
$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_liste_field_titre($langs->trans("Title"),"index.php","p.title");
|
||||
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";
|
||||
|
||||
$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
|
||||
{
|
||||
print $db->error();
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
|
||||
print "</table>";
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||
?>
|
||||
|
||||
@ -29,17 +29,16 @@
|
||||
require ("../main.inc.php");
|
||||
require("./project.class.php");
|
||||
|
||||
|
||||
function llxHeader($head = "", $title="", $help_url='')
|
||||
{
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
global $langs;
|
||||
|
||||
top_menu($head, $title);
|
||||
|
||||
$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);
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* 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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -31,50 +32,54 @@ require("../propal.class.php");
|
||||
require("../facture.class.php");
|
||||
require("../commande/commande.class.php");
|
||||
|
||||
$langs->load("projects");
|
||||
$langs->load("companies");
|
||||
|
||||
llxHeader("","../");
|
||||
|
||||
$projet = new Project($db);
|
||||
$projet->fetch($_GET["id"]);
|
||||
|
||||
$h=0;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Fiche projet';
|
||||
$h++;
|
||||
|
||||
if ($conf->propal->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Prop. Commerciales';
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
}
|
||||
$h=0;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Project");
|
||||
$h++;
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Commandes';
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = 'Factures';
|
||||
$h++;
|
||||
}
|
||||
if ($conf->propal->enabled) {
|
||||
$langs->load("propal");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Proposals");
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->commande->enabled) {
|
||||
$langs->load("orders");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Orders");
|
||||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled) {
|
||||
$langs->load("bills");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||
$head[$h][1] = $langs->trans("Bills");
|
||||
$h++;
|
||||
}
|
||||
|
||||
dolibarr_fiche_head($head, $hselected);
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
$propales = array();
|
||||
|
||||
$projet->societe->fetch($projet->societe->id);
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<tr><td width="20%">Titre</td><td>'.$projet->title.'</td>';
|
||||
print '<table class="border" width="100%">';
|
||||
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 '<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>';
|
||||
|
||||
$propales = $projet->get_propal_list();
|
||||
@ -82,10 +87,10 @@ $propales = $projet->get_propal_list();
|
||||
if (sizeof($propales)>0 && is_array($propales))
|
||||
{
|
||||
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 '<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++)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user