get_value("select p_id from profile_menu where pm_id=$1",array($pm_id)); $a_value=$cn->make_array("select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref",0); $ame_code_dep=$cn->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($profile).")". " UNION ALL select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref where me_code='EXT' order by 1 ",1); $a_type=$cn->make_array("select pm_type,pm_desc from profile_menu_type",1); $array=$cn->get_array("select p_id,pm_id,me_code,me_code_dep,p_order,p_type_display,pm_default from profile_menu where pm_id=$1",array($pm_id)); if ( empty($array)) { alert("Code invalide"); exit(); } echo HtmlInput::title_box($array[0]['me_code'],'divdm'.$pm_id); $me_code=new ISelect('me_code'); $me_code->value=$a_value; $me_code->selected=$array[0]['me_code']; $me_code_dep=new ISelect('me_code_dep'); $me_code_dep->value=$ame_code_dep; $me_code_dep->selected=$array[0]['me_code_dep']; $p_order=new Inum('p_order',$array[0]['p_order']); $pm_default=new ICheckBox('pm_default','1'); $pm_default->set_check($array[0]['pm_default']); ?>
Code input()?>
Dépendant de input()?>
Ordre d'apparition input()?>
Menu par défaut input()?>

Cochez cette case si vous souhaitez effacer ce menu input(); ?>

Cochez cette case si vous souhaitez effacer ce menu ainsi que ceux qui en dépendent input(); ?>

'; ?>