Simplification options fckeditor
This commit is contained in:
parent
6bae00d998
commit
536a5883e0
@ -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;
|
||||
}
|
||||
|
||||
@ -66,10 +66,10 @@ else if (isset($_GET["propalid"]) && $_GET["propalid"] > 0)
|
||||
$dbtable='propal';
|
||||
}
|
||||
|
||||
// Sécurité d'accès client et commerciaux
|
||||
// S<EFBFBD>curit<EFBFBD> d'acc<63>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<EFBFBD>d<EFBFBD>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<EFBFBD> une propal <20> 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<EFBFBD>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 <EFBFBD>t<EFBFBD> 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 <EFBFBD>t<EFBFBD> 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.'.<br>';
|
||||
$actionmsg ='Mail envoy<EFBFBD> par '.$from.' <20> '.$sendto.'.<br>';
|
||||
|
||||
if ($message)
|
||||
{
|
||||
$actionmsg.='Texte utilisé dans le corps du message:<br>';
|
||||
$actionmsg.='Texte utilis<EFBFBD> dans le corps du message:<br>';
|
||||
$actionmsg.=$message;
|
||||
}
|
||||
|
||||
@ -455,7 +455,7 @@ if ($_POST['action'] == 'send')
|
||||
{
|
||||
$langs->load("other");
|
||||
$mesg='<div class="error">'.$langs->trans('ErrorFailedToReadEntity',$langs->trans("Invoice")).'</div>';
|
||||
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<EFBFBD>es de la facture. Le fichier facture n\'a peut-<2D>tre pas <20>t<EFBFBD> g<>n<EFBFBD>r<EFBFBD>.');
|
||||
}
|
||||
}
|
||||
|
||||
@ -598,7 +598,7 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer)
|
||||
}
|
||||
|
||||
/*
|
||||
* Mise à jour d'une ligne dans la propale
|
||||
* Mise <EFBFBD> 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<EFBFBD>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<EFBFBD>glement
|
||||
if ($_POST["action"] == 'setmode')
|
||||
{
|
||||
$propal = new Propal($db);
|
||||
@ -815,7 +815,7 @@ if ($_GET['propalid'] > 0)
|
||||
|
||||
$rowspan=8;
|
||||
|
||||
// Société
|
||||
// Soci<EFBFBD>t<EFBFBD>
|
||||
print '<tr><td>'.$langs->trans('Company').'</td><td colspan="5">'.$societe->getNomUrl(1).'</td>';
|
||||
print '</tr>';
|
||||
|
||||
@ -896,8 +896,8 @@ if ($_GET['propalid'] > 0)
|
||||
print '</tr>';
|
||||
|
||||
|
||||
// date de livraison (conditionné sur PROPALE_ADD_SHIPPING_DATE car carac à
|
||||
// gérer par les commandes et non les propal
|
||||
// date de livraison (conditionn<EFBFBD> sur PROPALE_ADD_SHIPPING_DATE car carac <20>
|
||||
// g<EFBFBD>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<EFBFBD>glement
|
||||
print '<tr><td>';
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('PaymentConditionsShort');
|
||||
@ -1198,7 +1198,7 @@ if ($_GET['propalid'] > 0)
|
||||
print '<td class="nobordernopadding" nowrap="nowrap" align="left">';
|
||||
if (($objp->info_bits & 2) == 2)
|
||||
{
|
||||
// Ligne remise prédéfinie, on ne permet pas modif
|
||||
// Ligne remise pr<EFBFBD>d<EFBFBD>finie, on ne permet pas modif
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1255,7 +1255,7 @@ if ($_GET['propalid'] > 0)
|
||||
print '<td align="center">';
|
||||
if (($objp->info_bits & 2) == 2)
|
||||
{
|
||||
// Ligne remise prédéfinie, on permet pas modif
|
||||
// Ligne remise pr<EFBFBD>d<EFBFBD>finie, on permet pas modif
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1330,7 +1330,7 @@ if ($_GET['propalid'] > 0)
|
||||
}
|
||||
if ($_GET["action"] == 'editline')
|
||||
{
|
||||
// éditeur wysiwyg
|
||||
// <EFBFBD>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 "<tr $bc[$var]>";
|
||||
print '<td colspan="5">Si produit de type service à durée limitée: Du ';
|
||||
print '<td colspan="5">Si produit de type service <EFBFBD> dur<75>e limit<69>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 '<td colspan="4"> </td>';
|
||||
print "</tr>\n";
|
||||
|
||||
// Ajout produit produits/services personnalisés
|
||||
// Ajout produit produits/services personnalis<EFBFBD>s
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'?propalid='.$propal->id.'#add" method="post">';
|
||||
print '<input type="hidden" name="propalid" value="'.$propal->id.'">';
|
||||
print '<input type="hidden" name="action" value="addligne">';
|
||||
@ -1426,8 +1426,8 @@ if ($_GET['propalid'] > 0)
|
||||
|
||||
print '<tr '.$bc[$var].">\n";
|
||||
print '<td '.$colspan.'>';
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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 '</form>';
|
||||
|
||||
// Ajout de produits/services prédéfinis
|
||||
// Ajout de produits/services pr<EFBFBD>d<EFBFBD>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 '<br>';
|
||||
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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<EFBFBD> ou non)
|
||||
*/
|
||||
$form_close = '<form action="'.$_SERVER["PHP_SELF"].'?propalid='.$propal->id.'" method="post">';
|
||||
$form_close.= '<table class="border" width="100%">';
|
||||
@ -1651,7 +1651,7 @@ if ($_GET['propalid'] > 0)
|
||||
|
||||
|
||||
/*
|
||||
* Documents générés
|
||||
* Documents g<EFBFBD>n<EFBFBD>r<EFBFBD>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<EFBFBD>es
|
||||
*/
|
||||
if($conf->commande->enabled)
|
||||
{
|
||||
@ -1700,7 +1700,7 @@ if ($_GET['propalid'] > 0)
|
||||
print '</td><td valign="top" width="50%">';
|
||||
|
||||
/*
|
||||
* Liste des actions propres à la propal
|
||||
* Liste des actions propres <EFBFBD> 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<EFBFBD><EFBFBD> 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<EFBFBD>tres compl<70>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<EFBFBD>t<EFBFBD>
|
||||
print '<td><a href="'.$url.'">'.img_object($langs->trans('ShowCompany'),'company').' '.$objp->nom.'</a></td>';
|
||||
|
||||
// Date propale
|
||||
|
||||
@ -51,7 +51,7 @@ $user->getrights('expedition');
|
||||
if (!$user->rights->commande->lire) accessforbidden();
|
||||
|
||||
|
||||
// Sécurité accès client
|
||||
// S<EFBFBD>curit<EFBFBD> acc<63>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<EFBFBD>cup<EFBFBD>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 <EFBFBD>tait appliqu<71>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<EFBFBD>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<EFBFBD>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 <EFBFBD> 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<EFBFBD>affichage de la fiche en cours d'<27>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<EFBFBD>affichage de la fiche en cours d'<27>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<EFBFBD>finit dans /includes/modules/commande/modules_commande.php
|
||||
*/
|
||||
|
||||
// Sauvegarde le dernier modèle choisi pour générer un document
|
||||
// Sauvegarde le dernier mod<EFBFBD>le choisi pour g<>n<EFBFBD>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 <EFBFBD>t<EFBFBD> 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 <EFBFBD>t<EFBFBD> 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.'.<br>';
|
||||
$actionmsg ='Mail envoy<EFBFBD> par '.$from.' <20> '.$sendto.'.<br>';
|
||||
|
||||
if ($message)
|
||||
{
|
||||
$actionmsg.='Texte utilisé dans le corps du message:<br>';
|
||||
$actionmsg.='Texte utilis<EFBFBD> dans le corps du message:<br>';
|
||||
$actionmsg.=$message;
|
||||
}
|
||||
|
||||
@ -705,7 +705,7 @@ if ($_POST['action'] == 'send')
|
||||
{
|
||||
$langs->load("other");
|
||||
$mesg='<div class="error">'.$langs->trans('ErrorFailedToReadEntity',$langs->trans("Invoice")).'</div>';
|
||||
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<EFBFBD>es de la facture. Le fichier facture n\'a peut-<2D>tre pas <20>t<EFBFBD> g<>n<EFBFBD>r<EFBFBD>.');
|
||||
}
|
||||
}
|
||||
|
||||
@ -822,12 +822,12 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
// Conditions de règlement
|
||||
// Conditions de r<EFBFBD>glement
|
||||
print '<tr><td nowrap="nowrap">'.$langs->trans('PaymentConditionsShort').'</td><td>';
|
||||
$html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id',-1,1);
|
||||
print '</td></tr>';
|
||||
|
||||
// Mode de règlement
|
||||
// Mode de r<EFBFBD>glement
|
||||
print '<tr><td>'.$langs->trans('PaymentMode').'</td><td>';
|
||||
$html->select_types_paiements($soc->mode_reglement,'mode_reglement_id');
|
||||
print '</td></tr>';
|
||||
@ -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<EFBFBD>d<EFBFBD>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<EFBFBD>rifie si la facture est en num<75>rotation provisoire
|
||||
$ref = substr($commande->ref, 1, 4);
|
||||
if ($ref == 'PROV')
|
||||
{
|
||||
@ -1102,7 +1102,7 @@ else
|
||||
print '</tr>';
|
||||
|
||||
|
||||
// Société
|
||||
// Soci<EFBFBD>t<EFBFBD>
|
||||
print '<tr><td>'.$langs->trans('Company').'</td>';
|
||||
print '<td colspan="3">'.$soc->getNomUrl(1).'</td>';
|
||||
print '</tr>';
|
||||
@ -1200,7 +1200,7 @@ else
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// Conditions et modes de règlement
|
||||
// Conditions et modes de r<EFBFBD>glement
|
||||
print '<tr><td height="10">';
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('PaymentConditionsShort');
|
||||
@ -1219,7 +1219,7 @@ else
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
//Note public lorsque le module expedition n'est pas activé
|
||||
//Note public lorsque le module expedition n'est pas activ<EFBFBD>
|
||||
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<EFBFBD>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 '<td align="center">';
|
||||
if (($objp->info_bits & 2) == 2)
|
||||
{
|
||||
// Ligne remise prédéfinie, on permet pas modif
|
||||
// Ligne remise pr<EFBFBD>d<EFBFBD>finie, on permet pas modif
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1485,7 +1485,7 @@ else
|
||||
print ' - '.nl2br($objp->product);
|
||||
print '<br>';
|
||||
}
|
||||
// éditeur wysiwyg
|
||||
// <EFBFBD>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 '<td colspan="4"> </td>';
|
||||
print '</tr>';
|
||||
|
||||
// Ajout produit produits/services personnalisés
|
||||
// Ajout produit produits/services personnalis<EFBFBD>s
|
||||
print '<form action="fiche.php?id='.$id.'#add" method="post">';
|
||||
print '<input type="hidden" name="id" value="'.$id.'">';
|
||||
print '<input type="hidden" name="action" value="addligne">';
|
||||
@ -1558,8 +1558,8 @@ else
|
||||
$var=true;
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td>';
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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 '</form>';
|
||||
|
||||
// Ajout de produits/services prédéfinis
|
||||
// Ajout de produits/services pr<EFBFBD>d<EFBFBD>finis
|
||||
if ($conf->produit->enabled)
|
||||
{
|
||||
print '<tr class="liste_titre">';
|
||||
@ -1622,8 +1622,8 @@ else
|
||||
|
||||
if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print '<br>';
|
||||
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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 '<a class="butAction" ';
|
||||
if ($conf->use_ajax && $conf->global->MAIN_CONFIRM_AJAX)
|
||||
{
|
||||
// on vérifie si la commande est en numérotation provisoire
|
||||
// on v<EFBFBD>rifie si la commande est en num<75>rotation provisoire
|
||||
$ref = substr($commande->ref, 1, 4);
|
||||
if ($ref == 'PROV')
|
||||
{
|
||||
@ -1785,7 +1785,7 @@ else
|
||||
print '<a name="builddoc"></a>'; // ancre
|
||||
|
||||
/*
|
||||
* Documents générés
|
||||
* Documents g<EFBFBD>n<EFBFBD>r<EFBFBD>s
|
||||
*
|
||||
*/
|
||||
$comref = sanitize_string($commande->ref);
|
||||
@ -1841,7 +1841,7 @@ else
|
||||
print '</td><td valign="top" width="50%">';
|
||||
|
||||
/*
|
||||
* Liste des actions propres à la commande
|
||||
* Liste des actions propres <EFBFBD> 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<EFBFBD><EFBFBD> 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<EFBFBD>tres compl<70>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<EFBFBD>e
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
|
||||
@ -693,6 +693,12 @@ if ($_GET["account"] || $_GET["ref"])
|
||||
$file = "balance".$account.".png";
|
||||
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=bank&file='.$file.'" alt="" title="">';
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td align="center"><br>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?account='.$account.'">';
|
||||
print $langs->trans("GoBack");
|
||||
print '</a>';
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
print '</table>';
|
||||
|
||||
@ -2575,7 +2575,7 @@ else
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td>';
|
||||
// é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 '<br>';
|
||||
|
||||
// é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');
|
||||
|
||||
@ -43,10 +43,10 @@ $langs->load("interventions");
|
||||
|
||||
$fichinterid = isset($_GET["id"])?$_GET["id"]:'';
|
||||
|
||||
// Sécurité d'accès client et commerciaux
|
||||
// S<EFBFBD>curit<EFBFBD> d'acc<63>s client et commerciaux
|
||||
$socid = restrictedArea($user, 'ficheinter', $fichinterid, 'fichinter');
|
||||
|
||||
//Récupère le résultat de la recherche Ajax
|
||||
//R<EFBFBD>cup<EFBFBD>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<EFBFBD><EFBFBD>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<EFBFBD><EFBFBD>e
|
||||
}
|
||||
|
||||
/*
|
||||
* Générer ou regénérer le document PDF
|
||||
* G<EFBFBD>n<EFBFBD>rer ou reg<EFBFBD>n<EFBFBD>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 <EFBFBD> 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 '</tr>';
|
||||
}
|
||||
|
||||
// Durée
|
||||
// Dur<EFBFBD>e
|
||||
print '<tr><td>'.$langs->trans("TotalDuration").'</td><td>'.ConvertSecondToTime($fichinter->duree).'</td></tr>';
|
||||
|
||||
// Description
|
||||
@ -750,7 +750,7 @@ elseif ($_GET["id"] > 0)
|
||||
print '<td>';
|
||||
print '<a name="'.$objp->rowid.'"></a>'; // ancre pour retourner sur la ligne
|
||||
|
||||
// éditeur wysiwyg
|
||||
// <EFBFBD>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 '</td>';
|
||||
|
||||
// Durée
|
||||
// Dur<EFBFBD>e
|
||||
print '<td>';
|
||||
$html->select_duree('duration',$objp->duree);
|
||||
print '</td>';
|
||||
@ -814,8 +814,8 @@ elseif ($_GET["id"] > 0)
|
||||
|
||||
print '<tr '.$bc[$var].">\n";
|
||||
print '<td>';
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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 '</td>';
|
||||
|
||||
// Durée
|
||||
// Dur<EFBFBD>e
|
||||
print '<td>';
|
||||
$html->select_duree('duration');
|
||||
print '</td>';
|
||||
@ -894,7 +894,7 @@ elseif ($_GET["id"] > 0)
|
||||
|
||||
print '<table width="100%"><tr><td width="50%" valign="top">';
|
||||
/*
|
||||
* Documents générés
|
||||
* Documents g<EFBFBD>n<EFBFBD>r<EFBFBD>s
|
||||
*/
|
||||
$filename=sanitize_string($fichinter->ref);
|
||||
$filedir=$conf->fichinter->dir_output . "/".$fichinter->ref;
|
||||
|
||||
@ -48,7 +48,7 @@ if (!$user->rights->fournisseur->commande->lire) accessforbidden();
|
||||
|
||||
$comclientid = isset($_GET["comid"])?$_GET["comid"]:'';
|
||||
|
||||
// Sécurité accés client
|
||||
// S<EFBFBD>curit<EFBFBD> acc<63>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<EFBFBD>cup<EFBFBD>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 <EFBFBD> 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<EFBFBD>affichage de la fiche en cours d'<27>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<EFBFBD>affichage de la fiche en cours d'<27>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<EFBFBD>finit dans /includes/modules/commande/modules_commande.php
|
||||
*/
|
||||
|
||||
// Sauvegarde le dernier modèle choisi pour générer un document
|
||||
// Sauvegarde le dernier mod<EFBFBD>le choisi pour g<>n<EFBFBD>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<EFBFBD><EFBFBD> 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<EFBFBD>rifie si la commande est en num<75>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<EFBFBD>r de vouloir approuver cette commande ?","confirm_approve");
|
||||
print '<br />';
|
||||
}
|
||||
/*
|
||||
@ -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<EFBFBD>r de vouloir refuser cette commande ?","confirm_refuse");
|
||||
print '<br />';
|
||||
}
|
||||
/*
|
||||
@ -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<EFBFBD>r de vouloir annuler cette commande ?","confirm_cancel");
|
||||
print '<br />';
|
||||
}
|
||||
|
||||
@ -590,7 +590,7 @@ else
|
||||
print '</td><td width="50%" colspan="3">';
|
||||
if ($commande->methode_commande)
|
||||
{
|
||||
print "Méthode : " .$commande->methode_commande;
|
||||
print "M<EFBFBD>thode : " .$commande->methode_commande;
|
||||
}
|
||||
print "</td></tr>";
|
||||
}
|
||||
@ -734,7 +734,7 @@ else
|
||||
print ' - '.nl2br($objp->product);
|
||||
print '<br>';
|
||||
}
|
||||
// éditeur wysiwyg
|
||||
// <EFBFBD>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 '<td colspan="4"> </td>';
|
||||
print '</tr>';
|
||||
|
||||
// Ajout produit produits/services personnalisés
|
||||
// Ajout produit produits/services personnalis<EFBFBD>s
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$commande->id.'#add" method="post">';
|
||||
print '<input type="hidden" name="action" value="addligne">';
|
||||
print '<input type="hidden" name="id" value="'.$_REQUEST["id"].'">';
|
||||
@ -790,8 +790,8 @@ else
|
||||
$var=true;
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td>';
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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 '</form>';
|
||||
|
||||
// Ajout de produits/services prédéfinis
|
||||
// Ajout de produits/services pr<EFBFBD>d<EFBFBD>finis
|
||||
if ($conf->produit->enabled)
|
||||
{
|
||||
print '<tr class="liste_titre">';
|
||||
@ -846,8 +846,8 @@ else
|
||||
|
||||
if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print '<br>';
|
||||
|
||||
// éditeur wysiwyg
|
||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS_PERSO)
|
||||
// <EFBFBD>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 '<a name="builddoc"></a>'; // ancre
|
||||
|
||||
/*
|
||||
* Documents générés
|
||||
* Documents g<EFBFBD>n<EFBFBD>r<EFBFBD>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<EFBFBD>ceptionner
|
||||
*/
|
||||
$form = new Form($db);
|
||||
|
||||
@ -1003,7 +1003,7 @@ else
|
||||
print '<form action="fiche.php?id='.$commande->id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="livraison">';
|
||||
print '<table class="border" width="100%">';
|
||||
print '<tr class="liste_titre"><td colspan="2">Réceptionner</td></tr>';
|
||||
print '<tr class="liste_titre"><td colspan="2">R<EFBFBD>ceptionner</td></tr>';
|
||||
print '<tr><td>Date de livraison</td><td>';
|
||||
print $form->select_date('','','','','',"commande");
|
||||
print "</td></tr>\n";
|
||||
@ -1026,7 +1026,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
// Commande non trouvée
|
||||
// Commande non trouv<EFBFBD>e
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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<br>\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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user