'; echo ""; if ( $p_admin !=0 ) { /* Administrator Menu */ echo ''; } if (strlen ( $p_item ) != 0 ) { echo ''; } echo ' '; echo ""; echo "
Administrator Menu'.$p_item.' Préférence"; html_button_logout(); echo "
"; echo ""; } /* function ShowMenuCompta * Purpose : Montre le menu du haut * * parm : * - dossier * - $p_user array ($g_UserProperty) * gen : * - none * return: * - none * */ function ShowMenuCompta($p_dossier,$pa_user) { if ( ! isset ( $pa_user ) ) { exit (1); } if ( $pa_user['use_usertype'] == 'compta' ) { include_once ("compta_menu.php"); c_ShowMenuCompta($p_dossier); } else if ( $pa_user['use_usertype']=='user') { include_once ("user_menu.php"); u_ShowMenuCompta($p_dossier); } } /* function * Purpose : * * parm : * - * gen : * - * return: * - * */ function ShowMenuParam() { $sub_menu=ShowItem(array( //('rapprt.php','Rapprochement'), array('dossier_prefs.php?p_action=devise','Devises'), array('dossier_prefs.php?p_action=periode','Période'), array('user_sec.php','Sécurité') ), 'H',"cell","mtitle"); return $sub_menu; } /* function ShowMenuComptaRight * Purpose : Display menu on the Right * (preference, logout and admin) * parm : * - $p_dossier the current dossier * - $p_auser array $g_UserProperty * - $p_more code * gen : * - none * return: * - none * */ function ShowMenuComptaRight($p_dossier=0,$p_auser,$p_more="") { if ( ! isset ( $p_auser['use_usertype'])) { exit (1); } if ( $p_auser['use_usertype']=='compta') { include_once("compta_menu.php"); c_ShowMenuComptaRight($p_dossier,$p_auser['use_admin'],$p_more); } else if ( $p_auser['use_usertype']=='user') { include_once("user_menu.php"); u_ShowMenuComptaRight($p_dossier,$p_auser['use_admin'],$p_more); } } /* function ShowMenuAdminGlobalRight($p_dossier=0) * Purpose : * Same as previous : show the right menu * parm : * - p_dossier * gen : * - none * return: * - none * */ /* obsolete function ShowMenuAdminGlobalRight($p_dossier=0) { include_once("ac_common.php"); echo '
'; echo ''; echo ''; echo ''; if ( $p_dossier != 0) { printf( '', $p_dossier); } echo ''; echo "
Accueil
Preference
Retour Dossier
'; html_button_logout(); echo '
"; echo '
'; } */ /* function ShowMenuPcmn($p_start=1) * Purpose : Show the menu from the pcmn page * * parm : * - $p_start class start * gen : * - none * return: * - none * */ function ShowMenuPcmn($p_start=1) { echo ''; } /* function ShowMenuJrn($p_dossier) * Purpose : Show the menu in the jrn page * * parm : * - $p_dossier * gen : * - none * return: * - none * */ function ShowMenuJrn($p_dossier) { echo ''; } /* function ShowMenuJrnUser($p_dossier,$p_user) * Purpose : Display and Show the Menu from the jrn encode * page following the use_usertype (compta,user,...) * * parm : * - $p_dossier * - $p_auser * - $p_type (ACH, BQE, VEN) * - $p_jrn what journal * gen : * - none * return: * - none * */ function ShowMenuJrnUser($p_dossier,$p_auser,$p_type=-1,$p_jrn=-1) { if ( ! isset ($p_auser['use_usertype'] ) ) exit (-1); if ($p_auser['use_usertype'] == 'compta' ) { include_once("compta_menu.php"); c_ShowMenuJrnUser($p_dossier,$p_auser['use_login']); } if ($p_auser['use_usertype'] == 'user' ) { include_once("user_menu.php"); u_ShowMenuJrnUser($p_dossier,$p_auser['use_login'],$p_type,$p_jrn); } } /* function ShowMenuRecherche * Purpose : * * parm : * - $p_dossier, * - $p_jrn jrn id * - $p_array=null previous search * gen : * - none * return: * - none * */ function ShowMenuRecherche($p_dossier,$p_jrn,$p_array=null) { echo_debug(__FILE__,__LINE__,"ShowMenuRecherche($p_dossier,$p_jrn,$p_array)"); if ( $p_array != null ) { foreach ( $p_array as $key=> $element) { ${"p_$key"}=$element; echo_debug(__FILE__,__LINE__,"p_$key =$element;"); } } $opt='