Fix duplicate function name
This commit is contained in:
parent
002181190c
commit
bb97119233
@ -151,7 +151,21 @@ function llxHeaderTicket($title, $head = "", $disablejs = 0, $disablehead = 0, $
|
|||||||
print '<body id="mainbody" class="publicnewticketform" style="margin-top: 10px;">';
|
print '<body id="mainbody" class="publicnewticketform" style="margin-top: 10px;">';
|
||||||
|
|
||||||
if (! empty($conf->global->TICKETS_SHOW_COMPANY_LOGO)) {
|
if (! empty($conf->global->TICKETS_SHOW_COMPANY_LOGO)) {
|
||||||
showlogo();
|
// Print logo
|
||||||
|
$urllogo = DOL_URL_ROOT . '/theme/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=companylogo&file=' . urlencode('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=companylogo&file=' . urlencode($mysoc->logo);
|
||||||
|
$width = 128;
|
||||||
|
} elseif (is_readable(DOL_DOCUMENT_ROOT . '/theme/dolibarr_logo.png')) {
|
||||||
|
$urllogo = DOL_URL_ROOT . '/theme/dolibarr_logo.png';
|
||||||
|
}
|
||||||
|
print '<center>';
|
||||||
|
print '<a href="' . ($conf->global->TICKETS_URL_PUBLIC_INTERFACE ? $conf->global->TICKETS_URL_PUBLIC_INTERFACE : dol_buildpath('/public/ticket/index.php', 1)) . '"><img alt="Logo" id="logosubscribe" title="" src="' . $urllogo . '" style="max-width: 440px" /></a><br>';
|
||||||
|
print '<strong>' . ($conf->global->TICKETS_PUBLIC_INTERFACE_TOPIC ? $conf->global->TICKETS_PUBLIC_INTERFACE_TOPIC : $langs->trans("TicketSystem")) . '</strong>';
|
||||||
|
print '</center><br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<div style="margin-left: 50px; margin-right: 50px;">';
|
print '<div style="margin-left: 50px; margin-right: 50px;">';
|
||||||
@ -173,29 +187,3 @@ function llxFooterTicket()
|
|||||||
print "</body>\n";
|
print "</body>\n";
|
||||||
print "</html>\n";
|
print "</html>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Show logo
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function showlogo()
|
|
||||||
{
|
|
||||||
global $conf, $langs, $mysoc;
|
|
||||||
|
|
||||||
// Print logo
|
|
||||||
$urllogo = DOL_URL_ROOT . '/theme/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=companylogo&file=' . urlencode('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=companylogo&file=' . urlencode($mysoc->logo);
|
|
||||||
$width = 128;
|
|
||||||
} elseif (is_readable(DOL_DOCUMENT_ROOT . '/theme/dolibarr_logo.png')) {
|
|
||||||
$urllogo = DOL_URL_ROOT . '/theme/dolibarr_logo.png';
|
|
||||||
}
|
|
||||||
print '<center>';
|
|
||||||
print '<a href="' . ($conf->global->TICKETS_URL_PUBLIC_INTERFACE ? $conf->global->TICKETS_URL_PUBLIC_INTERFACE : dol_buildpath('/public/ticket/index.php', 1)) . '"><img alt="Logo" id="logosubscribe" title="" src="' . $urllogo . '" style="max-width: 440px" /></a><br>';
|
|
||||||
print '<strong>' . ($conf->global->TICKETS_PUBLIC_INTERFACE_TOPIC ? $conf->global->TICKETS_PUBLIC_INTERFACE_TOPIC : $langs->trans("TicketSystem")) . '</strong>';
|
|
||||||
print '</center><br>';
|
|
||||||
}
|
|
||||||
|
|||||||
@ -73,7 +73,20 @@ function llxHeaderSurvey($title, $head="", $disablejs=0, $disablehead=0, $arrayo
|
|||||||
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
||||||
print '<body id="mainbody" class="publicnewmemberform" style="margin-top: 10px;">';
|
print '<body id="mainbody" class="publicnewmemberform" style="margin-top: 10px;">';
|
||||||
|
|
||||||
showlogo();
|
// Print logo
|
||||||
|
if ($mysoc->logo) {
|
||||||
|
if (file_exists($conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_small)) {
|
||||||
|
$urllogo=DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file=thumbs/'.urlencode($mysoc->logo_small);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$urllogo && (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.png')))
|
||||||
|
{
|
||||||
|
$urllogo=DOL_URL_ROOT.'/theme/dolibarr_logo.png';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<div style="text-align:center"><img alt="Logo" id="logosubscribe" title="" src="'.$urllogo.'"/></div>';
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
print '<div style="margin-left: 50px; margin-right: 50px;">';
|
print '<div style="margin-left: 50px; margin-right: 50px;">';
|
||||||
}
|
}
|
||||||
@ -96,32 +109,6 @@ function llxFooterSurvey()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Show logo
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function showlogo()
|
|
||||||
{
|
|
||||||
global $conf, $mysoc;
|
|
||||||
|
|
||||||
// Print logo
|
|
||||||
if ($mysoc->logo) {
|
|
||||||
if (file_exists($conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_small)) {
|
|
||||||
$urllogo=DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file=thumbs/'.urlencode($mysoc->logo_small);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$urllogo && (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.png')))
|
|
||||||
{
|
|
||||||
$urllogo=DOL_URL_ROOT.'/theme/dolibarr_logo.png';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '<div style="text-align:center"><img alt="Logo" id="logosubscribe" title="" src="'.$urllogo.'"/></div>';
|
|
||||||
print '<br>';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get_server_name
|
* get_server_name
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user