Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
d309f22e55
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es>
|
/* Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2011-2018 Philippe Grand <philippe.grand@atoo-net.com>
|
* Copyright (C) 2011-2018 Philippe Grand <philippe.grand@atoo-net.com>
|
||||||
* Copyright (C) 2018 Charlene Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2018 Charlene Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -11,7 +11,6 @@ CACHE:
|
|||||||
theme/dolibarr_logo.png
|
theme/dolibarr_logo.png
|
||||||
support/
|
support/
|
||||||
support/index.php
|
support/index.php
|
||||||
support/online.php
|
|
||||||
|
|
||||||
support/default.css
|
support/default.css
|
||||||
support/helpcenter.png
|
support/helpcenter.png
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -215,7 +216,7 @@ class Contracts extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @url GET {id}/lines
|
* @url GET {id}/lines
|
||||||
*
|
*
|
||||||
* @return int
|
* @return array
|
||||||
*/
|
*/
|
||||||
function getLines($id)
|
function getLines($id)
|
||||||
{
|
{
|
||||||
@ -247,7 +248,7 @@ class Contracts extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @url POST {id}/lines
|
* @url POST {id}/lines
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int|bool
|
||||||
*/
|
*/
|
||||||
function postLine($id, $request_data = null)
|
function postLine($id, $request_data = null)
|
||||||
{
|
{
|
||||||
@ -300,7 +301,7 @@ class Contracts extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @url PUT {id}/lines/{lineid}
|
* @url PUT {id}/lines/{lineid}
|
||||||
*
|
*
|
||||||
* @return object
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function putLine($id, $lineid, $request_data = null)
|
function putLine($id, $lineid, $request_data = null)
|
||||||
{
|
{
|
||||||
@ -360,7 +361,7 @@ class Contracts extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @url PUT {id}/lines/{lineid}/activate
|
* @url PUT {id}/lines/{lineid}/activate
|
||||||
*
|
*
|
||||||
* @return object
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function activateLine($id, $lineid, $datestart, $dateend = null, $comment = null)
|
function activateLine($id, $lineid, $datestart, $dateend = null, $comment = null)
|
||||||
{
|
{
|
||||||
@ -398,7 +399,7 @@ class Contracts extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @url PUT {id}/lines/{lineid}/unactivate
|
* @url PUT {id}/lines/{lineid}/unactivate
|
||||||
*
|
*
|
||||||
* @return object
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function unactivateLine($id, $lineid, $datestart, $comment = null)
|
function unactivateLine($id, $lineid, $datestart, $comment = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -139,10 +140,10 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
|
|
||||||
if (! empty($conf->facture->enabled) && ! empty($user->rights->facture->lire))
|
if (! empty($conf->facture->enabled) && ! empty($user->rights->facture->lire))
|
||||||
{
|
{
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($showinvoicenb)
|
if ($showinvoicenb)
|
||||||
{
|
{
|
||||||
|
$langs->load("bills");
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
|
||||||
|
|
||||||
$showpointvalue = 1; $nocolor = 0;
|
$showpointvalue = 1; $nocolor = 0;
|
||||||
@ -202,6 +203,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($showpropalnb)
|
if ($showpropalnb)
|
||||||
{
|
{
|
||||||
|
$langs->load("propal");
|
||||||
include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propalestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propalestats.class.php';
|
||||||
|
|
||||||
$showpointvalue = 1; $nocolor = 0;
|
$showpointvalue = 1; $nocolor = 0;
|
||||||
@ -258,11 +260,10 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
|
|
||||||
if (! empty($conf->commande->enabled) && ! empty($user->rights->commande->lire))
|
if (! empty($conf->commande->enabled) && ! empty($user->rights->commande->lire))
|
||||||
{
|
{
|
||||||
$langs->load("orders");
|
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($showordernb)
|
if ($showordernb)
|
||||||
{
|
{
|
||||||
|
$langs->load("orders");
|
||||||
include_once DOL_DOCUMENT_ROOT.'/commande/class/commandestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/commande/class/commandestats.class.php';
|
||||||
|
|
||||||
$showpointvalue = 1; $nocolor = 0;
|
$showpointvalue = 1; $nocolor = 0;
|
||||||
|
|||||||
@ -348,32 +348,46 @@ class Conf
|
|||||||
if (! empty($this->fournisseur))
|
if (! empty($this->fournisseur))
|
||||||
{
|
{
|
||||||
$this->fournisseur->commande=new stdClass();
|
$this->fournisseur->commande=new stdClass();
|
||||||
$this->fournisseur->commande->dir_output=$rootfordata."/fournisseur/commande";
|
$this->fournisseur->commande->multidir_output=array($this->entity => $rootfordata."/fournisseur/commande");
|
||||||
$this->fournisseur->commande->dir_temp =$rootfordata."/fournisseur/commande/temp";
|
$this->fournisseur->commande->multidir_temp =array($this->entity => $rootfordata."/fournisseur/commande/temp");
|
||||||
|
$this->fournisseur->commande->dir_output=$rootfordata."/fournisseur/commande"; // For backward compatibility
|
||||||
|
$this->fournisseur->commande->dir_temp =$rootfordata."/fournisseur/commande/temp"; // For backward compatibility
|
||||||
$this->fournisseur->facture=new stdClass();
|
$this->fournisseur->facture=new stdClass();
|
||||||
$this->fournisseur->facture->dir_output =$rootfordata."/fournisseur/facture";
|
$this->fournisseur->facture->multidir_output=array($this->entity => $rootfordata."/fournisseur/facture");
|
||||||
$this->fournisseur->facture->dir_temp =$rootfordata."/fournisseur/facture/temp";
|
$this->fournisseur->facture->multidir_temp =array($this->entity => $rootfordata."/fournisseur/facture/temp");
|
||||||
|
$this->fournisseur->facture->dir_output =$rootfordata."/fournisseur/facture"; // For backward compatibility
|
||||||
|
$this->fournisseur->facture->dir_temp =$rootfordata."/fournisseur/facture/temp"; // For backward compatibility
|
||||||
$this->supplierproposal=new stdClass();
|
$this->supplierproposal=new stdClass();
|
||||||
$this->supplierproposal->dir_output=$rootfordata."/supplier_proposal";
|
$this->supplierproposal->multidir_output=array($this->entity => $rootfordata."/supplier_proposal");
|
||||||
$this->supplierproposal->dir_temp=$rootfordata."/supplier_proposal/temp";
|
$this->supplierproposal->multidir_temp =array($this->entity => $rootfordata."/supplier_proposal/temp");
|
||||||
|
$this->supplierproposal->dir_output=$rootfordata."/supplier_proposal"; // For backward compatibility
|
||||||
|
$this->supplierproposal->dir_temp=$rootfordata."/supplier_proposal/temp"; // For backward compatibility
|
||||||
$this->fournisseur->payment=new stdClass();
|
$this->fournisseur->payment=new stdClass();
|
||||||
$this->fournisseur->payment->dir_output =$rootfordata."/fournisseur/payment";
|
$this->fournisseur->payment->multidir_output=array($this->entity => $rootfordata."/fournisseur/payment");
|
||||||
$this->fournisseur->payment->dir_temp =$rootfordata."/fournisseur/payment/temp";
|
$this->fournisseur->payment->multidir_temp =array($this->entity => $rootfordata."/fournisseur/payment/temp");
|
||||||
|
$this->fournisseur->payment->dir_output =$rootfordata."/fournisseur/payment"; // For backward compatibility
|
||||||
|
$this->fournisseur->payment->dir_temp =$rootfordata."/fournisseur/payment/temp"; // For backward compatibility
|
||||||
|
|
||||||
// To prepare split of module fournisseur into fournisseur + supplier_order + supplier_invoice
|
// To prepare split of module fournisseur into fournisseur + supplier_order + supplier_invoice
|
||||||
if (! empty($this->fournisseur->enabled) && empty($this->global->MAIN_USE_NEW_SUPPLIERMOD)) // By default, if module supplier is on, we set new properties
|
if (! empty($this->fournisseur->enabled) && empty($this->global->MAIN_USE_NEW_SUPPLIERMOD)) // By default, if module supplier is on, we set new properties
|
||||||
{
|
{
|
||||||
$this->supplier_order=new stdClass();
|
$this->supplier_order=new stdClass();
|
||||||
$this->supplier_order->enabled=1;
|
$this->supplier_order->enabled=1;
|
||||||
$this->supplier_order->dir_output=$rootfordata."/fournisseur/commande";
|
$this->supplier_order->multidir_output=array($this->entity => $rootfordata."/fournisseur/commande");
|
||||||
$this->supplier_order->dir_temp=$rootfordata."/fournisseur/commande/temp";
|
$this->supplier_order->multidir_temp =array($this->entity => $rootfordata."/fournisseur/commande/temp");
|
||||||
|
$this->supplier_order->dir_output=$rootfordata."/fournisseur/commande"; // For backward compatibility
|
||||||
|
$this->supplier_order->dir_temp=$rootfordata."/fournisseur/commande/temp"; // For backward compatibility
|
||||||
$this->supplier_invoice=new stdClass();
|
$this->supplier_invoice=new stdClass();
|
||||||
$this->supplier_invoice->enabled=1;
|
$this->supplier_invoice->enabled=1;
|
||||||
$this->supplier_invoice->dir_output=$rootfordata."/fournisseur/facture";
|
$this->supplier_invoice->multidir_output=array($this->entity => $rootfordata."/fournisseur/facture");
|
||||||
$this->supplier_invoice->dir_temp=$rootfordata."/fournisseur/facture/temp";
|
$this->supplier_invoice->multidir_temp =array($this->entity => $rootfordata."/fournisseur/facture/temp");
|
||||||
|
$this->supplier_invoice->dir_output=$rootfordata."/fournisseur/facture"; // For backward compatibility
|
||||||
|
$this->supplier_invoice->dir_temp=$rootfordata."/fournisseur/facture/temp"; // For backward compatibility
|
||||||
$this->supplierproposal=new stdClass();
|
$this->supplierproposal=new stdClass();
|
||||||
$this->supplierproposal->dir_output=$rootfordata."/supplier_proposal";
|
$this->supplierproposal->multidir_output=array($this->entity => $rootfordata."/supplier_proposal");
|
||||||
$this->supplierproposal->dir_temp=$rootfordata."/supplier_proposal/temp";
|
$this->supplierproposal->multidir_temp =array($this->entity => $rootfordata."/supplier_proposal/temp");
|
||||||
|
$this->supplierproposal->dir_output=$rootfordata."/supplier_proposal"; // For backward compatibility
|
||||||
|
$this->supplierproposal->dir_temp=$rootfordata."/supplier_proposal/temp"; // For backward compatibility
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3283,17 +3283,17 @@ class Form
|
|||||||
if ($empty && empty($arraytypes['code'])) continue;
|
if ($empty && empty($arraytypes['code'])) continue;
|
||||||
|
|
||||||
if ($format == 0) print '<option value="'.$id.'"';
|
if ($format == 0) print '<option value="'.$id.'"';
|
||||||
if ($format == 1) print '<option value="'.$arraytypes['code'].'"';
|
elseif ($format == 1) print '<option value="'.$arraytypes['code'].'"';
|
||||||
if ($format == 2) print '<option value="'.$arraytypes['code'].'"';
|
elseif ($format == 2) print '<option value="'.$arraytypes['code'].'"';
|
||||||
if ($format == 3) print '<option value="'.$id.'"';
|
elseif ($format == 3) print '<option value="'.$id.'"';
|
||||||
// Si selected est text, on compare avec code, sinon avec id
|
// Si selected est text, on compare avec code, sinon avec id
|
||||||
if (preg_match('/[a-z]/i', $selected) && $selected == $arraytypes['code']) print ' selected';
|
if (preg_match('/[a-z]/i', $selected) && $selected == $arraytypes['code']) print ' selected';
|
||||||
elseif ($selected == $id) print ' selected';
|
elseif ($selected == $id) print ' selected';
|
||||||
print '>';
|
print '>';
|
||||||
if ($format == 0) $value=($maxlength?dol_trunc($arraytypes['label'],$maxlength):$arraytypes['label']);
|
if ($format == 0) $value=($maxlength?dol_trunc($arraytypes['label'],$maxlength):$arraytypes['label']);
|
||||||
if ($format == 1) $value=$arraytypes['code'];
|
elseif ($format == 1) $value=$arraytypes['code'];
|
||||||
if ($format == 2) $value=($maxlength?dol_trunc($arraytypes['label'],$maxlength):$arraytypes['label']);
|
elseif ($format == 2) $value=($maxlength?dol_trunc($arraytypes['label'],$maxlength):$arraytypes['label']);
|
||||||
if ($format == 3) $value=$arraytypes['code'];
|
elseif ($format == 3) $value=$arraytypes['code'];
|
||||||
print $value?$value:' ';
|
print $value?$value:' ';
|
||||||
print '</option>';
|
print '</option>';
|
||||||
}
|
}
|
||||||
@ -4589,6 +4589,7 @@ class Form
|
|||||||
*
|
*
|
||||||
* @param string $selected preselected currency code
|
* @param string $selected preselected currency code
|
||||||
* @param string $htmlname name of HTML select list
|
* @param string $htmlname name of HTML select list
|
||||||
|
* @deprecated
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function select_currency($selected='',$htmlname='currency_id')
|
function select_currency($selected='',$htmlname='currency_id')
|
||||||
@ -4976,7 +4977,7 @@ class Form
|
|||||||
* @param int $fullday When a checkbox with this html name is on, hour and day are set with 00:00 or 23:59
|
* @param int $fullday When a checkbox with this html name is on, hour and day are set with 00:00 or 23:59
|
||||||
* @param string $addplusone Add a link "+1 hour". Value must be name of another select_date field.
|
* @param string $addplusone Add a link "+1 hour". Value must be name of another select_date field.
|
||||||
* @param datetime $adddateof Add a link "Date of invoice" using the following date.
|
* @param datetime $adddateof Add a link "Date of invoice" using the following date.
|
||||||
* @return string|null Nothing or string if nooutput is 1
|
* @return string|void Nothing or string if nooutput is 1
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see form_date, select_month, select_year, select_dayofweek
|
* @see form_date, select_month, select_year, select_dayofweek
|
||||||
*/
|
*/
|
||||||
@ -5374,7 +5375,7 @@ class Form
|
|||||||
* if 'textselect' input hour is in text and input min is a combo
|
* if 'textselect' input hour is in text and input min is a combo
|
||||||
* @param integer $minunderhours If 1, show minutes selection under the hours
|
* @param integer $minunderhours If 1, show minutes selection under the hours
|
||||||
* @param int $nooutput Do not output html string but return it
|
* @param int $nooutput Do not output html string but return it
|
||||||
* @return string|null
|
* @return string|void
|
||||||
*/
|
*/
|
||||||
function select_duration($prefix, $iSecond='', $disabled=0, $typehour='select', $minunderhours=0, $nooutput=0)
|
function select_duration($prefix, $iSecond='', $disabled=0, $typehour='select', $minunderhours=0, $nooutput=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -884,15 +884,13 @@ class FormFile
|
|||||||
$out='';
|
$out='';
|
||||||
$this->infofiles=array('nboffiles'=>0,'extensions'=>array(),'files'=>array());
|
$this->infofiles=array('nboffiles'=>0,'extensions'=>array(),'files'=>array());
|
||||||
|
|
||||||
|
$entity = 1; // Without multicompany
|
||||||
|
|
||||||
// Get object entity
|
// Get object entity
|
||||||
if (empty($conf->multicompany->enabled))
|
if (! empty($conf->multicompany->enabled))
|
||||||
{
|
|
||||||
$entity = $conf->entity;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
preg_match('/\/([0-9]+)\/[^\/]+\/'.preg_quote($modulesubdir,'/').'$/', $filedir, $regs);
|
preg_match('/\/([0-9]+)\/[^\/]+\/'.preg_quote($modulesubdir,'/').'$/', $filedir, $regs);
|
||||||
$entity = ((! empty($regs[1]) && $regs[1] > 1) ? $regs[1] : $conf->entity);
|
$entity = ((! empty($regs[1]) && $regs[1] > 1) ? $regs[1] : 1); // If entity id not found in $filedir this is entity 1 by default
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get list of files starting with name of ref (but not followed by "-" to discard uploaded files and get only generated files)
|
// Get list of files starting with name of ref (but not followed by "-" to discard uploaded files and get only generated files)
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -354,6 +355,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -369,6 +371,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($tmparray as $key=>$value)
|
foreach($tmparray as $key=>$value)
|
||||||
@ -386,6 +389,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -419,9 +423,11 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -445,6 +451,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
* Copyright (C) 2018 Philippe Grand <philippe.grand@atoo-net.com>
|
* Copyright (C) 2018 Philippe Grand <philippe.grand@atoo-net.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -347,6 +347,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -362,6 +363,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make substitutions into odt of user info
|
// Make substitutions into odt of user info
|
||||||
@ -383,6 +385,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Make substitutions into odt of mysoc
|
// Make substitutions into odt of mysoc
|
||||||
@ -404,6 +407,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Make substitutions into odt of thirdparty
|
// Make substitutions into odt of thirdparty
|
||||||
@ -423,6 +427,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of object + external modules
|
// Replace tags of object + external modules
|
||||||
@ -446,6 +451,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -478,9 +484,11 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -504,6 +512,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -517,6 +526,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -525,6 +535,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -278,7 +278,7 @@ class pdf_standard extends ModeleExpenseReport
|
|||||||
$pagenb=0;
|
$pagenb=0;
|
||||||
$pdf->SetDrawColor(128,128,128);
|
$pdf->SetDrawColor(128,128,128);
|
||||||
|
|
||||||
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref_number));
|
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
||||||
$pdf->SetSubject($outputlangs->transnoentities("Trips"));
|
$pdf->SetSubject($outputlangs->transnoentities("Trips"));
|
||||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||||
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -358,6 +359,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -373,6 +375,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define substitution array
|
// Define substitution array
|
||||||
@ -412,6 +415,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -444,9 +448,11 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -470,6 +476,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -483,6 +490,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
}catch (Exception $e){
|
}catch (Exception $e){
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -491,6 +499,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@products.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@products.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -368,6 +369,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -384,6 +386,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define substitution array
|
// Define substitution array
|
||||||
@ -420,6 +423,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -442,9 +446,11 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch (SegmentException $e)
|
catch (SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -468,6 +474,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -481,6 +488,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -489,6 +497,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2013 Florian Henry <florian.henry@ope-concept.pro>
|
* Copyright (C) 2013 Florian Henry <florian.henry@ope-concept.pro>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -596,10 +597,9 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
'DELIMITER_RIGHT' => '}'
|
'DELIMITER_RIGHT' => '}'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
} catch (Exception $e) {
|
||||||
catch(Exception $e)
|
|
||||||
{
|
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -643,6 +643,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -672,9 +673,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -721,9 +724,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlinestaskres->merge();
|
$listlinestaskres->merge();
|
||||||
@ -768,9 +773,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlinestasktime->merge();
|
$listlinestasktime->merge();
|
||||||
@ -806,9 +813,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlinestasktime->merge();
|
$listlinestasktime->merge();
|
||||||
@ -837,9 +846,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch (SegmentException $e)
|
catch (SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listtasksfiles->merge();
|
$listtasksfiles->merge();
|
||||||
@ -881,9 +892,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -938,9 +951,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -1064,7 +1079,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
'table' => 'actioncomm',
|
'table' => 'actioncomm',
|
||||||
'disableamount' => 1,
|
'disableamount' => 1,
|
||||||
'test' => $conf->agenda->enabled && $user->rights->agenda->allactions->lire
|
'test' => $conf->agenda->enabled && $user->rights->agenda->allactions->lire
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
//Insert reference
|
//Insert reference
|
||||||
@ -1137,9 +1152,11 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -1148,9 +1165,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
$odfHandler->mergeSegment($listlines);
|
$odfHandler->mergeSegment($listlines);
|
||||||
}
|
}
|
||||||
}
|
} catch(OdfException $e) {
|
||||||
catch(OdfException $e)
|
|
||||||
{
|
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
dol_syslog($this->error, LOG_WARNING);
|
dol_syslog($this->error, LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
@ -1162,9 +1177,8 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$odfHandler->setVars($key, $value, true, 'UTF-8');
|
$odfHandler->setVars($key, $value, true, 'UTF-8');
|
||||||
}
|
} catch (OdfException $e) {
|
||||||
catch(OdfException $e)
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1181,12 +1195,12 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
try {
|
try {
|
||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e){
|
} catch (Exception $e){
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2013 Florian Henry <florian.henry@ope-concept.pro>
|
* Copyright (C) 2013 Florian Henry <florian.henry@ope-concept.pro>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -560,9 +561,8 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
{
|
{
|
||||||
$odfHandler->setVars($key, $value, true, 'UTF-8');
|
$odfHandler->setVars($key, $value, true, 'UTF-8');
|
||||||
}
|
}
|
||||||
}
|
} catch (OdfException $e) {
|
||||||
catch(OdfException $e)
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -577,15 +577,12 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
complete_substitutions_array($tmparray, $outputlangs, $object);
|
complete_substitutions_array($tmparray, $outputlangs, $object);
|
||||||
foreach($tmparray as $key => $val)
|
foreach($tmparray as $key => $val)
|
||||||
{
|
{
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
$odfHandler->setVars($key, $val, true, 'UTF-8');
|
$odfHandler->setVars($key, $val, true, 'UTF-8');
|
||||||
}
|
} catch (OdfException $e) {
|
||||||
catch(OdfException $e)
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
{
|
} catch(SegmentException $e) {
|
||||||
}
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
catch(SegmentException $e)
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -623,15 +620,13 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
|
|
||||||
foreach($tmparray as $key => $val)
|
foreach($tmparray as $key => $val)
|
||||||
{
|
{
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
$listlinestaskres->setVars($key, $val, true, 'UTF-8');
|
$listlinestaskres->setVars($key, $val, true, 'UTF-8');
|
||||||
|
} catch (OdfException $e) {
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch (SegmentException $e) {
|
||||||
{
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
|
||||||
catch(SegmentException $e)
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlinestaskres->merge();
|
$listlinestaskres->merge();
|
||||||
@ -677,9 +672,11 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlinestasktime->merge();
|
$listlinestasktime->merge();
|
||||||
@ -710,9 +707,11 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listtasksfiles->merge();
|
$listtasksfiles->merge();
|
||||||
@ -752,9 +751,11 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -810,9 +811,11 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -839,6 +842,7 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -847,6 +851,7 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -381,6 +382,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -397,6 +399,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define substitution array
|
// Define substitution array
|
||||||
@ -433,6 +436,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -465,9 +469,11 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -491,6 +497,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -504,6 +511,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -512,6 +520,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Laurent Destailleur <ely@users.sourceforge.net>
|
/* Copyright (C) 2010-2011 Laurent Destailleur <ely@users.sourceforge.net>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
* the Free Software Foundation; either version 3 of the License, or
|
||||||
@ -276,6 +278,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
//print $odfHandler->__toString()."\n";
|
//print $odfHandler->__toString()."\n";
|
||||||
@ -323,9 +326,11 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -370,6 +375,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
// setVars failed, probably because key not found
|
// setVars failed, probably because key not found
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -382,6 +388,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -395,6 +402,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -413,6 +421,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
}catch (Exception $e){
|
}catch (Exception $e){
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@stocks.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@stocks.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -368,6 +369,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -384,6 +386,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define substitution array
|
// Define substitution array
|
||||||
@ -420,6 +423,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -442,9 +446,11 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -468,6 +474,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -481,6 +488,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -489,6 +497,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -377,6 +378,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -392,6 +394,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define substitution array
|
// Define substitution array
|
||||||
@ -424,6 +427,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -456,9 +460,11 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
catch(SegmentException $e)
|
catch(SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -482,6 +488,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -495,6 +502,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -503,6 +511,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_INFO);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -343,6 +344,7 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -377,6 +379,7 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
}
|
}
|
||||||
catch(OdfException $e)
|
catch(OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -389,6 +392,7 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,6 +406,7 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -410,6 +415,7 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -361,10 +362,9 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
'DELIMITER_RIGHT' => '}'
|
'DELIMITER_RIGHT' => '}'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
} catch (Exception $e) {
|
||||||
catch(Exception $e)
|
|
||||||
{
|
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// After construction $odfHandler->contentXml contains content and
|
// After construction $odfHandler->contentXml contains content and
|
||||||
@ -380,6 +380,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make substitutions into odt
|
// Make substitutions into odt
|
||||||
@ -416,6 +417,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace tags of lines
|
// Replace tags of lines
|
||||||
@ -452,9 +454,11 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
catch (SegmentException $e)
|
catch (SegmentException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listlines->merge();
|
$listlines->merge();
|
||||||
@ -478,6 +482,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
}
|
}
|
||||||
catch (OdfException $e)
|
catch (OdfException $e)
|
||||||
{
|
{
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -491,6 +496,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
$odfHandler->exportAsAttachedPDF($file);
|
$odfHandler->exportAsAttachedPDF($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -499,6 +505,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
$odfHandler->saveToDisk($file);
|
$odfHandler->saveToDisk($file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->error=$e->getMessage();
|
$this->error=$e->getMessage();
|
||||||
|
dol_syslog($e->getMessage(), LOG_WARNING);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4467,8 +4467,8 @@ function migrate_delete_old_files($db,$langs,$conf)
|
|||||||
DOL_DOCUMENT_ROOT.'/user/class/api_user.class.php',
|
DOL_DOCUMENT_ROOT.'/user/class/api_user.class.php',
|
||||||
DOL_DOCUMENT_ROOT.'/product/class/api_product.class.php',
|
DOL_DOCUMENT_ROOT.'/product/class/api_product.class.php',
|
||||||
DOL_DOCUMENT_ROOT.'/societe/class/api_contact.class.php',
|
DOL_DOCUMENT_ROOT.'/societe/class/api_contact.class.php',
|
||||||
DOL_DOCUMENT_ROOT.'/societe/class/api_thirdparty.class.php'
|
DOL_DOCUMENT_ROOT.'/societe/class/api_thirdparty.class.php',
|
||||||
|
DOL_DOCUMENT_ROOT.'/support/online.php'
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($filetodeletearray as $filetodelete)
|
foreach ($filetodeletearray as $filetodelete)
|
||||||
|
|||||||
@ -565,11 +565,11 @@ class Project extends CommonObject
|
|||||||
|
|
||||||
if ($type == 'agenda')
|
if ($type == 'agenda')
|
||||||
{
|
{
|
||||||
$sql = "SELECT id as rowid FROM " . MAIN_DB_PREFIX . "actioncomm WHERE fk_project IN (". $ids .")";
|
$sql = "SELECT id as rowid FROM " . MAIN_DB_PREFIX . "actioncomm WHERE fk_project IN (". $ids .") AND entity IN (".getEntity('agenda').")";
|
||||||
}
|
}
|
||||||
elseif ($type == 'expensereport')
|
elseif ($type == 'expensereport')
|
||||||
{
|
{
|
||||||
$sql = "SELECT ed.rowid FROM " . MAIN_DB_PREFIX . "expensereport as e, " . MAIN_DB_PREFIX . "expensereport_det as ed WHERE e.rowid = ed.fk_expensereport AND ed.fk_projet IN (". $ids .")";
|
$sql = "SELECT ed.rowid FROM " . MAIN_DB_PREFIX . "expensereport as e, " . MAIN_DB_PREFIX . "expensereport_det as ed WHERE e.rowid = ed.fk_expensereport AND e.entity IN (".getEntity('expensereport').") AND ed.fk_projet IN (". $ids .")";
|
||||||
}
|
}
|
||||||
elseif ($type == 'project_task')
|
elseif ($type == 'project_task')
|
||||||
{
|
{
|
||||||
@ -581,11 +581,11 @@ class Project extends CommonObject
|
|||||||
}
|
}
|
||||||
elseif ($type == 'stock_mouvement')
|
elseif ($type == 'stock_mouvement')
|
||||||
{
|
{
|
||||||
$sql = 'SELECT ms.rowid, ms.fk_user_author as fk_user FROM ' . MAIN_DB_PREFIX . "stock_mouvement as ms WHERE ms.origintype = 'project' AND ms.fk_origin IN (". $ids .") AND ms.type_mouvement = 1";
|
$sql = 'SELECT ms.rowid, ms.fk_user_author as fk_user FROM ' . MAIN_DB_PREFIX . "stock_mouvement as ms, " . MAIN_DB_PREFIX . "entrepot as e WHERE e.rowid = ms.fk_entrepot AND e.entity IN (".getEntity('stock').") AND ms.origintype = 'project' AND ms.fk_origin IN (". $ids .") AND ms.type_mouvement = 1";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . $tablename." WHERE ".$projectkey." IN (". $ids .")";
|
$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . $tablename." WHERE ".$projectkey." IN (". $ids .") AND entity IN (".getEntity($type).")";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dates > 0)
|
if ($dates > 0)
|
||||||
|
|||||||
@ -905,16 +905,16 @@ foreach ($listofreferent as $key => $value)
|
|||||||
|
|
||||||
$element_doc = $element->element;
|
$element_doc = $element->element;
|
||||||
$filename=dol_sanitizeFileName($element->ref);
|
$filename=dol_sanitizeFileName($element->ref);
|
||||||
$filedir=$conf->{$element_doc}->dir_output . '/' . dol_sanitizeFileName($element->ref);
|
$filedir=$conf->{$element_doc}->multidir_output[$element->entity] . '/' . dol_sanitizeFileName($element->ref);
|
||||||
|
|
||||||
if ($element_doc === 'order_supplier') {
|
if ($element_doc === 'order_supplier') {
|
||||||
$element_doc='commande_fournisseur';
|
$element_doc='commande_fournisseur';
|
||||||
$filedir = $conf->fournisseur->commande->dir_output.'/'.dol_sanitizeFileName($element->ref);
|
$filedir = $conf->fournisseur->commande->multidir_output[$element->entity].'/'.dol_sanitizeFileName($element->ref);
|
||||||
}
|
}
|
||||||
else if ($element_doc === 'invoice_supplier') {
|
else if ($element_doc === 'invoice_supplier') {
|
||||||
$element_doc='facture_fournisseur';
|
$element_doc='facture_fournisseur';
|
||||||
$filename = get_exdir($element->id,2,0,0,$element,'product').dol_sanitizeFileName($element->ref);
|
$filename = get_exdir($element->id,2,0,0,$element,'product').dol_sanitizeFileName($element->ref);
|
||||||
$filedir = $conf->fournisseur->facture->dir_output.'/'.get_exdir($element->id,2,0,0,$element,'invoice_supplier').dol_sanitizeFileName($element->ref);
|
$filedir = $conf->fournisseur->facture->multidir_output[$element->entity].'/'.get_exdir($element->id,2,0,0,$element,'invoice_supplier').dol_sanitizeFileName($element->ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<div class="inline-block valignmiddle">'.$formfile->getDocumentsLink($element_doc, $filename, $filedir).'</div>';
|
print '<div class="inline-block valignmiddle">'.$formfile->getDocumentsLink($element_doc, $filename, $filedir).'</div>';
|
||||||
|
|||||||
@ -1,163 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/support/online.php
|
|
||||||
* \ingroup install
|
|
||||||
* \brief Provide an Online Help support
|
|
||||||
*/
|
|
||||||
|
|
||||||
error_reporting(0);
|
|
||||||
|
|
||||||
include_once 'inc.php';
|
|
||||||
$uri=preg_replace('/^http(s?):\/\//i','',$dolibarr_main_url_root);
|
|
||||||
$pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
|
|
||||||
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
|
|
||||||
define('DOL_URL_ROOT', $pos); // URL racine relative
|
|
||||||
|
|
||||||
|
|
||||||
$langs->loadLangs(array("other", "help"));
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
pHeader($langs->trans("DolibarrHelpCenter"),$_SERVER["PHP_SELF"]);
|
|
||||||
|
|
||||||
$urlsparkengels='http://www.spark-angels.com';
|
|
||||||
$titlesparkangels='Spark-Angels';
|
|
||||||
|
|
||||||
//print '<br>';
|
|
||||||
|
|
||||||
print $langs->trans("ToGetHelpGoOnSparkAngels1",$titlesparkangels).'<br>';
|
|
||||||
|
|
||||||
print '<br><br>';
|
|
||||||
|
|
||||||
|
|
||||||
// List of predefined coaches
|
|
||||||
// We list here the 4 most active coaches on Dolibarr projects (according to number of commits
|
|
||||||
// found in page http://www.nltechno.com/stats/dolibarr/cvschangelogbuilder_dolibarr.html
|
|
||||||
$limit=4;
|
|
||||||
$arrayofwidgets=array(
|
|
||||||
// Widget for Laurent Destailleur
|
|
||||||
array('name'=>'Laurent Destailleur', // id user 4702
|
|
||||||
'sort'=>1,
|
|
||||||
'logo'=>'logoUrl='.urlencode('http://www.nltechno.com/images/logo_nltechno_long.jpg'), // Put your own logo
|
|
||||||
'id'=>'4256,4255', // Put of list of sparkangels widget id (for each language)
|
|
||||||
'lang'=>'fr,en'), // Put list of language code of widgets (always english at end)
|
|
||||||
// Widget for Auguria
|
|
||||||
array('name'=>'Auguria',
|
|
||||||
'sort'=>2,
|
|
||||||
//'logo'=>'logoUrl='.urlencode('http://www.cap-networks.com/images/logo_small.jpg'),
|
|
||||||
'id'=>'7196',
|
|
||||||
'lang'=>'fr'),
|
|
||||||
//Widget for Open-Concept
|
|
||||||
array('name'=>'Open-Concept.pro',
|
|
||||||
'sort'=>2,
|
|
||||||
'logo'=>'logoUrl='.urlencode('http://www.open-concept.pro/CMS/images/Logo/logosimplecomplet.png'),
|
|
||||||
'id'=>'9340',
|
|
||||||
'lang'=>'fr')
|
|
||||||
);
|
|
||||||
$arrayofwidgets=dol_sort_array($arrayofwidgets,'sort','asc',0,0);
|
|
||||||
|
|
||||||
$found=0;
|
|
||||||
print '* '.$langs->trans("LinkToGoldMember",$langs->defaultlang).'<br><br>';
|
|
||||||
print '<table summary="listofgoldcoaches"><tr>';
|
|
||||||
foreach ($arrayofwidgets as $arraywidget) // Loop on each user
|
|
||||||
{
|
|
||||||
if ($found >= $limit) break;
|
|
||||||
$listofwidgets=explode(',',$arraywidget['id']);
|
|
||||||
$listoflangs=explode(',',$arraywidget['lang']);
|
|
||||||
$pos=0;
|
|
||||||
foreach($listoflangs as $langcode) // Loop on each lang of user
|
|
||||||
{
|
|
||||||
$pos++;
|
|
||||||
if (preg_match('/'.$langcode.'/i',$langs->defaultlang) || $langcode == 'en') // If lang qualified
|
|
||||||
{
|
|
||||||
print '<td align="center">';
|
|
||||||
print $arraywidget['name'].'<br>';
|
|
||||||
print $langs->trans("PossibleLanguages").': ';
|
|
||||||
// All languages of user are shown
|
|
||||||
foreach ($listoflangs as $langcode2)
|
|
||||||
{
|
|
||||||
if (empty($widgetid)) $widgetid=$listoflangs[$pos-1];
|
|
||||||
if (! preg_match('/'.$langcode.'/i',$langs->defaultlang) && $langcode2 != 'en') continue; // Show only english
|
|
||||||
print $langcode2.' ';
|
|
||||||
}
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
// Only first language found is used for widget
|
|
||||||
$widgetid=$listofwidgets[$pos-1];
|
|
||||||
|
|
||||||
// Widget V3
|
|
||||||
print '<iframe src="http://www.spark-angels.com/static/widget/template-pro3/widgetpro3-iframe.html?widgetId='.$widgetid.'&lgCode='.$langcode.'&'.(isset($arraywidget['logo'])?$arraywidget['logo']:'').'" width="172" height="123" frameborder="0" scrolling="no" marginheight="0" > </iframe>';
|
|
||||||
|
|
||||||
print '</td>';
|
|
||||||
$found++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (! $found) print '<td>'.$langs->trans("SorryNoHelpForYourLanguage").'</td>';
|
|
||||||
print '</tr></table>';
|
|
||||||
|
|
||||||
print '<br><br>';
|
|
||||||
|
|
||||||
// List of coaches
|
|
||||||
$sparkangellangcode=substr($langs->defaultlang,0,2);
|
|
||||||
if (! in_array($sparkangellangcode,array('fr','en','sp'))) $sparkangellangcode='en';
|
|
||||||
print '<table class="noborder" summary="ListOfSupport"><tr valign="middle"><td>';
|
|
||||||
print '* '.$langs->trans("ToGetHelpGoOnSparkAngels3",$urlsparkengels);
|
|
||||||
print '<div id="sparkom_bsaHelpersSearch">'."\n";
|
|
||||||
print '<form target="_blank" id="frJSkw" action="http://www.spark-angels.com/rss/action/resultsearch.html" name="fResult" method="get">'."\n";
|
|
||||||
print ' <input type="hidden" value="" title="Rechercher" maxlength="1024" name="kws" id="kws"/> <!-- mots clés pour la recherche dont la ou les compétences matchent avec ces mots -->'."\n";
|
|
||||||
print ' <input id="dhids" name="dhids" type="hidden" value=""><!-- identifiant SHSAPI communiqué par SparkAngels. -->'."\n";
|
|
||||||
print ' <input id="lgSearch" name="lgS" type="hidden" value=""><!-- code langue, les accompagnateurs proposés suite à cette recherche prétendent pouvoir fournir de l assistance dans au moins cette langue-->'."\n";
|
|
||||||
print ' <input id="myLv" name="myLv" type="hidden" value=""><!-- niveau de l internaute dans le domaine de sa recherche.-->'."\n";
|
|
||||||
print ' <input id="catSrv" name="catSrv" type="hidden" value=""><!-- type de catégorie de service demandée.-->'."\n";
|
|
||||||
print ' <input type="submit" value="'.$langs->trans("Search").'" onclick="getSAParams();">'."\n";
|
|
||||||
print '<script type="text/javascript">'."\n";
|
|
||||||
print '<!--'."\n";
|
|
||||||
print ' function getSAParams(){'."\n";
|
|
||||||
print ' document.getElementById(\'dhids\').value= "4702";'."\n";
|
|
||||||
print ' document.getElementById(\'kws\').value= "dolibarr";'."\n";
|
|
||||||
print ' document.getElementById(\'lgSearch\').value= "'.$sparkangellangcode.'";'."\n";
|
|
||||||
print ' document.getElementById(\'myLv\').value= "0";'."\n";
|
|
||||||
print ' document.getElementById(\'catSrv\').value= "1";'."\n";
|
|
||||||
print ' }'."\n";
|
|
||||||
print '-->'."\n";
|
|
||||||
print '</script>'."\n";
|
|
||||||
print '</form>'."\n";
|
|
||||||
print '</div>'."\n";
|
|
||||||
|
|
||||||
print '</td><td>';
|
|
||||||
//print '<a href="'.$urlsparkengels.'" target="_blank">';
|
|
||||||
//print '<img border="0" src="sparkangels.png" alt="SparkAngels web site" title="SparkAngels web site">';
|
|
||||||
//print $titlesparkangels;
|
|
||||||
//print '</a>';
|
|
||||||
print '</td></tr></table>';
|
|
||||||
//print $langs->trans("ToGetHelpGoOnSparkAngels2",$titlesparkangels).'<br>';
|
|
||||||
|
|
||||||
|
|
||||||
// Otherwise, go back to help center home
|
|
||||||
print '<br><br>';
|
|
||||||
print '* '.$langs->trans("BackToHelpCenter",'index.php');
|
|
||||||
print '<br><br>';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pFooter();
|
|
||||||
Loading…
Reference in New Issue
Block a user