'.$p_string."
"; } function span($p_string, $p_extra='') { return '' . $p_string . ''; } function hi($p_string) { return '' . h($p_string) . ''; } function hb($p_string) { return '' . h($p_string) . ''; } function th($p_string, $p_extra='',$raw='') { return ''. HtmlInput::button_action('Valider','$(\'error_div\').style.visibility=\'hidden\';$(\'error_content_div\').innerHTML=\'\';'). '
'. ''; echo $reload->input(); echo HtmlInput::button_close($p_div,'button'); echo '
'; } /** * @brief Show the modules * @param int $selected module selected profile_menu.pm_id */ function show_module($selected) { global $g_user; $cn = Dossier::connect(); $amodule = $cn->get_array("select me_code,me_menu,me_url,me_javascript,p_order,me_type,me_description from v_all_menu where p_id=$1 and p_type_display='M' order by p_order", array($g_user->get_profile())); if ($selected != -1) { $selected_module=$cn->get_value('select me_code from profile_menu where' . ' pm_id = $1 ', array($selected)); require_once NOALYSS_TEMPLATE.'/module.php'; $file = $cn->get_array("select me_file,me_parameter,me_javascript,me_type,me_description from v_all_menu where pm_id=$1 and p_id=$2", array($selected,$g_user->get_profile())); if ( count($file ) == 0 ) { echo ''; echo ''; echo '$p_code