';
$r.= '
';
return $r;
}
/* function function ShowMenuAdvanced() {
**************************************************
* Purpose : build the menu of user_advanced.php
*
* parm :
* - none
* gen :
* - none
* return: the menu
*/
function ShowMenuAdvanced($default="") {
// Show the left menu
$left_menu=ShowItem(array(
//('rapprt.php','Rapprochement'),
array('jrn_update.php','Journaux'),
array('central.php','Centralise'),
array('pcmn_update.php?p_start=1','Plan Comptable'),
array('stock.php','Stock'),
array('form.php','Rapport')
),
'H',"cell","mtitle",$default);
return $left_menu;
}
/* function ShowJrn
**************************************************
* Purpose : Return a string containing the menu
* main menu when you click on Journaux
* parm :
* - $p_menu the current menu (selected)
* gen :
* - none
* return: a string
*/
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;
}
/* function ShowMenuFiche
**************************************************
* Purpose :
*
* parm :
* -
* gen :
* -
* return:
*/
function ShowMenuFiche($p_dossier)
{
$cn=DbConnect($p_dossier);
echo '';
}
/* function ShowMenuAdminGlobalRight($p_dossier=0)
* Purpose :
* Same as previous : show the right menu
* parm :
* - p_dossier
* gen :
* - none
* return:
* - none
*
*/
function ShowMenuAdminGlobalRight($p_dossier=0)
{
include_once("ac_common.php");
echo '';
}
/* function MenuAdmin */
/* purpose : show the menu for user/database management */
/* parameter : none */
/* return : none */
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;
}
/* function
* Purpose :
*
* parm :
* -
* gen :
* -
* return:
* -
*
*/
function ShowMenuParam()
{
$sub_menu=ShowItem(array(
//('rapprt.php','Rapprochement'),
array('dossier_prefs.php?p_action=company','Paramètres sociétés'),
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 MenuJrn($p_dossier)
* Purpose : Show the menu in the jrn page
*
* parm :
* - $p_dossier
* gen :
* - none
* return:
* - none
*
*/
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 "
";
}
/* 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
* Purpose :
*
* parm :
* -
* gen :
* -
* return:
* -
*
*/
function ShowMenuComptaForm($p_dossier) {
$cn=DbConnect($p_dossier);
echo '';
}
?>