36if (!defined(
'ALLOWED'))
37 die(
'Appel direct ne sont pas permis');
40if (
$g_user->check_module(
'CFGPRO')==0)
53 echo $exc->getMessage();
54 error_log($exc->getTraceAsString());
67 $ame_code=
$cn->make_array(
"
68select me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'')
69 ||'('|| case when me_type='SP' then 'Special'
70 when me_type='PL' then 'Plugin'
71 when me_type='ME' and me_file is null and me_javascript is null and me_url is null then 'Module - Menu principal'
72 when me_type='ME' then 'Menu'
87 $ame_code=
$cn->make_array(
"
88select me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'')
89 ||'('|| case when me_type='SP' then 'Special'
90 when me_type='PL' then 'Plugin'
91 when me_type='ME' and me_file is null and me_javascript is null and me_url is null then 'Module - Menu principal'
92 when me_type='ME' then 'Menu'
107 $ame_code=
$cn->make_array(
"
108select me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'')
109 ||'('|| case when me_type='SP' then 'Special'
110 when me_type='PL' then 'Plugin'
111 when me_type='ME' and me_file is null and me_javascript is null and me_url is null then 'Module - Menu principal'
112 when me_type='ME' then 'Menu'
121 coalesce(me_file,'') <> '' or
122 coalesce(me_url,'') <> '' or
123 coalesce(me_javascript,'') <> ''
130 throw new Exception(
'LEVEL ERROR');
144 <form method=
"POST" id=
"menu_new_frm" onsubmit=
"return confirm_box('menu_new_frm','<?php echo _('Vous confirmez'); ?> ?')">
155 <
td><?php echo _(
"Code") ?></
td>
160 <
td><?php echo _(
"Ordre d'apparition") ?></
td>
164 <
td><?php echo _(
"Menu par défaut") ?></
td>
179 $ame_code=
$cn->make_array(
"
180select me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'')
184 and me_code not in (select me_code from profile_menu where p_id=$1)
192 if (count($ame_code)==0)
194 echo
h2(_(
"Aucune impression disponible à ajouter"),
199 <form method=
"POST" id=
"menu_new2_frm" onsubmit=
"return confirm_box('menu_new2_frm','<?php echo _('Vous confirmez ?') ?>">
210 <
td><?php echo _(
"Code") ?></
td>
h2($p_string, $p_class="", $raw="")
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
global $g_user
if no group available , then stop
This class handles only the numeric input, the input will call a javascript to change comma to period...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
if( $delta< 0) elseif( $delta==0)