Skip to content
Snippets Groups Projects
Commit 8aae7430 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Add info on browser in system information

Fix: With smartphone, menu use simple text links
parent 3ec1aa38
No related branches found
No related tags found
No related merge requests found
<?php <?php
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -91,5 +91,14 @@ print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" .$dbl ...@@ -91,5 +91,14 @@ print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" .$dbl
print '</table>'; print '</table>';
print '<br>'; print '<br>';
// Database
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Browser")."</td></tr>\n";
print "<tr $bc[0]><td width=\"280\">".$langs->trans("UserAgent")."</td><td>" .$_SERVER["HTTP_USER_AGENT"]."</td></tr>\n";
print "<tr $bc[1]><td width=\"280\">".$langs->trans("Smartphone")."</td><td>".(empty($conf->browser->phone)?$langs->trans("No"):$conf->browser->phone)."</td></tr>\n";
print '</table>';
print '<br>';
llxFooter('$Date$ - $Revision$'); llxFooter('$Date$ - $Revision$');
?> ?>
...@@ -50,8 +50,8 @@ if (! empty($_GET["lang"])) $langs->setDefaultLang($_GET["lang"]); // If languag ...@@ -50,8 +50,8 @@ if (! empty($_GET["lang"])) $langs->setDefaultLang($_GET["lang"]); // If languag
$langs->load("main",0,1); $langs->load("main",0,1);
$right=($langs->direction=='rtl'?'left':'right'); $right=($langs->direction=='rtl'?'left':'right');
$left=($langs->direction=='rtl'?'right':'left'); $left=($langs->direction=='rtl'?'right':'left');
$fontsize=empty($conf->browser->phone)?'12':'10'; $fontsize=empty($conf->browser->phone)?'12':'12';
$fontsizesmaller=empty($conf->browser->phone)?'11':'10'; $fontsizesmaller=empty($conf->browser->phone)?'11':'11';
?> ?>
...@@ -169,10 +169,16 @@ div.fiche { ...@@ -169,10 +169,16 @@ div.fiche {
/* ============================================================================== */ /* ============================================================================== */
<?php <?php
if (! empty($conf->browser->phone))
{
$minwidthtmenu=0; $minwidthtmenu=0;
$heightmenu=19; $heightmenu=19;
}
else
{
$minwidthtmenu=70; $minwidthtmenu=70;
$heightmenu=47; $heightmenu=47;
}
?> ?>
div.tmenu { div.tmenu {
...@@ -276,17 +282,18 @@ li.tmenu { ...@@ -276,17 +282,18 @@ li.tmenu {
font-weight: normal; font-weight: normal;
} }
<?php $i=2; ?>
div.mainmenu { div.mainmenu {
position : relative; position : relative;
color: white; color: white;
background-repeat:no-repeat; background-repeat:no-repeat;
background-position:center top; background-position:center top;
height:28px; height: <?php echo ($heightmenu-19); ?>px;
margin-left: 0px; margin-left: 0px;
} }
<?php if (empty($conf->browser->phone)) { ?>
div.mainmenu.home{ div.mainmenu.home{
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/home.png' ?>); background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/home.png' ?>);
} }
...@@ -393,6 +400,9 @@ foreach($mainmenuusedarray as $key => $val) ...@@ -393,6 +400,9 @@ foreach($mainmenuusedarray as $key => $val)
// End of part to add more div class css // End of part to add more div class css
?> ?>
<?php
} // End test if not phone
?>
/* Login */ /* Login */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment