Trad: Translaction for module ECM
This commit is contained in:
parent
3062b49bbe
commit
a48743a243
@ -118,7 +118,7 @@ if (! $_GET["action"] || $_GET["action"] == 'delete_section')
|
|||||||
|
|
||||||
//print_fiche_titre($langs->trans("ECMManualOrg"));
|
//print_fiche_titre($langs->trans("ECMManualOrg"));
|
||||||
|
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/ecm/todo.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/ecm/search.php">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print '<td colspan="3">'.$langs->trans("ECMSearchByKeywords").'</td></tr>';
|
print '<td colspan="3">'.$langs->trans("ECMSearchByKeywords").'</td></tr>';
|
||||||
@ -133,7 +133,7 @@ if (! $_GET["action"] || $_GET["action"] == 'delete_section')
|
|||||||
|
|
||||||
//print_fiche_titre($langs->trans("ECMAutoOrg"));
|
//print_fiche_titre($langs->trans("ECMAutoOrg"));
|
||||||
|
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/ecm/todo.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/ecm/search.php">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print '<td colspan="3">'.$langs->trans("ECMSearchByEntity").'</td></tr>';
|
print '<td colspan="3">'.$langs->trans("ECMSearchByEntity").'</td></tr>';
|
||||||
|
|||||||
78
htdocs/ecm/search.php
Normal file
78
htdocs/ecm/search.php
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdoc/ecm/earch.php
|
||||||
|
\ingroup ecm
|
||||||
|
\brief Page for search results
|
||||||
|
\version $Id$
|
||||||
|
\author Laurent Destailleur
|
||||||
|
*/
|
||||||
|
|
||||||
|
require("./pre.inc.php");
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php");
|
||||||
|
|
||||||
|
// Load traductions files
|
||||||
|
$langs->load("ecm");
|
||||||
|
$langs->load("companies");
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
// Load permissions
|
||||||
|
$user->getrights('ecm');
|
||||||
|
|
||||||
|
// Get parameters
|
||||||
|
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
|
||||||
|
|
||||||
|
// Permissions
|
||||||
|
if ($user->societe_id > 0)
|
||||||
|
{
|
||||||
|
$action = '';
|
||||||
|
$socid = $user->societe_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
$section=$_GET["section"];
|
||||||
|
if (! $section) $section='misc';
|
||||||
|
$upload_dir = $conf->ecm->dir_output.'/'.$section;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************
|
||||||
|
* ACTIONS
|
||||||
|
*
|
||||||
|
* Put here all code to do according to value of "action" parameter
|
||||||
|
********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************
|
||||||
|
* PAGE
|
||||||
|
*
|
||||||
|
* Put here all code to do according to value of "action" parameter
|
||||||
|
********************************************************************/
|
||||||
|
|
||||||
|
llxHeader();
|
||||||
|
|
||||||
|
$form=new Form($db);
|
||||||
|
|
||||||
|
print_fiche_titre($langs->trans("Search"));
|
||||||
|
|
||||||
|
//$head = societe_prepare_head($societe);
|
||||||
|
|
||||||
|
|
||||||
|
//dolibarr_fiche_head($head, 'document', $societe->nom);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($mesg) { print $mesg."<br>"; }
|
||||||
|
|
||||||
|
|
||||||
|
print $langs->trans("FeatureNotYetAvailable");
|
||||||
|
|
||||||
|
// End of page
|
||||||
|
$db->close();
|
||||||
|
|
||||||
|
llxFooter('$Date$ - $Revision$');
|
||||||
|
?>
|
||||||
@ -1,7 +1,43 @@
|
|||||||
# Dolibarr language file - en_US - ecm
|
# Dolibarr language file - en_US - ecm
|
||||||
MenuECM=Documents
|
MenuECM=Documents
|
||||||
DocsMine=My documents
|
DocsMine=My documents
|
||||||
|
DocsGenerated=Generated documents
|
||||||
|
DocsElements=Elements documents
|
||||||
DocsThirdParties=Documents third parties
|
DocsThirdParties=Documents third parties
|
||||||
DocsInvoices=Documents invoices
|
DocsContracts=Documents contracts
|
||||||
DocsProposals=Documents proposals
|
DocsProposals=Documents proposals
|
||||||
|
DocsOrders=Documents orders
|
||||||
|
DocsInvoices=Documents invoices
|
||||||
|
ECMNbOfDocs=Nb doc
|
||||||
|
ECMSection=Directory
|
||||||
|
ECMSectionManual=Manual directory
|
||||||
|
ECMSectionAuto=Automatic directory
|
||||||
|
ECMSections=Directories
|
||||||
|
ECMRoot=Root
|
||||||
|
ECMNewSection=New directory
|
||||||
|
ECMAddSection=Add a manual directory
|
||||||
|
ECMNewSection=New manual directory
|
||||||
|
ECMNewDocument=New document
|
||||||
|
ECMCreationDate=Creation date
|
||||||
|
ECMCreationUser=Creator
|
||||||
ECMArea=Electronic Content Management area
|
ECMArea=Electronic Content Management area
|
||||||
|
ECMAreaDesc=The Electronic Content Management area allows you to save, share and search quickly documents in Dolibarr.
|
||||||
|
ECMAreaDesc2=* Automatic directories are filled automatically when adding documents from card of an element.<br>* Manual directories can be used to save documents not linked to a particular element.
|
||||||
|
ECMSectionWasRemoved=Directory <b>%s</b> has been deleted.
|
||||||
|
ECMDocumentsSection=Document of directory
|
||||||
|
ECMSearchByKeywords=Search by keywords
|
||||||
|
ECMSearchByEntity=Search by object
|
||||||
|
ECMSectionOfDocuments=Directories of documents
|
||||||
|
ECMTypeManual=Manual
|
||||||
|
ECMTypeAuto=Automatic
|
||||||
|
ECMDocsByThirdParties=Documents linked to third parties
|
||||||
|
ECMDocsByProposals=Documents linked to proposals
|
||||||
|
ECMDocsByOrders=Documents linked to customers orders
|
||||||
|
ECMDocsByContracts=Documents linked to contracts
|
||||||
|
ECMDocsByInvoices=Documents linked to customers invoices
|
||||||
|
ECMManualOrg=Manual directory
|
||||||
|
ECMAutoOrg=Automatic directory
|
||||||
|
ECMNoDirecotyYet=No directory created
|
||||||
|
ShowECMSection=Show directory
|
||||||
|
DeleteSection=Remove directory
|
||||||
|
ConfirmDeleteSection=Can you confirm you want to delete the directory <b>%s</b> ?
|
||||||
|
|||||||
@ -42,10 +42,11 @@ DeStockReStockOnBill=Decrease/increase stocks on invoices/credit notes
|
|||||||
DeStockReStockOnValidateOrder=Decrease/increase stocks on orders notes
|
DeStockReStockOnValidateOrder=Decrease/increase stocks on orders notes
|
||||||
DeStockReStockOnShipment=Decrease/increase stocks on shipment
|
DeStockReStockOnShipment=Decrease/increase stocks on shipment
|
||||||
StockLimitShort=Limit
|
StockLimitShort=Limit
|
||||||
StockLimit=Stock limit
|
StockLimit=Stock limit for alerts
|
||||||
PhysicalStock=Physical stock
|
PhysicalStock=Physical stock
|
||||||
RealStock=Real Stock
|
RealStock=Real Stock
|
||||||
TheoreticalStock=Stock théorique
|
TheoreticalStock=Therocial stock
|
||||||
|
VirtualStock=Virtual stock
|
||||||
MininumStock=Minimum stock
|
MininumStock=Minimum stock
|
||||||
StockUp=Stock up
|
StockUp=Stock up
|
||||||
MininumStockShort=Stock min
|
MininumStockShort=Stock min
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
# Dolibarr language file - es_ES - ecm
|
# Dolibarr language file - es_ES - ecm
|
||||||
MenuECM=Documentos
|
MenuECM=Documentos
|
||||||
DocsMine=Mis documentos
|
DocsMine=Mis documentos
|
||||||
DocsGlobal=Documentos globales
|
|
||||||
DocsExternal=Documentos externos
|
|
||||||
DocsGenerated=Documentos generados
|
DocsGenerated=Documentos generados
|
||||||
DocsElements=Doocumentos elementos
|
DocsElements=Doocumentos elementos
|
||||||
DocsThirdParties=Documentos terceros
|
DocsThirdParties=Documentos terceros
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
# Dolibarr language file - fr_FR - ecm
|
# Dolibarr language file - fr_FR - ecm
|
||||||
MenuECM=Documents
|
MenuECM=Documents
|
||||||
DocsMine=Mes documents
|
DocsMine=Mes documents
|
||||||
DocsGlobal=Documents globaux
|
|
||||||
DocsExternal=Documents externes
|
|
||||||
DocsGenerated=Documents générés
|
DocsGenerated=Documents générés
|
||||||
DocsElements=Documents élements
|
DocsElements=Documents élements
|
||||||
DocsThirdParties=Documents tiers
|
DocsThirdParties=Documents tiers
|
||||||
|
|||||||
@ -42,10 +42,11 @@ DeStockReStockOnBill=D
|
|||||||
DeStockReStockOnValidateOrder=Décrémente/Incrémente les stocks sur les commandes
|
DeStockReStockOnValidateOrder=Décrémente/Incrémente les stocks sur les commandes
|
||||||
DeStockReStockOnShipment=Décrémente/Incrémente les stocks sur les expéditions
|
DeStockReStockOnShipment=Décrémente/Incrémente les stocks sur les expéditions
|
||||||
StockLimitShort=Seuil
|
StockLimitShort=Seuil
|
||||||
StockLimit=Seuil stock
|
StockLimit=Seuil alerte stock
|
||||||
PhysicalStock=Stock physique
|
PhysicalStock=Stock physique
|
||||||
RealStock=Stock réel
|
RealStock=Stock réel
|
||||||
TheoreticalStock=Stock théorique
|
TheoreticalStock=Stock théorique
|
||||||
|
VirtualStock=Stock théorique
|
||||||
MininumStock=Stock minimum
|
MininumStock=Stock minimum
|
||||||
StockUp=Stock maximum
|
StockUp=Stock maximum
|
||||||
MininumStockShort=Stock min
|
MininumStockShort=Stock min
|
||||||
|
|||||||
@ -854,27 +854,12 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
// TVA
|
// TVA
|
||||||
print '<tr><td>'.$langs->trans("VATRate").'</td><td>'.price2num($product->tva_tx,'MU').'%</td></tr>';
|
print '<tr><td>'.$langs->trans("VATRate").'</td><td>'.price2num($product->tva_tx,'MU').'%</td></tr>';
|
||||||
|
|
||||||
// Stock
|
|
||||||
if ($product->isproduct() && $conf->stock->enabled)
|
|
||||||
{
|
|
||||||
print '<tr><td>'.$langs->trans("Stock").'</td>';
|
|
||||||
if ($product->stock_reel < $product->seuil_stock_alerte)
|
|
||||||
{
|
|
||||||
print '<td>'.$product->stock_reel.' '.img_warning().' ('.$langs->trans("StockLimitShort").': '.$product->seuil_stock_alerte.')</td>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print "<td>".$product->stock_reel.'</td>';
|
|
||||||
}
|
|
||||||
print '</tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Description
|
// Description
|
||||||
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>'.nl2br($product->description).'</td></tr>';
|
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>'.nl2br($product->description).'</td></tr>';
|
||||||
|
|
||||||
// Durée
|
|
||||||
if ($product->isservice())
|
if ($product->isservice())
|
||||||
{
|
{
|
||||||
|
// Duration
|
||||||
print '<tr><td>'.$langs->trans("Duration").'</td><td>'.$product->duration_value.' ';
|
print '<tr><td>'.$langs->trans("Duration").'</td><td>'.$product->duration_value.' ';
|
||||||
if ($product->duration_value > 1)
|
if ($product->duration_value > 1)
|
||||||
{
|
{
|
||||||
@ -890,6 +875,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Weight / Volume
|
||||||
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
||||||
if ($product->weight != '')
|
if ($product->weight != '')
|
||||||
{
|
{
|
||||||
@ -995,6 +981,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
if ($product->isservice())
|
if ($product->isservice())
|
||||||
{
|
{
|
||||||
|
// Duration
|
||||||
print '<tr><td>'.$langs->trans("Duration").'</td><td colspan="2"><input name="duration_value" size="3" maxlength="5" value="'.$product->duration_value.'">';
|
print '<tr><td>'.$langs->trans("Duration").'</td><td colspan="2"><input name="duration_value" size="3" maxlength="5" value="'.$product->duration_value.'">';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<input name="duration_unit" type="radio" value="h"'.($product->duration_unit=='h'?' checked':'').'>'.$langs->trans("Hour");
|
print '<input name="duration_unit" type="radio" value="h"'.($product->duration_unit=='h'?' checked':'').'>'.$langs->trans("Hour");
|
||||||
@ -1011,13 +998,13 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Le poids et le volume ne concerne que les produits et pas les services
|
// Weight / Volume
|
||||||
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
||||||
print '<input name="weight" size="5" value="'.$product->weight.'">';
|
print '<input name="weight" size="5" value="'.$product->weight.'"> ';
|
||||||
print $html->select_measuring_units("weight_units", "weight", $product->weight_units);
|
print $html->select_measuring_units("weight_units", "weight", $product->weight_units);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("Volume").'</td><td>';
|
print '<tr><td>'.$langs->trans("Volume").'</td><td>';
|
||||||
print '<input name="volume" size="5" value="'.$product->volume.'">';
|
print '<input name="volume" size="5" value="'.$product->volume.'"> ';
|
||||||
print $html->select_measuring_units("volume_units", "volume", $product->volume_units);
|
print $html->select_measuring_units("volume_units", "volume", $product->volume_units);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -103,29 +103,6 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print $product->getLibStatut(2);
|
print $product->getLibStatut(2);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Stock
|
|
||||||
if ($product->isproduct() && $conf->stock->enabled)
|
|
||||||
{
|
|
||||||
print '<tr><td>'.$langs->trans("Stock").'</td>';
|
|
||||||
if ($product->no_stock)
|
|
||||||
{
|
|
||||||
print "<td>".$langs->trans("NoStockForThisProduct");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ($product->stock_reel <= $product->seuil_stock_alerte)
|
|
||||||
{
|
|
||||||
print '<td>'.img_warning().' '.$product->stock_reel.' Seuil : '.$product->seuil_stock_alerte;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print "<td>".$product->stock_reel;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
//show_stats_for_company($product,$socid);
|
|
||||||
|
|
||||||
// Graphs additionels generes pas les cron
|
// Graphs additionels generes pas les cron
|
||||||
$year = strftime('%Y',time());
|
$year = strftime('%Y',time());
|
||||||
$file = get_exdir($product->id, 3) . "ventes-".$year."-".$product->id.".png";
|
$file = get_exdir($product->id, 3) . "ventes-".$year."-".$product->id.".png";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
|
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
|
||||||
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||||
@ -42,7 +42,8 @@ if (! $user->rights->produit->lire || ! $product->type == 0 || ! $conf->stock->e
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -142,10 +143,15 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Stock
|
// Stock
|
||||||
print '<tr><td>'.$langs->trans("TotalStock").'</td>';
|
print '<tr><td>'.$langs->trans("StockLimit").'</td>';
|
||||||
|
print '<td>'.$product->seuil_stock_alerte.'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
|
// Stock
|
||||||
|
print '<tr><td>'.$langs->trans("PhysicalStock").'</td>';
|
||||||
if ($product->stock_reel < $product->seuil_stock_alerte)
|
if ($product->stock_reel < $product->seuil_stock_alerte)
|
||||||
{
|
{
|
||||||
print '<td>'.$product->stock_reel.' '.img_warning().' (Seuil: '.$product->seuil_stock_alerte.')</td>';
|
print '<td>'.$product->stock_reel.' '.img_warning().'</td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -153,6 +159,10 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
}
|
}
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
// Stock
|
||||||
|
print '<tr><td>'.$langs->trans("VirtualStock").'</td>';
|
||||||
|
print "<td>".$langs->trans("FeatureNotYetAvailable").'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
// Nbre de commande clients en cours
|
// Nbre de commande clients en cours
|
||||||
if ($conf->commande->enabled)
|
if ($conf->commande->enabled)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user