removed obsolete files
This commit is contained in:
parent
c3588a607f
commit
7f94c79423
22 changed files with 157 additions and 327 deletions
|
|
@ -1,6 +1,4 @@
|
|||
************************* File = admin_dossier.php ****************
|
||||
************************* File = admin_repo.php ****************
|
||||
************************* File = advanced.php ****************
|
||||
************************* File = annulation.php ****************
|
||||
************************* File = a.php ****************
|
||||
************************* File = bal_csv.php ****************
|
||||
|
|
@ -8,8 +6,6 @@
|
|||
************************* File = central.php ****************
|
||||
************************* File = class.ezpdf.php ****************
|
||||
************************* File = class.pdf.php ****************
|
||||
************************* File = compta_login.php ****************
|
||||
************************* File = compta.php ****************
|
||||
************************* File = c.php ****************
|
||||
************************* File = dossier_prefs.php ****************
|
||||
************************* File = d.php ****************
|
||||
|
|
@ -22,7 +18,6 @@
|
|||
************************* File = fiche_search.php ****************
|
||||
************************* File = form.php ****************
|
||||
************************* File = html_balance.php ****************
|
||||
************************* File = impress.php ****************
|
||||
************************* File = index.php ****************
|
||||
************************* File = jrn_add.php ****************
|
||||
************************* File = jrn_csv.php ****************
|
||||
|
|
@ -44,11 +39,9 @@
|
|||
************************* File = print_invoice.php ****************
|
||||
************************* File = priv_user.php ****************
|
||||
************************* File = rapprochement.php ****************
|
||||
************************* File = rate_chg.php ****************
|
||||
************************* File = readme.php ****************
|
||||
************************* File = recherche.php ****************
|
||||
************************* File = send_jrn_pdf.php ****************
|
||||
************************* File = send.php ****************
|
||||
************************* File = send_poste_pdf.php ****************
|
||||
************************* File = show_tva.php ****************
|
||||
************************* File = stock.php ****************
|
||||
|
|
@ -1696,6 +1689,32 @@ postgres.php * parameter p_connection db connection
|
|||
postgres.php * p_string sql string
|
||||
postgres.php * return false if error otherwise true
|
||||
postgres.php */
|
||||
postgres.php /* function GetAllUser
|
||||
postgres.php * Return all the users
|
||||
postgres.php * as an array
|
||||
postgres.php */
|
||||
postgres.php /* function GetUid
|
||||
postgres.php * Check if the User is valid
|
||||
postgres.php * and return an array with his property
|
||||
postgres.php */
|
||||
postgres.php /* function GetPriv
|
||||
postgres.php * Get the privilege of an user on a folder
|
||||
postgres.php */
|
||||
postgres.php /* function ExisteJnt
|
||||
postgres.php * Get the number of rows
|
||||
postgres.php * from table jnt_use_dos where $p_dossier = dos_id and
|
||||
postgres.php * use_id=$p_user
|
||||
postgres.php */
|
||||
postgres.php /* function GetDossierName
|
||||
postgres.php * Param: id of a dossier
|
||||
postgres.php * return : Name of the dossier
|
||||
postgres.php */
|
||||
postgres.php /* function GetSequence
|
||||
postgres.php * get the current sequence
|
||||
postgres.php */
|
||||
postgres.php /* function NextSequence
|
||||
postgres.php * get the current sequence
|
||||
postgres.php */
|
||||
postgres.php /* function SyncRight
|
||||
postgres.php * Purpose : Synchronize les droits par défaut
|
||||
postgres.php * avec les journaux existants
|
||||
|
|
@ -1910,6 +1929,11 @@ stock_inc.php * gen :
|
|||
stock_inc.php * -
|
||||
stock_inc.php * return:
|
||||
stock_inc.php */
|
||||
stock_inc.php /* function GetQuantity($p_cn,$p_sg_code,$year,$p_type 'd' or 'c'
|
||||
stock_inc.php * purpose return the quantity of a sg_code for the period
|
||||
stock_inc.php *
|
||||
stock_inc.php * Return number or NULL
|
||||
stock_inc.php */
|
||||
************************* File = top_menu_compta.php ****************
|
||||
top_menu_compta.php /* function ShowMenu
|
||||
top_menu_compta.php * Purpose : Show The login menu
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ ext_dir ()
|
|||
) >> $BASE_DIR/function.txt
|
||||
done
|
||||
}
|
||||
rm -f $BASE_DIR/function.txt
|
||||
|
||||
cd ../html
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ include ("check_priv.php");
|
|||
include_once("preference.php");
|
||||
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
if ( $_SESSION['use_admin']==0 ) {
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ $User=new cl_user($rep);
|
|||
$User->Check();
|
||||
|
||||
include("preference.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
|
||||
// include_once ("top_menu_compta.php");
|
||||
include_once("user_menu.php");
|
||||
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
|
|
|
|||
289
html/enc_jrn.php
289
html/enc_jrn.php
|
|
@ -1,289 +0,0 @@
|
|||
<?
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
/* $Revision$ */
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
/* $Revision$ */
|
||||
include_once ("ac_common.php");
|
||||
include_once("jrn.php");
|
||||
include_once("preference.php");
|
||||
include_once("poste.php");
|
||||
include_once("error.php");
|
||||
include_once("user_common.php");
|
||||
|
||||
html_page_start($g_UserProperty['use_theme'],"onLoad=\"CheckTotal();\"");
|
||||
if ( ! isset ( $g_dossier ) ) {
|
||||
echo "You must choose a Dossier ";
|
||||
exit -2;
|
||||
}
|
||||
include_once ("postgres.php");
|
||||
include_once ("check_priv.php");
|
||||
/* Admin. Dossier */
|
||||
$rep=DbConnect();
|
||||
include_once ("class_user.php");
|
||||
$User=new cl_user($rep);
|
||||
$User->Check();
|
||||
if ( isset( $p_jrn )) {
|
||||
$_SESSION["g_jrn"];
|
||||
$g_jrn=$p_jrn;
|
||||
}
|
||||
$cn=DbConnect($g_dossier);
|
||||
|
||||
echo '<SCRIPT LANGUAGE="javascript" SRC="compute.js"></SCRIPT>';
|
||||
echo JS_CONCERNED_OP;
|
||||
echo JS_VIEW_JRN_DETAIL;
|
||||
|
||||
/* Get MaxLine */
|
||||
include_once("poste.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
ShowMenuCompta($g_dossier,$g_UserProperty);
|
||||
ShowMenuComptaRight($g_dossier,$g_UserProperty);
|
||||
if ( $g_UserProperty['use_admin'] == 0 ) {
|
||||
$r=CheckAction($g_dossier,$g_user,ENCJRN);
|
||||
if ($r == 0 ){
|
||||
/* Cannot Access */
|
||||
NoAccess();
|
||||
}
|
||||
if ( isset ($g_jrn)) {
|
||||
$right=CheckJrn($g_dossier,$g_user,$g_jrn);
|
||||
if ($right == 0 ){
|
||||
/* Cannot Access */
|
||||
NoAccess();
|
||||
exit -1;
|
||||
}
|
||||
} // if isset g_jrn
|
||||
|
||||
}
|
||||
|
||||
ShowMenuJrnUser($g_dossier,$g_UserProperty);
|
||||
|
||||
if ( isset ( $_GET["action"] )) {
|
||||
if ( $_GET["action"] == "view" ) {
|
||||
|
||||
// view all the journal's operation
|
||||
echo '<DIV class="redcontent">';
|
||||
ShowMenuRecherche($g_dossier,$g_jrn);
|
||||
ViewJrn($g_dossier,$g_user,$g_jrn,"enc_jrn.php");
|
||||
echo '</DIV>';
|
||||
}
|
||||
if ( $_GET["action"] == "record" ) {
|
||||
if ( CheckJrn($g_dossier,$g_user,$g_jrn) < 2 ) {
|
||||
NoAccess();
|
||||
exit -1;
|
||||
|
||||
}
|
||||
echo_debug(__FILE__,__LINE__,"record");
|
||||
$max_deb=$_GET["max_deb"];
|
||||
$max_cred=$_GET["max_cred"];
|
||||
RecordJrn($g_dossier,$g_user,$g_jrn,$max_deb,$max_cred);
|
||||
}
|
||||
|
||||
if ($_GET["action"]=="update" ) {
|
||||
if ( CheckJrn($g_dossier,$g_user,$g_jrn) < 2 ) {
|
||||
NoAccess();
|
||||
exit -1;
|
||||
|
||||
}
|
||||
// p_id is jrn.jr_id
|
||||
$p_id=$_GET["line"];
|
||||
echo_debug(__FILE__,__LINE__," action = update p_id = $p_id");
|
||||
$r ='<FORM METHOD="POST" ACTION="enc_jrn.php">';
|
||||
$r.=UpdateJrn($cn,$p_id);
|
||||
$r.='<input type="SUBMIT" name="update_record" value="Enregistre">';
|
||||
$r.='</FORM>';
|
||||
echo '<div class="redcontent">';
|
||||
echo $r;
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
if ( isset ($_POST['add_line_deb']) ) {
|
||||
echo '<DIV class="redcontent">';
|
||||
foreach ( $HTTP_POST_VARS as $key=>$element) {
|
||||
${"p_$key"}=$element;
|
||||
}
|
||||
$p_MaxDeb+=2;
|
||||
echo "</DIV>";
|
||||
CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);
|
||||
echo_debug(__FILE__,__LINE__,"CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);");
|
||||
}
|
||||
|
||||
if ( isset ($_POST['add_line_cred']) ) {
|
||||
echo '<DIV class="redcontent">';
|
||||
foreach ( $HTTP_POST_VARS as $key=>$element) {
|
||||
${"p_$key"}=$element;
|
||||
}
|
||||
$p_MaxCred+=2;
|
||||
echo "</DIV>";
|
||||
CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);
|
||||
echo_debug(__FILE__,__LINE__,"CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred+10,$HTTP_POST_VARS);");
|
||||
}
|
||||
if ( isset ($_POST['viewsearch']) ) {
|
||||
reset($HTTP_POST_VARS);
|
||||
|
||||
echo '<DIV class="redcontent">';
|
||||
ShowMenuRecherche($g_dossier,$g_jrn,$HTTP_POST_VARS);
|
||||
|
||||
ViewJrn($g_dossier,$g_user,$g_jrn,"enc_jrn.php",$HTTP_POST_VARS);
|
||||
echo '</DIV>';
|
||||
|
||||
}
|
||||
|
||||
if ( isset($_POST['add_record']) ) {
|
||||
echo '<DIV class="redcontent">';
|
||||
foreach ( $HTTP_POST_VARS as $name=>$element ) {
|
||||
echo_debug(__FILE__,__LINE__,"element $name -> $element ");
|
||||
// Sauve les données dans des variables
|
||||
${"p_$name"}=$element;
|
||||
}
|
||||
$userPref=GetUserPeriode($cn,$g_user);
|
||||
list ($l_date_start,$l_date_end)=GetPeriode($cn,$userPref);
|
||||
|
||||
$p_op_date=$p_op_date.substr($l_date_start,2,8);
|
||||
echo_debug(__FILE__,__LINE__,"p_op_date is $p_op_date");
|
||||
$aHttp=$HTTP_POST_VARS;
|
||||
$aHttp['op_date']=$p_op_date;
|
||||
// Verifie data
|
||||
// $result=VerifData($cn,$HTTP_POST_VARS,$g_user);
|
||||
$result=VerifData($cn,$aHttp,$g_user);
|
||||
if ($result != NOERROR) {
|
||||
// Parse result
|
||||
AnalyzeError($result);
|
||||
|
||||
echo "</DIV>";
|
||||
CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);
|
||||
return;
|
||||
}
|
||||
|
||||
$Res=StartSql($cn);
|
||||
$seq=GetNextId($cn,'j_grpt')+1;
|
||||
$s_op=GetNextId($cn,'j_id')+1;
|
||||
|
||||
|
||||
$tot_cred=0;
|
||||
$tot_deb=0;
|
||||
|
||||
//debit
|
||||
for ( $i = 0; $i < $p_MaxDeb; $i++) {
|
||||
$montant=${"p_mont_deb$i"};
|
||||
$l_class=${"p_class_deb$i"};
|
||||
if ( strlen(trim($montant)) != 0 && $montant != 0) {
|
||||
${"p_text_deb$i"}=FormatString(GetPosteLibelle($g_dossier,$l_class));
|
||||
// $p_text=(FormatString(${"p_text_deb$i"})==null)?:FormatString(${"p_text_deb$i"});
|
||||
$Sql="insert into jrnx(j_id,j_date,j_montant,j_poste,j_grpt,
|
||||
j_jrn_def,j_debit,j_tech_user,j_tech_per)
|
||||
values ( $s_op,to_date('$p_op_date','DD.MM.YYYY'), "
|
||||
.$montant.",
|
||||
$l_class,$seq,
|
||||
$g_jrn,true,'$g_user',$userPref)";
|
||||
echo_debug(__FILE__,__LINE__,"sql $Sql");
|
||||
$s_op++;
|
||||
$tot_deb+=$montant;
|
||||
$Res=ExecSql($cn,$Sql);
|
||||
if ( $Res == false ) { Rollback($cn); EndSql($cn); return;}
|
||||
// For the user profile we need the correct sequence id
|
||||
AlterSequence($cn,'s_jrn_op',$s_op);
|
||||
}
|
||||
}
|
||||
for ( $i = 0; $i < $p_MaxCred; $i++) {
|
||||
$montant=${"p_mont_cred$i"};
|
||||
$l_class=${"p_class_cred$i"};
|
||||
if ( strlen(trim($montant)) != 0 && $montant != 0) {
|
||||
//$p_text=(FormatString(${"p_text_cred$i"})==null)?FormatString(GetPosteLibelle($g_dossier,$l_class)):FormatString(${"p_text_cred$i"});
|
||||
${"p_text_cred$i"}=FormatString(GetPosteLibelle($g_dossier,$l_class));
|
||||
$Sql="insert into jrnx(j_id,j_date,j_montant,j_poste,j_grpt,
|
||||
j_jrn_def,j_debit,j_tech_user,j_tech_per)
|
||||
values ( $s_op,to_date('$p_op_date','DD.MM.YYYY'), $montant,
|
||||
$l_class,$seq,
|
||||
$g_jrn,false,'$g_user',$userPref)";
|
||||
echo_debug(__FILE__,__LINE__,"sql $Sql");
|
||||
$s_op++;
|
||||
$tot_cred+=$montant;
|
||||
$Res=ExecSql($cn,$Sql);
|
||||
if ( $Res == false ) { Rollback($cn); EndSql($cn); break;}
|
||||
// For the user profile we need the correct sequence id
|
||||
AlterSequence($cn,'s_jrn_op',$s_op);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$jrn_id=GetNextJrnId($cn,'jr_id')+1;
|
||||
if ( ! isset ($p_ech) ) $p_ech="";
|
||||
$l_date=isDate($p_ech);
|
||||
if ( $l_date == null) {
|
||||
$p_ech='null';
|
||||
} else {
|
||||
$p_ech="to_char('".$l_date."','DD.MM.YYYY')";
|
||||
}
|
||||
$comment=FormatString($p_comment);
|
||||
|
||||
$Sql=sprintf("insert into jrn(jr_id,jr_def_id,jr_comment,jr_date,jr_grpt_id,
|
||||
jr_montant,jr_tech_per) values(%s,%s,'%s',%s,%d,%f,%d)",
|
||||
$jrn_id,
|
||||
$g_jrn,
|
||||
$comment,
|
||||
$p_ech,
|
||||
$seq,$tot_deb,$userPref);
|
||||
echo_debug(__FILE__,__LINE__,"Sql $Sql");
|
||||
$Res=ExecSql($cn,$Sql);
|
||||
if ($Res)
|
||||
SetInternalCode($cn,$seq,$g_jrn);
|
||||
if ( isset ($p_rapt)) InsertRapt($cn,$jrn_id,$p_rapt);
|
||||
|
||||
|
||||
if ( $Res) {
|
||||
Commit($cn);
|
||||
EndSql($cn);
|
||||
|
||||
// For the user profile we need the correct sequence id
|
||||
AlterSequence($cn,'s_jrn',$jrn_id);
|
||||
// AlterSequence($cn,"s_grpt",$seq+1);
|
||||
//AlterSequence($cn,"s_jrn_op",$s_op);
|
||||
// Add the p_text to the array
|
||||
|
||||
ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$aHttp);
|
||||
// echo_debug(__FILE__,__LINE__,"ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);");
|
||||
echo_debug(__FILE__,__LINE__,"ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$aHttp);");
|
||||
} else
|
||||
{
|
||||
Rollback($cn);
|
||||
EndSql($cn);
|
||||
}
|
||||
} // _POST['add_record']
|
||||
|
||||
if ( isset($_POST['update_record']) ) {
|
||||
// NO UPDATE except rapt & comment
|
||||
UpdateComment($cn,$_POST['jr_id'],$_POST['comment']);
|
||||
InsertRapt($cn,$_POST['jr_id'],$_POST['rapt']);
|
||||
echo '<div class="redcontent">';
|
||||
ViewJrn($g_dossier,$g_user,$g_jrn,"enc_jrn.php");
|
||||
echo '</div>';
|
||||
|
||||
} // if update_record
|
||||
|
||||
?>
|
||||
</DIV>
|
||||
<?
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
@ -30,7 +30,7 @@ $rep=DbConnect();
|
|||
include_once ("class_user.php");
|
||||
$User=new cl_user($rep);
|
||||
$User->Check();
|
||||
include ("top_menu_compta.php");
|
||||
include ("user_menu.php");
|
||||
ShowMenuCompta($g_dossier,$g_UserProperty);
|
||||
|
||||
if ( $g_UserProperty['use_admin']==0 ) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ if ( ! isset ( $_SESSION['g_dossier'] ) ) {
|
|||
exit -2;
|
||||
}
|
||||
include_once ("postgres.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
|
||||
echo JS_SEARCH_POSTE;
|
||||
$rep=DbConnect();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ $User->Check();
|
|||
|
||||
include_once("form_inc.php");
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($g_dossier,$g_UserProperty);
|
||||
include ("check_priv.php");
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ include_once ("class_user.php");
|
|||
$User=new cl_user($rep);
|
||||
$User->Check();
|
||||
include_once("check_priv.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ echo_debug(__FILE__,__LINE__,"nom journal $p_jrn_name");
|
|||
$Res=ExecSql($cn,$Sql);
|
||||
}
|
||||
}
|
||||
ShowMenuJrn($_SESSION['g_dossier']);
|
||||
MenuJrn($_SESSION['g_dossier']);
|
||||
if ( isset ($_GET["PHPSESSID"]) ) {
|
||||
$sessid=$_GET["PHPSESSID"];
|
||||
}else {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ include_once ("class_user.php");
|
|||
$User=new cl_user($rep);
|
||||
$User->Check();
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
//include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
include_once("check_priv.php");
|
||||
|
|
@ -50,8 +51,8 @@ if ( $_SESSION['use_admin'] == 0 ) {
|
|||
// Javascript
|
||||
echo JS_SEARCH_POSTE;
|
||||
if ( isset( $_GET['p_jrn'] )) {
|
||||
$g_jrn=$p_jrn;
|
||||
$_SESSION["g_jrn"]=$p_jrn;
|
||||
$g_jrn=$_GET['p_jrn'];
|
||||
$_SESSION["g_jrn"]=$g_jrn;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +108,7 @@ If ( isset ($_POST["JRN_UPD"] )) {
|
|||
$Res=ExecSql($cn,$Sql);
|
||||
}
|
||||
}
|
||||
ShowMenuJrn($_SESSION['g_dossier']);
|
||||
MenuJrn($_SESSION['g_dossier']);
|
||||
|
||||
$Res=ExecSql($cn,"select jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,".
|
||||
"jrn_deb_max_line,jrn_cred_max_line,jrn_def_code".
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ $User->Check();
|
|||
|
||||
include_once ("check_priv.php");
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
if ( $User->admin == 0 ) {
|
||||
|
|
@ -47,7 +47,7 @@ if ( $User->admin == 0 ) {
|
|||
}
|
||||
}
|
||||
|
||||
ShowMenuJrn($_SESSION['g_dossier']);
|
||||
MenuJrn($_SESSION['g_dossier']);
|
||||
|
||||
$cn=DbConnect($_SESSION['g_dossier']);
|
||||
echo '<DIV CLASS="ccontent">';
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ if ( $User->admin == 0 ) {
|
|||
|
||||
}
|
||||
|
||||
include ("top_menu_compta.php");
|
||||
include ("user_menu.php");
|
||||
ShowMenuComptaRight($_SESSION['g_dossier'],$User->admin);
|
||||
$l_Db=sprintf("dossier%d",$_SESSION['g_dossier']);
|
||||
echo '<DIV CLASS="ccontent">';
|
||||
|
|
@ -55,6 +55,10 @@ echo '<DIV CLASS="ccontent">';
|
|||
<TABLE>
|
||||
<TR>
|
||||
<?
|
||||
$l=$_GET['l'];
|
||||
$p=$_GET['p'];
|
||||
$n=$_GET['n'];
|
||||
|
||||
printf ('<TD>Numéro de classe </TD><TD><INPUT TYPE="TEXT" name="p_val" value="%s"></TD>',$l);
|
||||
echo "</TR><TR>";
|
||||
printf('<TD>Libellé </TD><TD><INPUT TYPE="TEXT" size="70" NAME="p_name" value="%s"></TD>',urldecode($n));
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ $User=new cl_user($rep);
|
|||
$User->Check();
|
||||
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
include_once ("check_priv.php");
|
||||
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
/* $Revision$ */
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
include_once("ac_common.php");
|
||||
include("top_menu_compta.php");
|
||||
include("user_menu.php");
|
||||
include_once ("constant.php");
|
||||
include_once("jrn.php");
|
||||
include_once("user_common.php");
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $cn=DbConnect($_SESSION['g_dossier']);
|
|||
|
||||
//Show the top menu
|
||||
include_once ("user_menu.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
// Show Menu Left
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ $User->Check();
|
|||
|
||||
// Show the top menus
|
||||
include_once ("user_menu.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
// Show the right menus
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ if ( $User->admin == 0 ) {
|
|||
|
||||
|
||||
include_once ("user_menu.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
|
||||
ShowMenuCompta($g_dossier);
|
||||
|
||||
html_page_stop();
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ $User=new cl_user($cn);
|
|||
$User->Check();
|
||||
|
||||
include ("check_priv.php");
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
// show sub menu
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
/* $Revision$ */
|
||||
include_once("ac_common.php");
|
||||
include("top_menu_compta.php");
|
||||
include_once("user_menu.php");
|
||||
include_once ("constant.php");
|
||||
include_once ("postgres.php");
|
||||
include_once ("check_priv.php");
|
||||
|
|
@ -86,6 +86,7 @@ if ( isset ($_GET['JRN_TYPE'] ) ) {
|
|||
ShowMenuJrnUser($_SESSION['g_dossier'],$_GET['JRN_TYPE'],$_SESSION['g_jrn']);
|
||||
echo "</DIV>";
|
||||
if ( $jrn_type=='NONE' ) include('user_action_gl.php');
|
||||
if ( $jrn_type=='SALDO_FIN') include ('user_action_fin.php');
|
||||
|
||||
} else {
|
||||
|
||||
|
|
@ -112,8 +113,8 @@ if ( $_SESSION['g_jrn'] != -1 ) {
|
|||
$JrnProp=GetJrnProp($_SESSION['g_dossier'],$_SESSION['g_jrn']);
|
||||
$jrn_type=$JrnProp['jrn_def_type'];
|
||||
// display jrn's menu
|
||||
include_once('user_menu.php');
|
||||
$menu_jrn=u_ShowMenuJrn($cn,$jrn_type);
|
||||
|
||||
$menu_jrn=ShowMenuJrn($cn,$jrn_type);
|
||||
// echo '<div class="searchmenu">';
|
||||
// echo $result;
|
||||
echo $menu_jrn;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ html_page_start($_SESSION['use_theme']);
|
|||
// show the top menu depending of the use_style
|
||||
// comta style
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
if ( isset ($_SESSION['g_dossier']) ) {
|
||||
if ( $_SESSION['g_dossier'] != 0 )
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ include_once ("class_user.php");
|
|||
$User=new cl_user($rep);
|
||||
$User->Check();
|
||||
|
||||
include_once ("top_menu_compta.php");
|
||||
include_once ("user_menu.php");
|
||||
ShowMenuCompta($_SESSION['g_dossier']);
|
||||
|
||||
if ( $User->admin== 0 ) {
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ function GetAvailableFolder($p_user,$p_admin)
|
|||
*
|
||||
* gen : none
|
||||
*/
|
||||
function u_ShowMenuCompta($p_dossier)
|
||||
function ShowMenuCompta($p_dossier)
|
||||
{
|
||||
include_once("postgres.php");
|
||||
$l_name=GetDossierName($p_dossier);
|
||||
|
|
@ -196,7 +196,7 @@ function u_ShowMenuCompta($p_dossier)
|
|||
* - string containing the html menu
|
||||
*
|
||||
*/
|
||||
function u_ShowMenuComptaRight($p_dossier=0,$p_admin=0)
|
||||
function ShowMenuComptaRight($p_dossier=0,$p_admin=0)
|
||||
{
|
||||
include_once("ac_common.php");
|
||||
$i=0;
|
||||
|
|
@ -212,7 +212,7 @@ function u_ShowMenuComptaRight($p_dossier=0,$p_admin=0)
|
|||
echo '</DIV>';
|
||||
|
||||
}
|
||||
/* function u_ShowMenuJrnUser($p_dossier,$p_user)
|
||||
/* function ShowMenuJrnUser($p_dossier,$p_user)
|
||||
* Purpose : Show the Menu from the jrn encode
|
||||
* page
|
||||
*
|
||||
|
|
@ -228,7 +228,7 @@ function u_ShowMenuComptaRight($p_dossier=0,$p_admin=0)
|
|||
*
|
||||
*/
|
||||
|
||||
function u_ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)
|
||||
function ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)
|
||||
{
|
||||
include_once ("debug.php");
|
||||
include_once("constant.php");
|
||||
|
|
@ -272,6 +272,10 @@ function u_ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)
|
|||
$right=3;
|
||||
}
|
||||
|
||||
// Show saldo
|
||||
// echo '<TD class="cell">';
|
||||
// echo ('<A class="mtitle" HREF="user_jrn.php?saldo&JRN_TYPE=FIN">Solde</A></TD>');
|
||||
// echo '</TR>';
|
||||
|
||||
if ( $right > 0 ) {
|
||||
// Minimum Lecture
|
||||
|
|
@ -307,7 +311,7 @@ function u_ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)
|
|||
* return:
|
||||
* - string containing the menu
|
||||
*/
|
||||
function u_ShowMenuJrn($p_cn,$p_jrn_type)
|
||||
function ShowMenuJrn($p_cn,$p_jrn_type)
|
||||
{
|
||||
|
||||
$Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action where ja_jrn_type='$p_jrn_type'
|
||||
|
|
@ -570,4 +574,88 @@ function MenuAdmin()
|
|||
$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=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 '<div class="lmenu">';
|
||||
echo '<TABLE>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_add.php">Création </A></TD></TR>';
|
||||
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 ('<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_detail.php?p_jrn=%s">%s</A></TD></TR>',
|
||||
$l_line['jrn_def_id'],$l_line['jrn_def_name']);
|
||||
|
||||
}
|
||||
echo "</TABLE>";
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
/* 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 '<div class="lmenu">';
|
||||
echo '<TABLE>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=1">1 Immobilisé </A></TD></TR>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=2">2 Actif a un an au plus</A></TD></TR>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=3">3 Stock et commande</A></TD></TR>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=4">4 Compte tiers</A></TD></TR>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=5">5 Actif</A></TD></TR>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=6">6 Charges</A></TD></TR>';
|
||||
echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=7">7 Produits</A></TD></TR>';
|
||||
echo "</TABLE>";
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue