make_array(" select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref where me_file is null and me_javascript is null and me_url is null and me_type<>'PR' and me_type <> 'SP' and me_code in (select me_code from profile_menu where p_id=".sql_string($p_id).")". " UNION ALL select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref where me_code='EXT' order by 1 ",1); $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' else me_type end||')' from menu_ref order by 1 "); $p_order=new INum("p_order","10"); $atype=$cn->make_array("select pm_type,pm_desc from profile_menu_type order by 1"); $me_code=new ISelect('me_code'); $me_code->value=$ame_code; $me_code_dep=new ISelect('me_code_dep'); $me_code_dep->value=$ame_code_dep; $p_type=new ISelect('p_type'); $p_type->value=$atype; $pm_default=new ICheckBox('pm_default'); echo HtmlInput::title_box("Nouveau menu", $ctl); ?>
Code input()?>
Dépendant de input()?>
Ordre d'apparition input()?>
Menu par défaut input()?>
Type de menu input()?>
'; } if ($type=='pr') { $ame_code=$cn->make_array(" select me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'') from menu_ref where me_type='PR' and me_code not in (select me_code from profile_menu where p_id=".sql_string($p_id).") order by 1 "); $me_code=new ISelect('me_code'); $me_code->value=$ame_code; echo HtmlInput::title_box("Nouveau menu", $ctl); if (count($ame_code)==0) { echo h2("Aucune impression disponible à ajouter",'class="notice"'); return; } ?>
Code input()?>
'; } ?>