Interfaces changes
This commit is contained in:
parent
93be0c3ddc
commit
bb353b1930
11 changed files with 83 additions and 73 deletions
|
|
@ -35,7 +35,7 @@ include_once ("top_menu_compta.php");
|
|||
|
||||
|
||||
ShowMenuCompta($g_dossier,$g_UserProperty);
|
||||
ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
// ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
include_once ("check_priv.php");
|
||||
|
||||
if ( $g_UserProperty['use_admin'] == 0 ) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ $cn=DbConnect($l_Db);
|
|||
|
||||
|
||||
|
||||
ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
// ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
if ( $g_UserProperty['use_admin'] == 0 ) {
|
||||
$read=CheckAction($g_dossier,$g_user,FICHE_READ);
|
||||
$write=CheckAction($g_dossier,$g_user,FICHE_WRITE);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN">
|
|||
<center>
|
||||
<IMG SRC="image/logo7.jpg" alt="Logo">
|
||||
<BR>
|
||||
|
||||
<form action=login.php method=post>
|
||||
<TABLE BGCOLOR="#4851FF"><TR><TD>
|
||||
<TABLE Bgcolor="white" BORDER=0 CELLSPACING=0>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ include_once ("top_menu_compta.php");
|
|||
ShowMenuCompta($g_dossier,$g_UserProperty);
|
||||
|
||||
// Show the right menus
|
||||
ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
// ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
|
||||
$left_menu=ShowMenuAdvanced();
|
||||
echo '<div class="lmenu">';
|
||||
|
|
|
|||
|
|
@ -62,80 +62,88 @@ if ( $g_UserProperty['use_admin'] == 0 ) {
|
|||
} // if isset g_jrn
|
||||
|
||||
}
|
||||
// a journal is selected
|
||||
// then we show the available journals of this type
|
||||
if ( isset ($_GET['JRN_TYPE'] ) ) {
|
||||
$p_array=array(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"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
// if show
|
||||
if ( isset ($_GET['show'])) {
|
||||
|
||||
$p_array=array(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"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell");
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
||||
$jrn_type=$_GET['JRN_TYPE'];
|
||||
echo_debug(__FILE__,__LINE__,"jrn_type = $jrn_type");
|
||||
session_register("jrn_type");
|
||||
if ( $jrn_type=='VEN' ) include('user_action_ven.php');
|
||||
if ( $jrn_type=='ACH' ) include('user_action_ach.php');
|
||||
if ( $jrn_type=='FIN' ) include('user_action_fin.php');
|
||||
if ( $jrn_type=='OD' ) include('user_action_ods.php');
|
||||
|
||||
}
|
||||
|
||||
// the parameters show is given
|
||||
// in that case we should a submenu
|
||||
if ( isset ($_GET['show']) ) {
|
||||
$g_jrn=-1;
|
||||
$p_array=array(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"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell");
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
||||
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// if a journal is selected show the journal's menu
|
||||
if ( isset ($_GET['action']) ) {
|
||||
$p_array=array(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"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell");
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
||||
if ( isset ($_GET['JRN_TYPE'] ) ) {
|
||||
$jrn_type=$_GET['JRN_TYPE'];
|
||||
switch ($jrn_type) {
|
||||
case 'VEN':
|
||||
echo 'Vente';
|
||||
break;
|
||||
case 'ACH':
|
||||
echo 'Achat';
|
||||
break;
|
||||
case 'FIN':
|
||||
echo 'Financier';
|
||||
break;
|
||||
case 'OD':
|
||||
echo 'Opérations diverses';
|
||||
break;
|
||||
}
|
||||
ShowMenuJrnUser($g_dossier,$g_UserProperty,$_GET['JRN_TYPE'],$g_jrn);
|
||||
} else {
|
||||
echo_debug("Selected is $g_jrn");
|
||||
// Get the jrn_type_id
|
||||
include_once('jrn.php');
|
||||
$JrnProp=GetJrnProp($g_dossier,$g_jrn);
|
||||
$jrn_type=$JrnProp['jrn_def_type'];
|
||||
echo_debug("Type is $jrn_type");
|
||||
echo_debug("Jrn_def_type = $jrn_type");
|
||||
switch ( $jrn_type ) {
|
||||
case 'VEN':
|
||||
echo 'Vente';
|
||||
break;
|
||||
case 'ACH':
|
||||
echo 'Achat';
|
||||
break;
|
||||
case 'FIN':
|
||||
echo 'Financier';
|
||||
break;
|
||||
case 'OD':
|
||||
echo 'Opérations diverses';
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
ShowMenuJrnUser($g_dossier,$g_UserProperty,$jrn_type,$g_jrn);
|
||||
}
|
||||
|
||||
// if a journal is selected show the journal's menu
|
||||
if ( $g_jrn != -1 ) {
|
||||
|
||||
// Get the jrn_type_id
|
||||
include_once('jrn.php');
|
||||
$JrnProp=GetJrnProp($g_dossier,$g_jrn);
|
||||
$jrn_type=$JrnProp['jrn_def_type'];
|
||||
// display jrn's menu
|
||||
include_once('user_menu.php');
|
||||
$menu_jrn=u_ShowMenuJrn($cn,$jrn_type);
|
||||
echo '<div class="searchmenu">';
|
||||
echo $menu_jrn;
|
||||
echo '</DIV>';
|
||||
echo_debug(__FILE__,__LINE__,"jrn_type = $jrn_type");
|
||||
include_once('user_menu.php');
|
||||
$menu_jrn=u_ShowMenuJrn($cn,$jrn_type);
|
||||
echo '<div class="searchmenu">';
|
||||
|
||||
echo $menu_jrn;
|
||||
echo '</DIV>';
|
||||
|
||||
// Execute Action for g_jrn
|
||||
if ( $jrn_type=='VEN' ) include('user_action_ven.php');
|
||||
if ( $jrn_type=='ACH' ) include('user_action_ach.php');
|
||||
if ( $jrn_type=='FIN' ) include('user_action_fin.php');
|
||||
if ( $jrn_type=='OD ' ) include('user_action_ods.php');
|
||||
} // if isset g_jrn
|
||||
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -54,9 +54,9 @@ CheckUser();
|
|||
include_once ("top_menu_compta.php");
|
||||
if ( isset ($g_dossier) ) {
|
||||
if ( $g_dossier != 0 ) ShowMenuCompta($g_dossier,$g_UserProperty);
|
||||
ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
// ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
} else {
|
||||
ShowMenuComptaRight(0,$g_UserProperty);
|
||||
// ShowMenuComptaRight(0,$g_UserProperty);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ $cn=DbConnect($dossier);
|
|||
|
||||
// phpinfo();
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
// echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ $dossier=sprintf("dossier%d",$g_dossier);
|
|||
$cn=DbConnect($dossier);
|
||||
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
// echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ $dossier=sprintf("dossier%d",$g_dossier);
|
|||
$cn=DbConnect($dossier);
|
||||
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
// echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ $dossier=sprintf("dossier%d",$g_dossier);
|
|||
$cn=DbConnect($dossier);
|
||||
// default action is insert_vente
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
$action='insert_vente';
|
||||
$blank=1;
|
||||
// echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
} else {
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
$blank=(isset($_GET["blank"]))?1:0;
|
||||
|
|
|
|||
|
|
@ -276,6 +276,7 @@ function u_ShowMenuJrnUser($p_dossier,$p_user,$p_type,$p_jrn)
|
|||
}
|
||||
}// if right
|
||||
}// for
|
||||
echo '</TR>';
|
||||
echo "</TABLE>";
|
||||
echo '</div>';
|
||||
|
||||
|
|
@ -305,7 +306,7 @@ function u_ShowMenuJrn($p_cn,$p_jrn_type)
|
|||
$ret="<TABLE>";
|
||||
for ($i=0;$i<$num;$i++) {
|
||||
$action=pg_fetch_array($Res,$i);
|
||||
$ret.=sprintf('<TR><TD class="cell"><A class="mtitle" HREF="%s?%s">%s</A></td></tR>',
|
||||
$ret.=sprintf('<TR><TD class="cell"><A class="mtitle" HREF="%s?%s">%s</A></td></TR>',
|
||||
$action['ja_url'],$action['ja_action'],$action['ja_name']);
|
||||
}
|
||||
$ret.='</TABLE>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue