diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index ae87a35ea28..051e0ec8f8c 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -43,7 +42,6 @@ $modules = array( 'MEMBER' => 'FCKeditorForMembers', 'MAILING' => 'FCKeditorForMailing', 'DETAILS' => 'FCKeditorForProductDetails', -'DETAILS_PERSO' => 'FCKeditorForProductDetailsPerso' ); // Conditions pour que l'option soit proposée $conditions = array( @@ -53,7 +51,6 @@ $conditions = array( 'MEMBER' => $conf->adherent->enabled, 'MAILING' => $conf->mailing->enabled, 'DETAILS' => ($conf->facture->enabled||$conf->propal->enabled||$conf->commande->enabled), -'DETAILS_PERSO' => ($conf->facture->enabled||$conf->propal->enabled||$conf->commande->enabled) ); // Picto $picto = array( @@ -63,7 +60,6 @@ $picto = array( 'MEMBER' => 'user', 'MAILING' => 'email', 'DETAILS' => 'generic', -'DETAILS_PERSO' => 'generic' ); @@ -83,13 +79,6 @@ foreach($modules as $const => $desc) if ($_GET["action"] == 'disable_'.strtolower($const)) { dolibarr_del_const($db, "FCKEDITOR_ENABLE_".$const); - // Si fckeditor est desactivé dans les formulaires, - // on le désactive dans la description produit/service et dans la description personnalisée - if ($const == 'DETAILS') - { - dolibarr_del_const($db, "FCKEDITOR_ENABLE_PRODUCTDESC"); - dolibarr_del_const($db, "FCKEDITOR_ENABLE_DETAILS_PERSO"); - } Header("Location: fckeditor.php"); exit; } diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 6df00e4386e..8bfa60cdf12 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -66,10 +66,10 @@ else if (isset($_GET["propalid"]) && $_GET["propalid"] > 0) $dbtable='propal'; } -// Sécurité d'accès client et commerciaux +// S�curit� d'acc�s client et commerciaux $socid = restrictedArea($user, $module, $objectid, $dbtable); -// Nombre de ligne pour choix de produit/service prédéfinis +// Nombre de ligne pour choix de produit/service pr�d�finis $NBLINES=4; $form=new Form($db); @@ -179,7 +179,7 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer) $db->begin(); - // Si on a selectionné une propal à copier, on réalise la copie + // Si on a selectionn� une propal � copier, on r�alise la copie if($_POST['createmode']=='copy' && $_POST['copie_propal']) { if ($propal->fetch($_POST['copie_propal']) > 0) @@ -243,7 +243,7 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer) { $error=0; - // Insertion contact par defaut si défini + // Insertion contact par defaut si d�fini if ($_POST["contactidp"]) { $result=$propal->add_contact($_POST["contactidp"],'CUSTOMER','external'); @@ -322,13 +322,13 @@ if ($_POST['action'] == 'send') if ($_POST['sendto']) { - // Le destinataire a été fourni via le champ libre + // Le destinataire a �t� fourni via le champ libre $sendto = $_POST['sendto']; $sendtoid = 0; } elseif ($_POST['receiver']) { - // Le destinataire a été fourni via la liste déroulante + // Le destinataire a �t� fourni via la liste d�roulante if ($_POST['receiver'] < 0) // Id du tiers { $sendto = $propal->client->email; @@ -359,11 +359,11 @@ if ($_POST['action'] == 'send') } $actiontypeid=3; - $actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.
'; + $actionmsg ='Mail envoy� par '.$from.' � '.$sendto.'.
'; if ($message) { - $actionmsg.='Texte utilisé dans le corps du message:
'; + $actionmsg.='Texte utilis� dans le corps du message:
'; $actionmsg.=$message; } @@ -455,7 +455,7 @@ if ($_POST['action'] == 'send') { $langs->load("other"); $mesg='
'.$langs->trans('ErrorFailedToReadEntity',$langs->trans("Invoice")).'
'; - dolibarr_syslog('Impossible de lire les données de la facture. Le fichier facture n\'a peut-être pas été généré.'); + dolibarr_syslog('Impossible de lire les donn�es de la facture. Le fichier facture n\'a peut-�tre pas �t� g�n�r�.'); } } @@ -598,7 +598,7 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer) } /* - * Mise à jour d'une ligne dans la propale + * Mise � jour d'une ligne dans la propale */ if ($_POST['action'] == 'updateligne' && $user->rights->propale->creer && $_POST["save"] == $langs->trans("Save")) { @@ -658,7 +658,7 @@ if ($_POST['action'] == 'classin') $propal->set_project($user, $_POST['projetidp']); } -// Conditions de règlement +// Conditions de r�glement if ($_POST["action"] == 'setconditions') { $propal = new Propal($db); @@ -683,7 +683,7 @@ if ($_REQUEST['action'] == 'setremiseabsolue' && $user->rights->propale->creer) $_GET['propalid']=$_REQUEST['propalid']; } -// Mode de règlement +// Mode de r�glement if ($_POST["action"] == 'setmode') { $propal = new Propal($db); @@ -815,7 +815,7 @@ if ($_GET['propalid'] > 0) $rowspan=8; - // Société + // Soci�t� print ''.$langs->trans('Company').''.$societe->getNomUrl(1).''; print ''; @@ -896,8 +896,8 @@ if ($_GET['propalid'] > 0) print ''; - // date de livraison (conditionné sur PROPALE_ADD_SHIPPING_DATE car carac à - // gérer par les commandes et non les propal + // date de livraison (conditionn� sur PROPALE_ADD_SHIPPING_DATE car carac � + // g�rer par les commandes et non les propal if ($conf->expedition->enabled) { if ($conf->global->PROPALE_ADD_SHIPPING_DATE) @@ -949,7 +949,7 @@ if ($_GET['propalid'] > 0) } } - // Conditions et modes de règlement + // Conditions et modes de r�glement print ''; print '"; - print ''; print "\n"; - // Ajout produit produits/services personnalisés + // Ajout produit produits/services personnalis�s print ''; print ''; print ''; @@ -1426,8 +1426,8 @@ if ($_GET['propalid'] > 0) print '\n"; print '
'; print $langs->trans('PaymentConditionsShort'); @@ -1198,7 +1198,7 @@ if ($_GET['propalid'] > 0) print ''; if (($objp->info_bits & 2) == 2) { - // Ligne remise prédéfinie, on ne permet pas modif + // Ligne remise pr�d�finie, on ne permet pas modif } else { @@ -1255,7 +1255,7 @@ if ($_GET['propalid'] > 0) print ''; if (($objp->info_bits & 2) == 2) { - // Ligne remise prédéfinie, on permet pas modif + // Ligne remise pr�d�finie, on permet pas modif } else { @@ -1330,7 +1330,7 @@ if ($_GET['propalid'] > 0) } if ($_GET["action"] == 'editline') { - // éditeur wysiwyg + // �diteur wysiwyg if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); @@ -1379,7 +1379,7 @@ if ($_GET['propalid'] > 0) if ($conf->service->enabled) { print "
Si produit de type service à durée limitée: Du '; + print 'Si produit de type service � dur�e limit�e: Du '; print $html->select_date($objp->date_start,"date_start",0,0,$objp->date_start?0:1); print ' au '; print $html->select_date($objp->date_end,"date_end",0,0,$objp->date_end?0:1); @@ -1417,7 +1417,7 @@ if ($_GET['propalid'] > 0) print ' 
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('dp_desc','',100,'dolibarr_details'); @@ -1456,7 +1456,7 @@ if ($_GET['propalid'] > 0) print ''; - // Ajout de produits/services prédéfinis + // Ajout de produits/services pr�d�finis if ($conf->produit->enabled) { if ($conf->global->PRODUIT_USE_MARKUP) @@ -1501,8 +1501,8 @@ if ($_GET['propalid'] > 0) } if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print '
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('np_desc','',100,'dolibarr_details'); @@ -1530,7 +1530,7 @@ if ($_GET['propalid'] > 0) print "\n"; /* - * Formulaire cloture (signé ou non) + * Formulaire cloture (sign� ou non) */ $form_close = '
'; $form_close.= ''; @@ -1651,7 +1651,7 @@ if ($_GET['propalid'] > 0) /* - * Documents générés + * Documents g�n�r�s */ $filename=sanitize_string($propal->ref); $filedir=$conf->propal->dir_output . "/" . sanitize_string($propal->ref); @@ -1665,7 +1665,7 @@ if ($_GET['propalid'] > 0) /* - * Commandes rattachées + * Commandes rattach�es */ if($conf->commande->enabled) { @@ -1700,7 +1700,7 @@ if ($_GET['propalid'] > 0) print ''; // Date propale diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 40d24832d2c..1e77ae07e93 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -51,7 +51,7 @@ $user->getrights('expedition'); if (!$user->rights->commande->lire) accessforbidden(); -// Sécurité accès client +// S�curit� acc�s client $socid=0; if ($user->societe_id > 0) { @@ -68,7 +68,7 @@ if ($user->societe_id >0 && isset($_GET["id"]) && $_GET["id"]>0) -// Récupération de l'id de projet +// R�cup�ration de l'id de projet $projetid = 0; if ($_GET["projetid"]) { @@ -146,7 +146,7 @@ if ($_POST['action'] == 'add' && $user->rights->commande->creer) $commande->note = $_POST['note']; $commande->source = $_POST['source_id']; $commande->projetid = $_POST['projetid']; - //$commande->remise_absolue = $_POST['remise_absolue']; //la remise était appliquée sur les lignes et sur le total + //$commande->remise_absolue = $_POST['remise_absolue']; //la remise �tait appliqu�e sur les lignes et sur le total //$commande->remise_percent = $_POST['remise_percent']; $commande->ref_client = $_POST['ref_client']; $commande->modelpdf = $_POST['model']; @@ -172,7 +172,7 @@ if ($_POST['action'] == 'add' && $user->rights->commande->creer) if ($commande_id > 0) { - // Insertion contact par defaut si défini + // Insertion contact par defaut si d�fini if ($_POST["contactidp"]) { $result=$commande->add_contact($_POST["contactidp"],'CUSTOMER','external'); @@ -192,7 +192,7 @@ if ($_POST['action'] == 'add' && $user->rights->commande->creer) $action = ''; } - // Fin création facture, on l'affiche + // Fin cr�ation facture, on l'affiche if ($commande_id > 0 && ! $error) { $db->commit(); @@ -392,7 +392,7 @@ if ($_POST['action'] == 'addligne' && $user->rights->commande->creer) } /* - * Mise à jour d'une ligne dans la commande + * Mise � jour d'une ligne dans la commande */ if ($_POST['action'] == 'updateligne' && $user->rights->commande->creer && $_POST['save'] == $langs->trans('Save')) { @@ -422,12 +422,12 @@ if ($_POST['action'] == 'updateligne' && $user->rights->commande->creer && $_POS exit; } - $_GET['id']=$_POST['id']; // Pour réaffichage de la fiche en cours d'édition + $_GET['id']=$_POST['id']; // Pour r�affichage de la fiche en cours d'�dition } if ($_POST['action'] == 'updateligne' && $user->rights->commande->creer && $_POST['cancel'] == $langs->trans('Cancel')) { - Header('Location: fiche.php?id='.$_POST['id']); // Pour réaffichage de la fiche en cours d'édition + Header('Location: fiche.php?id='.$_POST['id']); // Pour r�affichage de la fiche en cours d'�dition exit; } @@ -510,10 +510,10 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post { /* * Generation de la commande - * définit dans /includes/modules/commande/modules_commande.php + * d�finit dans /includes/modules/commande/modules_commande.php */ - // Sauvegarde le dernier modèle choisi pour générer un document + // Sauvegarde le dernier mod�le choisi pour g�n�rer un document $commande = new Commande($db, 0, $_REQUEST['id']); $commande->fetch($_REQUEST['id']); if ($_REQUEST['model']) @@ -572,13 +572,13 @@ if ($_POST['action'] == 'send') if ($_POST['sendto']) { - // Le destinataire a été fourni via le champ libre + // Le destinataire a �t� fourni via le champ libre $sendto = $_POST['sendto']; $sendtoid = 0; } elseif ($_POST['receiver']) { - // Le destinataire a été fourni via la liste déroulante + // Le destinataire a �t� fourni via la liste d�roulante if ($_POST['receiver'] < 0) // Id du tiers { $sendto = $commande->client->email; @@ -609,11 +609,11 @@ if ($_POST['action'] == 'send') } $actiontypeid=8; - $actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.
'; + $actionmsg ='Mail envoy� par '.$from.' � '.$sendto.'.
'; if ($message) { - $actionmsg.='Texte utilisé dans le corps du message:
'; + $actionmsg.='Texte utilis� dans le corps du message:
'; $actionmsg.=$message; } @@ -705,7 +705,7 @@ if ($_POST['action'] == 'send') { $langs->load("other"); $mesg='
'.$langs->trans('ErrorFailedToReadEntity',$langs->trans("Invoice")).'
'; - dolibarr_syslog('Impossible de lire les données de la facture. Le fichier facture n\'a peut-être pas été généré.'); + dolibarr_syslog('Impossible de lire les donn�es de la facture. Le fichier facture n\'a peut-�tre pas �t� g�n�r�.'); } } @@ -822,12 +822,12 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) print ''; - // Conditions de règlement + // Conditions de r�glement print ''; - // Mode de règlement + // Mode de r�glement print ''; @@ -877,7 +877,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) if ($conf->global->PRODUCT_SHOW_WHEN_CREATE) { /* - * Services/produits prédéfinis + * Services/produits pr�d�finis */ $NBLINES=8; @@ -1022,7 +1022,7 @@ else */ if ($_GET['action'] == 'validate') { - // on vérifie si la facture est en numérotation provisoire + // on v�rifie si la facture est en num�rotation provisoire $ref = substr($commande->ref, 1, 4); if ($ref == 'PROV') { @@ -1102,7 +1102,7 @@ else print ''; - // Société + // Soci�t� print ''; print ''; print ''; @@ -1200,7 +1200,7 @@ else print ''; } - // Conditions et modes de règlement + // Conditions et modes de r�glement print ''; print ''; } - // Durée + // Dur�e print ''; // Description @@ -750,7 +750,7 @@ elseif ($_GET["id"] > 0) print ''; - // Durée + // Dur�e print ''; @@ -814,8 +814,8 @@ elseif ($_GET["id"] > 0) print '\n"; print ''; - // Durée + // Dur�e print ''; @@ -894,7 +894,7 @@ elseif ($_GET["id"] > 0) print '
'; /* - * Liste des actions propres à la propal + * Liste des actions propres � la propal */ $sql = 'SELECT id, '.$db->pdate('a.datea'). ' as da, label, note, fk_user_author' ; $sql .= ' FROM '.MAIN_DB_PREFIX.'actioncomm as a'; @@ -1762,7 +1762,7 @@ if ($_GET['propalid'] > 0) $liste[$key]=$value; } - // Créé l'objet formulaire mail + // Cr�� l'objet formulaire mail include_once('../html.formmail.class.php'); $formmail = new FormMail($db); $formmail->fromname = $user->fullname; @@ -1776,7 +1776,7 @@ if ($_GET['propalid'] > 0) $formmail->withdeliveryreceipt=1; // Tableau des substitutions $formmail->substit['__PROPREF__']=$propal->ref; - // Tableau des paramètres complémentaires + // Tableau des param�tres compl�mentaires $formmail->param['action']='send'; $formmail->param['models']='propal_send'; $formmail->param['propalid']=$propal->id; @@ -1929,7 +1929,7 @@ else $url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$objp->rowid; } - // Société + // Soci�t� print ''.img_object($langs->trans('ShowCompany'),'company').' '.$objp->nom.'
'.$langs->trans('PaymentConditionsShort').''; $html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id',-1,1); print '
'.$langs->trans('PaymentMode').''; $html->select_types_paiements($soc->mode_reglement,'mode_reglement_id'); print '
'.$langs->trans('Company').''.$soc->getNomUrl(1).'
'; print ''; - //Note public lorsque le module expedition n'est pas activé + //Note public lorsque le module expedition n'est pas activ� if (!$conf->projet->enabled) $nbrow--; if (!$conf->expedition->enabled) { @@ -1348,7 +1348,7 @@ else $text.= ' - '.$objp->product; $description=($conf->global->PRODUIT_DESC_IN_FORM?'':$objp->description); print $html->textwithtooltip($text,$description,3,'','',$i); - // Todo: voir si on insert ou pas en option les dates de début et de fin de service + // Todo: voir si on insert ou pas en option les dates de d�but et de fin de service //print_date_range($objp->date_start,$objp->date_end); if ($conf->global->PRODUIT_DESC_IN_FORM) { @@ -1413,7 +1413,7 @@ else print ''; print ''; - // Ajout produit produits/services personnalisés + // Ajout produit produits/services personnalis�s print ''; print ''; print ''; @@ -1558,8 +1558,8 @@ else $var=true; print ''; print ''; @@ -1622,8 +1622,8 @@ else if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print '
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('np_desc','',100,'dolibarr_details'); @@ -1659,7 +1659,7 @@ else print 'use_ajax && $conf->global->MAIN_CONFIRM_AJAX) { - // on vérifie si la commande est en numérotation provisoire + // on v�rifie si la commande est en num�rotation provisoire $ref = substr($commande->ref, 1, 4); if ($ref == 'PROV') { @@ -1785,7 +1785,7 @@ else print ''; // ancre /* - * Documents générés + * Documents g�n�r�s * */ $comref = sanitize_string($commande->ref); @@ -1841,7 +1841,7 @@ else print ''; + + print ''; } print '
'; print $langs->trans('PaymentConditionsShort'); @@ -1219,7 +1219,7 @@ else } print ''; if (($objp->info_bits & 2) == 2) { - // Ligne remise prédéfinie, on permet pas modif + // Ligne remise pr�d�finie, on permet pas modif } else { @@ -1485,7 +1485,7 @@ else print ' - '.nl2br($objp->product); print '
'; } - // éditeur wysiwyg + // �diteur wysiwyg if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); @@ -1550,7 +1550,7 @@ else print '
 
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('dp_desc','',100,'dolibarr_details'); @@ -1584,7 +1584,7 @@ else print ''; - // Ajout de produits/services prédéfinis + // Ajout de produits/services pr�d�finis if ($conf->produit->enabled) { print '
'; /* - * Liste des actions propres à la commande + * Liste des actions propres � la commande */ $sql = 'SELECT id, '.$db->pdate('a.datea'). ' as da, label, note, fk_user_author' ; $sql .= ' FROM '.MAIN_DB_PREFIX.'actioncomm as a'; @@ -1927,7 +1927,7 @@ else $liste[$key]=$value; } - // Créé l'objet formulaire mail + // Cr�� l'objet formulaire mail include_once('../html.formmail.class.php'); $formmail = new FormMail($db); $formmail->fromname = $user->fullname; @@ -1941,7 +1941,7 @@ else $formmail->withdeliveryreceipt=1; // Tableau des substitutions $formmail->substit['__ORDERREF__']=$commande->ref; - // Tableau des paramètres complémentaires + // Tableau des param�tres compl�mentaires $formmail->param['action']='send'; $formmail->param['models']='order_send'; $formmail->param['orderid']=$commande->id; @@ -1954,7 +1954,7 @@ else } else { - // Commande non trouvée + // Commande non trouv�e dolibarr_print_error($db); } } diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php index ae34ca822af..e912f527b32 100644 --- a/htdocs/compta/bank/graph.php +++ b/htdocs/compta/bank/graph.php @@ -693,6 +693,12 @@ if ($_GET["account"] || $_GET["ref"]) $file = "balance".$account.".png"; print ''; print '

