Fix: Remove space char at end of document and viewimage.
This commit is contained in:
parent
27ae971f35
commit
670d01e14e
@ -99,11 +99,11 @@ $reshook=$hookmanager->executeHooks('printSearchForm',$parameters);
|
||||
if (empty($reshook)) $searchform.=$hookmanager->resPrint;
|
||||
else $searchform=$hookmanager->resPrint;
|
||||
|
||||
print '<style>.menu_titre { padding-top: 6px; }</style>';
|
||||
|
||||
print "\n";
|
||||
print "<!-- Begin SearchForm -->\n";
|
||||
print '<div class="center">';
|
||||
print '<div class="center" data-role="page">';
|
||||
print '<style>.menu_titre { padding-top: 6px; }</style>';
|
||||
//print '<div id="distance"></div><div id="container" class="center">';
|
||||
print '<div id="blockvmenusearch">'."\n";
|
||||
print $searchform;
|
||||
|
||||
@ -52,6 +52,7 @@ function llxHeader() { }
|
||||
*/
|
||||
function llxFooter() { }
|
||||
|
||||
|
||||
require 'main.inc.php'; // Load $user and permissions
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
|
||||
@ -177,4 +178,4 @@ header('Pragma: public');
|
||||
|
||||
readfile($original_file_osencoded);
|
||||
|
||||
?>
|
||||
?>
|
||||
@ -162,6 +162,11 @@ if (! empty($_SERVER['DOCUMENT_ROOT'])) set_include_path($_SERVER['DOCUMENT_ROOT
|
||||
// Include the conf.php and functions.lib.php
|
||||
require_once 'filefunc.inc.php';
|
||||
|
||||
/*var_dump("Define dolgetprefix ".$_SERVER["SERVER_NAME"]." - ".$_SERVER["DOCUMENT_ROOT"]." - ".DOL_DOCUMENT_ROOT." - ".DOL_URL_ROOT);
|
||||
var_dump("Cookie ".join($_COOKIE,','));
|
||||
var_dump("Cookie ".$_SERVER["HTTP_COOKIE"]);
|
||||
var_dump("Cookie ".$_SERVER["HTTP_USER_AGENT"]);*/
|
||||
|
||||
// Init session. Name of session is specific to Dolibarr instance.
|
||||
$prefix=dol_getprefix();
|
||||
$sessionname='DOLSESSID_'.$prefix;
|
||||
@ -992,11 +997,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
|
||||
}
|
||||
$themeparam='?lang='.$langs->defaultlang.'&theme='.$conf->theme.(GETPOST('optioncss')?'&optioncss='.GETPOST('optioncss','alpha',1):'').'&userid='.$user->id.'&entity='.$conf->entity;
|
||||
if (! empty($_SESSION['dol_resetcache'])) $themeparam.='&dol_resetcache='.$_SESSION['dol_resetcache'];
|
||||
if (GETPOST('dol_hide_topmenu')) $themeparam.='&dol_hide_topmenu=1';
|
||||
if (GETPOST('dol_hide_leftmenu')) $themeparam.='&dol_hide_leftmenu=1';
|
||||
if (GETPOST('dol_optimize_smallscreen')) $themeparam.='&dol_optimize_smallscreen=1';
|
||||
if (GETPOST('dol_no_mouse_hover')) $themeparam.='&dol_no_mouse_hover=1';
|
||||
if (GETPOST('dol_use_jmobile')) $themeparam.='&dol_use_jmobile=1';
|
||||
if (GETPOST('dol_hide_topmenu')) { $themeparam.='&dol_hide_topmenu='.GETPOST('dol_hide_topmenu'); }
|
||||
if (GETPOST('dol_hide_leftmenu')) { $themeparam.='&dol_hide_leftmenu='.GETPOST('dol_hide_leftmenu'); }
|
||||
if (GETPOST('dol_optimize_smallscreen')) { $themeparam.='&dol_optimize_smallscreen='.GETPOST('dol_optimize_smallscreen'); }
|
||||
if (GETPOST('dol_no_mouse_hover')) { $themeparam.='&dol_no_mouse_hover='.GETPOST('dol_no_mouse_hover'); }
|
||||
if (GETPOST('dol_use_jmobile')) { $themeparam.='&dol_use_jmobile='.GETPOST('dol_use_jmobile'); $conf->dol_use_jmobile=GETPOST('dol_use_jmobile'); }
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" title="default" href="'.$themepath.$themeparam.'">'."\n";
|
||||
|
||||
@ -1132,7 +1137,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
|
||||
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/timepicker.js.php?lang='.$langs->defaultlang.'"></script>'."\n";
|
||||
}
|
||||
// jQuery jMobile
|
||||
if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || ! empty($conf->dol_use_jmobile))
|
||||
if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || (! empty($conf->dol_use_jmobile) && $conf->dol_use_jmobile > 0))
|
||||
{
|
||||
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/plugins/mobile/jquery.mobile-latest.min.js"></script>'."\n";
|
||||
}
|
||||
|
||||
@ -196,4 +196,4 @@ else // Open and return file
|
||||
|
||||
|
||||
if (is_object($db)) $db->close();
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user