[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/10: Bug #1151Bug cannot display properly w
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/10: Bug #1151Bug cannot display properly when only one submenu |
Date: |
Wed, 26 Aug 2015 18:11:18 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit fd6192fa09c242fcc4c3953516030c53b24ccf94
Author: Dany De Bontridder <address@hidden>
Date: Wed Aug 26 00:05:14 2015 +0200
Bug #1151Bug cannot display properly when only one submenu
---
include/ac_common.php | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/include/ac_common.php b/include/ac_common.php
index a5207b2..358e5b0 100644
--- a/include/ac_common.php
+++ b/include/ac_common.php
@@ -295,11 +295,14 @@ function html_page_start($p_theme="", $p_script="",
$p_script2="")
if ($is_msie == 0 )
{
echo '<!doctype html>';
+ printf("\n");
echo '<meta name="viewport" content="width=device-width,
initial-scale=1.0">';
+ printf("\n");
+ }
+ else {
+ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN" >';
+ printf("\n");
}
- else
- echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN" >';
-
echo "<HTML>";
if ($p_script2 != "")
@@ -991,13 +994,26 @@ function show_menu($module)
$style_menu=$a_style_menu[$level];
}
require 'template/menu.php';
- } // there is only one submenu so we include the code or javascript
+ } // there is only one submenu so we include the code or javascript
+ // or we show the submenu
elseif (count($amenu) == 1)
{
+ if ( trim($amenu[0]['me_url']) != "" ||
+ trim ($amenu[0]['me_file']) != "" ||
+ trim ($amenu[0]['me_javascript']) != "" )
+ {
echo '<div class="topmenu">';
echo h2info(_($amenu[0]['me_menu']));
echo '</div>';
$module = $amenu[0]['pm_id'];
+ } else {
+ $url=$_REQUEST['ac'].'/'.$amenu[0]['me_code'];
+ echo '<a href="do.php?gDossier='.Dossier::id().'&ac='.$url.'">';
+ echo _($amenu[0]['me_menu']);
+ echo '</a>';
+ $level++;
+ return;
+ }
}
// There is no submenu or only one
@@ -1015,8 +1031,7 @@ function show_menu($module)
if (count($file)==0)
{
- echo "Configuration incorrecte pour ce module ".$module;
- exit;
+ return;
}
if ($file[0]['me_file'] != "")
- [Noalyss-commit] [noalyss] branch master updated (3d76f6d -> 1dc7ee2), Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 01/10: #1153 Dialog box : move smoke.css in each style sheet CSS to customize them, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 03/10: Bug #1151Bug cannot remove a submenu, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 07/10: Add variable NOALYSS_TEMPLATE, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 04/10: #1153 Dialog box : confirm_form in javascript , use of smoke, add style, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 05/10: Bug #1151Bug cannot display properly when only one submenu,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 08/10: Bug #1151 typo, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 06/10: Task #1159 - Déconnexion/reconnexion - pop-up? Bug #1151Bug cannot display properly when only one submenu, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 09/10: Code Documentation, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 02/10: Task #1151 - Amélioration configuration des menus Bug #1151error with the profile.p_id , confusion with profile_menu.pm_id, Dany De Bontridder, 2015/08/26
- [Noalyss-commit] [noalyss] 10/10: improve appearance, Dany De Bontridder, 2015/08/26