Qual: Separate function of html header from menu header

This commit is contained in:
Laurent Destailleur 2010-04-03 15:08:09 +00:00
parent d6164deddc
commit fbc31d9cb5
24 changed files with 63 additions and 17 deletions

View File

@ -31,11 +31,12 @@ require_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
$langs->load("banks");
function llxHeader($head = "")
function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='')
{
global $db, $user, $conf, $langs;
top_menu($head);
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
$menu = new Menu();
if ($user->rights->banque->lire)

View File

@ -31,11 +31,12 @@ $langs->load("bills");
$langs->load("compta");
$langs->load("banks");
function llxHeader($head = "", $title="")
function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='')
{
global $db, $user, $conf, $langs;
top_menu($head);
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
$menu = new Menu();
if ($user->rights->banque->lire)

View File

@ -89,7 +89,6 @@ print '<body>';
print $javascript;
print '<table summary="" width="100%"><tr><td>';
print "<div><br>"; // Ouvre div a la place de top_menu car le llxFooter en ferme un
print "<form method=\"post\" action=\"javascript:MAJ(".$_GET['targettown'].",".$_GET['targetcountry'].",".$_GET['targetstate'].");\" name=\"searchform\" enctype=\"application/x-www-form-urlencoded\">";

View File

@ -44,7 +44,7 @@ print "
<title>Dolibarr frame for external web site</title>
</head>
<frameset rows=\"28,*\" border=0 framespacing=0 frameborder=0>
<frameset rows=\"".$heightforframes.",*\" border=0 framespacing=0 frameborder=0>
<frame name=\"barre\" src=\"frametop.php?mainmenu=".$mainmenu."&leftmenu=".$leftmenu."&idmenu=".$idmenu."&nobackground=1\" noresize scrolling=\"NO\" noborder>
<frame name=\"main\" src=\"".$conf->global->EXTERNALSITE_URL."\">
<noframes>

View File

@ -17,14 +17,15 @@
*/
/**
\file htdocs/mantis/mantistop.php
\file htdocs/externalsite/frametop.php
\ingroup externalsite
\brief Top frame to show mantis application
\brief Top frame to show external web application
\version $Id$
*/
require ("../main.inc.php");
top_htmlhead("","");
top_menu("","","_top");
?>

View File

@ -32,7 +32,8 @@ function llxHeader($head = '', $title='', $help_url='', $morehtml='')
global $conf,$langs,$user;
$langs->load("ftp");
top_menu($head, $title);
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
$menu = new Menu();

View File

@ -709,6 +709,11 @@ else
define('ROWS_9',8);
}
$heightforframes=48;
// Functions
/**
* \brief Show HTML header HTML + BODY + Top menu + left menu + DIV
@ -725,6 +730,7 @@ if (! function_exists("llxHeader"))
{
function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='')
{
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
left_menu('', $help_url);
}
@ -748,8 +754,6 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
if (! $conf->top_menu) $conf->top_menu ='eldy_backoffice.php';
if (! $conf->left_menu) $conf->left_menu='eldy_backoffice.php';
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
print '<body id="mainbody"><div id="dhtmltooltip"></div>';
/*

View File

@ -44,7 +44,7 @@ print "
<title>Dolibarr frame for Mantis</title>
</head>
<frameset rows=\"28,*\" border=0 framespacing=0 frameborder=0>
<frameset rows=\"".$heightforframes.",*\" border=0 framespacing=0 frameborder=0>
<frame name=\"barre\" src=\"mantistop.php?mainmenu=".$mainmenu."&leftmenu=".$leftmenu."&idmenu=".$idmenu."&nobackground=1\" noresize scrolling=\"NO\" noborder>
<frame name=\"main\" src=\"".$conf->global->PHPMANTIS_URL."\">
<noframes>

View File

@ -25,6 +25,7 @@
require ("../main.inc.php");
top_htmlhead("","");
top_menu("","","_top");
?>

View File

@ -27,7 +27,7 @@
*/
require("../../main.inc.php");
require("./osc_customer.class.php");
require(DOL_DOCUMENT_ROOT."/oscommerce_ws/osc_customer.class.php");
function llxHeader($head = "", $urlp = "")
{

View File

@ -27,7 +27,7 @@
*/
require("../../main.inc.php");
require("./osc_order.class.php");
require(DOL_DOCUMENT_ROOT."/oscommerce_ws/osc_order.class.php");
function llxHeader($head = "", $urlp = "")
{

View File

@ -30,6 +30,10 @@ $langs->load("shop");
$langs->load("orders");
/*
* View
*/
llxHeader("",$langs->trans("OSCommerceShop"));
print_fiche_titre($langs->trans("OSCommerceShop"));

View File

@ -33,6 +33,7 @@ function llxHeader($head = '', $title='', $help_url='')
global $user, $conf, $langs;
$langs->load("shop");
top_htmlhead($head);
top_menu($head);
$menu = new Menu();

View File

@ -27,7 +27,7 @@
*/
require("../../main.inc.php");
require("./osc_product.class.php");
require(DOL_DOCUMENT_ROOT."/oscommerce_ws/osc_product.class.php");
function llxHeader($head = "", $urlp = "")
{

View File

@ -42,7 +42,7 @@ print "
<title>Dolibarr frame for Phenix</title>
</head>
<frameset rows=\"28,*\" border=0 framespacing=0 frameborder=0>
<frameset rows=\"".$heightforframes.",*\" border=0 framespacing=0 frameborder=0>
<frame name=\"barre\" src=\"phenixtop.php?mainmenu=".$mainmenu."&leftmenu=".$leftmenu."&idmenu=".$idmenu."&nobackground=1\" noresize scrolling=\"NO\" noborder>
<frame name=\"main\" src=\"".$conf->global->PHPPHENIX_URL."\">
<noframes>

View File

@ -26,6 +26,7 @@
require ("../main.inc.php");
top_htmlhead("");
top_menu("","","_top");
?>

View File

@ -437,6 +437,16 @@ div.mainmenu_accountancy {
margin-left: 0px;
}
div.mainmenu_project {
position : relative;
color: white;
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/project.png' ?>);
background-repeat:no-repeat;
background-position:center top;
height:27px;
margin-left: 0px;
}
div.mainmenu_tools {
position : relative;
color: white;
@ -447,6 +457,16 @@ div.mainmenu_tools {
margin-left: 0px;
}
div.mainmenu_members {
position : relative;
color: white;
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/members.png' ?>);
background-repeat:no-repeat;
background-position:center top;
height:28px;
margin-left: 0px;
}
div.mainmenu_agenda {
position : relative;
color: white;
@ -467,6 +487,16 @@ div.mainmenu_ecm {
margin-left: 0px;
}
div.mainmenu_cashdesk {
position : relative;
color: white;
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/pointofsale.png' ?>);
background-repeat:no-repeat;
background-position:center top;
height:28px;
margin-left: 0px;
}
div.mainmenu_generic1 {
position : relative;
color: white;

View File

@ -0,0 +1 @@
tango-icon-theme*

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -42,7 +42,7 @@ print "
<title>Dolibarr frame for Webcalendar</title>
</head>
<frameset rows=\"28,*\" border=0 framespacing=0 frameborder=0>
<frameset rows=\"".$heightforframes.",*\" border=0 framespacing=0 frameborder=0>
<frame name=\"barre\" src=\"webcaltop.php?mainmenu=".$mainmenu."&leftmenu=".$leftmenu."&idmenu=".$idmenu."&nobackground=1\" noresize scrolling=\"NO\" noborder>
<frame name=\"main\" src=\"".$conf->global->PHPWEBCALENDAR_URL."\">
<noframes>

View File

@ -26,6 +26,7 @@
require ("../main.inc.php");
top_htmlhead("");
top_menu("","","_top");
?>