New: Add info on browser in system information

Fix: With smartphone, menu use simple text links
This commit is contained in:
Laurent Destailleur 2010-05-05 07:54:03 +00:00
parent 3ec1aa3824
commit 8aae74307a
2 changed files with 28 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<?php
/* 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>
*
* 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
print '</table>';
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$');
?>

View File

@ -50,8 +50,8 @@ if (! empty($_GET["lang"])) $langs->setDefaultLang($_GET["lang"]); // If languag
$langs->load("main",0,1);
$right=($langs->direction=='rtl'?'left':'right');
$left=($langs->direction=='rtl'?'right':'left');
$fontsize=empty($conf->browser->phone)?'12':'10';
$fontsizesmaller=empty($conf->browser->phone)?'11':'10';
$fontsize=empty($conf->browser->phone)?'12':'12';
$fontsizesmaller=empty($conf->browser->phone)?'11':'11';
?>
@ -169,10 +169,16 @@ div.fiche {
/* ============================================================================== */
<?php
$minwidthtmenu=0;
$heightmenu=19;
$minwidthtmenu=70;
$heightmenu=47;
if (! empty($conf->browser->phone))
{
$minwidthtmenu=0;
$heightmenu=19;
}
else
{
$minwidthtmenu=70;
$heightmenu=47;
}
?>
div.tmenu {
@ -276,17 +282,18 @@ li.tmenu {
font-weight: normal;
}
<?php $i=2; ?>
div.mainmenu {
position : relative;
color: white;
background-repeat:no-repeat;
background-position:center top;
height:28px;
height: <?php echo ($heightmenu-19); ?>px;
margin-left: 0px;
}
<?php if (empty($conf->browser->phone)) { ?>
div.mainmenu.home{
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/home.png' ?>);
}
@ -393,6 +400,9 @@ foreach($mainmenuusedarray as $key => $val)
// End of part to add more div class css
?>
<?php
} // End test if not phone
?>
/* Login */