';
- print_titre('Documents');
+ print_titre(''.$langs->trans("Document").'');
+
- print '';
-
/*
*
*/
+ print '\n";
+
/*
*
*/
@@ -692,7 +692,7 @@ if ($_GET["propalid"])
if ($nb_commande > 0)
{
$coms = $propal->commande_liste_array();
- print '
';
+ print '
';
if ($nb_commande == 1)
@@ -739,8 +739,8 @@ if ($_GET["propalid"])
{
print_titre("Propale envoyée");
- print '';
- print "| ".$langs->trans("Date")." | ".$langs->trans("Author")." | \n";
+ print '';
+ print "| ".$langs->trans("Date")." | ".$langs->trans("Author")." | \n";
while ($i < $num)
@@ -770,6 +770,7 @@ if ($_GET["propalid"])
{
print '';
}
+
/*
*
*
@@ -802,7 +803,7 @@ if ($_GET["propalid"])
print "| Message | | ";
print " ";
- print "";
+ print "trans("Send")."\">";
print "";
}
diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php
index 06d76e3fcdb..45b160ea4ed 100644
--- a/htdocs/comm/propal/document.php
+++ b/htdocs/comm/propal/document.php
@@ -1,5 +1,6 @@
+ * Copyright (C) 2004 Laurent Destailleur
*
* 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
@@ -26,13 +27,15 @@
*/
require("./pre.inc.php");
+require_once("../../propal.class.php");
$user->getrights('propale');
+
if (!$user->rights->propale->lire)
accessforbidden();
-require_once("../../propal.class.php");
+
llxHeader();
function do_upload ($upload_dir)
@@ -140,13 +143,14 @@ if ($id > 0)
}
else
{
- print $db->error() . " " . $sql;
+ dolibarr_print_error($db);
}
}
else
{
print "Erreur";
}
+
$db->close();
llxFooter("Dernière modification $Date$ révision $Revision$");
diff --git a/htdocs/comm/propal/info.php b/htdocs/comm/propal/info.php
index 587cd559ff7..6d94ba08c92 100644
--- a/htdocs/comm/propal/info.php
+++ b/htdocs/comm/propal/info.php
@@ -1,5 +1,6 @@
+ * Copyright (C) 2004 Laurent Destailleur
*
* 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
@@ -28,6 +29,8 @@
require("./pre.inc.php");
+$langs->load("propal");
+
$user->getrights('propale');
if (!$user->rights->propale->lire)
accessforbidden();
@@ -46,19 +49,22 @@ if ($_GET["propalid"])
$societe = new Societe($db);
$societe->fetch($propal->soc_id);
+ $h=0;
- $head[0][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id;
- $head[0][1] = "Proposition commerciale : $propal->ref";
- $h = 1;
- $a = 0;
- $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id;
- $head[$h][1] = "Note";
+ $head[$h][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id;
+ $head[$h][1] = $langs->trans("Prop").": $propal->ref";
$h++;
+
+ $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id;
+ $head[$h][1] = $langs->trans("Note");
+ $h++;
+
$head[$h][0] = DOL_URL_ROOT.'/comm/propal/info.php?propalid='.$propal->id;
- $head[$h][1] = "Info";
- $a=$h;
+ $head[$h][1] = $langs->trans("Info");
+ $hselected=$h;
+ $h++;
- dolibarr_fiche_head($head, $a, $societe->nom);
+ dolibarr_fiche_head($head, $hselected, $societe->nom);
$propal->info($propal->id);
dolibarr_print_object_info($propal);
diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php
index 5f875c05c59..e87af211102 100644
--- a/htdocs/comm/propal/note.php
+++ b/htdocs/comm/propal/note.php
@@ -28,13 +28,15 @@
*/
require("./pre.inc.php");
+require("../../propal.class.php");
+
+$langs->load("propal");
$user->getrights('propale');
if (!$user->rights->propale->lire)
accessforbidden();
-require("../../propal.class.php");
/*
* Sécurité accés client
*/
@@ -71,16 +73,20 @@ if ($_GET["propalid"])
$societe = new Societe($db);
if ( $societe->fetch($propal->soc_id) )
{
-
- $head[0][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id;
- $head[0][1] = "Proposition commerciale : $propal->ref";
- $h = 1;
- $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id;
- $head[$h][1] = "Note";
- $hselected = 1;
- $h++;
- $head[$h][0] = DOL_URL_ROOT.'/comm/propal/info.php?propalid='.$propal->id;
- $head[$h][1] = "Info";
+ $h=0;
+
+ $head[$h][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id;
+ $head[$h][1] = $langs->trans("Prop").": $propal->ref";
+ $h++;
+
+ $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id;
+ $head[$h][1] = $langs->trans("Note");
+ $hselected=$h;
+ $h++;
+
+ $head[$h][0] = DOL_URL_ROOT.'/comm/propal/info.php?propalid='.$propal->id;
+ $head[$h][1] = $langs->trans("Info");
+ $h++;
dolibarr_fiche_head($head, $hselected, $societe->nom);
|