'; + print ''; + print $langs->trans("GoBack"); + print ''; + print '
'; diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index bdeaf1585f1..c1b62b30f54 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2575,7 +2575,7 @@ else print '
'; // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('dp_desc','',100,'dolibarr_details'); @@ -2648,7 +2648,7 @@ else if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print '
'; // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('np_desc','',100,'dolibarr_details'); diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index d891c2cccfe..9569dc8160b 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -43,10 +43,10 @@ $langs->load("interventions"); $fichinterid = isset($_GET["id"])?$_GET["id"]:''; -// Sécurité d'accès client et commerciaux +// S�curit� d'acc�s client et commerciaux $socid = restrictedArea($user, 'ficheinter', $fichinterid, 'fichinter'); -//Récupère le résultat de la recherche Ajax +//R�cup�re le r�sultat de la recherche Ajax //Todo: voir pour le supprimer par la suite if ($conf->use_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT && $_POST['socid_id']) { @@ -88,7 +88,7 @@ if ($_POST["action"] == 'add') $result = $fichinter->create(); if ($result > 0) { - $_GET["id"]=$result; // Force raffraichissement sur fiche venant d'etre créée + $_GET["id"]=$result; // Force raffraichissement sur fiche venant d'etre cr��e $fichinterid=$result; } else @@ -116,11 +116,11 @@ if ($_POST["action"] == 'update') $fichinter->ref = $_POST["ref"]; $fichinter->update($_POST["id"]); - $_GET["id"]=$_POST["id"]; // Force raffraichissement sur fiche venant d'etre créée + $_GET["id"]=$_POST["id"]; // Force raffraichissement sur fiche venant d'etre cr��e } /* - * Générer ou regénérer le document PDF + * G�n�rer ou reg�n�rer le document PDF */ if ($_REQUEST['action'] == 'builddoc') // En get ou en post { @@ -210,7 +210,7 @@ if ($_POST['action'] == "addligne" && $user->rights->ficheinter->creer) } /* - * Mise à jour d'une ligne d'intervention + * Mise � jour d'une ligne d'intervention */ if ($_POST['action'] == 'updateligne' && $user->rights->ficheinter->creer && $_POST["save"] == $langs->trans("Save")) { @@ -598,7 +598,7 @@ elseif ($_GET["id"] > 0) print '
'.$langs->trans("TotalDuration").''.ConvertSecondToTime($fichinter->duree).'
'; print ''; // ancre pour retourner sur la ligne - // éditeur wysiwyg + // �diteur wysiwyg if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); @@ -768,7 +768,7 @@ elseif ($_GET["id"] > 0) $html->select_date($objp->date_intervention,'di',0,0,0,"date_intervention"); print ''; $html->select_duree('duration',$objp->duree); print '
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('np_desc','',100,'dolibarr_details'); @@ -832,7 +832,7 @@ elseif ($_GET["id"] > 0) $html->select_date(time(),'di',0,0,0,"addinter"); print ''; $html->select_duree('duration'); print '
"; } @@ -734,7 +734,7 @@ else print ' - '.nl2br($objp->product); print '
'; } - // éditeur wysiwyg + // �diteur wysiwyg if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); @@ -782,7 +782,7 @@ else print ''; print ''; - // Ajout produit produits/services personnalisés + // Ajout produit produits/services personnalis�s print ''; print ''; print ''; @@ -790,8 +790,8 @@ else $var=true; print ''; print ''; @@ -846,8 +846,8 @@ else if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print '
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('np_desc','',100,'dolibarr_details'); @@ -925,7 +925,7 @@ else print ''; // ancre /* - * Documents générés + * Documents g�n�r�s * */ $comfournref = sanitize_string($commande->ref); @@ -995,7 +995,7 @@ else if ( $user->rights->fournisseur->commande->receptionner && ($commande->statut == 3 ||$commande->statut == 4 )) { /** - * Réceptionner + * R�ceptionner */ $form = new Form($db); @@ -1003,7 +1003,7 @@ else print ''; print ''; print '
'; /* - * Documents générés + * Documents g�n�r�s */ $filename=sanitize_string($fichinter->ref); $filedir=$conf->fichinter->dir_output . "/".$fichinter->ref; diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 66fd817d32e..0fc196b5448 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -48,7 +48,7 @@ if (!$user->rights->fournisseur->commande->lire) accessforbidden(); $comclientid = isset($_GET["comid"])?$_GET["comid"]:''; -// Sécurité accés client +// S�curit� acc�s client $socid=0; if ($user->societe_id > 0) { @@ -56,7 +56,7 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } -// Récupération de l'id de projet +// R�cup�ration de l'id de projet $projetid = 0; if ($_GET["projetid"]) { @@ -159,7 +159,7 @@ if ($_POST['action'] == 'addligne' && $user->rights->fournisseur->commande->cree } /* - * Mise à jour d'une ligne dans la commande + * Mise � jour d'une ligne dans la commande */ if ($_POST['action'] == 'updateligne' && $user->rights->fournisseur->commande->creer && $_POST['save'] == $langs->trans('Save')) { @@ -189,12 +189,12 @@ if ($_POST['action'] == 'updateligne' && $user->rights->fournisseur->commande->c exit; } - $_GET['id']=$_POST['id']; // Pour réaffichage de la fiche en cours d'édition + $_GET['id']=$_POST['id']; // Pour r�affichage de la fiche en cours d'�dition } if ($_POST['action'] == 'updateligne' && $user->rights->fournisseur->commande->creer && $_POST['cancel'] == $langs->trans('Cancel')) { - Header('Location: fiche.php?id='.$_POST['id']); // Pour réaffichage de la fiche en cours d'édition + Header('Location: fiche.php?id='.$_POST['id']); // Pour r�affichage de la fiche en cours d'�dition exit; } @@ -335,10 +335,10 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post { /* * Generation de la commande - * définit dans /includes/modules/commande/modules_commande.php + * d�finit dans /includes/modules/commande/modules_commande.php */ - // Sauvegarde le dernier modèle choisi pour générer un document + // Sauvegarde le dernier mod�le choisi pour g�n�rer un document $commande = new CommandeFournisseur($db, 0, $_REQUEST['id']); $commande->fetch($_REQUEST['id']); if ($_REQUEST['model']) @@ -380,7 +380,7 @@ if ($action=='remove_file') /* - * Créé une commande + * Cr�� une commande */ if ($_GET["action"] == 'create') { @@ -482,7 +482,7 @@ else */ if ($_GET['action'] == 'valid') { - // on vérifie si la commande est en numérotation provisoire + // on v�rifie si la commande est en num�rotation provisoire $ref = substr($commande->ref, 1, 4); if ($ref == 'PROV') { @@ -511,7 +511,7 @@ else */ if ($_GET['action'] == 'approve') { - $html->form_confirm("fiche.php?id=$commande->id","Approuver la commande","Etes-vous sûr de vouloir approuver cette commande ?","confirm_approve"); + $html->form_confirm("fiche.php?id=$commande->id","Approuver la commande","Etes-vous s�r de vouloir approuver cette commande ?","confirm_approve"); print '
'; } /* @@ -520,7 +520,7 @@ else */ if ($_GET['action'] == 'refuse') { - $html->form_confirm("fiche.php?id=$commande->id","Refuser la commande","Etes-vous sûr de vouloir refuser cette commande ?","confirm_refuse"); + $html->form_confirm("fiche.php?id=$commande->id","Refuser la commande","Etes-vous s�r de vouloir refuser cette commande ?","confirm_refuse"); print '
'; } /* @@ -528,7 +528,7 @@ else */ if ($_GET['action'] == 'cancel') { - $html->form_confirm("fiche.php?id=$commande->id",$langs->trans("Cancel"),"Etes-vous sûr de vouloir annuler cette commande ?","confirm_cancel"); + $html->form_confirm("fiche.php?id=$commande->id",$langs->trans("Cancel"),"Etes-vous s�r de vouloir annuler cette commande ?","confirm_cancel"); print '
'; } @@ -590,7 +590,7 @@ else print '
'; if ($commande->methode_commande) { - print "Méthode : " .$commande->methode_commande; + print "M�thode : " .$commande->methode_commande; } print "
 
