Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
This commit is contained in:
commit
254e785c47
@ -1599,17 +1599,21 @@ abstract class CommonDocGenerator
|
|||||||
// set cell padding with column title definition
|
// set cell padding with column title definition
|
||||||
$pdf->setCellPaddings($colDef['title']['padding'][3], $colDef['title']['padding'][0], $colDef['title']['padding'][1], $colDef['title']['padding'][2]);
|
$pdf->setCellPaddings($colDef['title']['padding'][3], $colDef['title']['padding'][0], $colDef['title']['padding'][1], $colDef['title']['padding'][2]);
|
||||||
}
|
}
|
||||||
|
if (isset($colDef['title']['align'])) {
|
||||||
|
$align = $colDef['title']['align'];
|
||||||
|
} else {
|
||||||
|
$align = '';
|
||||||
|
}
|
||||||
$pdf->SetXY($colDef['xStartPos'], $tab_top);
|
$pdf->SetXY($colDef['xStartPos'], $tab_top);
|
||||||
$textWidth = $colDef['width'];
|
$textWidth = $colDef['width'];
|
||||||
$pdf->MultiCell($textWidth, 2, $colDef['title']['label'], '', $colDef['title']['align']);
|
$pdf->MultiCell($textWidth, 2, $colDef['title']['label'], '', $align);
|
||||||
|
|
||||||
// Add variant of translation if $outputlangsbis is an object
|
// Add variant of translation if $outputlangsbis is an object
|
||||||
if (is_object($outputlangsbis) && trim($colDef['title']['label'])) {
|
if (is_object($outputlangsbis) && trim($colDef['title']['label'])) {
|
||||||
$pdf->setCellPaddings($colDef['title']['padding'][3], 0, $colDef['title']['padding'][1], $colDef['title']['padding'][2]);
|
$pdf->setCellPaddings($colDef['title']['padding'][3], 0, $colDef['title']['padding'][1], $colDef['title']['padding'][2]);
|
||||||
$pdf->SetXY($colDef['xStartPos'], $pdf->GetY());
|
$pdf->SetXY($colDef['xStartPos'], $pdf->GetY());
|
||||||
$textbis = $outputlangsbis->transnoentities($colDef['title']['textkey']);
|
$textbis = $outputlangsbis->transnoentities($colDef['title']['textkey']);
|
||||||
$pdf->MultiCell($textWidth, 2, $textbis, '', $colDef['title']['align']);
|
$pdf->MultiCell($textWidth, 2, $textbis, '', $align);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->tabTitleHeight = max($pdf->GetY() - $tab_top, $this->tabTitleHeight);
|
$this->tabTitleHeight = max($pdf->GetY() - $tab_top, $this->tabTitleHeight);
|
||||||
|
|||||||
@ -41,11 +41,8 @@ if (isModEnabled('categorie')) {
|
|||||||
|
|
||||||
global $dolibarr_main_url_root;
|
global $dolibarr_main_url_root;
|
||||||
|
|
||||||
// for other modules
|
|
||||||
//dol_include_once('/othermodule/class/otherobject.class.php');
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("eventorganization", "other", "projects"));
|
$langs->loadLangs(array("eventorganization", "other", "projects", "bills"));
|
||||||
|
|
||||||
// Get Paramters
|
// Get Paramters
|
||||||
$action = GETPOST('action', 'aZ09') ?GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ...
|
$action = GETPOST('action', 'aZ09') ?GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ...
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -581,7 +581,7 @@ $listofreferent = array(
|
|||||||
'urlnew'=>DOL_URL_ROOT.'/projet/tasks/time.php?withproject=1&action=createtime&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
|
'urlnew'=>DOL_URL_ROOT.'/projet/tasks/time.php?withproject=1&action=createtime&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
|
||||||
'buttonnew'=>'AddTimeSpent',
|
'buttonnew'=>'AddTimeSpent',
|
||||||
'testnew'=>$user->hasRight('project', 'creer'),
|
'testnew'=>$user->hasRight('project', 'creer'),
|
||||||
'test'=>!empty($conf->project->enabled) && $user->hasRight('projet', 'lire') && !empty($conf->global->PROJECT_HIDE_TASKS)),
|
'test'=>!empty($conf->project->enabled) && $user->hasRight('projet', 'lire') && empty($conf->global->PROJECT_HIDE_TASKS)),
|
||||||
'stock_mouvement'=>array(
|
'stock_mouvement'=>array(
|
||||||
'name'=>"MouvementStockAssociated",
|
'name'=>"MouvementStockAssociated",
|
||||||
'title'=>"ListMouvementStockProject",
|
'title'=>"ListMouvementStockProject",
|
||||||
|
|||||||
@ -890,7 +890,9 @@ if ((!empty($conference->id) && $conference->status == ConferenceOrBooth::STATUS
|
|||||||
print "<br>";
|
print "<br>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
print '<br><br>';
|
||||||
print $langs->trans("ConferenceIsNotConfirmed");
|
print $langs->trans("ConferenceIsNotConfirmed");
|
||||||
|
print '<br><br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</div></div>';
|
print '</div></div>';
|
||||||
|
|||||||
@ -131,7 +131,9 @@ dol_syslog("Callback url when an online payment is refused or canceled. query_st
|
|||||||
|
|
||||||
$tracepost = "";
|
$tracepost = "";
|
||||||
foreach ($_POST as $k => $v) {
|
foreach ($_POST as $k => $v) {
|
||||||
$tracepost .= "{$k} - {$v}\n";
|
if (is_scalar($k) && is_scalar($v)) {
|
||||||
|
$tracepost .= "{$k} - {$v}\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_payment');
|
dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
|
|||||||
@ -175,12 +175,16 @@ dol_syslog("_SERVER[SERVER_ADDR] = ".(empty($_SERVER["SERVER_ADDR"]) ? '' : dol_
|
|||||||
|
|
||||||
$tracepost = "";
|
$tracepost = "";
|
||||||
foreach ($_POST as $k => $v) {
|
foreach ($_POST as $k => $v) {
|
||||||
$tracepost .= "{$k} - {$v}\n";
|
if (is_scalar($k) && is_scalar($v)) {
|
||||||
|
$tracepost .= "{$k} - {$v}\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_payment');
|
dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_payment');
|
||||||
$tracesession = "";
|
$tracesession = "";
|
||||||
foreach ($_SESSION as $k => $v) {
|
foreach ($_SESSION as $k => $v) {
|
||||||
$tracesession .= "{$k} - {$v}\n";
|
if (is_scalar($k) && is_scalar($v)) {
|
||||||
|
$tracesession .= "{$k} - {$v}\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dol_syslog("SESSION=".$tracesession, LOG_DEBUG, 0, '_payment');
|
dol_syslog("SESSION=".$tracesession, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
|
|||||||
@ -128,6 +128,9 @@ $replacemainarea = (empty($conf->dol_hide_leftmenu) ? '<div>' : '').'<div>';
|
|||||||
|
|
||||||
llxHeader($head, $langs->trans("SuggestForm"), '', '', 0, 0, '', '', '', 'onlinepaymentbody', $replacemainarea);
|
llxHeader($head, $langs->trans("SuggestForm"), '', '', 0, 0, '', '', '', 'onlinepaymentbody', $replacemainarea);
|
||||||
|
|
||||||
|
//llxHeaderVierge($langs->trans("SuggestForm"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print '<span id="dolpaymentspan"></span>'."\n";
|
print '<span id="dolpaymentspan"></span>'."\n";
|
||||||
print '<div class="center">'."\n";
|
print '<div class="center">'."\n";
|
||||||
@ -154,7 +157,7 @@ if (!empty($conf->global->$paramlogo)) {
|
|||||||
} elseif (!empty($conf->global->ONLINE_PAYMENT_LOGO)) {
|
} elseif (!empty($conf->global->ONLINE_PAYMENT_LOGO)) {
|
||||||
$logosmall = $conf->global->ONLINE_PAYMENT_LOGO;
|
$logosmall = $conf->global->ONLINE_PAYMENT_LOGO;
|
||||||
}
|
}
|
||||||
//print '<!-- Show logo (logosmall='.$logosmall.' logo='.$logo.') -->'."\n";
|
//print '- Show logo (logosmall='.$logosmall.' logo='.$logo.') '."\n";
|
||||||
// Define urllogo
|
// Define urllogo
|
||||||
$urllogo = '';
|
$urllogo = '';
|
||||||
$urllogofull = '';
|
$urllogofull = '';
|
||||||
@ -298,3 +301,61 @@ htmlPrintOnlineFooter($mysoc, $langs, 1, $suffix, $object);
|
|||||||
llxFooter('', 'public');
|
llxFooter('', 'public');
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show header for new member
|
||||||
|
*
|
||||||
|
* @param string $title Title
|
||||||
|
* @param string $head Head array
|
||||||
|
* @param int $disablejs More content into html header
|
||||||
|
* @param int $disablehead More content into html header
|
||||||
|
* @param array $arrayofjs Array of complementary js files
|
||||||
|
* @param array $arrayofcss Array of complementary css files
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function llxHeaderVierge($title, $head = "", $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '')
|
||||||
|
{
|
||||||
|
global $user, $conf, $langs, $mysoc;
|
||||||
|
|
||||||
|
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
||||||
|
|
||||||
|
print '<body id="mainbody" class="publicnewmemberform">';
|
||||||
|
|
||||||
|
// Define urllogo
|
||||||
|
$urllogo = DOL_URL_ROOT.'/theme/common/login_logo.png';
|
||||||
|
|
||||||
|
if (!empty($mysoc->logo_small) && is_readable($conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_small)) {
|
||||||
|
$urllogo = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode('logos/thumbs/'.$mysoc->logo_small);
|
||||||
|
} elseif (!empty($mysoc->logo) && is_readable($conf->mycompany->dir_output.'/logos/'.$mysoc->logo)) {
|
||||||
|
$urllogo = DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode('logos/'.$mysoc->logo);
|
||||||
|
} elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.svg')) {
|
||||||
|
$urllogo = DOL_URL_ROOT.'/theme/dolibarr_logo.svg';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<div class="center">';
|
||||||
|
|
||||||
|
// Output html code for logo
|
||||||
|
if ($urllogo) {
|
||||||
|
print '<div class="backgreypublicpayment">';
|
||||||
|
print '<div class="logopublicpayment">';
|
||||||
|
print '<img id="dolpaymentlogo" src="'.$urllogo.'"';
|
||||||
|
print '>';
|
||||||
|
print '</div>';
|
||||||
|
if (empty($conf->global->MAIN_HIDE_POWERED_BY)) {
|
||||||
|
print '<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans("PoweredBy").'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.'/theme/dolibarr_logo.svg" width="80px"></a></div>';
|
||||||
|
}
|
||||||
|
print '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($conf->global->PROJECT_IMAGE_PUBLIC_SUGGEST_CONFERENCE)) {
|
||||||
|
print '<div class="backimagepublicsuggestconference">';
|
||||||
|
print '<img id="idPROJECT_IMAGE_PUBLIC_SUGGEST_CONFERENCE" src="'.$conf->global->PROJECT_IMAGE_PUBLIC_SUGGEST_CONFERENCE.'">';
|
||||||
|
print '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
|
print '<div class="divmainbodylarge">';
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user