';
$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='
";
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 '| '._('Création').' |
';
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 ('| %s |
',
$l_line['jrn_def_id'],$l_line['jrn_def_name']);
}
echo "
";
}
/*!
* \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 '";
}
/*!
* \brief Show the menu for importing, verify and transfert Bank CSV
*
* \return nothing
*/
function ShowMenuImport()
{
$str_dossier=dossier::get();
echo '";
}
/*!\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.= '';
return $r;
}