'; - // éditeur wysiwyg - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO) + // �diteur wysiwyg + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('dp_desc','',100,'dolibarr_details'); @@ -816,7 +816,7 @@ else print ''; - // Ajout de produits/services prédéfinis + // Ajout de produits/services pr�d�finis if ($conf->produit->enabled) { print '
'; - print ''; + print ''; print '\n"; @@ -1026,7 +1026,7 @@ else } else { - // Commande non trouvée + // Commande non trouv�e dolibarr_print_error($db); } } diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 4a70a7e612b..b61a97e4d37 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -716,7 +716,7 @@ ProductSetup=Products module setup NumberOfProductShowInSelect=Max number of products in combos select lists (0=no limit) ConfirmDeleteProductLineAbility=Confirmation of removal of a line produces in the forms ModifyProductDescAbility=Personalization of descriptions produced in the forms -ViewProductDescInFormAbility=Visualization of descriptions produced in the forms +ViewProductDescInFormAbility=Visualization of product descriptions in the forms (otherwise as popup tooltip) UseSearchToSelectProduct=Use a search form to choose a product (intead of using a list box) UseEcoTaxeAbility=Support Eco-Taxe (WEEE) SetDefaultBarcodeType=Default barcode type to use for products @@ -766,7 +766,7 @@ DeliveryOrderModel=Products deliveries receipt model DeliveriesOrderAbility=Products deliveries receipt ability ##### FCKeditor ##### ActivateFCKeditor=Activate FCKeditor for: -FCKeditorForMembers=WYSIWIG creation/edition of users' description and note +FCKeditorForUsers=WYSIWIG creation/edition of users' description and note FCKeditorForCompany=WYSIWIG creation/edition of companies' description and note FCKeditorForProduct=WYSIWIG creation/edition of products/services' description and note FCKeditorForMembers=WYSIWIG creation/edition of members' description and note diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index f7339868d0e..bf6a4d7cb76 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -715,7 +715,7 @@ ProductSetup=Configuration du module Produits NumberOfProductShowInSelect=Nombre de produits max dans les listes déroulantes (0=aucune limite) ConfirmDeleteProductLineAbility=Confirmation de suppression d'une ligne produit dans les formulaires ModifyProductDescAbility=Personnalisation des descriptions produits dans les formulaires -ViewProductDescInFormAbility=Visualisation des descriptions produits dans les formulaires +ViewProductDescInFormAbility=Visualisation des descriptions produits dans les formulaires (sinon en tant que tooltip) UseSearchToSelectProduct=Utiliser un formulaire de recherche pour choix d'un produit (plutôt que liste déroulante) UseEcoTaxeAbility=Prise en charge des éco-taxes (DEEE) SetDefaultBarcodeType=Type de code barre utilisé par défaut pour les produits diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index d407ec7141e..2c73d1e237a 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -270,14 +270,15 @@ if (! isset($_SESSION["dol_login"])) if (! empty($_POST["username"])) { // If test username/password asked, we define $test=false and $login var if ok, set $_SESSION["dol_loginmesg"] if ko - $ldapuserattr=$dolibarr_main_auth_ldap_login_attribute; $ldaphost=$dolibarr_main_auth_ldap_host; $ldapport=$dolibarr_main_auth_ldap_port; $ldapversion=$dolibarr_main_auth_ldap_version; + $ldapservertype=(empty($dolibarr_main_auth_ldap_servertype) ? 'openldap' : $dolibarr_main_auth_ldap_servertype); + + $ldapuserattr=$dolibarr_main_auth_ldap_login_attribute; $ldapdn=$dolibarr_main_auth_ldap_dn; $ldapadminlogin=$dolibarr_main_auth_ldap_admin_login; $ldapadminpass=$dolibarr_main_auth_ldap_admin_pass; - $ldapservertype=(empty($dolibarr_main_auth_ldap_servertype) ? 'openldap' : $dolibarr_main_auth_ldap_servertype); $ldapdebug=(empty($dolibarr_main_auth_ldap_debug) || $dolibarr_main_auth_ldap_debug=="false" ? false : true); if ($ldapdebug) print "DEBUG: Logging LDAP steps
\n"; @@ -325,34 +326,33 @@ if (! isset($_SESSION["dol_login"])) $ldap->searchPassword=$passwordtotest; $result=$ldap->connect_bind(); - if ($result > 0) - { - if ($result == 2) { - dolibarr_syslog("Authentification ok (en mode LDAP)"); - $login=$_POST["username"]; + if ($result == 2) + { + dolibarr_syslog("Authentification ok (en mode LDAP)"); + $login=$_POST["username"]; $test=false; - } - if ($result == 1) - { - dolibarr_syslog("Authentification ko bad password (en mode LDAP) pour '".$_POST["username"]."'"); + } + if ($result == 1) + { + dolibarr_syslog("Authentification ko bad password (en mode LDAP) pour '".$_POST["username"]."'"); sleep(1); $langs->load('main'); $langs->load('other'); $_SESSION["dol_loginmesg"]=$langs->trans("ErrorBadLoginPassword"); + } } - } - else - { - dolibarr_syslog("Authentification ko failed to connect to LDAP (en mode LDAP) pour '".$_POST["username"]."'"); + else + { + dolibarr_syslog("Authentification ko failed to connect to LDAP (en mode LDAP) pour '".$_POST["username"]."'"); sleep(1); $langs->load('main'); $langs->load('other'); $_SESSION["dol_loginmesg"]=$langs->trans("ErrorBadLoginPassword"); - } + } $ldap->close(); - } + } } if (! $login) @@ -384,7 +384,6 @@ if (! isset($_SESSION["dol_login"])) $ldap->searchPassword=$passwordtotest; $result=$ldap->connect_bind(); - if ($result > 0) { // On charge les attributs du user ldap
Réceptionner
R�ceptionner
Date de livraison'; print $form->select_date('','','','','',"commande"); print "