';
$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="") {
// Show the left menu
$left_menu=ShowItem(array(
//('rapprt.php','Rapprochement'),
array('jrn_update.php','Journaux'),
array('user_advanced.php?p_action=periode','Periode'),
array('central.php','Centralise'),
array('pcmn_update.php?p_start=1','Plan Comptable'),
array('compta.php?p_action=stock','Stock'),
array('form.php','Rapport'),
array('import.php','Import Banque'),
array('ecrit_ouv.php','Ecriture ouverture')
),
'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=OD","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);
echo '';
}
/*! MenuAdmin */
/* \brief show the menu for user/database management
/*
/* \return HTML code with the menu
*/
function MenuAdmin()
{
$item=array (array("admin_repo.php?action=user_mgt","Utilisateurs"),
array("admin_repo.php?action=dossier_mgt","Dossiers"),
array("admin_repo.php?action=modele_mgt","Modèles"),
array("login.php","Accueil"),
array("logout.php","Logout")
);
$menu=ShowItem($item,'H');
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="")
{
$sub_menu=ShowItem(array(
array('parametre.php?p_action=company','Sociétés'),
array('parametre.php?p_action=devise','Devises'),
array('parametre.php?p_action=tva','Tva'),
array('parametre.php?p_action=poste','Poste Comptable'),
array('parametre.php?p_action=fiche','Fiche'),
array('user_sec.php','Sécurité'),
array('parametre.php?p_action=document','Document'),
array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"),
array('user_compta.php?dos='.$_SESSION['g_dossier'],"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($p_dossier)
{
echo '
';
echo '| Création |
';
include_once("postgres.php");
$Cn=DbConnect($p_dossier);
$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)
{
echo '
";
}
/*!
* \brief Show the left menu for the report (add a report, view it)
*
* \param $p_dossier dossier id
*
*
*
* \return nothing
*
*
*/
function ShowMenuComptaForm($p_dossier) {
$cn=DbConnect($p_dossier);
echo '';
}
/*!
* \brief Show the menu for importing, verify and transfert Bank CSV
*
* \return nothing
*/
function ShowMenuImport(){
echo '
";
}
?>