';
$r.=JS_SEARCH_POSTE;
$r.=JS_SEARCH_CARD;
$r.= '
Recherche
';
$r.= '
";
return $r;
}
/*!
**************************************************
* \brief build the menu of user_advanced.php
*
* \param $default
*
* \return the menu
*/
function ShowMenuAdvanced($default="") {
$str_dossier=dossier::get();
// Show the left menu
$left_menu=ShowItem(array(
//('rapprt.php','Rapprochement'),
array('jrn_update.php?'.$str_dossier,'Journaux',"Gestion des journaux",1),
array('user_advanced.php?'.$str_dossier.'&p_action=preod','Ecritures sauvees',"",9),
array('user_advanced.php?p_action=periode&'.$str_dossier,'Periode',"Gestion des periodes",2),
array('central.php?'.$str_dossier,'Centralise',"Centralisation",3),
array('pcmn_update.php?p_start=1&'.$str_dossier,'Plan Comptable',"Gestion Plan Comptable",4),
array('compta.php?p_action=stock&'.$str_dossier,'Stock',"Gestion des stocks",5),
array('form.php?'.$str_dossier,'Rapport',"Rapport",6),
array('import.php?'.$str_dossier,'Import Banque',"Banque",7),
array('ecrit_ouv.php?'.$str_dossier,'Ecriture ouverture',"",8)
),
'H',"cell","mtitle",$default);
$r='";
return $r;
}
/*!
**************************************************
* \brief Return a string containing the menu
* main menu when you click on Journaux
* \param $p_menu the current menu (selected)
*
* \return HTML Code
*/
function ShowJrn($p_menu="")
{
$p_array=array(
array("user_jrn.php?jrn_type=NONE" ,"Grand Livre"),
array("user_jrn.php?jrn_type=VEN" ,"Entrée"),
array("user_jrn.php?jrn_type=ACH","Dépense"),
array("user_jrn.php?jrn_type=FIN","Financier"),
array("user_jrn.php?jrn_type=ODS","Op. Diverses")
);
$result=ShowItem($p_array,'H',"cell","mtitle",$p_menu);
return $result;
}
/*!
**************************************************
* \brief Show the menu for the card management
*
* \param $p_dossier dossier 1
*
*
*
* \return nothing
*/
function ShowMenuFiche($p_dossier)
{
$cn=DbConnect($p_dossier);
$str_dossier=dossier::get();
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;
}
}
$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("login.php","Accueil"),
array("logout.php","Logout")
);
$menu=ShowItem($item,'H',"mtitle","mtitle",$def);
return $menu;
}
/*!
* \brief : Display Document's menu
*
* \param none
* \return string
*
*
*/
function ShowMenuDocument()
{
$base="parametre.php?p_action=document&sa=";
$sub_menu=ShowItem(
array(array($base."add_document","Ajout"))
,'V',"cell","mtitle");
return $sub_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'),
array('parametre.php?p_action=devise&'.$s,'Devises'),
array('parametre.php?p_action=tva&'.$s,'Tva'),
array('parametre.php?p_action=poste&'.$s,'Poste Comptable'),
array('parametre.php?p_action=fiche&'.$s,'Fiche'),
array('user_sec.php?'.$s,'Sécurité'),
array('parametre.php?p_action=document&'.$s,'Document'),
array('commercial.php?'.$s,"Gestion"),
array('user_compta.php?'.$s,"Comptabilité"),
// array('login.php','Accueil',"Accueil"),
//array('logout.php','logout',"Sortie")
),
'H',"mtitle","mtitle",$p_action,' width="100%"');
return $sub_menu;
}
/*!
* \brief Show the menu in the jrn page
*
* \param $p_dossier
*
*
*
* \return nothing
*
*
*/
function MenuJrn()
{
$str_dossier=dossier::get();
echo '
';
echo '| Création |
';
include_once("postgres.php");
$Cn=DbConnect(dossier::id());
$Ret=ExecSql($Cn,"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");
$Max=pg_NumRows($Ret);
for ($i=0;$i<$Max;$i++) {
$l_line=pg_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 ShowMenuPcmn($p_start=1)
{
$str_dossier="&".dossier::get();
echo '
";
}
/*!
* \brief Show the left menu for the report (add a report, view it)
*
* \param $p_dossier dossier id
*
*
*
* \return nothing
*
*
*/
function ShowMenuComptaForm() {
$cn=DbConnect(dossier::id());
$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 '
";
}
?>