[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/21: Task #1151 - Amélioration configurati
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/21: Task #1151 - Amélioration configuration des menus #1151 show only menu and no printing for dependency |
Date: |
Wed, 19 Aug 2015 22:59:29 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 507bcc6f1f7880edeacd4eb445698e23ff7758b2
Author: Dany De Bontridder <address@hidden>
Date: Sat Aug 15 09:58:59 2015 +0200
Task #1151 - Amélioration configuration des menus
#1151 show only menu and no printing for dependency
---
include/ajax_add_menu.php | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/ajax_add_menu.php b/include/ajax_add_menu.php
index 61a35b1..333810a 100644
--- a/include/ajax_add_menu.php
+++ b/include/ajax_add_menu.php
@@ -30,6 +30,7 @@ if ($type == 'XX') {
throw new Exception('invalid call');
return;
}
+// if type == menu the
if ( $type=='me')
{
$ame_code_dep=$cn->make_array("
@@ -47,7 +48,6 @@ $ame_code_dep=$cn->make_array("
$ame_code=$cn->make_array("
select me_code,me_code||' '||coalesce(me_menu,'')||'
'||coalesce(me_description,'')
||'('|| case when me_type='SP' then 'Special'
- when me_type='PR' then 'Impression'
when me_type='PL' then 'Plugin'
when me_type='ME' and me_file is null and me_javascript is null
and me_url is null then 'Module - Menu principal'
when me_type='ME' then 'Menu'
@@ -56,6 +56,8 @@ select me_code,me_code||' '||coalesce(me_menu,'')||'
'||coalesce(me_description,
end||')'
from
menu_ref
+ where
+ me_type<>'PR'
order by 1
");
@@ -104,7 +106,10 @@ echo HtmlInput::title_box(_("Nouveau menu"), $ctl);
<?php
echo HtmlInput::submit('add_menu',_("Valider"));
echo '</form>';
+return;
}
+
+// for printing menu (export CSV or PDF)
if ($type=='pr')
{
@@ -143,8 +148,9 @@ $me_code->value=$ame_code;
</table>
<?php
-echo HtmlInput::submit('add_impress',_("Valider"));
-echo '</form>';
+ echo HtmlInput::submit('add_impress',_("Valider"));
+ echo '</form>';
+ return;
}
?>
- [Noalyss-commit] [noalyss] branch master updated (df8521e -> 83523a1), Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 02/21: cosmetic : size of button, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 01/21: forgotten quote in path Use a variable for an absolute path for performance reason NOALYSS_INCLUDE NOALYSS_HOME NOALYSS_PLUGIN, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 03/21: Add invisible image for menu, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 04/21: remove dead code, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 06/21: Fix bug for dedicated server, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 07/21: Move system parameter to config.inc.php, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 09/21: New logo cosmetic, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 10/21: Task #1151 - Amélioration configuration des menus #1151 show only menu and no printing for dependency,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/21: cosmetic, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 08/21: Task #1127 - Ajout évenement depuis tableau de bord ou agenda #1127 add security, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 17/21: translation, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 12/21: code documentation, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 11/21: translation, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 14/21: #1151 Hide or show the detail of a profile or the list of profile, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 13/21: translation, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 15/21: Task #1151 - Amélioration configuration des menus #1151 Hide or show the detail of a profile or the list of profile, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 18/21: Add a constant BUTTONADD, Dany De Bontridder, 2015/08/19
- [Noalyss-commit] [noalyss] 20/21: Task #1151 - Amélioration configuration des menus Ergonomy change easily the menu and configuration + SQL for upgrade, Dany De Bontridder, 2015/08/19