/** * Show HTML footer * Close div /DIV data-role=page + /DIV class=fiche + /DIV /DIV main layout + /BODY + /HTML. * * @param string $comment A text to add as HTML comment into HTML generated page * @param string $zone 'private' (for private pages) or 'public' (for public pages) * @return void */ function llxFooter($comment = '', $zone = 'private') { global $conf, $langs; // Global html output events ($mesgs, $errors, $warnings) dol_htmloutput_events(); // Core error message if (defined("MAIN_CORE_ERROR") && constant("MAIN_CORE_ERROR") == 1) { // Ajax version if ($conf->use_javascript_ajax) { $title = img_warning() . ' ' . $langs->trans('CoreErrorTitle'); print ajax_dialog($title, $langs->trans('CoreErrorMessage')); } else { $msg = img_warning() . ' ' . $langs->trans('CoreErrorMessage'); print '<div class="error">' . $msg . '</div>'; } define("MAIN_CORE_ERROR", 0); } print "\n\n"; print '</div> <!-- End div class="fiche" -->' . "\n"; if (!empty($conf->dol_use_jmobile)) { print '</div>'; } // end data-role="page" if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div></div> <!-- end main layout -->' . "\n"; } if (empty($conf->dol_hide_leftmenu)) { print '</div> <!-- End div id-right -->'; } // End div id-right print "\n"; if ($comment) { print '<!-- ' . $comment . ' -->' . "\n"; } printCommonFooter($zone); //var_dump($langs); // Uncommment to see the property _tab_loaded to see which language file were loaded if (empty($conf->dol_hide_leftmenu) && empty($conf->dol_use_jmobile) && empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div> <!-- End div id-container -->' . "\n"; } // End div container print "</body>\n"; print "</html>\n"; }
/** * Show HTML footer * Close div /DIV data-role=page + /DIV class=fiche + /DIV /DIV main layout + /BODY + /HTML. * If global var $delayedhtmlcontent was filled, we output it just before closing the body. * * @param string $comment A text to add as HTML comment into HTML generated page * @param string $zone 'private' (for private pages) or 'public' (for public pages) * @return void */ function llxFooter($comment = '', $zone = 'private') { global $conf, $langs; global $delayedhtmlcontent; // Global html output events ($mesgs, $errors, $warnings) dol_htmloutput_events(); // Core error message if (defined("MAIN_CORE_ERROR") && constant("MAIN_CORE_ERROR") == 1) { // Ajax version if ($conf->use_javascript_ajax) { $title = img_warning() . ' ' . $langs->trans('CoreErrorTitle'); print ajax_dialog($title, $langs->trans('CoreErrorMessage')); } else { $msg = img_warning() . ' ' . $langs->trans('CoreErrorMessage'); print '<div class="error">' . $msg . '</div>'; } define("MAIN_CORE_ERROR", 0); } print "\n\n"; print '</div> <!-- End div class="fiche" -->' . "\n"; if (!empty($conf->dol_use_jmobile)) { print '</div>'; } // end data-role="page" if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div></div> <!-- end main layout -->' . "\n"; } if (empty($conf->dol_hide_leftmenu)) { print '</div> <!-- End div id-right -->'; } // End div id-right print "\n"; if ($comment) { print '<!-- ' . $comment . ' -->' . "\n"; } printCommonFooter($zone); //var_dump($langs); // Uncommment to see the property _tab_loaded to see which language file were loaded if (empty($conf->dol_hide_leftmenu) && empty($conf->dol_use_jmobile) && empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div> <!-- End div id-container -->' . "\n"; } // End div container if (!empty($delayedhtmlcontent)) { print $delayedhtmlcontent; } // Wrapper to show tooltips print "\n<!-- JS CODE TO ENABLE tipTip on all object with class classfortooltip -->\n"; print '<script type="text/javascript"> jQuery(document).ready(function () { jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50}); }); </script>' . "\n"; print "</body>\n"; print "</html>\n"; }
/** * Show HTML footer * Close div /DIV data-role=page + /DIV class=fiche + /DIV /DIV main layout + /BODY + /HTML. * * @param string $foot A text to add in HTML generated page * @return void */ function llxFooter($foot = '') { global $conf, $langs, $dolibarr_auto_user, $micro_start_time; // Core error message if (defined("MAIN_CORE_ERROR") && constant("MAIN_CORE_ERROR") == 1) { $title = img_warning() . ' ' . $langs->trans('CoreErrorTitle'); print ajax_dialog($title, $langs->trans('CoreErrorMessage')); define("MAIN_CORE_ERROR", 0); } ?> </div> <!-- end div class="container" --> <?php if (!defined('NOHEADER')) : ?> <footer class="container" id="footer"> <div class="row"> <div class="twelve columns"> Copyright © 2012 speedealing.com - tzd-themes.com </div> </div> </footer> <div class="sw_width"> <img class="sw_full" title="switch to full width" alt="" src="theme/blank.gif" /> <img style="display:none" class="sw_fixed" title="switch to fixed width (980px)" alt="" src="theme/blank.gif" /> </div> <?php printCommonFooter(); ?> <?php endif; ?> <?php print "</body>\n"; print "</html>\n"; }
function llxFooter($foot = '') { global $conf, $langs, $dolibarr_auto_user, $micro_start_time; // Core error message if (defined("MAIN_CORE_ERROR") && constant("MAIN_CORE_ERROR") == 1) { // Ajax version if ($conf->use_javascript_ajax) { $title = img_warning() . ' ' . $langs->trans('CoreErrorTitle'); print ajax_dialog($title, $langs->trans('CoreErrorMessage')); } else { $msg = img_warning() . ' ' . $langs->trans('CoreErrorMessage'); print '<div class="error">' . $msg . '</div>'; } define("MAIN_CORE_ERROR", 0); } print "\n\n"; if (preg_match('/^smartphone/', $conf->smart_menu) && isset($conf->browser->phone)) { print '</div> <!-- end div data-role="content" -->' . "\n"; print '</div> <!-- end div data-role="page" -->' . "\n"; } print '</div> <!-- end div class="fiche" -->' . "\n"; print "\n" . '</td></tr></table> <!-- end right area -->' . "\n"; if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div></div> <!-- end main layout -->' . "\n"; } print "\n"; if ($foot) { print '<!-- ' . $foot . ' -->' . "\n"; } if (!empty($conf->global->MAIN_HTML_FOOTER)) { print $conf->global->MAIN_HTML_FOOTER . "\n"; } // If there is some logs in buffer to show if (sizeof($conf->logbuffer)) { print "\n"; print "<!-- Start of log output\n"; //print '<div class="hidden">'."\n"; foreach ($conf->logbuffer as $logline) { print $logline . "<br>\n"; } //print '</div>'."\n"; print "End of log output -->\n"; } // End of tuning if (!empty($_SERVER['DOL_TUNING'])) { $micro_end_time = dol_microtime_float(true); print "\n" . '<script type="text/javascript">console.log("'; if (!empty($conf->global->MEMCACHED_SERVER)) { print 'MEMCACHED_SERVER=' . $conf->global->MEMCACHED_SERVER . ' - '; } print 'MAIN_OPTIMIZE_SPEED=' . (isset($conf->global->MAIN_OPTIMIZE_SPEED) ? $conf->global->MAIN_OPTIMIZE_SPEED : 'off'); print ' - Build time: ' . ceil(1000 * ($micro_end_time - $micro_start_time)) . ' ms'; if (function_exists("memory_get_usage")) { print ' - Mem: ' . memory_get_usage(); } if (function_exists("xdebug_memory_usage")) { print ' - XDebug time: ' . ceil(1000 * xdebug_time_index()) . ' ms'; print ' - XDebug mem: ' . xdebug_memory_usage(); print ' - XDebug mem peak: ' . xdebug_peak_memory_usage(); } if (function_exists("zend_loader_file_encoded")) { print ' - Zend encoded file: ' . (zend_loader_file_encoded() ? 'yes' : 'no'); } print '")</script>' . "\n"; // Add Xdebug coverage of code if (defined('XDEBUGCOVERAGE')) { var_dump(xdebug_get_code_coverage()); } } print "</body>\n"; print "</html>\n"; }