/*
* This file is part of PhpCompta.
*
* PhpCompta is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* PhpCompta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/* $Revision$ */
/* function ShowMenu
* Purpose : Show The login menu
*
* parm :
* - $p_admin 1 if admin
* - $p_item item to add
* gen :
* - none
* return:
* - nothing
*
*/
function ShowMenu($p_admin,$p_check = 1,$p_item="")
{
/* $p_check == 1 si test sur Admin */
include_once("postgres.php");
echo '
';
echo "
";
if ( $p_admin !=0 ) {
/* Administrator Menu */
echo '
';
$Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label");
$Max=pg_NumRows($Res);
for ( $i=0; $i < $Max;$i++) {
$l_line=pg_fetch_array($Res,$i);
printf('
';
}
/* 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 ShowMenuJrn($p_dossier)
* Purpose : Show the menu in the jrn page
*
* parm :
* - $p_dossier
* gen :
* - none
* return:
* - none
*
*/
function ShowMenuJrn($p_dossier)
{
echo '