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); $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']; $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']); ?>