'; $r.=$result; $r.=''; return $r; } /*! ************************************************** * \brief build the menu of user_advanced.php * * \param $default * * \return the menu */ function ShowMenuAdvanced_deprecated($default="") { $str_dossier=dossier::get(); // Show the left menu $left_menu=ShowItem(array( //('rapprt.php','Rapprochement'), array('user_advanced.php?'.$str_dossier.'&p_action=preod',_('Ecritures definies'),"",9), array('compta.php?p_action=stock&'.$str_dossier,'Stock',_("Gestion des stocks"),5), array('user_advanced.php?p_action=defreport&'.$str_dossier,_('Rapport'),_("Rapport"),6), array('user_advanced.php?p_action=ouv&'.$str_dossier,_('Ecriture ouverture'),"",8), array('user_advanced.php?p_action=verif&'.$str_dossier,_('Vérification'),"",10) ), 'H',"mtitle","mtitle",$default); $r='
'.$left_menu."
"; return $r; } /*! * \brief Show the menu for the card management * * \param $p_dossier dossier 1 * * * * \return nothing */ function ShowMenuFiche($p_dossier) { $cn=new Database($p_dossier); $mod="&ac=".$_REQUEST['ac']; $str_dossier=dossier::get().$mod; echo ''; } /*! MenuAdmin */ /* \brief show the menu for user/database management /* /* \return HTML code with the menu */ function MenuAdmin() { $def=-1; if (isset($_REQUEST['UID'])) $def=0; if ( isset ($_REQUEST['action'])) { switch ($_REQUEST['action']) { case 'user_mgt': $def=0; break; case 'dossier_mgt': $def=1; break; case 'modele_mgt': $def=2; break; case 'audit_log': $def=4; break; case 'restore'; $def=3; break; } } $item=array (array("admin_repo.php?action=user_mgt",_("Utilisateurs"),_('Gestion des utilisateurs'),0), array("admin_repo.php?action=dossier_mgt",_("Dossiers"),_('Gestion des dossiers'),1), array("admin_repo.php?action=modele_mgt",_("Modèles"),_('Gestion des modèles'),2), array("admin_repo.php?action=restore",_("Restaure"),_("Restaure une base de données"),3), array("admin_repo.php?action=audit_log",_("Audit"),_("Utilisateurs qui se sont connectés"),4), array("login.php",_("Accueil")) ); $menu=ShowItem($item,'H',"mtitle","mtitle",$def,' style="width:80%;margin-left:10%" '); return $menu; } /*! * \brief Show the parameter menu * * \param $p_action the last action choosed * * * * \return HTML Code * * */ function ShowMenuParam($p_action="") { $s=dossier::get(); $sub_menu=ShowItem(array( array('parametre.php?p_action=company&'.$s,_('Sociétés'),_('Parametre societe'),1), array('parametre.php?p_action=periode&'.$s,_('Periode'),_("Gestion des periodes"),25), array('parametre.php?p_action=divers&'.$s,_('Divers'),_('Devise, moyen de paiement'),2), array('parametre.php?p_action=pcmn&'.$s,_('Plan Comptable'),_('Modification du plan comptable'),11), array('parametre.php?p_action=ext&'.$s,_('Extension'),_('Extension'),3), array('parametre.php?p_action=sec&'.$s,_('Sécurité'),_('securite'),8), array('parametre.php?p_action=preod&'.$s,_('Ecritures définies'),_('Ecritures définies'),12), array('parametre.php?p_action=document&'.$s,_('Document'),_('Facture, lettre de rappel, proposition...'),7), array('parametre.php?p_action=jrn&'.$s,_('Journaux'),_('Creation et modification de journaux'),10) ), 'H',"mtitle","mtitle",$p_action,' width="100%"'); return $sub_menu; } /*! * \brief display the html the menu in the jrn page * * \return nothing * * */ function MenuJrn() { $str_dossier=dossier::get(); echo ''; echo ''; require_once('class_database.php'); $Cn=new Database(dossier::id()); $Ret=$Cn->exec_sql("select jrn_def_id,jrn_def_name, jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc from jrn_def join jrn_type on jrn_def_type=jrn_type_id order by jrn_def_name"); $Max=Database::num_row($Ret); for ($i=0;$i<$Max;$i++) { $l_line=Database::fetch_array($Ret,$i); printf ('', $l_line['jrn_def_id'],$l_line['jrn_def_name']); } echo "
'._('Création').'
%s
"; } /*! * \brief Show the menu from the pcmn page * * \param $p_start class start default=1 * * * * \return nothing * * */ function menu_acc_plan($p_start=1) { $base="?ac=".$_REQUEST['ac']; $str_dossier="&".dossier::get(); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo "
0'._(' Hors Bilan').'
1'._(' Immobilisé').'
2 '._('Actif a un an au plus').'
3 '._('Stock et commande').'
4 '._('Compte tiers').'
5'._('Actif').'
6'._('Charges').'
7'._('Produits').'
8'._('Hors Comptabilité').'
9 '._('Hors Comptabilité').'
"; } /*! * \brief Show the menu for importing, verify and transfert Bank CSV * * \return nothing */ function ShowMenuImport() { $str_dossier=dossier::get(); echo ''; echo ''; echo ''; echo ''; echo ''; echo "
'._('Importer CSV').'
'._('Verif CSV').'
'._('Transfert CSV').'
'._('Purge CSV').'
"; } /*!\brief show the top menu to access the different modules in top * \param $p_from from which module this function is called * \note must include javascript : acc_ledger.js * \return string */ function menu_tool_deprecated($p_from) { if ( ! isset ($_REQUEST['gDossier'])) return "" ; $r=""; $r.= '
'; $r.= '
'; $r.= "

Dossier : ".h(dossier::name())."

"; $r.=IButton::show_calc(); $r.= '
'; $r.= '
'; if ( $p_from == 'compta') $view='E'; else $view='S'; $agent=$_SERVER['HTTP_USER_AGENT']; $amodule=array( array('value'=>'access.php','label'=>_('Tableau de bord')), array('value'=>'user_pref.php','label'=>_('Preference')), array('value'=>'parametre.php','label'=>_('Paramètre')), array('value'=>'user_login.php','label'=>_('Autre Dossier')), array('value'=>'logout.php','label'=>_('Deconnexion')), array('value'=>'new_line'), array('value'=>'compta.php','label'=>_('Compta Générale')), array('value'=>'commercial.php','label'=>_('Gestion')), array('value'=>'comptanalytic.php','label'=>_('Compt. Analytique')), array('value'=>'extension.php','label'=>_('Extension')) ) ; $gDossier=dossier::id(); $r.= ''; $r.=''; foreach($amodule as $col ) { $url=$col['value'].'?'.dossier::get(); if ( $p_from==$col['value']) { $r.= ''; } else { if ( $col['value']=='new_line') { $r.=''; continue; } $r.= ''; } } $r.=''; $r.=''; $r.= '
'. ''.$col['label'].''. '
'. ''.$col['label'].''. ''; $r.= ''. _('Recherche').'
'; $r.= '
'; $r.= '
'; $r.= ''; return $r; }