Enhancement in smartphone menu management

This commit is contained in:
Laurent Destailleur 2011-02-19 17:21:29 +00:00
parent 7faf3f5a37
commit 289005ba40
2 changed files with 15 additions and 12 deletions

View File

@ -34,11 +34,17 @@ require_once(DOL_DOCUMENT_ROOT."/boxes.php");
if (! isset($_GET["mainmenu"])) $_GET["mainmenu"]="home";
/*
* Actions
*/
// No actions
// Check if company name is defined (first install)
if (!isset($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_NOM))
{
header("Location: ".DOL_URL_ROOT."/admin/company.php?mainmenu=home&leftmenu=setup&mesg=setupnotcomplete");
exit;
}
@ -46,20 +52,12 @@ if (! isset($_GET["mainmenu"])) $_GET["mainmenu"]="home";
* View
*/
// Check if company name is defined (first install)
if (!isset($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_NOM))
{
header("Location: ".DOL_URL_ROOT."/admin/company.php?mainmenu=home&leftmenu=setup&mesg=setupnotcomplete");
exit;
}
// If smartphone mode, we do no show main page, we show only menu
if (preg_match('/^smartphone/',$conf->smart_menu) && isset($conf->browser->phone))
{
$limitmenuto=GETPOST('limitmenuto')?GETPOST('limitmenuto'):0;
$limitmenuto=1; // A virer
// Load the smartphone menu manager
$result=@include_once(DOL_DOCUMENT_ROOT ."/includes/menus/smartphone/".$conf->smart_menu);
if (! $result) // If failed to include, we try with standard

View File

@ -43,6 +43,10 @@ else header('Cache-Control: no-cache');
?>
.landscape, .landscape .ui-page {
min-height: 300px;
}
#dol-homeheader { height: 40px; font-size: 16px; }
@ -72,7 +76,7 @@ padding-bottom: 0px;
}
.ui-li .ui-btn-inner {
padding: 0.3em 5px 0.3em 5px;
padding: 0.4em 5px 0.4em 5px;
}
input.ui-input-text, textarea.ui-input-text {
@ -85,12 +89,13 @@ input.ui-input-text, textarea.ui-input-text {
.ui-body-c {
background: #FFFFFF;
text-shadow: none;
}
.loginform {
margin-left: 10px;
margin-right: 10px;
padding: 10px;
padding: 5px;
}