From MAILER-DAEMON Sun Jul 01 11:22:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlLyv-0008Ud-HM
	for mharc-phpcompta-dev@gnu.org; Sun, 01 Jul 2012 11:22:37 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun,  1 Jul 2012 17:12:47 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.247690.1341156156.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r387 - tag/rel650/tva/sql
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Jul 2012 15:22:35 -0000

Author: danydb
Date: 2012-07-01 17:12:46 +0200 (Sun, 01 Jul 2012)
New Revision: 387

Modified:
   tag/rel650/tva/sql/patch2.sql
Log:
correct bug with unexisting tva_id

Modified: tag/rel650/tva/sql/patch2.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tva/sql/patch2.sql	2012-06-29 22:32:26 UTC (rev 386)
+++ tag/rel650/tva/sql/patch2.sql	2012-07-01 15:12:46 UTC (rev 387)
@@ -36,7 +36,7 @@
    f record;
    n_size_tva int;
    n_size_account int;
-
+   n_exist_tva int;
 begin
=20
 for i in select pcode,pvalue,paccount from tva_belge.parameter
@@ -56,9 +56,13 @@
=20
 		while n_size_account <> 0 loop
=20
-			insert into tva_belge.parameter_chld (pcode,tva_id,pcm_val)
-				values (i.pcode,a_tva_id[n_size_tva]::numeric,a_account[n_size_accou=
nt]::account_type);
+			select count(*) into n_exist_tva from tva_rate where tva_id=3Da_tva_i=
d[n_size_tva]::numeric;
=20
+			if n_exist_tva !=3D 0 then
+				raise notice 'TVA % exist count =3D %',a_tva_id[n_size_tva],n_exist_=
tva;
+					insert into tva_belge.parameter_chld (pcode,tva_id,pcm_val)
+						values (i.pcode,a_tva_id[n_size_tva]::numeric,a_account[n_size_acc=
ount]::account_type);
+			end if;
 			n_size_account :=3D n_size_account -1;
 		end loop;
 		n_size_account :=3D array_upper(a_account,1);
@@ -86,7 +90,7 @@
    f record;
    n_size_tva int;
    n_size_account int;
-
+   n_exist_tva int;
 begin
=20
 for i in select distinct pvalue from tva_belge.parameter WHERE pcode in =
('GRIL00','GRIL01','GRIL02','GRIL03')
@@ -101,9 +105,12 @@
=20
=20
 	while n_size_tva <> 0 loop
-
-		insert into tva_belge.parameter_chld (pcode,tva_id)
-			values ('ASSUJETTI',a_tva_id[n_size_tva]::numeric);
+		select count(*) into n_exist_tva from tva_rate where tva_id=3Da_tva_id=
[n_size_tva]::numeric;
+		raise notice 'TVA % exist count =3D %',a_tva_id[n_size_tva],n_exist_tv=
a;
+		if n_exist_tva !=3D 0 then
+			insert into tva_belge.parameter_chld (pcode,tva_id)
+				values ('ASSUJETTI',a_tva_id[n_size_tva]::numeric);
+		end if;
 		n_size_tva :=3D n_size_tva -1;
 	end loop;
=20
@@ -124,4 +131,4 @@
  alter table tva_belge.parameter drop column paccount;
  alter table tva_belge.parameter drop column pvalue;
 insert into tva_belge.version(vdesc) values ('Version 2 : am=C3=A9liorat=
ion plugin');
-commit;
\ No newline at end of file
+-- commit;
\ No newline at end of file



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 01 11:23:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlM05-0000AJ-Nw
	for mharc-phpcompta-dev@gnu.org; Sun, 01 Jul 2012 11:23:49 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun,  1 Jul 2012 17:14:00 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.247691.1341156228.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r388 - tag/rel650/tva/sql
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Jul 2012 15:23:48 -0000

Author: danydb
Date: 2012-07-01 17:14:00 +0200 (Sun, 01 Jul 2012)
New Revision: 388

Modified:
   tag/rel650/tva/sql/patch2.sql
Log:
correct bug with unexisting tva_id

Modified: tag/rel650/tva/sql/patch2.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tva/sql/patch2.sql	2012-07-01 15:12:46 UTC (rev 387)
+++ tag/rel650/tva/sql/patch2.sql	2012-07-01 15:14:00 UTC (rev 388)
@@ -59,7 +59,7 @@
 			select count(*) into n_exist_tva from tva_rate where tva_id=3Da_tva_i=
d[n_size_tva]::numeric;
=20
 			if n_exist_tva !=3D 0 then
-				raise notice 'TVA % exist count =3D %',a_tva_id[n_size_tva],n_exist_=
tva;
+			=09
 					insert into tva_belge.parameter_chld (pcode,tva_id,pcm_val)
 						values (i.pcode,a_tva_id[n_size_tva]::numeric,a_account[n_size_acc=
ount]::account_type);
 			end if;
@@ -106,7 +106,7 @@
=20
 	while n_size_tva <> 0 loop
 		select count(*) into n_exist_tva from tva_rate where tva_id=3Da_tva_id=
[n_size_tva]::numeric;
-		raise notice 'TVA % exist count =3D %',a_tva_id[n_size_tva],n_exist_tv=
a;
+
 		if n_exist_tva !=3D 0 then
 			insert into tva_belge.parameter_chld (pcode,tva_id)
 				values ('ASSUJETTI',a_tva_id[n_size_tva]::numeric);



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 01 11:33:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlM9J-0002FG-Op
	for mharc-phpcompta-dev@gnu.org; Sun, 01 Jul 2012 11:33:21 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun,  1 Jul 2012 17:23:32 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.247710.1341156801.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r389 - tag/rel650/tva/sql
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Jul 2012 15:33:20 -0000

Author: danydb
Date: 2012-07-01 17:23:31 +0200 (Sun, 01 Jul 2012)
New Revision: 389

Modified:
   tag/rel650/tva/sql/patch2.sql
Log:
forget the commit into sql patch

Modified: tag/rel650/tva/sql/patch2.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tva/sql/patch2.sql	2012-07-01 15:14:00 UTC (rev 388)
+++ tag/rel650/tva/sql/patch2.sql	2012-07-01 15:23:31 UTC (rev 389)
@@ -131,4 +131,4 @@
  alter table tva_belge.parameter drop column paccount;
  alter table tva_belge.parameter drop column pvalue;
 insert into tva_belge.version(vdesc) values ('Version 2 : am=C3=A9liorat=
ion plugin');
--- commit;
\ No newline at end of file
+commit;



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 01 11:52:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlMRh-00052O-Kf
	for mharc-phpcompta-dev@gnu.org; Sun, 01 Jul 2012 11:52:21 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun,  1 Jul 2012 17:42:32 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.247742.1341157940.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5063 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Jul 2012 15:52:20 -0000

Author: danydb
Date: 2012-07-01 17:42:31 +0200 (Sun, 01 Jul 2012)
New Revision: 5063

Modified:
   phpcompta/tags/rel650/include/class_impress.php
Log:
correct check_formula

Modified: phpcompta/tags/rel650/include/class_impress.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_impress.php	2012-06-30 17:36:51 U=
TC (rev 5062)
+++ phpcompta/tags/rel650/include/class_impress.php	2012-07-01 15:42:31 U=
TC (rev 5063)
@@ -223,7 +223,9 @@
 		// remove account
 		$p_string=3D  preg_replace("/\[[0-9]*[A-Z]*%*\]/", "", $p_string);
=20
-		$p_string=3D  preg_replace("/\+|-|\/\*/", "", $p_string);
+		$p_string=3D  preg_replace("/\+|-|\/|\*/", "", $p_string);
+		$p_string=3D  preg_replace("/[0-9]*\.*[0-9]/", "", $p_string);
+	=09
 		//********************************************************************=
************************************************
 		// If the string is empty then formula should be good
 		//



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 02 19:06:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SlphU-0006JS-MD
	for mharc-phpcompta-dev@gnu.org; Mon, 02 Jul 2012 19:06:36 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Tue,  3 Jul 2012 00:56:39 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.254004.1341270396.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5064 - in phpcompta/tags/rel650:
	html/document/fr_be include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jul 2012 23:06:35 -0000

Author: danydb
Date: 2012-07-03 00:56:38 +0200 (Tue, 03 Jul 2012)
New Revision: 5064

Modified:
   phpcompta/tags/rel650/html/document/fr_be/bnb.form
   phpcompta/tags/rel650/include/class_impress.php
Log:
Due to rewrite of parse formula, formula are not evaluated properly

Modified: phpcompta/tags/rel650/html/document/fr_be/bnb.form
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/document/fr_be/bnb.form	2012-07-01 15:42:3=
1 UTC (rev 5063)
+++ phpcompta/tags/rel650/html/document/fr_be/bnb.form	2012-07-02 22:56:3=
8 UTC (rev 5064)
@@ -1,147 +1,147 @@
 # Les postesg*(-1)
- $C10=3Dround([10%S],2)*(-1)
- $C100=3Dround([100%S],2)*(-1)
- $C101=3Dround([101%S],2)
- $C11=3Dround([11%S],2)*(-1)
- $C12=3Dround([12%S],2)*(-1)
- $C13=3Dround([13%S],2)*(-1)
- $C130=3Dround([130%S],2)*(-1)
- $C131=3Dround([131%S],2)*(-1)
- $C1310=3Dround([1310%S],2)*(-1)
- $C1311=3Dround([1311%S],2)*(-1)
- $C132=3Dround([132%S],2)*(-1)
- $C133=3Dround([133%S],2)*(-1)
- $C14=3Dround([14%S],2)*(-1)
- $C140=3Dround([140%S],2)*(-1)
- $C141=3Dround([141%S],2)
- $C15=3Dround([15%S],2)*(-1)
- $C16=3Dround([16%S],2)*(-1)
- $C160=3Dround([160%S],2)*(-1)
- $C161=3Dround([161%S],2)*(-1)
- $C162=3Dround([162%S],2)*(-1)
- $C163=3Dround([163%S],2)*(-1)
- $C164=3Dround([164%S],2)*(-1)
- $C165=3Dround([165%S],2)*(-1)
- $C168=3Dround([168%S],2)*(-1)
-$C17=3Dround([17%S],2)*(-1)
- $C170=3Dround([170%S],2)*(-1)
- $C171=3Dround([171%S],2)*(-1)
- $C172=3Dround([172%S],2)*(-1)
- $C173=3Dround([173%S],2)*(-1)
- $C174=3Dround([174%S],2)*(-1)
- $C175=3Dround([175%S],2)*(-1)
- $C176=3Dround([176%S],2)*(-1)
- $C178=3Dround([178%S],2)*(-1)
- $C179=3Dround([179%S],2)*(-1)
-$C2=3Dround([2%S],2)*(-1)
- $C20=3Dround([20%S],2)
- $C21=3Dround([21%S],2)
- $C22=3Dround([22%S],2)
- $C23=3Dround([23%S],2)
- $C24=3Dround([24%S],2)
- $C25=3Dround([25%S],2)
- $C26=3Dround([26%S],2)
- $C27=3Dround([27%S],2)
- $C28=3Dround([28%S],2)
- $C29=3Dround([29%S],2)
- $C290=3Dround([290%S],2)
- $C291=3Dround([291%S],2)
-$C3=3Dround([3%S],2)
- $C30=3Dround([30%S],2)
- $C31=3Dround([31%S],2)
- $C32=3Dround([32%S],2)
- $C33=3Dround([33%S],2)
- $C34=3Dround([34%S],2)
- $C35=3Dround([35%S],2)
- $C36=3Dround([36%S],2)
- $C37=3Dround([37%S],2)
- $C40=3Dround([40%S],2)
- $C41=3Dround([41%S],2)
- $C42=3Dround([42%S],2)*(-1)
- $C43=3Dround([43%S],2)*(-1)
- $C439=3Dround([439%S],2)*(-1)
- $C44=3Dround([44%S],2)*(-1)
- $C440=3Dround([440%S],2)*(-1)
- $C441=3Dround([441%S],2)*(-1)
- $C444=3Dround([444%S],2)*(-1)
- $C45=3Dround([45%S],2)*(-1)
- $C450=3Dround([450%S],2)*(-1)
- $C451=3Dround([451%S],2)*(-1)
- $C452=3Dround([452%S],2)*(-1)
- $C453=3Dround([453%S],2)*(-1)
- $C454=3Dround([454%S],2)*(-1)
-$C455=3Dround([455%S],2)*(-1)
-$C456=3Dround([456%S],2)*(-1)
-$C457=3Dround([457%S],2)*(-1)
-$C458=3Dround([458%S],2)*(-1)
- $C459=3Dround([459%S],2)*(-1)
- $C46=3Dround([46%S],2)
- $C47=3Dround([47%S],2)*(-1)
- $C48=3Dround([48%S],2)*(-1)
- $C49=3Dround([49%S],2)
- $C490=3Dround([490%S],2)
- $C491=3Dround([491%S],2)
- $C492=3Dround([492%S],2)*(-1)
- $C493=3Dround([493%S],2)*(-1)
- $C50=3Dround([50%S],2)
- $C51=3Dround([51%S],2)
- $C52=3Dround([52%S],2)
- $C53=3Dround([53%S],2)
- $C54=3Dround([54%S],2)
- $C55=3Dround([55%S],2)
- $C56=3Dround([56%S],2)
- $C57=3Dround([57%S],2)
- $C58=3Dround([58%S],2)
- $C60=3Dround([60%S],2)
- $C61=3Dround([61%S],2)
- $C62=3Dround([62%S],2)
- $C63=3Dround([63%S],2)
-$C630=3Dround([630%S],2)
-$C631=3Dround([631%S],2)
-$C632=3Dround([632%S],2)
-$C633=3Dround([633%S],2)
-$C634=3Dround([634%S],2)
-$C635=3Dround([635%S],2)
-$C636=3Dround([636%S],2)
-$C637=3Dround([637%S],2)
+ $C10=3Dround([10%s],2)*(-1)
+ $C100=3Dround([100%s],2)*(-1)
+ $C101=3Dround([101%s],2)
+ $C11=3Dround([11%s],2)*(-1)
+ $C12=3Dround([12%s],2)*(-1)
+ $C13=3Dround([13%s],2)*(-1)
+ $C130=3Dround([130%s],2)*(-1)
+ $C131=3Dround([131%s],2)*(-1)
+ $C1310=3Dround([1310%s],2)*(-1)
+ $C1311=3Dround([1311%s],2)*(-1)
+ $C132=3Dround([132%s],2)*(-1)
+ $C133=3Dround([133%s],2)*(-1)
+ $C14=3Dround([14%s],2)*(-1)
+ $C140=3Dround([140%s],2)*(-1)
+ $C141=3Dround([141%s],2)
+ $C15=3Dround([15%s],2)*(-1)
+ $C16=3Dround([16%s],2)*(-1)
+ $C160=3Dround([160%s],2)*(-1)
+ $C161=3Dround([161%s],2)*(-1)
+ $C162=3Dround([162%s],2)*(-1)
+ $C163=3Dround([163%s],2)*(-1)
+ $C164=3Dround([164%s],2)*(-1)
+ $C165=3Dround([165%s],2)*(-1)
+ $C168=3Dround([168%s],2)*(-1)
+$C17=3Dround([17%s],2)*(-1)
+ $C170=3Dround([170%s],2)*(-1)
+ $C171=3Dround([171%s],2)*(-1)
+ $C172=3Dround([172%s],2)*(-1)
+ $C173=3Dround([173%s],2)*(-1)
+ $C174=3Dround([174%s],2)*(-1)
+ $C175=3Dround([175%s],2)*(-1)
+ $C176=3Dround([176%s],2)*(-1)
+ $C178=3Dround([178%s],2)*(-1)
+ $C179=3Dround([179%s],2)*(-1)
+$C2=3Dround([2%s],2)*(-1)
+ $C20=3Dround([20%s],2)
+ $C21=3Dround([21%s],2)
+ $C22=3Dround([22%s],2)
+ $C23=3Dround([23%s],2)
+ $C24=3Dround([24%s],2)
+ $C25=3Dround([25%s],2)
+ $C26=3Dround([26%s],2)
+ $C27=3Dround([27%s],2)
+ $C28=3Dround([28%s],2)
+ $C29=3Dround([29%s],2)
+ $C290=3Dround([290%s],2)
+ $C291=3Dround([291%s],2)
+$C3=3Dround([3%s],2)
+ $C30=3Dround([30%s],2)
+ $C31=3Dround([31%s],2)
+ $C32=3Dround([32%s],2)
+ $C33=3Dround([33%s],2)
+ $C34=3Dround([34%s],2)
+ $C35=3Dround([35%s],2)
+ $C36=3Dround([36%s],2)
+ $C37=3Dround([37%s],2)
+ $C40=3Dround([40%s],2)
+ $C41=3Dround([41%s],2)
+ $C42=3Dround([42%s],2)*(-1)
+ $C43=3Dround([43%s],2)*(-1)
+ $C439=3Dround([439%s],2)*(-1)
+ $C44=3Dround([44%s],2)*(-1)
+ $C440=3Dround([440%s],2)*(-1)
+ $C441=3Dround([441%s],2)*(-1)
+ $C444=3Dround([444%s],2)*(-1)
+ $C45=3Dround([45%s],2)*(-1)
+ $C450=3Dround([450%s],2)*(-1)
+ $C451=3Dround([451%s],2)*(-1)
+ $C452=3Dround([452%s],2)*(-1)
+ $C453=3Dround([453%s],2)*(-1)
+ $C454=3Dround([454%s],2)*(-1)
+$C455=3Dround([455%s],2)*(-1)
+$C456=3Dround([456%s],2)*(-1)
+$C457=3Dround([457%s],2)*(-1)
+$C458=3Dround([458%s],2)*(-1)
+ $C459=3Dround([459%s],2)*(-1)
+ $C46=3Dround([46%s],2)
+ $C47=3Dround([47%s],2)*(-1)
+ $C48=3Dround([48%s],2)*(-1)
+ $C49=3Dround([49%s],2)
+ $C490=3Dround([490%s],2)
+ $C491=3Dround([491%s],2)
+ $C492=3Dround([492%s],2)*(-1)
+ $C493=3Dround([493%s],2)*(-1)
+ $C50=3Dround([50%s],2)
+ $C51=3Dround([51%s],2)
+ $C52=3Dround([52%s],2)
+ $C53=3Dround([53%s],2)
+ $C54=3Dround([54%s],2)
+ $C55=3Dround([55%s],2)
+ $C56=3Dround([56%s],2)
+ $C57=3Dround([57%s],2)
+ $C58=3Dround([58%s],2)
+ $C60=3Dround([60%s],2)
+ $C61=3Dround([61%s],2)
+ $C62=3Dround([62%s],2)
+ $C63=3Dround([63%s],2)
+$C630=3Dround([630%s],2)
+$C631=3Dround([631%s],2)
+$C632=3Dround([632%s],2)
+$C633=3Dround([633%s],2)
+$C634=3Dround([634%s],2)
+$C635=3Dround([635%s],2)
+$C636=3Dround([636%s],2)
+$C637=3Dround([637%s],2)
 =20
- $C649=3Dround([649%S],2)*(-1)
- $C64=3Dround([64%S],2)
+ $C649=3Dround([649%s],2)*(-1)
+ $C64=3Dround([64%s],2)
=20
- $C65=3Dround([65%S],2)
- $C66=3Dround([66%S],2)
- $C67=3Dround([67%S],2)
- $C68=3Dround([68%S],2)
- $C680=3Dround([680%S],2)
-$C689=3Dround([689%S],2)
- $C69=3Dround([69%S],2)
- $C690=3Dround([690%S],2)
- $C691=3Dround([691%S],2)
- $C692=3Dround([692%S],2)
- $C6920=3Dround([6920%S],2)
- $C6921=3Dround([6921%S],2)
- $C693=3Dround([693%S],2)
- $C694=3Dround([694%S],2)
- $C695=3Dround([695%S],2)
- $C696=3Dround([696%S],2)
+ $C65=3Dround([65%s],2)
+ $C66=3Dround([66%s],2)
+ $C67=3Dround([67%s],2)
+ $C68=3Dround([68%s],2)
+ $C680=3Dround([680%s],2)
+$C689=3Dround([689%s],2)
+ $C69=3Dround([69%s],2)
+ $C690=3Dround([690%s],2)
+ $C691=3Dround([691%s],2)
+ $C692=3Dround([692%s],2)
+ $C6920=3Dround([6920%s],2)
+ $C6921=3Dround([6921%s],2)
+ $C693=3Dround([693%s],2)
+ $C694=3Dround([694%s],2)
+ $C695=3Dround([695%s],2)
+ $C696=3Dround([696%s],2)
=20
-$C7=3Dround([7%S],2)*(-1)
- $C70=3Dround([70%S],2)*(-1)
- $C71=3Dround([71%S],2)*(-1)
- $C73=3Dround([73%S],2)*(-1)
- $C72=3Dround([72%S],2)*(-1)
- $C74=3Dround([74%S],2)*(-1)
- $C75=3Dround([75%S],2)*(-1)
- $C76=3Dround([76%S],2)*(-1)
- $C77=3Dround([77%S],2)*(-1)
-$C780=3Dround([780%S],2)*(-1)
-$C789=3Dround([789%S],2)*(-1)
- $C79=3Dround([79%S],2)*(-1)
-$C790=3Dround([790%S],2)*(-1)
-$C791=3Dround([791%S],2)*(-1)
-$C792=3Dround([792%S],2)*(-1)
-$C793=3Dround([793%S],2)*(-1)
-$C794=3Dround([794%S],2)*(-1)
+$C7=3Dround([7%s],2)*(-1)
+ $C70=3Dround([70%s],2)*(-1)
+ $C71=3Dround([71%s],2)*(-1)
+ $C73=3Dround([73%s],2)*(-1)
+ $C72=3Dround([72%s],2)*(-1)
+ $C74=3Dround([74%s],2)*(-1)
+ $C75=3Dround([75%s],2)*(-1)
+ $C76=3Dround([76%s],2)*(-1)
+ $C77=3Dround([77%s],2)*(-1)
+$C780=3Dround([780%s],2)*(-1)
+$C789=3Dround([789%s],2)*(-1)
+ $C79=3Dround([79%s],2)*(-1)
+$C790=3Dround([790%s],2)*(-1)
+$C791=3Dround([791%s],2)*(-1)
+$C792=3Dround([792%s],2)*(-1)
+$C793=3Dround([793%s],2)*(-1)
+$C794=3Dround([794%s],2)*(-1)
 # Les formules (*-1)
 #
 $S1=3Dabs($C2-$C29)

Modified: phpcompta/tags/rel650/include/class_impress.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_impress.php	2012-07-01 15:42:31 U=
TC (rev 5063)
+++ phpcompta/tags/rel650/include/class_impress.php	2012-07-02 22:56:38 U=
TC (rev 5064)
@@ -208,8 +208,9 @@
         $p_string=3Dstr_replace("<=3D","+",$p_string);
         $p_string=3Dstr_replace(">","+",$p_string);
         $p_string=3Dstr_replace("<","+",$p_string);
-        // eat Space
+        // eat Space + comma
         $p_string=3Dstr_replace(" ","",$p_string);
+        $p_string=3Dstr_replace(",","",$p_string);
         // Remove D/C/S
         $p_string=3Dstr_replace("c","",$p_string);
         $p_string=3Dstr_replace("d","",$p_string);
@@ -219,13 +220,18 @@
=20
 		// remove date
 		$p_string=3D  preg_replace("/FROM*=3D*[0-9]+/", "", $p_string);
+		// remove comment
+		$p_string=3D  preg_replace("/#.*/", "", $p_string);
+		// remove $C=3D
+		$p_string=3D  preg_replace('/\$[a-z]*[A-Z]*[0-9]*[A-Z]*[a-z]*/', "", $=
p_string);
+		$p_string=3D  preg_replace('/=3D/', "", $p_string);
=20
 		// remove account
 		$p_string=3D  preg_replace("/\[[0-9]*[A-Z]*%*\]/", "", $p_string);
=20
 		$p_string=3D  preg_replace("/\+|-|\/|\*/", "", $p_string);
 		$p_string=3D  preg_replace("/[0-9]*\.*[0-9]/", "", $p_string);
-	=09
+
 		//********************************************************************=
************************************************
 		// If the string is empty then formula should be good
 		//



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 08 15:09:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Snwqv-0008FI-T7
	for mharc-phpcompta-dev@gnu.org; Sun, 08 Jul 2012 15:09:05 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun,  8 Jul 2012 20:58:46 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.273448.1341774544.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5065 - phpcompta/tags/rel650/html/js
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jul 2012 19:09:04 -0000

Author: danydb
Date: 2012-07-08 20:58:45 +0200 (Sun, 08 Jul 2012)
New Revision: 5065

Modified:
   phpcompta/tags/rel650/html/js/scripts.js
Log:
Bug cannot create a new profile due a javascript error

Modified: phpcompta/tags/rel650/html/js/scripts.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/scripts.js	2012-07-02 22:56:38 UTC (rev=
 5064)
+++ phpcompta/tags/rel650/html/js/scripts.js	2012-07-08 18:58:45 UTC (rev=
 5065)
@@ -1184,7 +1184,7 @@
 						  $('detail_profile').innerHTML=3Dreq.responseText;
 						  req.responseText.evalScripts();
 						  $('detail_profile').show();
-						  profile_show('profile_gen_div');
+						  if ( profile_id !=3D "-1" ) profile_show('profile_gen_div');
 					  }
 				  }
 				);



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 09 12:23:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SoGjv-0006e4-0k
	for mharc-phpcompta-dev@gnu.org; Mon, 09 Jul 2012 12:23:11 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon,  9 Jul 2012 18:12:43 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.276538.1341850990.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r390 - tag/rel650/importbank/include/template
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jul 2012 16:23:10 -0000

Author: danydb
Date: 2012-07-09 18:12:43 +0200 (Mon, 09 Jul 2012)
New Revision: 390

Modified:
   tag/rel650/importbank/include/template/show_transfer.php
Log:
Import BANK Problem VMSKEYTRADE : extra invisible char. make the insert  =
failed

Modified: tag/rel650/importbank/include/template/show_transfer.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/importbank/include/template/show_transfer.php	2012-07-01 1=
5:23:31 UTC (rev 389)
+++ tag/rel650/importbank/include/template/show_transfer.php	2012-07-09 1=
6:12:43 UTC (rev 390)
@@ -50,7 +50,7 @@
       			$libelle=3Dutf8_encode($array_row[$i]);
       			break;
 		 case 3:
-      			$operation_nb=3D$array_row[$i];
+      			$operation_nb=3Dpreg_replace('/[^[:print:]]/','',$array_row[$i]=
);
       			break;
 		 case 4:
 			$third=3Dutf8_encode($array_row[$i]);



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 09 12:53:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SoHDT-000821-Od
	for mharc-phpcompta-dev@gnu.org; Mon, 09 Jul 2012 12:53:43 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon,  9 Jul 2012 18:43:20 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.276575.1341852822.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5066 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jul 2012 16:53:42 -0000

Author: danydb
Date: 2012-07-09 18:43:20 +0200 (Mon, 09 Jul 2012)
New Revision: 5066

Modified:
   phpcompta/tags/rel650/include/action.common.inc.php
   phpcompta/tags/rel650/include/class_follow_up.php
Log:
0000674: Deux actions-gestion ne peuvent avoir le m?\195?\170me num?\195?=
\169ro de pi?\195?\168ce

Modified: phpcompta/tags/rel650/include/action.common.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/action.common.inc.php	2012-07-08 18:58:=
45 UTC (rev 5065)
+++ phpcompta/tags/rel650/include/action.common.inc.php	2012-07-09 16:43:=
20 UTC (rev 5066)
@@ -84,19 +84,16 @@
 	{
 		$act2 =3D new Follow_Up($cn);
 		$act2->fromArray($_POST);
-		$sub_action =3D "detail";
-		put_global(array(array('key' =3D> "sa", "value" =3D> "detail")));
-		if ($g_user->can_write_action($act2->ag_id))
+		if ($g_user->can_write_action($act2->ag_id) =3D=3D false )
 		{
-			$act2->Update();
-		}
-		else
-		{
 			echo '<div class=3D"redcontent">';
 			echo '<h2 class=3D"error"> Cette action ne vous est pas autoris=C3=A9=
e Contactez votre responsable</h2>';
 			echo '</div>';
 			exit();
 		}
+		$sub_action =3D "detail";
+		put_global(array(array('key' =3D> "sa", "value" =3D> "detail")));
+		$act2->Update() ;
 	}
 	//---------------------------------------------------------------------=
-
 	// Add a related action

Modified: phpcompta/tags/rel650/include/class_follow_up.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_follow_up.php	2012-07-08 18:58:45=
 UTC (rev 5065)
+++ phpcompta/tags/rel650/include/class_follow_up.php	2012-07-09 16:43:20=
 UTC (rev 5066)
@@ -847,7 +847,22 @@
 		if ($contact->get_by_qcode($this->ag_contact) =3D=3D -1)
 			$contact->id =3D 0;
=20
+		// reload the old one
+		$old=3Dnew Follow_Up($this->db,$this->ag_id);
+		$old->get();
=20
+		// If ag_ref changed then check if unique
+		if ($old->ag_ref !=3D $this->ag_ref)
+		{
+			$nAg_ref=3D$this->db->get_value("select count(*) from action_gestion =
where ag_ref=3D$1",array($this->ag_ref));
+			if ($nAg_ref !=3D 0 )
+			{
+				echo h2("R=C3=A9f=C3=A9rence en double, r=C3=A9f=C3=A9rence non sauv=
=C3=A9e",'class=3D"error"');
+				$this->ag_ref=3D$old->ag_ref;
+			}
+		}
+
+
 		if ($this->ag_remind_date !=3D null)
 		{
 			$this->db->exec_sql("update action_gestion set " .



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Tue Jul 10 06:45:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SoXwe-00075J-O1
	for mharc-phpcompta-dev@gnu.org; Tue, 10 Jul 2012 06:45:28 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Tue, 10 Jul 2012 12:34:55 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.278586.1341917127.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5067 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Jul 2012 10:45:27 -0000

Author: danydb
Date: 2012-07-10 12:34:55 +0200 (Tue, 10 Jul 2012)
New Revision: 5067

Modified:
   phpcompta/tags/rel650/include/class_follow_up.php
Log:
duplicate Ref=20

Modified: phpcompta/tags/rel650/include/class_follow_up.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_follow_up.php	2012-07-09 16:43:20=
 UTC (rev 5066)
+++ phpcompta/tags/rel650/include/class_follow_up.php	2012-07-10 10:34:55=
 UTC (rev 5067)
@@ -848,7 +848,8 @@
 			$contact->id =3D 0;
=20
 		// reload the old one
-		$old=3Dnew Follow_Up($this->db,$this->ag_id);
+		$old=3Dnew Follow_Up($this->db);
+		$old->ag_id=3D$this->ag_id;
 		$old->get();
=20
 		// If ag_ref changed then check if unique



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 15 05:25:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SqL4j-0005FV-Ik
	for mharc-phpcompta-dev@gnu.org; Sun, 15 Jul 2012 05:25:13 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 15 Jul 2012 11:14:28 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.301911.1342344312.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5068 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jul 2012 09:25:11 -0000

Author: danydb
Date: 2012-07-15 11:14:27 +0200 (Sun, 15 Jul 2012)
New Revision: 5068

Modified:
   phpcompta/tags/rel650/include/class_exercice.php
Log:
New function : select exercice with end & start date


Modified: phpcompta/tags/rel650/include/class_exercice.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_exercice.php	2012-07-10 10:34:55 =
UTC (rev 5067)
+++ phpcompta/tags/rel650/include/class_exercice.php	2012-07-15 09:14:27 =
UTC (rev 5068)
@@ -21,7 +21,7 @@
 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
=20
 /*!\file
- * \brief about the accountant exercice=20
+ * \brief about the accountant exercice
  */
 require_once('class_database.php');
 require_once('class_iselect.php');
@@ -56,4 +56,23 @@
      $iselect->javascript=3D$js;
      return $iselect;
    }
+   /**
+    *Show a ISelect with the different exercices, display start and end =
date
+    *@param $name of the iselect
+    *@param $selected the selected year  (default =3D '')
+    *@param $js javascript (default =3D '')
+    *@return ISelect object
+    */
+   function select_date($name,$selected=3D'',$js=3D'')
+   {
+     $iselect=3Dnew ISelect($name);
+     $iselect->value=3D$this->cn->make_array("select distinct p_exercice=
,to_char (min(p_start),'DD.MM.YY')
+																	 ||' - '
+																	 ||to_char (max(p_end),'DD.MM.YY')
+											from parm_periode
+											group by p_exercice order by 1");
+     $iselect->selected=3D$selected;
+     $iselect->javascript=3D$js;
+     return $iselect;
+   }
 }



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 15 05:25:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SqL5I-0005Hu-Si
	for mharc-phpcompta-dev@gnu.org; Sun, 15 Jul 2012 05:25:48 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 15 Jul 2012 11:15:05 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.301919.1342344348.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5069 - phpcompta/tags/rel650/html/js
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jul 2012 09:25:48 -0000

Author: danydb
Date: 2012-07-15 11:15:05 +0200 (Sun, 15 Jul 2012)
New Revision: 5069

Modified:
   phpcompta/tags/rel650/html/js/scripts.js
Log:
Javascript var ask_global to reload window if it is <> 0


Modified: phpcompta/tags/rel650/html/js/scripts.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/scripts.js	2012-07-15 09:14:27 UTC (rev=
 5068)
+++ phpcompta/tags/rel650/html/js/scripts.js	2012-07-15 09:15:05 UTC (rev=
 5069)
@@ -23,6 +23,8 @@
  * \brief javascript script, always added to every page
  *
  */
+
+var ask_reload=3D0;
 /**
 * callback function when we just need to update a hidden div with an inf=
o
 * message
@@ -135,7 +137,7 @@
=20
 /**
  *@brief will reload the window but it is dangerous if we have submitted
- * a form
+ * a form with POST
  */
 function refresh_window()
 {
@@ -653,6 +655,12 @@
     {
         document.body.removeChild(g(elt));
     }
+	// if reloaded if asked the window will be reloaded when
+	// the box is closed
+	if ( ask_reload =3D=3D 1)
+	{
+		window.location.reload;
+	}
 }
 /**
  *show a box while loading
@@ -664,6 +672,7 @@
 	obj=3D{
 		id:'wait_box',html:loading()
 		};
+	obj.style=3Dfixed_position(350,200)+";width:200px";
 	if ($('wait_box')){
 		removeDiv('wait_box');
 		}



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 15 19:21:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SqY7s-0002eC-8g
	for mharc-phpcompta-dev@gnu.org; Sun, 15 Jul 2012 19:21:20 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 16 Jul 2012 01:10:33 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.304862.1342394479.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5070 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jul 2012 23:21:18 -0000

Author: danydb
Date: 2012-07-16 01:10:32 +0200 (Mon, 16 Jul 2012)
New Revision: 5070

Modified:
   phpcompta/tags/rel650/include/class_tool_uos.php
Log:
Fix bug in tool_uos

Modified: phpcompta/tags/rel650/include/class_tool_uos.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_tool_uos.php	2012-07-15 09:15:05 =
UTC (rev 5069)
+++ phpcompta/tags/rel650/include/class_tool_uos.php	2012-07-15 23:10:32 =
UTC (rev 5070)
@@ -54,15 +54,17 @@
      * @global $cn Database connx
      * @throws Exception if the value $p_id is not unique
      */
-    function save()
+    function save($p_array=3Dnull)
     {
         global $cn;
+		if ( $p_array =3D=3D null ) $p_array=3D$_POST;
+		$this->id=3D$_POST[$this->name];
         $sql=3D"insert into tool_uos(uos_value) values ($1)";
         try {
             $cn->exec_sql($sql,array($this->id));
         } catch (Exception $e)
         {
-            throw new Exception('Duplicate value','CODE_EXCP_DUPLICATE',=
$e);
+            throw new Exception('Duplicate value');
         }
     }
     /**
@@ -89,7 +91,7 @@
         try
         {
             $count=3D$cn->get_value('select count(*) from tool_uos where=
 uos_value=3D$1',
-                    array($p_id));
+                    array($this->id));
             if ($count !=3D 0 ) throw new Exception ('DUPLICATE',CODE_EX=
CP_DUPLICATE);
         }catch (Exception $e)
         {



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Wed Jul 18 20:33:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SregF-0004Y8-6u
	for mharc-phpcompta-dev@gnu.org; Wed, 18 Jul 2012 20:33:23 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 02:22:17 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.318543.1342658002.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5071 - in phpcompta/tags/rel650: html include
	include/template
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 00:33:22 -0000

Author: danydb
Date: 2012-07-19 02:22:15 +0200 (Thu, 19 Jul 2012)
New Revision: 5071

Modified:
   phpcompta/tags/rel650/html/style-light.css
   phpcompta/tags/rel650/html/style-print.css
   phpcompta/tags/rel650/html/style.css
   phpcompta/tags/rel650/include/class_follow_up.php
   phpcompta/tags/rel650/include/template/detail-action.php
Log:
Improve printing of action - gestion

Modified: phpcompta/tags/rel650/html/style-light.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-light.css	2012-07-15 23:10:32 UTC (r=
ev 5070)
+++ phpcompta/tags/rel650/html/style-light.css	2012-07-19 00:22:15 UTC (r=
ev 5071)
@@ -9,6 +9,7 @@
 	color:blue;
 }
 .notice {
+	background: white;
 	color:red;
 	font-style: italic;
 }

Modified: phpcompta/tags/rel650/html/style-print.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-print.css	2012-07-15 23:10:32 UTC (r=
ev 5070)
+++ phpcompta/tags/rel650/html/style-print.css	2012-07-19 00:22:15 UTC (r=
ev 5071)
@@ -1,13 +1,15 @@
 body {
-	font-size:7px;
+	font-size:8px;
 	}
 select ,.input_text{
+	font-size:8px;
 border:1px solid #FFFFFF;
  }
 form {
   display:none;
  }
 .print {
+	font-size:8px;
 	display: block;
 	}
 .noprint  {
@@ -30,6 +32,11 @@
 	font-size:7px;
 	font-family:sans-serif;
 }
+h3,h4 {
+	font-size:10px;
+	text-decoration: underline;
+	font-family:sans-serif;
+}
=20
 h2 {
 	font-size:12px;
@@ -42,7 +49,7 @@
 .content  {
 	font-size:7px;
 }
-h1.content,h1,h2.info {
+h1.content,h1,h2.info,legend {
 	font-size:14px;
 	font-weight:bold;
 	font-family:sans-serif;
@@ -244,6 +251,7 @@
 }
 .num {
 	text-align:right;
+	font-size:8px;
 }
=20
 /* </style> */

Modified: phpcompta/tags/rel650/html/style.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style.css	2012-07-15 23:10:32 UTC (rev 507=
0)
+++ phpcompta/tags/rel650/html/style.css	2012-07-19 00:22:15 UTC (rev 507=
1)
@@ -11,6 +11,7 @@
 .notice {
 		color:red;
         font-style: italic;
+		background-color: white;
         }
=20
 table.table_large, table.result  ,table.resultfooter {

Modified: phpcompta/tags/rel650/include/class_follow_up.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_follow_up.php	2012-07-15 23:10:32=
 UTC (rev 5070)
+++ phpcompta/tags/rel650/include/class_follow_up.php	2012-07-19 00:22:15=
 UTC (rev 5071)
@@ -177,7 +177,7 @@
 			$desc->width =3D 120;
 			$desc->heigh =3D 40;
 		}
-		$acomment =3D $this->db->get_array("SELECT agc_id, ag_id, to_char(agc_=
date,'DD.MM.YYYY') as str_agc_date, agc_comment, tech_user
+		$acomment =3D $this->db->get_array("SELECT agc_id, ag_id, to_char(agc_=
date,'DD.MM.YYYY HH24:MI') as str_agc_date, agc_comment, tech_user
 				 FROM action_gestion_comment where ag_id=3D$1 order by agc_id;", arr=
ay($this->ag_id)
 		);
=20

Modified: phpcompta/tags/rel650/include/template/detail-action.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/template/detail-action.php	2012-07-15 2=
3:10:32 UTC (rev 5070)
+++ phpcompta/tags/rel650/include/template/detail-action.php	2012-07-19 0=
0:22:15 UTC (rev 5071)
@@ -132,7 +132,7 @@
 </div>
 <div style=3D"float:right;clear:both"></div>
 	<div style=3D"float:left;width:45%">
-		<h4 style=3D"display:inline">Op=C3=A9rations</h4>
+		<h4 style=3D"display:inline">Op=C3=A9rations concern=C3=A9es</h4>
 		<ol>
=20
 		<?
@@ -156,7 +156,7 @@
=20
 		?>
 		</ol>
-		<? if ($p_view !=3D 'READ') echo $iconcerned->input()?>
+		<? if ($p_view !=3D 'READ')   echo '<span class=3D"noprint">'.$iconcer=
ned->input().'</span>';?>
 	</div>
=20
 	<div style=3D"float:left;width:45%">
@@ -187,13 +187,13 @@
=20
 		?>
 		</ol>
-		<? if ( $p_view !=3D 'READ') echo $iaction->input()?>
+		<? if ( $p_view !=3D 'READ') echo '<span class=3D"noprint">'.$iaction-=
>input().'</span>';?>
 	</div>
 </fieldset>
-<fieldset>
-  <legend>
+<div style=3D"margin-left:15px;margin-right: 15px">
+  <h1>
 	    <?=3D_('Description')?>
-  </legend>
+  </h1>
   <p>
 <script language=3D"javascript">
    function enlarge(p_id_textarea){
@@ -228,7 +228,7 @@
 						dossier::id(),
 						$acomment[$c]['agc_id']);
 				$js=3D '<a class=3D"mtitle" style=3D"color:orange" id=3D"accom'.$aco=
mment[$c]['agc_id'].'" href=3D"'.$rmComment.'">Effacer</a>';
-		echo 'n=C2=B0'.$acomment[$c]['agc_id'].'('.h($acomment[$c]['tech_user'=
])." ".smaller_date($acomment[$c]['str_agc_date']).')'.$js.
+		echo 'n=C2=B0'.$acomment[$c]['agc_id'].'('.h($acomment[$c]['tech_user'=
])." ".$acomment[$c]['str_agc_date'].')'.$js.
 				'<pre style=3D"white-space: -moz-pre-wrap;white-space: pre-wrap;bord=
er:1px solid blue;width:70%;" id=3D"com'.$acomment[$c]['agc_id'].'"> '.
 				" ".h($acomment[$c]['agc_comment']).'</pre>'
 				;
@@ -242,15 +242,19 @@
=20
 	}
 }
+echo '<span class=3D"noprint">';
 echo $desc->input();
+echo '</span>';
 ?>
 <? if ($p_view !=3D "READ" ): ?>
+<p class=3D"noprint">
 <input type=3D"button" id=3D"bt_enlarge" <?=3D$style_enl?> value=3D"+" o=
nclick=3D"enlarge('ag_comment');return false;">
 <input type=3D"button" id=3D"bt_small"  <?=3D$style_small?> value=3D"-" =
style=3D"display:none" onclick=3D"small('ag_comment');return false;">
+</p>
 <? endif; ?>
   </div>
-</fieldset>
-<input type=3D'button' class=3D"button" value=3D'Montrer articles' id=3D=
"toggleButton" onclick=3D'toggleShowDetail()'>
+</div>
+<input type=3D'button' class=3D"button" class=3D"noprint" value=3D'Montr=
er articles' id=3D"toggleButton" onclick=3D'toggleShowDetail()'>
 <fieldset id=3D"fldDetail" style=3D'display:block'>
    <LEGEND> <?=3D_('D=C3=A9tail des articles')?>
 </LEGEND>
@@ -316,7 +320,7 @@
 </fieldset>
=20
 <? if ($p_view !=3D 'READ' && $str_select_doc !=3D '') : ?>
-<fieldset >
+<fieldset class=3D"noprint" >
   <legend>
      <?=3D_('Document =C3=A0 g=C3=A9n=C3=A9rer')?>
   </legend>
@@ -331,11 +335,13 @@
   <legend>
      <?=3D_('Pi=C3=A8ces attach=C3=A9es')?>
   </legend>
+  <div class=3D"print">
+  <ol>
   <?php
 for ($i=3D0;$i<sizeof($aAttachedFile);$i++) :
   ?>
-  <p>
-    <A class=3D"mtitle" id=3D"<?php echo "doc".$aAttachedFile[$i]['d_id'=
];?>" href=3D"<?php echo $aAttachedFile[$i]['link']?>"><?php echo $aAttac=
hedFile[$i]['d_filename'];?>
+
+	  <li> <A class=3D"print" style=3D"display:inline" id=3D"<?php echo "do=
c".$aAttachedFile[$i]['d_id'];?>" href=3D"<?php echo $aAttachedFile[$i]['=
link']?>"><?php echo $aAttachedFile[$i]['d_filename'];?>
     </A>
 <?php $rmDoc=3Dsprintf("javascript:if ( confirm('"._('Voulez-vous efface=
r le document')." %s')=3D=3Dtrue ) {remove_document('%s','%s');}",
 	$aAttachedFile[$i]['d_filename'],
@@ -343,10 +349,12 @@
 	$aAttachedFile[$i]['d_id']);
     ?>
   <? if ($p_view !=3D 'READ') : ?>  <a class=3D"mtitle" style=3D"color:o=
range" id=3D"<?php echo "ac".$aAttachedFile[$i]['d_id'];?>" href=3D"<?php=
 echo $rmDoc;?>">Effacer</a><? endif;?>
-  </p>
+  </li>
   <?php
 endfor;
   ?>
+  </ol>
+  </div>
   <script language=3D"javascript">
 function addFiles() {
 try {
@@ -358,17 +366,17 @@
 catch(exception) { alert('<?=3Dj(_('Je ne peux pas ajouter de fichier'))=
?>'); alert(exception.message);}
 }
 </script>
-  <p >
-     <h3>Fichiers =C3=A0 ajouter: </h3>
-    <ol id=3D'add_file' >
+  <div class=3D"noprint">
+     <h3 >Fichiers =C3=A0 ajouter: </h3>
+    <ol id=3D'add_file'  >
       <li>
         <?php echo $upload->input();
         ?>
       </li>
     </ol>
-  <span >
+  <span   >
 <? if ($p_view !=3D 'READ') : ?> <input type=3D"button" class=3D"button"=
 onclick=3D"addFiles();" value=3D"Ajouter un fichier"> <? endif;?>
   </span>
-  </p>
+  </div>
 </fieldset>
 <script>compute_all_ledger()</script>
\ No newline at end of file



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 19 07:01:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SroUV-000555-DM
	for mharc-phpcompta-dev@gnu.org; Thu, 19 Jul 2012 07:01:55 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 12:50:49 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.320032.1342695714.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5072 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 11:01:53 -0000

Author: danydb
Date: 2012-07-19 12:50:48 +0200 (Thu, 19 Jul 2012)
New Revision: 5072

Modified:
   phpcompta/tags/rel650/include/ajax_get_profile.php
Log:
0000672: Am?\195?\169lioration apparence


Modified: phpcompta/tags/rel650/include/ajax_get_profile.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/ajax_get_profile.php	2012-07-19 00:22:1=
5 UTC (rev 5071)
+++ phpcompta/tags/rel650/include/ajax_get_profile.php	2012-07-19 10:50:4=
8 UTC (rev 5072)
@@ -99,11 +99,11 @@
 	echo $add_one;
         echo '</div>';
         echo '<div style=3D"display:none" id=3D"profile_gestion_div">';
-	echo "<h1>Action gestion accessible</h1>";
+	echo "<h2>Action gestion accessible</h2>";
 	$profile_menu->available_profile($p_id);
         echo '</div>';
         echo '<div style=3D"display:none" id=3D"profile_repo_div">';
-	echo "<h1>D=C3=A9p=C3=B4t de stock accessible</h1>";
+	echo "<h2>D=C3=A9p=C3=B4t de stock accessible</h2>";
 	$profile_menu->available_repository($p_id);
         echo '</div>';
         if ( isset ($_POST['tab']))



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 19 07:02:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SroV8-00058F-Nh
	for mharc-phpcompta-dev@gnu.org; Thu, 19 Jul 2012 07:02:34 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 12:51:27 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.320035.1342695753.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5073 - phpcompta/tags/rel650/html
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 11:02:33 -0000

Author: danydb
Date: 2012-07-19 12:51:27 +0200 (Thu, 19 Jul 2012)
New Revision: 5073

Modified:
   phpcompta/tags/rel650/html/style.css
Log:
Enl?\195?\168ve background blanc pour les notices


Modified: phpcompta/tags/rel650/html/style.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style.css	2012-07-19 10:50:48 UTC (rev 507=
2)
+++ phpcompta/tags/rel650/html/style.css	2012-07-19 10:51:27 UTC (rev 507=
3)
@@ -11,7 +11,6 @@
 .notice {
 		color:red;
         font-style: italic;
-		background-color: white;
         }
=20
 table.table_large, table.result  ,table.resultfooter {



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 19 08:00:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SrpPM-0004cz-3Z
	for mharc-phpcompta-dev@gnu.org; Thu, 19 Jul 2012 08:00:40 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 13:49:10 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.320286.1342699239.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5074 - in phpcompta/tags/rel650: html
	include/template
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 12:00:39 -0000

Author: danydb
Date: 2012-07-19 13:49:10 +0200 (Thu, 19 Jul 2012)
New Revision: 5074

Modified:
   phpcompta/tags/rel650/html/style-color.css
   phpcompta/tags/rel650/html/style-epad.css
   phpcompta/tags/rel650/html/style-light.css
   phpcompta/tags/rel650/html/style-print.css
   phpcompta/tags/rel650/html/style.css
   phpcompta/tags/rel650/include/template/detail-action.php
Log:
Improve printing of action - gestion

Modified: phpcompta/tags/rel650/html/style-color.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-color.css	2012-07-19 10:51:27 UTC (r=
ev 5073)
+++ phpcompta/tags/rel650/html/style-color.css	2012-07-19 11:49:10 UTC (r=
ev 5074)
@@ -555,7 +555,7 @@
 	margin:1px;
 	background-color: orange;
 }
-legend {
+h1.legend, legend {
 	font-weight: bold;
 	font-style: italic;
 	font-size: 120% ;

Modified: phpcompta/tags/rel650/html/style-epad.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-epad.css	2012-07-19 10:51:27 UTC (re=
v 5073)
+++ phpcompta/tags/rel650/html/style-epad.css	2012-07-19 11:49:10 UTC (re=
v 5074)
@@ -555,7 +555,7 @@
 	margin:1px;
 	background-color: orange;
 }
-legend {
+h1.legend,legend {
 	font-weight: bold;
 	font-style: italic;
 	font-size: 120% ;

Modified: phpcompta/tags/rel650/html/style-light.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-light.css	2012-07-19 10:51:27 UTC (r=
ev 5073)
+++ phpcompta/tags/rel650/html/style-light.css	2012-07-19 11:49:10 UTC (r=
ev 5074)
@@ -551,7 +551,7 @@
 	margin:1px;
 	background-color: orange;
 }
-legend {
+h1.legend, legend {
 	font-weight: bold;
 	font-style: italic;
 	font-size: 120% ;

Modified: phpcompta/tags/rel650/html/style-print.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-print.css	2012-07-19 10:51:27 UTC (r=
ev 5073)
+++ phpcompta/tags/rel650/html/style-print.css	2012-07-19 11:49:10 UTC (r=
ev 5074)
@@ -1,7 +1,7 @@
 body {
 	font-size:8px;
 	}
-select ,.input_text{
+input, select ,.input_text{
 	font-size:8px;
 border:1px solid #FFFFFF;
  }

Modified: phpcompta/tags/rel650/html/style.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style.css	2012-07-19 10:51:27 UTC (rev 507=
3)
+++ phpcompta/tags/rel650/html/style.css	2012-07-19 11:49:10 UTC (rev 507=
4)
@@ -550,7 +550,7 @@
 	margin:1px;
 	background-color: orange;
 }
-legend {
+h1.legend, legend {
 font-weight: bold;
 font-style: italic;
 font-size: 120% ;

Modified: phpcompta/tags/rel650/include/template/detail-action.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/template/detail-action.php	2012-07-19 1=
0:51:27 UTC (rev 5073)
+++ phpcompta/tags/rel650/include/template/detail-action.php	2012-07-19 1=
1:49:10 UTC (rev 5074)
@@ -191,7 +191,7 @@
 	</div>
 </fieldset>
 <div style=3D"margin-left:15px;margin-right: 15px">
-  <h1>
+  <h1 class=3D"legend">
 	    <?=3D_('Description')?>
   </h1>
   <p>



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 19 10:42:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Srrvq-0006Eu-0z
	for mharc-phpcompta-dev@gnu.org; Thu, 19 Jul 2012 10:42:22 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 16:31:12 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.321145.1342708940.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5075 - in phpcompta/tags/rel650: html include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 14:42:20 -0000

Author: danydb
Date: 2012-07-19 16:31:11 +0200 (Thu, 19 Jul 2012)
New Revision: 5075

Modified:
   phpcompta/tags/rel650/html/style-color.css
   phpcompta/tags/rel650/html/style-epad.css
   phpcompta/tags/rel650/html/style-light.css
   phpcompta/tags/rel650/html/style-test.css
   phpcompta/tags/rel650/html/style.css
   phpcompta/tags/rel650/include/function_javascript.php
Log:
Add script for Javascript sort of table

Modified: phpcompta/tags/rel650/html/style-color.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-color.css	2012-07-19 11:49:10 UTC (r=
ev 5074)
+++ phpcompta/tags/rel650/html/style-color.css	2012-07-19 14:31:11 UTC (r=
ev 5075)
@@ -13,7 +13,7 @@
 	font-style: italic;
 }
=20
-table.table_large, table.result  ,table.resultfooter {
+table.sortable, table.table_large, table.result  ,table.resultfooter {
 	color:blue;
 	/* border:blue solid 1px; */
 	width:100%;
@@ -27,7 +27,7 @@
=20
=20
 }
-table.table_large th,table.result th {
+table.sortable th, table.table_large th,table.result th {
 	font-weight:bold;
 	font-family:verdana,helvetica,sans-serif;
 	border-bottom:1px solid blue;
@@ -945,14 +945,14 @@
 	position:absolute;
 	border:1px solid black;
 	top:15%;left:100;
-	margin-left:25%
-		z-index:2;
+	margin-left:25%;
+	z-index:2;
 	width:50%;
 	display:none;
 	background-color:#e4e7ed;
 }
=20
-table.table_large td, table.result td
+table.sortable td,table.table_large td, table.result td
 {
 	padding-left:5px;
 	padding-right:5px;

Modified: phpcompta/tags/rel650/html/style-epad.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-epad.css	2012-07-19 11:49:10 UTC (re=
v 5074)
+++ phpcompta/tags/rel650/html/style-epad.css	2012-07-19 14:31:11 UTC (re=
v 5075)
@@ -13,7 +13,7 @@
 	font-style: italic;
 }
=20
-table.table_large, table.result  ,table.resultfooter {
+table.table_large, table.result  ,table.resultfooter,table.sortable  {
 	color:blue;
 	/* border:blue solid 1px; */
 	width:100%;
@@ -27,7 +27,7 @@
=20
=20
 }
-table.table_large th,table.result th {
+table.table_large th,table.result th,table.sortable th {
 	font-weight:bold;
 	font-family:verdana,helvetica,sans-serif;
 	border-bottom:1px solid blue;
@@ -947,7 +947,7 @@
 	background-color:#e4e7ed;
 }
=20
-table.table_large td, table.result td
+table.table_large td, table.result td,table.sortable td
 {
 	padding-left:5px;
 	padding-right:5px;

Modified: phpcompta/tags/rel650/html/style-light.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-light.css	2012-07-19 11:49:10 UTC (r=
ev 5074)
+++ phpcompta/tags/rel650/html/style-light.css	2012-07-19 14:31:11 UTC (r=
ev 5075)
@@ -14,7 +14,7 @@
 	font-style: italic;
 }
=20
-table.table_large, table.result  ,table.resultfooter {
+table.sortable, table.table_large, table.result  ,table.resultfooter {
 	color:blue;
 	/* border:blue solid 1px; */
 	width:100%;
@@ -25,10 +25,9 @@
 table.resultfooter tfoot {
 	font-size:110%;
 	font-weight: bold;
-
-
 }
-table.table_large th,table.result th {
+
+table.table_large th,table.result th ,table.sortable th{
 	font-weight:bold;
 	font-family:verdana,helvetica,sans-serif;
 	border-bottom:1px solid blue;
@@ -948,7 +947,7 @@
 	background-color:#e4e7ed;
 }
=20
-table.table_large td, table.result td
+table.table_large td, table.result td,table.sortable td
 {
 	padding-left:5px;
 	padding-right:5px;

Modified: phpcompta/tags/rel650/html/style-test.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style-test.css	2012-07-19 11:49:10 UTC (re=
v 5074)
+++ phpcompta/tags/rel650/html/style-test.css	2012-07-19 14:31:11 UTC (re=
v 5075)
@@ -1,6 +1,6 @@
 span.tmenu {
-	   padding-left:20px;=20
-	   padding-right:20px;=20
+	   padding-left:20px;
+	   padding-right:20px;
 	   border:solid 1px blue;
 	   background-color: #6699dd ;
 }
@@ -14,8 +14,7 @@
 	  width:150px;
 }
 a.tmenu:link {
-	   background-color: #6699dd ;=09
-//	    color:#683af2;
+	   background-color: #6699dd ;
 	    color:white;
 	    }
 a.tmenu:visited {
@@ -47,7 +46,7 @@
 }
 div.ddownload {
 	      color:white;
-	      background-color:#6699dd ;=09
+	      background-color:#6699dd ;
 }
 div.content {
 	    margin-left:10%;
@@ -60,7 +59,7 @@
    color:blue;
    background-color:white;
 }
-table.result td=20
+table.sortable td,table.result td
 {
 	padding-left:5px;
 	padding-right:5px;

Modified: phpcompta/tags/rel650/html/style.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/style.css	2012-07-19 11:49:10 UTC (rev 507=
4)
+++ phpcompta/tags/rel650/html/style.css	2012-07-19 14:31:11 UTC (rev 507=
5)
@@ -13,7 +13,7 @@
         font-style: italic;
         }
=20
-table.table_large, table.result  ,table.resultfooter {
+table.sortable, table.table_large, table.result  ,table.resultfooter {
   color:blue;
   /* border:blue solid 1px; */
   width:100%;
@@ -27,7 +27,7 @@
=20
=20
 }
-table.table_large th,table.result th {
+table.sortable th,  table.table_large th,table.result th {
   font-weight:bold;
   font-family:verdana,helvetica,sans-serif;
  border-bottom:1px solid blue;
@@ -946,7 +946,7 @@
 	      background-color:#e4e7ed;
 }
=20
-table.table_large td, table.result td
+table.sortable td, table.table_large td, table.result td
 {
 	padding-left:5px;
 	padding-right:5px;

Modified: phpcompta/tags/rel650/include/function_javascript.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/function_javascript.php	2012-07-19 11:4=
9:10 UTC (rev 5074)
+++ phpcompta/tags/rel650/include/function_javascript.php	2012-07-19 14:3=
1:11 UTC (rev 5075)
@@ -2755,6 +2755,7 @@
     echo js_include('gestion.js');
     echo js_include('todo_list.js');
     echo js_include('anc_script.js');
+    echo js_include('sorttable.js');
=20
=20
 }



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 19 12:03:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SrtCa-00085X-Is
	for mharc-phpcompta-dev@gnu.org; Thu, 19 Jul 2012 12:03:44 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 17:52:25 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.321379.1342713823.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5076 - phpcompta/tags/rel650/html/js
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 16:03:43 -0000

Author: danydb
Date: 2012-07-19 17:52:24 +0200 (Thu, 19 Jul 2012)
New Revision: 5076

Added:
   phpcompta/tags/rel650/html/js/sorttable.js
Log:
Add script for Javascript sort of table

Added: phpcompta/tags/rel650/html/js/sorttable.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/sorttable.js	                        (r=
ev 0)
+++ phpcompta/tags/rel650/html/js/sorttable.js	2012-07-19 15:52:24 UTC (r=
ev 5076)
@@ -0,0 +1,495 @@
+/*
+  SortTable
+  version 2
+  7th April 2007
+  Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/
+ =20
+  Instructions:
+  Download this file
+  Add <script src=3D"sorttable.js"></script> to your HTML
+  Add class=3D"sortable" to any table you'd like to make sortable
+  Click on the headers to sort
+ =20
+  Thanks to many, many people for contributions and suggestions.
+  Licenced as X11: http://www.kryogenix.org/code/browser/licence.html
+  This basically means: do what you want with it.
+*/
+
+=20
+var stIsIE =3D /*@cc_on!@*/false;
+
+sorttable =3D {
+  init: function() {
+    // quit if this function has already been called
+    if (arguments.callee.done) return;
+    // flag this function so we don't do the same thing twice
+    arguments.callee.done =3D true;
+    // kill the timer
+    if (_timer) clearInterval(_timer);
+   =20
+    if (!document.createElement || !document.getElementsByTagName) retur=
n;
+   =20
+    sorttable.DATE_RE =3D /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;
+   =20
+    forEach(document.getElementsByTagName('table'), function(table) {
+      if (table.className.search(/\bsortable\b/) !=3D -1) {
+        sorttable.makeSortable(table);
+      }
+    });
+   =20
+  },
+ =20
+  makeSortable: function(table) {
+    if (table.getElementsByTagName('thead').length =3D=3D 0) {
+      // table doesn't have a tHead. Since it should have, create one an=
d
+      // put the first table row in it.
+      the =3D document.createElement('thead');
+      the.appendChild(table.rows[0]);
+      table.insertBefore(the,table.firstChild);
+    }
+    // Safari doesn't support table.tHead, sigh
+    if (table.tHead =3D=3D null) table.tHead =3D table.getElementsByTagN=
ame('thead')[0];
+   =20
+    if (table.tHead.rows.length !=3D 1) return; // can't cope with two h=
eader rows
+   =20
+    // Sorttable v1 put rows with a class of "sortbottom" at the bottom =
(as
+    // "total" rows, for example). This is B&R, since what you're suppos=
ed
+    // to do is put them in a tfoot. So, if there are sortbottom rows,
+    // for backwards compatibility, move them to tfoot (creating it if n=
eeded).
+    sortbottomrows =3D [];
+    for (var i=3D0; i<table.rows.length; i++) {
+      if (table.rows[i].className.search(/\bsortbottom\b/) !=3D -1) {
+        sortbottomrows[sortbottomrows.length] =3D table.rows[i];
+      }
+    }
+    if (sortbottomrows) {
+      if (table.tFoot =3D=3D null) {
+        // table doesn't have a tfoot. Create one.
+        tfo =3D document.createElement('tfoot');
+        table.appendChild(tfo);
+      }
+      for (var i=3D0; i<sortbottomrows.length; i++) {
+        tfo.appendChild(sortbottomrows[i]);
+      }
+      delete sortbottomrows;
+    }
+   =20
+    // work through each column and calculate its type
+    headrow =3D table.tHead.rows[0].cells;
+    for (var i=3D0; i<headrow.length; i++) {
+      // manually override the type with a sorttable_type attribute
+      if (!headrow[i].className.match(/\bsorttable_nosort\b/)) { // skip=
 this col
+        mtch =3D headrow[i].className.match(/\bsorttable_([a-z0-9]+)\b/)=
;
+        if (mtch) { override =3D mtch[1]; }
+	      if (mtch && typeof sorttable["sort_"+override] =3D=3D 'function')=
 {
+	        headrow[i].sorttable_sortfunction =3D sorttable["sort_"+overrid=
e];
+	      } else {
+	        headrow[i].sorttable_sortfunction =3D sorttable.guessType(table=
,i);
+	      }
+	      // make it clickable to sort
+	      headrow[i].sorttable_columnindex =3D i;
+	      headrow[i].sorttable_tbody =3D table.tBodies[0];
+	      dean_addEvent(headrow[i],"click", function(e) {
+
+          if (this.className.search(/\bsorttable_sorted\b/) !=3D -1) {
+            // if we're already sorted by this column, just=20
+            // reverse the table, which is quicker
+            sorttable.reverse(this.sorttable_tbody);
+            this.className =3D this.className.replace('sorttable_sorted'=
,
+                                                    'sorttable_sorted_re=
verse');
+            this.removeChild(document.getElementById('sorttable_sortfwdi=
nd'));
+            sortrevind =3D document.createElement('span');
+            sortrevind.id =3D "sorttable_sortrevind";
+            sortrevind.innerHTML =3D stIsIE ? '&nbsp<font face=3D"webdin=
gs">5</font>' : '&nbsp;&#x25B4;';
+            this.appendChild(sortrevind);
+            return;
+          }
+          if (this.className.search(/\bsorttable_sorted_reverse\b/) !=3D=
 -1) {
+            // if we're already sorted by this column in reverse, just=20
+            // re-reverse the table, which is quicker
+            sorttable.reverse(this.sorttable_tbody);
+            this.className =3D this.className.replace('sorttable_sorted_=
reverse',
+                                                    'sorttable_sorted');
+            this.removeChild(document.getElementById('sorttable_sortrevi=
nd'));
+            sortfwdind =3D document.createElement('span');
+            sortfwdind.id =3D "sorttable_sortfwdind";
+            sortfwdind.innerHTML =3D stIsIE ? '&nbsp<font face=3D"webdin=
gs">6</font>' : '&nbsp;&#x25BE;';
+            this.appendChild(sortfwdind);
+            return;
+          }
+         =20
+          // remove sorttable_sorted classes
+          theadrow =3D this.parentNode;
+          forEach(theadrow.childNodes, function(cell) {
+            if (cell.nodeType =3D=3D 1) { // an element
+              cell.className =3D cell.className.replace('sorttable_sorte=
d_reverse','');
+              cell.className =3D cell.className.replace('sorttable_sorte=
d','');
+            }
+          });
+          sortfwdind =3D document.getElementById('sorttable_sortfwdind')=
;
+          if (sortfwdind) { sortfwdind.parentNode.removeChild(sortfwdind=
); }
+          sortrevind =3D document.getElementById('sorttable_sortrevind')=
;
+          if (sortrevind) { sortrevind.parentNode.removeChild(sortrevind=
); }
+         =20
+          this.className +=3D ' sorttable_sorted';
+          sortfwdind =3D document.createElement('span');
+          sortfwdind.id =3D "sorttable_sortfwdind";
+          sortfwdind.innerHTML =3D stIsIE ? '&nbsp<font face=3D"webdings=
">6</font>' : '&nbsp;&#x25BE;';
+          this.appendChild(sortfwdind);
+
+	        // build an array to sort. This is a Schwartzian transform thin=
g,
+	        // i.e., we "decorate" each row with the actual sort key,
+	        // sort based on the sort keys, and then put the rows back in o=
rder
+	        // which is a lot faster because you only do getInnerText once =
per row
+	        row_array =3D [];
+	        col =3D this.sorttable_columnindex;
+	        rows =3D this.sorttable_tbody.rows;
+	        for (var j=3D0; j<rows.length; j++) {
+	          row_array[row_array.length] =3D [sorttable.getInnerText(rows[=
j].cells[col]), rows[j]];
+	        }
+	        /* If you want a stable sort, uncomment the following line */
+	        //sorttable.shaker_sort(row_array, this.sorttable_sortfunction)=
;
+	        /* and comment out this one */
+	        row_array.sort(this.sorttable_sortfunction);
+	       =20
+	        tb =3D this.sorttable_tbody;
+	        for (var j=3D0; j<row_array.length; j++) {
+	          tb.appendChild(row_array[j][1]);
+	        }
+	       =20
+	        delete row_array;
+	      });
+	    }
+    }
+  },
+ =20
+  guessType: function(table, column) {
+    // guess the type of a column based on its first non-blank row
+    sortfn =3D sorttable.sort_alpha;
+    for (var i=3D0; i<table.tBodies[0].rows.length; i++) {
+      text =3D sorttable.getInnerText(table.tBodies[0].rows[i].cells[col=
umn]);
+      if (text !=3D '') {
+        if (text.match(/^-?[=A3$=A4]?[\d,.]+%?$/)) {
+          return sorttable.sort_numeric;
+        }
+        // check for a date: dd/mm/yyyy or dd/mm/yy=20
+        // can have / or . or - as separator
+        // can be mm/dd as well
+        possdate =3D text.match(sorttable.DATE_RE)
+        if (possdate) {
+          // looks like a date
+          first =3D parseInt(possdate[1]);
+          second =3D parseInt(possdate[2]);
+          if (first > 12) {
+            // definitely dd/mm
+            return sorttable.sort_ddmm;
+          } else if (second > 12) {
+            return sorttable.sort_mmdd;
+          } else {
+            // looks like a date, but we can't tell which, so assume
+            // that it's dd/mm (English imperialism!) and keep looking
+            sortfn =3D sorttable.sort_ddmm;
+          }
+        }
+      }
+    }
+    return sortfn;
+  },
+ =20
+  getInnerText: function(node) {
+    // gets the text we want to use for sorting for a cell.
+    // strips leading and trailing whitespace.
+    // this is *not* a generic getInnerText function; it's special to so=
rttable.
+    // for example, you can override the cell text with a customkey attr=
ibute.
+    // it also gets .value for <input> fields.
+   =20
+    if (!node) return "";
+
+    hasInputs =3D (typeof node.getElementsByTagName =3D=3D 'function') &=
&
+                 node.getElementsByTagName('input').length;
+   =20
+    if (node.getAttribute("sorttable_customkey") !=3D null) {
+      return node.getAttribute("sorttable_customkey");
+    }
+    else if (typeof node.textContent !=3D 'undefined' && !hasInputs) {
+      return node.textContent.replace(/^\s+|\s+$/g, '');
+    }
+    else if (typeof node.innerText !=3D 'undefined' && !hasInputs) {
+      return node.innerText.replace(/^\s+|\s+$/g, '');
+    }
+    else if (typeof node.text !=3D 'undefined' && !hasInputs) {
+      return node.text.replace(/^\s+|\s+$/g, '');
+    }
+    else {
+      switch (node.nodeType) {
+        case 3:
+          if (node.nodeName.toLowerCase() =3D=3D 'input') {
+            return node.value.replace(/^\s+|\s+$/g, '');
+          }
+        case 4:
+          return node.nodeValue.replace(/^\s+|\s+$/g, '');
+          break;
+        case 1:
+        case 11:
+          var innerText =3D '';
+          for (var i =3D 0; i < node.childNodes.length; i++) {
+            innerText +=3D sorttable.getInnerText(node.childNodes[i]);
+          }
+          return innerText.replace(/^\s+|\s+$/g, '');
+          break;
+        default:
+          return '';
+      }
+    }
+  },
+ =20
+  reverse: function(tbody) {
+    // reverse the rows in a tbody
+    newrows =3D [];
+    for (var i=3D0; i<tbody.rows.length; i++) {
+      newrows[newrows.length] =3D tbody.rows[i];
+    }
+    for (var i=3Dnewrows.length-1; i>=3D0; i--) {
+       tbody.appendChild(newrows[i]);
+    }
+    delete newrows;
+  },
+ =20
+  /* sort functions
+     each sort function takes two parameters, a and b
+     you are comparing a[0] and b[0] */
+  sort_numeric: function(a,b) {
+    aa =3D parseFloat(a[0].replace(/[^0-9.-]/g,''));
+    if (isNaN(aa)) aa =3D 0;
+    bb =3D parseFloat(b[0].replace(/[^0-9.-]/g,''));=20
+    if (isNaN(bb)) bb =3D 0;
+    return aa-bb;
+  },
+  sort_alpha: function(a,b) {
+    if (a[0]=3D=3Db[0]) return 0;
+    if (a[0]<b[0]) return -1;
+    return 1;
+  },
+  sort_ddmm: function(a,b) {
+    mtch =3D a[0].match(sorttable.DATE_RE);
+    y =3D mtch[3]; m =3D mtch[2]; d =3D mtch[1];
+    if (m.length =3D=3D 1) m =3D '0'+m;
+    if (d.length =3D=3D 1) d =3D '0'+d;
+    dt1 =3D y+m+d;
+    mtch =3D b[0].match(sorttable.DATE_RE);
+    y =3D mtch[3]; m =3D mtch[2]; d =3D mtch[1];
+    if (m.length =3D=3D 1) m =3D '0'+m;
+    if (d.length =3D=3D 1) d =3D '0'+d;
+    dt2 =3D y+m+d;
+    if (dt1=3D=3Ddt2) return 0;
+    if (dt1<dt2) return -1;
+    return 1;
+  },
+  sort_mmdd: function(a,b) {
+    mtch =3D a[0].match(sorttable.DATE_RE);
+    y =3D mtch[3]; d =3D mtch[2]; m =3D mtch[1];
+    if (m.length =3D=3D 1) m =3D '0'+m;
+    if (d.length =3D=3D 1) d =3D '0'+d;
+    dt1 =3D y+m+d;
+    mtch =3D b[0].match(sorttable.DATE_RE);
+    y =3D mtch[3]; d =3D mtch[2]; m =3D mtch[1];
+    if (m.length =3D=3D 1) m =3D '0'+m;
+    if (d.length =3D=3D 1) d =3D '0'+d;
+    dt2 =3D y+m+d;
+    if (dt1=3D=3Ddt2) return 0;
+    if (dt1<dt2) return -1;
+    return 1;
+  },
+ =20
+  shaker_sort: function(list, comp_func) {
+    // A stable sort function to allow multi-level sorting of data
+    // see: http://en.wikipedia.org/wiki/Cocktail_sort
+    // thanks to Joseph Nahmias
+    var b =3D 0;
+    var t =3D list.length - 1;
+    var swap =3D true;
+
+    while(swap) {
+        swap =3D false;
+        for(var i =3D b; i < t; ++i) {
+            if ( comp_func(list[i], list[i+1]) > 0 ) {
+                var q =3D list[i]; list[i] =3D list[i+1]; list[i+1] =3D =
q;
+                swap =3D true;
+            }
+        } // for
+        t--;
+
+        if (!swap) break;
+
+        for(var i =3D t; i > b; --i) {
+            if ( comp_func(list[i], list[i-1]) < 0 ) {
+                var q =3D list[i]; list[i] =3D list[i-1]; list[i-1] =3D =
q;
+                swap =3D true;
+            }
+        } // for
+        b++;
+
+    } // while(swap)
+  } =20
+}
+
+/* ******************************************************************
+   Supporting functions: bundled here to avoid depending on a library
+   ****************************************************************** */
+
+// Dean Edwards/Matthias Miller/John Resig
+
+/* for Mozilla/Opera9 */
+if (document.addEventListener) {
+    document.addEventListener("DOMContentLoaded", sorttable.init, false)=
;
+}
+
+/* for Internet Explorer */
+/*@cc_on @*/
+/*@if (@_win32)
+    document.write("<script id=3D__ie_onload defer src=3Djavascript:void=
(0)><\/script>");
+    var script =3D document.getElementById("__ie_onload");
+    script.onreadystatechange =3D function() {
+        if (this.readyState =3D=3D "complete") {
+            sorttable.init(); // call the onload handler
+        }
+    };
+/*@end @*/
+
+/* for Safari */
+if (/WebKit/i.test(navigator.userAgent)) { // sniff
+    var _timer =3D setInterval(function() {
+        if (/loaded|complete/.test(document.readyState)) {
+            sorttable.init(); // call the onload handler
+        }
+    }, 10);
+}
+
+/* for other browsers */
+window.onload =3D sorttable.init;
+
+// written by Dean Edwards, 2005
+// with input from Tino Zijdel, Matthias Miller, Diego Perini
+
+// http://dean.edwards.name/weblog/2005/10/add-event/
+
+function dean_addEvent(element, type, handler) {
+	if (element.addEventListener) {
+		element.addEventListener(type, handler, false);
+	} else {
+		// assign each event handler a unique ID
+		if (!handler.$$guid) handler.$$guid =3D dean_addEvent.guid++;
+		// create a hash table of event types for the element
+		if (!element.events) element.events =3D {};
+		// create a hash table of event handlers for each element/event pair
+		var handlers =3D element.events[type];
+		if (!handlers) {
+			handlers =3D element.events[type] =3D {};
+			// store the existing event handler (if there is one)
+			if (element["on" + type]) {
+				handlers[0] =3D element["on" + type];
+			}
+		}
+		// store the event handler in the hash table
+		handlers[handler.$$guid] =3D handler;
+		// assign a global event handler to do all the work
+		element["on" + type] =3D handleEvent;
+	}
+};
+// a counter used to create unique IDs
+dean_addEvent.guid =3D 1;
+
+function removeEvent(element, type, handler) {
+	if (element.removeEventListener) {
+		element.removeEventListener(type, handler, false);
+	} else {
+		// delete the event handler from the hash table
+		if (element.events && element.events[type]) {
+			delete element.events[type][handler.$$guid];
+		}
+	}
+};
+
+function handleEvent(event) {
+	var returnValue =3D true;
+	// grab the event object (IE uses a global event object)
+	event =3D event || fixEvent(((this.ownerDocument || this.document || th=
is).parentWindow || window).event);
+	// get a reference to the hash table of event handlers
+	var handlers =3D this.events[event.type];
+	// execute each event handler
+	for (var i in handlers) {
+		this.$$handleEvent =3D handlers[i];
+		if (this.$$handleEvent(event) =3D=3D=3D false) {
+			returnValue =3D false;
+		}
+	}
+	return returnValue;
+};
+
+function fixEvent(event) {
+	// add W3C standard event methods
+	event.preventDefault =3D fixEvent.preventDefault;
+	event.stopPropagation =3D fixEvent.stopPropagation;
+	return event;
+};
+fixEvent.preventDefault =3D function() {
+	this.returnValue =3D false;
+};
+fixEvent.stopPropagation =3D function() {
+  this.cancelBubble =3D true;
+}
+
+// Dean's forEach: http://dean.edwards.name/base/forEach.js
+/*
+	forEach, version 1.0
+	Copyright 2006, Dean Edwards
+	License: http://www.opensource.org/licenses/mit-license.php
+*/
+
+// array-like enumeration
+if (!Array.forEach) { // mozilla already supports this
+	Array.forEach =3D function(array, block, context) {
+		for (var i =3D 0; i < array.length; i++) {
+			block.call(context, array[i], i, array);
+		}
+	};
+}
+
+// generic enumeration
+Function.prototype.forEach =3D function(object, block, context) {
+	for (var key in object) {
+		if (typeof this.prototype[key] =3D=3D "undefined") {
+			block.call(context, object[key], key, object);
+		}
+	}
+};
+
+// character enumeration
+String.forEach =3D function(string, block, context) {
+	Array.forEach(string.split(""), function(chr, index) {
+		block.call(context, chr, index, string);
+	});
+};
+
+// globally resolve forEach enumeration
+var forEach =3D function(object, block, context) {
+	if (object) {
+		var resolve =3D Object; // default
+		if (object instanceof Function) {
+			// functions have a "length" property
+			resolve =3D Function;
+		} else if (object.forEach instanceof Function) {
+			// the object implements a custom forEach method so use that
+			object.forEach(block, context);
+			return;
+		} else if (typeof object =3D=3D "string") {
+			// the object is a string
+			resolve =3D String;
+		} else if (typeof object.length =3D=3D "number") {
+			// the object is array-like
+			resolve =3D Array;
+		}
+		resolve.forEach(object, block, context);
+	}
+};
+



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 19 12:24:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SrtWb-0004Vx-9k
	for mharc-phpcompta-dev@gnu.org; Thu, 19 Jul 2012 12:24:25 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 19 Jul 2012 18:13:19 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.321457.1342715064.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5077 - in phpcompta/tags/rel650: html/js include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 16:24:24 -0000

Author: danydb
Date: 2012-07-19 18:13:18 +0200 (Thu, 19 Jul 2012)
New Revision: 5077

Modified:
   phpcompta/tags/rel650/html/js/infobulle.js
   phpcompta/tags/rel650/html/js/scripts.js
   phpcompta/tags/rel650/include/compta_fin_rec.inc.php
Log:
Add script for Javascript sort of table for reconciliation bank

Modified: phpcompta/tags/rel650/html/js/infobulle.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/infobulle.js	2012-07-19 15:52:24 UTC (r=
ev 5076)
+++ phpcompta/tags/rel650/html/js/infobulle.js	2012-07-19 16:13:18 UTC (r=
ev 5077)
@@ -44,6 +44,7 @@
 content[14]=3D"Attention, le poste comptable doit exister, il ne sera pa=
s v=C3=A9rifi=C3=A9";
 content[15]=3D"Laissez =C3=A0 0 pour ne rien changer";
 content[16]=3D"Vous devez donner la date par op=C3=A9ration";
+content[17]=3D"Cliquez sur le titre d'une colonne pour trier";
=20
 function showBulle(p_ctl)
 {

Modified: phpcompta/tags/rel650/html/js/scripts.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/scripts.js	2012-07-19 15:52:24 UTC (rev=
 5076)
+++ phpcompta/tags/rel650/html/js/scripts.js	2012-07-19 16:13:18 UTC (rev=
 5077)
@@ -659,7 +659,8 @@
 	// the box is closed
 	if ( ask_reload =3D=3D 1)
 	{
-		window.location.reload;
+		// avoid POST window.location =3D window.location.href;
+		window.location.reload();
 	}
 }
 /**

Modified: phpcompta/tags/rel650/include/compta_fin_rec.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/compta_fin_rec.inc.php	2012-07-19 15:52=
:24 UTC (rev 5076)
+++ phpcompta/tags/rel650/include/compta_fin_rec.inc.php	2012-07-19 16:13=
:18 UTC (rev 5077)
@@ -74,7 +74,7 @@
 		  {
 		    echo '<div class=3D"content">'.$g_succeed.' Mise =C3=A0 jour extra=
it '.$_POST['ext'].'</div>';
 		  }
-	=09
+
 		$cn->commit();
 	}
 }
@@ -101,7 +101,11 @@
 echo dossier::hidden();
 echo HtmlInput::get_to_hidden(array('sa', 'p_action', 'p_jrn'));
=20
-$operation =3D $cn->get_array("select jr_id,jr_internal,jr_comment,to_ch=
ar(jr_date,'DD.MM.YYYY') as fmt_date,jr_montant
+$operation =3D $cn->get_array("select jr_id,jr_internal,
+								jr_comment,
+								to_char(jr_date,'DD.MM.YYYY') as fmt_date,
+								jr_montant,
+								to_char(jr_date,'YYYYMMDD') as raw_date
                               from jrn where jr_def_id=3D$1 and (jr_pj_n=
umber is null or jr_pj_number=3D'') order by jr_date", array($Ledger->id)=
);
 echo '<span id=3D"bkname">' . hb(h($Ledger->get_bank_name())) . '</span>=
';
 echo '<p>';
@@ -118,8 +122,8 @@
 echo IButton::tooggle_checkbox('rec1');
 echo '</p>';
 echo HtmlInput::submit('save', 'Mettre =C3=A0 jour le n=C2=B0 de relev=C3=
=A9 bancaire');
-echo '<table class=3D"result" style=3D"width:80%;margin-left:10%">';
-$r =3D th('Date');
+echo '<table class=3D"sortable" style=3D"width:80%;margin-left:10%">';
+$r =3D'<th>'.'Date '.HtmlInput::infobulle(17).'</th>';
 $r.=3Dth('Libell=C3=A9');
 $r.=3Dth('N=C2=B0 interne');
 $r.=3Dth('Montant', ' style=3D"text-align:right"');
@@ -133,11 +137,11 @@
 	$row =3D $operation[$i];
 	$r =3D '';
 	$js =3D HtmlInput::detail_op($row['jr_id'], $row['jr_internal']);
-	$r.=3Dtd($row['fmt_date']);
+	$r.=3D'<td sorttable_customkey=3D"'.$row['raw_date'].'">'.$row['fmt_dat=
e'].'</td>';
 	$r.=3Dtd($row['jr_comment']);
 	$r.=3Dtd($js);
 	$amount=3D$cn->get_value('select qf_amount from quant_fin where jr_id=3D=
$1', array($row['jr_id']));
-	$r.=3Dtd(nbm ($amount), ' class=3D"num" ');
+	$r.=3D'<td class=3D"num" class=3D"sorttable_numeric" sortable_customeke=
y=3D"'.$amount.'">'.nbm ($amount).'</td>';
=20
 	$diff=3Dbcadd($diff,$amount);
 	$tot_not_reconcilied+=3D$row['jr_montant'];
@@ -154,7 +158,7 @@
 			}
 		}
 	}
-	$r.=3Dtd(HtmlInput::hidden('jrid[]', $row['jr_id']) . $iradio->input(),=
 ' style=3D"text-align:center" ');
+	$r.=3Dtd(HtmlInput::hidden('jrid['.$i.']', $row['jr_id']) . $iradio->in=
put(), ' style=3D"text-align:center" ');
 	if ($i % 2 =3D=3D 0)
 		echo tr($r, ' class=3D"odd" ');
 	else



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Fri Jul 20 00:55:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ss5Fs-0003gL-JS
	for mharc-phpcompta-dev@gnu.org; Fri, 20 Jul 2012 00:55:56 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Fri, 20 Jul 2012 06:44:47 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.324727.1342760156.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r391 - tag/rel650/tva
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 04:55:55 -0000

Author: danydb
Date: 2012-07-20 06:44:45 +0200 (Fri, 20 Jul 2012)
New Revision: 391

Modified:
   tag/rel650/tva/list_tva.inc.php
Log:
Sort table for history of form

Modified: tag/rel650/tva/list_tva.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tva/list_tva.inc.php	2012-07-09 16:12:43 UTC (rev 390)
+++ tag/rel650/tva/list_tva.inc.php	2012-07-20 04:44:45 UTC (rev 391)
@@ -15,16 +15,17 @@
  *   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-130=
7  USA
-*/
+ */
 /* $Revision$ */
=20
 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
 require_once('class_iselect.php');
+require_once 'class_sort_table.php';
=20
 echo '<div id=3D"detail" style=3D"display:none; width:80%;margin-left:10=
%">';
 echo '<image src=3D"image/loading.gif" border=3D"0" alt=3D"Chargement...=
">';
 echo '</div>';
-/*!\file
+/* !\file
  * \brief show all the declaration by date
  */
=20
@@ -32,24 +33,35 @@
 echo '<form method=3D"get">';
 echo HtmlInput::request_to_hidden(array('ac'));
 echo _('Filtrer par ');
-$choice=3Dnew ISelect('type');
-$choice->value=3Darray(
-		     array('label'=3D> 'Toutes','value'=3D> 0 ),
-		     array('label'=3D> 'D=C3=A9clarations','value'=3D> 1 ),
-		     array('label'=3D> 'Listings assujetti','value'=3D> 2),
-		     array('label'=3D> 'Listings intracom','value'=3D> 3)
-		     );
-$choice->selected=3D(isset($_REQUEST['type']))?$_REQUEST['type']:0;
-$choice->javascript=3D' onchange=3D"submit(this)"';
+$choice =3D new ISelect('type');
+$choice->value =3D array(
+	array('label' =3D> 'Toutes', 'value' =3D> 0),
+	array('label' =3D> 'D=C3=A9clarations', 'value' =3D> 1),
+	array('label' =3D> 'Listings assujetti', 'value' =3D> 2),
+	array('label' =3D> 'Listings intracom', 'value' =3D> 3)
+);
+$choice->selected =3D (isset($_REQUEST['type'])) ? $_REQUEST['type'] : 0=
;
+$choice->javascript =3D ' onchange=3D"submit(this)"';
 echo HtmlInput::extension();
-echo HtmlInput::hidden('sa','ltva');
+echo HtmlInput::hidden('sa', 'ltva');
 echo dossier::hidden();
 echo $choice->input();
-echo HtmlInput::submit('rc','Recharger');
+echo HtmlInput::submit('rc', 'Recharger');
 echo '</form>';
-switch($choice->selected) {
-case 0:
- $sql=3D"
+
+$url =3D HtmlInput::request_to_string(array('ac', 'plugin_code', 'gDossi=
er', 'sa', 'type'));
+$sort=3D new Sort_Table();
+$sort->add('Date d=C3=A9claration	', $url, ' order by date_decl asc', ' =
order by date_decl desc', 'da', 'dd');
+$sort->add('P=C3=A9riode	', $url, ' order by exercice asc,periode_dec as=
c', ' order by exercice desc,periode_dec desc', 'pa', 'pd');
+
+$option_order =3D (isset($_GET['ord'])) ? $_GET['ord'] : 'dd';
+
+$sql_order =3D $sort->get_sql_order($option_order);
+
+switch ($choice->selected)
+{
+	case 0:
+		$sql =3D "
 select da_id as id, 'D=C3=A9claration trim/mens' as type_title,1 as type=
_decl,to_char(date_decl,'DD.MM.YYYY') as date_fmt,date_decl,
 case when periodicity =3D'1' then 'Mensuel'
 when periodicity =3D '2' then 'Trimestriel'
@@ -69,15 +81,13 @@
  'Annuel' as fmt_periodicity,
 periode_dec,exercice
 from tva_belge.assujetti
-
-order by date_decl desc
 ";
=20
-  break;
+		break;
=20
-case 1:
+	case 1:
=20
-  $sql=3D"
+		$sql =3D "
 select da_id as id, 'D=C3=A9claration trim/mens' as type_title,1 as type=
_decl,to_char(date_decl,'DD.MM.YYYY') as date_fmt,
 case when periodicity =3D'1' then 'Mensuel'
 when periodicity =3D '2' then 'Trimestriel'
@@ -85,18 +95,17 @@
 periode_dec,exercice
 from tva_belge.declaration_amount order by date_decl desc
 ";
-  break;
-case 2:
-$sql=3D"
+		break;
+	case 2:
+		$sql =3D "
 select a_id as id, 'Listing assujetti' as type_title, 2 as type_decl, to=
_char(date_decl,'DD.MM.YYYY') as date_fmt,date_decl,
  'Annuel' as fmt_periodicity,
 periode_dec,exercice
 from tva_belge.assujetti
-order by date_decl desc
 ";
-break;
-case 3:
-$sql=3D"
+		break;
+	case 3:
+		$sql =3D "
 select i_id as id, 'Listing Intracom' as type_title, 3 as type_decl, to_=
char(date_decl,'DD.MM.YYYY') as date_fmt,date_decl,
 case when periodicity =3D'1' then 'Mensuel'
 when periodicity =3D '2' then 'Trimestriel'
@@ -104,26 +113,31 @@
 end as fmt_periodicity,
 periode_dec,exercice
 from tva_belge.intracomm
-order by date_decl desc
 ";
-  break;
-
+		break;
 }
-$res=3D$cn->get_array($sql);
-echo '<table class=3D"result" >';
-echo tr(th('Type de d=C3=A9claration').th('Periodicit=C3=A9').th('Mois/a=
nn=C3=A9e').th('Date').th('Ann=C3=A9e'));
-for ($i=3D0;$i<count($res);$i++){
-  $aref=3Dsprintf('<a href=3D"javascript:void(0)" onclick=3D"show_declar=
ation(\'%s\',\'%s\')">',
-		$res[$i]['type_decl'],$res[$i]['id']);
-  $row=3Dtd($aref.$res[$i]['type_title'].'</a>');
-  $row.=3Dtd($aref.$res[$i]['fmt_periodicity'].'</a>');
-  $row.=3Dtd($aref.$res[$i]['periode_dec'].'</a>');
-  $row.=3Dtd($aref.$res[$i]['date_fmt'].'</a>');
-  $row.=3Dtd($aref.$res[$i]['exercice'].'</a>');
+$sql =3D $sql . $sql_order;
+$res =3D $cn->get_array($sql);
+?>
+<table class=3D"result" >
+	<tr>
+		<th>Type de d=C3=A9claration</th>
+		<th>Periodicit=C3=A9</th>
+		<th> <?=3D$sort->get_header(1)?></th>
+		<th><?=3D$sort->get_header(0)?></th>
=20
-  echo tr($row);
-}
-echo '</table>';
-echo '</div>';
+		<? for ($i =3D 0; $i < count($res); $i++):?>
+		<tr>
+			<?
+			$aref =3D sprintf('<a href=3D"javascript:void(0)" onclick=3D"show_dec=
laration(\'%s\',\'%s\')">', $res[$i]['type_decl'], $res[$i]['id']);
+			echo td($aref . $res[$i]['type_title'] . '</a>');
+			echo td($aref . $res[$i]['fmt_periodicity'] . '</a>');
+			echo td($aref.$res[$i]['periode_dec'].' - '.$res[$i]['exercice'].'</a=
>');
+			echo td($aref.$res[$i]['date_fmt'].'</a>');
+			?>
+		</tr>
+	<? endfor;?>
+</table>
+</div>
=20
=20



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Fri Jul 20 09:07:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsCvC-0007Qc-T2
	for mharc-phpcompta-dev@gnu.org; Fri, 20 Jul 2012 09:07:06 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Fri, 20 Jul 2012 14:55:50 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.326175.1342789626.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5078 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 13:07:05 -0000

Author: danydb
Date: 2012-07-20 14:55:50 +0200 (Fri, 20 Jul 2012)
New Revision: 5078

Modified:
   phpcompta/tags/rel650/include/compta_fin_rec.inc.php
Log:
Show default sorted column=20

Modified: phpcompta/tags/rel650/include/compta_fin_rec.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/compta_fin_rec.inc.php	2012-07-19 16:13=
:18 UTC (rev 5077)
+++ phpcompta/tags/rel650/include/compta_fin_rec.inc.php	2012-07-20 12:55=
:50 UTC (rev 5078)
@@ -123,7 +123,7 @@
 echo '</p>';
 echo HtmlInput::submit('save', 'Mettre =C3=A0 jour le n=C2=B0 de relev=C3=
=A9 bancaire');
 echo '<table class=3D"sortable" style=3D"width:80%;margin-left:10%">';
-$r =3D'<th>'.'Date '.HtmlInput::infobulle(17).'</th>';
+$r =3D'<th class=3D" sorttable_sorted_reverse">'.'Date '.HtmlInput::info=
bulle(17).'<span id=3D"sorttable_sortrevind">&nbsp;&blacktriangle;</span>=
'.'</th>';
 $r.=3Dth('Libell=C3=A9');
 $r.=3Dth('N=C2=B0 interne');
 $r.=3Dth('Montant', ' style=3D"text-align:right"');



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Fri Jul 20 09:08:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsCwY-0007bY-3y
	for mharc-phpcompta-dev@gnu.org; Fri, 20 Jul 2012 09:08:30 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Fri, 20 Jul 2012 14:57:16 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.326176.1342789709.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5079 - phpcompta/tags/rel650/html/js
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 13:08:28 -0000

Author: danydb
Date: 2012-07-20 14:57:16 +0200 (Fri, 20 Jul 2012)
New Revision: 5079

Modified:
   phpcompta/tags/rel650/html/js/sorttable.js
Log:
add documentation

Modified: phpcompta/tags/rel650/html/js/sorttable.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/sorttable.js	2012-07-20 12:55:50 UTC (r=
ev 5078)
+++ phpcompta/tags/rel650/html/js/sorttable.js	2012-07-20 12:57:16 UTC (r=
ev 5079)
@@ -1,21 +1,39 @@
-/*
+/**
+ *
   SortTable
   version 2
   7th April 2007
   Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/
- =20
+
   Instructions:
   Download this file
   Add <script src=3D"sorttable.js"></script> to your HTML
   Add class=3D"sortable" to any table you'd like to make sortable
   Click on the headers to sort
- =20
+
   Thanks to many, many people for contributions and suggestions.
   Licenced as X11: http://www.kryogenix.org/code/browser/licence.html
   This basically means: do what you want with it.
+
+@note
+Documentation http://www.kryogenix.org/code/browser/sorttable/
+
+Show the default order
+example:
+<th class=3D" sorttable_sorted_reverse">
+....<span id=3D"sorttable_sortrevind">&nbsp;&blacktriangle;</span>
+
+Sort on date
+<td sorttable_customkey=3D"<?=3D$row_bank['b_date']?>"> // format YYYYMM=
DD
+
+force as numeric (normally useless):
+<th class=3D"sorttable_numeric">Part number</th>
+
+To avoid the sort on the last row, use tfoot
+
 */
=20
-=20
+
 var stIsIE =3D /*@cc_on!@*/false;
=20
 sorttable =3D {
@@ -26,19 +44,19 @@
     arguments.callee.done =3D true;
     // kill the timer
     if (_timer) clearInterval(_timer);
-   =20
+
     if (!document.createElement || !document.getElementsByTagName) retur=
n;
-   =20
+
     sorttable.DATE_RE =3D /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;
-   =20
+
     forEach(document.getElementsByTagName('table'), function(table) {
       if (table.className.search(/\bsortable\b/) !=3D -1) {
         sorttable.makeSortable(table);
       }
     });
-   =20
+
   },
- =20
+
   makeSortable: function(table) {
     if (table.getElementsByTagName('thead').length =3D=3D 0) {
       // table doesn't have a tHead. Since it should have, create one an=
d
@@ -49,9 +67,9 @@
     }
     // Safari doesn't support table.tHead, sigh
     if (table.tHead =3D=3D null) table.tHead =3D table.getElementsByTagN=
ame('thead')[0];
-   =20
+
     if (table.tHead.rows.length !=3D 1) return; // can't cope with two h=
eader rows
-   =20
+
     // Sorttable v1 put rows with a class of "sortbottom" at the bottom =
(as
     // "total" rows, for example). This is B&R, since what you're suppos=
ed
     // to do is put them in a tfoot. So, if there are sortbottom rows,
@@ -73,7 +91,7 @@
       }
       delete sortbottomrows;
     }
-   =20
+
     // work through each column and calculate its type
     headrow =3D table.tHead.rows[0].cells;
     for (var i=3D0; i<headrow.length; i++) {
@@ -92,7 +110,7 @@
 	      dean_addEvent(headrow[i],"click", function(e) {
=20
           if (this.className.search(/\bsorttable_sorted\b/) !=3D -1) {
-            // if we're already sorted by this column, just=20
+            // if we're already sorted by this column, just
             // reverse the table, which is quicker
             sorttable.reverse(this.sorttable_tbody);
             this.className =3D this.className.replace('sorttable_sorted'=
,
@@ -105,7 +123,7 @@
             return;
           }
           if (this.className.search(/\bsorttable_sorted_reverse\b/) !=3D=
 -1) {
-            // if we're already sorted by this column in reverse, just=20
+            // if we're already sorted by this column in reverse, just
             // re-reverse the table, which is quicker
             sorttable.reverse(this.sorttable_tbody);
             this.className =3D this.className.replace('sorttable_sorted_=
reverse',
@@ -117,7 +135,7 @@
             this.appendChild(sortfwdind);
             return;
           }
-         =20
+
           // remove sorttable_sorted classes
           theadrow =3D this.parentNode;
           forEach(theadrow.childNodes, function(cell) {
@@ -130,7 +148,7 @@
           if (sortfwdind) { sortfwdind.parentNode.removeChild(sortfwdind=
); }
           sortrevind =3D document.getElementById('sorttable_sortrevind')=
;
           if (sortrevind) { sortrevind.parentNode.removeChild(sortrevind=
); }
-         =20
+
           this.className +=3D ' sorttable_sorted';
           sortfwdind =3D document.createElement('span');
           sortfwdind.id =3D "sorttable_sortfwdind";
@@ -151,28 +169,28 @@
 	        //sorttable.shaker_sort(row_array, this.sorttable_sortfunction)=
;
 	        /* and comment out this one */
 	        row_array.sort(this.sorttable_sortfunction);
-	       =20
+
 	        tb =3D this.sorttable_tbody;
 	        for (var j=3D0; j<row_array.length; j++) {
 	          tb.appendChild(row_array[j][1]);
 	        }
-	       =20
+
 	        delete row_array;
 	      });
 	    }
     }
   },
- =20
+
   guessType: function(table, column) {
     // guess the type of a column based on its first non-blank row
     sortfn =3D sorttable.sort_alpha;
     for (var i=3D0; i<table.tBodies[0].rows.length; i++) {
       text =3D sorttable.getInnerText(table.tBodies[0].rows[i].cells[col=
umn]);
       if (text !=3D '') {
-        if (text.match(/^-?[=A3$=A4]?[\d,.]+%?$/)) {
+        if (text.match(/^-?[=EF=BF=BD$=EF=BF=BD]?[\d,.]+%?$/)) {
           return sorttable.sort_numeric;
         }
-        // check for a date: dd/mm/yyyy or dd/mm/yy=20
+        // check for a date: dd/mm/yyyy or dd/mm/yy
         // can have / or . or - as separator
         // can be mm/dd as well
         possdate =3D text.match(sorttable.DATE_RE)
@@ -195,19 +213,19 @@
     }
     return sortfn;
   },
- =20
+
   getInnerText: function(node) {
     // gets the text we want to use for sorting for a cell.
     // strips leading and trailing whitespace.
     // this is *not* a generic getInnerText function; it's special to so=
rttable.
     // for example, you can override the cell text with a customkey attr=
ibute.
     // it also gets .value for <input> fields.
-   =20
+
     if (!node) return "";
=20
     hasInputs =3D (typeof node.getElementsByTagName =3D=3D 'function') &=
&
                  node.getElementsByTagName('input').length;
-   =20
+
     if (node.getAttribute("sorttable_customkey") !=3D null) {
       return node.getAttribute("sorttable_customkey");
     }
@@ -242,7 +260,7 @@
       }
     }
   },
- =20
+
   reverse: function(tbody) {
     // reverse the rows in a tbody
     newrows =3D [];
@@ -254,14 +272,14 @@
     }
     delete newrows;
   },
- =20
+
   /* sort functions
      each sort function takes two parameters, a and b
      you are comparing a[0] and b[0] */
   sort_numeric: function(a,b) {
     aa =3D parseFloat(a[0].replace(/[^0-9.-]/g,''));
     if (isNaN(aa)) aa =3D 0;
-    bb =3D parseFloat(b[0].replace(/[^0-9.-]/g,''));=20
+    bb =3D parseFloat(b[0].replace(/[^0-9.-]/g,''));
     if (isNaN(bb)) bb =3D 0;
     return aa-bb;
   },
@@ -300,7 +318,7 @@
     if (dt1<dt2) return -1;
     return 1;
   },
- =20
+
   shaker_sort: function(list, comp_func) {
     // A stable sort function to allow multi-level sorting of data
     // see: http://en.wikipedia.org/wiki/Cocktail_sort
@@ -330,7 +348,7 @@
         b++;
=20
     } // while(swap)
-  } =20
+  }
 }
=20
 /* ******************************************************************



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Thu Jul 26 11:43:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SuQE3-0006Ij-7f
	for mharc-phpcompta-dev@gnu.org; Thu, 26 Jul 2012 11:43:43 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Thu, 26 Jul 2012 17:31:55 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.355999.1343317422.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5080 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jul 2012 15:43:41 -0000

Author: danydb
Date: 2012-07-26 17:31:54 +0200 (Thu, 26 Jul 2012)
New Revision: 5080

Modified:
   phpcompta/tags/rel650/include/class_ihidden.php
Log:
Add ID=20

Modified: phpcompta/tags/rel650/include/class_ihidden.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_ihidden.php	2012-07-20 12:57:16 U=
TC (rev 5079)
+++ phpcompta/tags/rel650/include/class_ihidden.php	2012-07-26 15:31:54 U=
TC (rev 5080)
@@ -21,7 +21,7 @@
 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
=20
 /*!\file
- * \brief Html Input=20
+ * \brief Html Input
  */
 require_once('class_html_input.php');
 class IHidden extends HtmlInput
@@ -31,7 +31,8 @@
     {
         $this->name=3D($p_name=3D=3Dnull)?$this->name:$p_name;
         $this->value=3D($p_value=3D=3Dnull)?$this->value:$p_value;
-        $r=3D'<INPUT TYPE=3D"HIDDEN" id=3D"'.$this->name.'" name=3D"'.$t=
his->name.'" value=3D"'.$this->value.'">';
+		$this->id=3D(! isset($this->id))?$this->name:$this->id;
+        $r=3D'<INPUT TYPE=3D"HIDDEN" id=3D"'.$this->id.'" name=3D"'.$thi=
s->name.'" value=3D"'.$this->value.'">';
         return $r;
=20
     }



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 08:08:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvSIf-0001Ou-EM
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 08:08:45 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 13:57:00 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363066.1343563724.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5081 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 12:08:43 -0000

Author: danydb
Date: 2012-07-29 13:56:59 +0200 (Sun, 29 Jul 2012)
New Revision: 5081

Modified:
   phpcompta/tags/rel650/include/class_html_input.php
Log:
add new function=20
default_value_get
default_value_post
default_value_request

Modified: phpcompta/tags/rel650/include/class_html_input.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_html_input.php	2012-07-26 15:31:5=
4 UTC (rev 5080)
+++ phpcompta/tags/rel650/include/class_html_input.php	2012-07-29 11:56:5=
9 UTC (rev 5081)
@@ -575,7 +575,7 @@
       return $r;
     }
     /**
-     * return default if the value if the array doesn't exist
+     * return default if the value if the value doesn't exist in the arr=
ay
      *@param $ind the index to check
      *@param $default the value to return
      *@param $array the array
@@ -588,6 +588,48 @@
 	}
       return $array[$ind];
     }
+	/**
+	 *  return default if the value if the value doesn't exist in $_GET
+	 * @param  $ind name of the variable
+	 * @param type $default
+	 * @return type
+	 */
+	static function default_value_get($ind, $default)
+	{
+		if (!isset($_GET[$ind]))
+		{
+			return $default;
+		}
+		return $_GET[$ind];
+	}
+	/**
+	 *  return default if the value if the value doesn't exist in $_POST
+	 * @param  $ind name of the variable
+	 * @param type $default
+	 * @return type
+	 */
+	static function default_value_post($ind, $default)
+	{
+		if (!isset($_POST[$ind]))
+		{
+			return $default;
+		}
+		return $_POST[$ind];
+	}
+	/**
+	 *  return default if the value if the value doesn't exist in $_REQUEST
+	 * @param  $ind name of the variable
+	 * @param type $default
+	 * @return type
+	 */
+	static function default_value_request($ind, $default)
+	{
+		if (!isset($_REQUEST[$ind]))
+		{
+			return $default;
+		}
+		return $_REQUEST[$ind];
+	}
 	static function title_box($name,$div,$mod=3D"close")
 	{
 		if ($mod=3D=3D'close')		$r=3DHtmlInput::anchor_close($div);



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 08:26:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvSZt-0003MK-53
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 08:26:33 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 14:14:52 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363092.1343564793.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5082 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 12:26:32 -0000

Author: danydb
Date: 2012-07-29 14:14:51 +0200 (Sun, 29 Jul 2012)
New Revision: 5082

Modified:
   phpcompta/tags/rel650/include/class_inum.php
Log:
improve documentation

Modified: phpcompta/tags/rel650/include/class_inum.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_inum.php	2012-07-29 11:56:59 UTC =
(rev 5081)
+++ phpcompta/tags/rel650/include/class_inum.php	2012-07-29 12:14:51 UTC =
(rev 5082)
@@ -27,7 +27,15 @@
 /*!\brief
  * This class handles only the numeric input, the input will
  * call a javascript
- * to change comma to period  and will round it (2 decimal)
+ * to change comma to period  and will round it (2 decimal), the precisi=
on is given by
+ * the attribute prec
+ * attribute
+ *  extra =3D extra code (free)
+ *  size =3D size of the field
+ *  prec =3D precision default =3D 2
+ *  name =3D name of the html object
+ *  javascript =3D javascript to execute (default =3D onchange=3D"format=
_number(this,2);)
+ *  value =3D value of the widget
  *
  */
 class INum extends IText



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 09:02:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvT8N-000872-4Z
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 09:02:11 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 14:50:29 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363130.1343566930.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5083 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 13:02:09 -0000

Author: danydb
Date: 2012-07-29 14:50:29 +0200 (Sun, 29 Jul 2012)
New Revision: 5083

Modified:
   phpcompta/tags/rel650/include/constant.php
Log:
Add constant for year

Modified: phpcompta/tags/rel650/include/constant.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/constant.php	2012-07-29 12:14:51 UTC (r=
ev 5082)
+++ phpcompta/tags/rel650/include/constant.php	2012-07-29 12:50:29 UTC (r=
ev 5083)
@@ -58,6 +58,8 @@
 define ('MAX_FORECAST_ITEM',10);
 define ('MAX_PREDEFINED_OPERATION',30);
 define ('MAX_COMPTE_CARD',4);
+define ('COMPTA_MAX_YEAR',2100);
+define ('COMPTA_MIN_YEAR',1990);
=20
 if ( DEBUG ) error_reporting(2147483647);  else error_reporting(0);
 // Erreur



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 09:19:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvTPT-0000lz-TM
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 09:19:51 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 15:08:11 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363155.1343567991.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5084 - phpcompta/tags/rel650/include/template
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 13:19:50 -0000

Author: danydb
Date: 2012-07-29 15:08:11 +0200 (Sun, 29 Jul 2012)
New Revision: 5084

Modified:
   phpcompta/tags/rel650/include/template/periode_add_exercice.php
Log:
Message for exercice

Modified: phpcompta/tags/rel650/include/template/periode_add_exercice.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/template/periode_add_exercice.php	2012-=
07-29 12:50:29 UTC (rev 5083)
+++ phpcompta/tags/rel650/include/template/periode_add_exercice.php	2012-=
07-29 13:08:11 UTC (rev 5084)
@@ -2,8 +2,11 @@
 <ul>
 <li>
 Exercice en 12 p=C3=A9riodes : Ajout d'un exercice comptable de 12 p=C3=A9=
riodes, commen=C3=A7ant le 1 janvier et terminant le 31 d=C3=A9cembre. </=
li>
-<li>   Exercice en 13 p=C3=A9riodes: Ajout d'une p=C3=A9riode d'un jour =
le 31/12. Cette p=C3=A9riode est utilis=C3=A9e=20
+<li>   Exercice en 13 p=C3=A9riodes: Ajout d'une p=C3=A9riode d'un jour =
le 31/12. Cette p=C3=A9riode est utilis=C3=A9e
 pour faire toutes les =C3=A9critures de fin d'exercice: amortissements, =
r=C3=A9gulations de compte... Avec une 13i=C3=A8me p=C3=A9riode, cela sim=
plifie les pr=C3=A9visions, les rapports...</li>
+<li>
+	Pour ajouter des ann=C3=A9es, ne commen=C3=A7ant pas en janvier ou comp=
tant un nombre de mois sup=C3=A9rieur =C3=A0 12, utilisez le plugin "Outi=
ls Comptables"
+</li>
 </ul>
=20
 <form method=3D"post" onsubmit=3D"return confirm('Confirmez vous l\'ajou=
t d\'un exercice comptable ?')">



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 09:20:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvTQD-0000sf-2t
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 09:20:37 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 15:08:57 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363156.1343568036.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5085 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 13:20:36 -0000

Author: danydb
Date: 2012-07-29 15:08:56 +0200 (Sun, 29 Jul 2012)
New Revision: 5085

Modified:
   phpcompta/tags/rel650/include/ac_common.php
   phpcompta/tags/rel650/include/class_periode.php
Log:
New constant for date range

Modified: phpcompta/tags/rel650/include/ac_common.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/ac_common.php	2012-07-29 13:08:11 UTC (=
rev 5084)
+++ phpcompta/tags/rel650/include/ac_common.php	2012-07-29 13:08:56 UTC (=
rev 5085)
@@ -230,7 +230,7 @@
 	if (sizeof($l_date) !=3D 3)
 	    return null;
=20
-	if ($l_date[2] > 2050)
+	if ($l_date[2] > COMPTA_MAX_YEAR || $l_date[2] < COMPTA_MIN_YEAR)
 	{
 	    return null;
 	}

Modified: phpcompta/tags/rel650/include/class_periode.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/class_periode.php	2012-07-29 13:08:11 U=
TC (rev 5084)
+++ phpcompta/tags/rel650/include/class_periode.php	2012-07-29 13:08:56 U=
TC (rev 5085)
@@ -352,7 +352,7 @@
                 isDate($p_date_end) =3D=3D null ||
                 strlen (trim($p_exercice)) =3D=3D 0 ||
                 (string) $p_exercice !=3D (string)(int) $p_exercice
-	  ||$p_exercice < 2000 || $p_exercice > 2099 )
+	  ||$p_exercice < COMPTA_MIN_YEAR || $p_exercice > COMPTA_MAX_YEAR)
=20
         {
 	  throw new Exception ("Param=C3=A8tre invalide");



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 09:21:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvTQp-0000w5-88
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 09:21:15 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 15:09:32 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363157.1343568074.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r392 - in tag/rel650/tools: . include
	include/template
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 13:21:13 -0000

Author: danydb
Date: 2012-07-29 15:09:32 +0200 (Sun, 29 Jul 2012)
New Revision: 392

Added:
   tag/rel650/tools/include/class_tool_exercice.php
   tag/rel650/tools/include/template/tool_exercice_input.php
   tag/rel650/tools/include/tools_exercice.inc.php
Modified:
   tag/rel650/tools/index.php
Log:
New Tool for adding exercice

Added: tag/rel650/tools/include/class_tool_exercice.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tools/include/class_tool_exercice.php	                    =
    (rev 0)
+++ tag/rel650/tools/include/class_tool_exercice.php	2012-07-29 13:09:32 =
UTC (rev 392)
@@ -0,0 +1,130 @@
+<?php
+
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ * Description of class_tool_exercice
+ *
+ * @author dany
+ */
+class Tool_Exercice
+{
+
+	function __construct($cn)
+	{
+		$this->cn =3D $cn;
+	}
+
+	/**
+	 * Show form to input data for new exercice
+	 */
+	function input()
+	{
+		$exercice =3D new INum('p_exercice');
+		$exercice->prec =3D 0;
+		$exercice->value =3D HtmlInput::default_value_post('p_exercice', '');
+
+		$year =3D new INum('year');
+		$year->prec =3D 0;
+		$year->value =3D HtmlInput::default_value_post('year', '');
+
+		$nb_month =3D new INum('nb_month');
+		$nb_month->prec =3D 0;
+		$nb_month->value =3D HtmlInput::default_value_post('nb_month', '');
+
+		$from =3D new ISelect('from_month');
+		$from->selected=3D HtmlInput::default_value_post('from_month', '');
+		$amonth =3D array();
+		for ($i =3D 1; $i < 13; $i++)
+		{
+			$amonth[] =3D array("value" =3D> $i, "label" =3D> $i);
+		}
+		$from->value =3D $amonth;
+
+		require_once 'template/tool_exercice_input.php';
+	}
+
+	function fromPost()
+	{
+		$this->exercice =3D $_POST['p_exercice'];
+		$this->nb_month =3D $_POST['nb_month'];
+		$this->from =3D $_POST['from_month'];
+		$this->year=3D $_POST['year'];
+	}
+
+	function verify()
+	{
+		if (isNumber($this->exercice) =3D=3D 0)
+			throw new Exception("Exercice n'est pas un nombre");
+
+		if ($this->exercice > COMPTA_MAX_YEAR|| $this->exercice < COMPTA_MIN_Y=
EAR)
+			throw new Exception("Exercice doit =C3=AAtre entre ".COMPTA_MAX_YEAR.=
"& ".COMPTA_MIN_YEAR);
+		if (isNumber($this->year) =3D=3D 0)
+			throw new Exception("Ann=C3=A9e n'est pas un nombre");
+
+		if ($this->year > COMPTA_MAX_YEAR|| $this->year < COMPTA_MIN_YEAR)
+			throw new Exception("Ann=C3=A9e doit =C3=AAtre entre ".COMPTA_MAX_YEA=
R."& ".COMPTA_MIN_YEAR);
+
+		if (isNumber($this->nb_month) =3D=3D 0)
+			throw new Exception("Nombre de mois n'est pas un nombre");
+		if ($this->nb_month < 1 || $this->nb_month > 60)
+			throw new Exception("Nombre de mois doit =C3=AAtre compris entre 1 & =
60 ");
+		if (isNumber($this->from) =3D=3D 0)
+			throw new Exception("Mois de d=C3=A9but n'existe pas ");
+		if ($this->from > 13 || $this->from < 1)
+			throw new Exception("Mois de d=C3=A9but n'existe pas ");
+	}
+
+	function save()
+	{
+		try
+		{
+			$this->verify();
+		}
+		catch (Exception $e)
+		{
+			alert($e->getMessage());
+			return -1;
+		}
+		$this->cn->start();
+		try
+		{
+			$periode =3D new Periode($this->cn);
+			$exercice=3D$this->exercice;
+			$year=3D$this->year;
+			$month=3D$this->from;
+			for ($i =3D 1; $i <=3D $this->nb_month; $i++)
+			{
+
+
+				$date_start =3D sprintf('01.%02d.%d', $month, $year);
+				$date_end =3D $this->cn->get_value("select to_char(to_date('$date_st=
art','DD.MM.YYYY')+interval '1 month'-interval '1 day','DD.MM.YYYY')");
+				if ($periode->insert($date_start, $date_end, $this->exercice) !=3D 0=
)
+				{
+					throw new Exception('Erreur insertion p=C3=A9riode');
+				}
+				if ($month>11 )
+				{
+					$year++;
+					$month=3D1;
+				}
+				else
+				{
+					$month++;
+				}
+			}
+		}
+		catch (Exception $e)
+		{
+			var_dump($e->getTraceAsString());
+			return -1;
+		}
+		return 0;
+	}
+
+}
+
+?>

Added: tag/rel650/tools/include/template/tool_exercice_input.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tools/include/template/tool_exercice_input.php	           =
             (rev 0)
+++ tag/rel650/tools/include/template/tool_exercice_input.php	2012-07-29 =
13:09:32 UTC (rev 392)
@@ -0,0 +1,69 @@
+<?php
+
+/*
+ *   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 b=
y
+ *   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-130=
7  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
+
+/**
+ * @file
+ * @brief Input data for new Exercice
+ *
+ */
+?>
+<form method=3D"POST">
+	<table>
+		<tr>
+			<td>
+				Exercice
+			</td>
+			<td>
+				<?=3D$exercice->input()?>
+			</td>
+		</tr>
+		<tr>
+			<td>
+				Ann=C3=A9e
+			</td>
+			<td>
+				<?=3D$year->input()?>
+			</td>
+		</tr>
+		<tr>
+			<td>
+				Nombre de mois
+			</td>
+			<td>
+				<?=3D$nb_month->input()?>
+			</td>
+		</tr>
+		<tr>
+			<td>
+				A partir du mois de
+			</td>
+			<td>
+				<?=3D$from->input()?>
+			</td>
+		</tr>
+	</table>
+<?
+echo HtmlInput::submit('save','Valider');
+echo HtmlInput::request_to_hidden(array('sa','ac','plugin_code','gDossie=
r'));
+?>
+</form>
\ No newline at end of file

Added: tag/rel650/tools/include/tools_exercice.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tools/include/tools_exercice.inc.php	                     =
   (rev 0)
+++ tag/rel650/tools/include/tools_exercice.inc.php	2012-07-29 13:09:32 U=
TC (rev 392)
@@ -0,0 +1,47 @@
+<?php
+
+/*
+ *   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 b=
y
+ *   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-130=
7  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
+
+/**
+ * @file
+ * @brief add an exercice of 12 month starting when we want
+ *
+ */
+require_once 'class_tool_exercice.php';
+if (isset ($_POST['save']))
+{
+	try
+	{
+		$exercice=3Dnew Tool_Exercice($cn);
+		$exercice->fromPost();
+		$exercice->save();
+	}
+	catch (Exception $e)
+	{
+		var_dump($e->getTraceAsString());
+	}
+
+}
+
+$exercice=3Dnew Tool_Exercice($cn);
+echo $exercice->input();
+?>

Modified: tag/rel650/tools/index.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tools/index.php	2012-07-20 04:44:45 UTC (rev 391)
+++ tag/rel650/tools/index.php	2012-07-29 13:09:32 UTC (rev 392)
@@ -25,7 +25,7 @@
  */
 global $version_plugin;
 $version_plugin=3DSVNINFO;
-Extension::check_version(4400);
+Extension::check_version(5082);
=20
 /*
  * load javascript
@@ -39,7 +39,8 @@
 $url=3D'?'.dossier::get()."&plugin_code=3D".$_REQUEST['plugin_code']."&a=
c=3D".$_REQUEST['ac'];
 $array=3Darray (
          array($url.'&sa=3Dop',_('Op=C3=A9ration'),_('Changer poste comp=
table ou fiche'),1),
-         array($url.'&sa=3Dpj',_('Pi=C3=A8ce'),_('R=C3=A9num=C3=A9roter =
des pi=C3=A8ces justificative'),2)
+         array($url.'&sa=3Dpj',_('Pi=C3=A8ce'),_('R=C3=A9num=C3=A9roter =
des pi=C3=A8ces justificative'),2),
+         array($url.'&sa=3Dexe',_('Exercice'),_('Ajouter des ann=C3=A9es=
 comptables'),3)
        );
=20
 $sa=3D(isset($_REQUEST['sa']))?$_REQUEST['sa']:"";
@@ -52,6 +53,9 @@
   case 'pj':
     $def=3D2;
     break;
+  case 'exe':
+	  $def=3D3;
+	  break;
   }
=20
 $cn=3Dnew Database(dossier::id());
@@ -76,4 +80,10 @@
     require_once('include/receipt.inc.php');
     exit();
   }
+/* Exercice */
+  if ($def =3D=3D 3 )
+  {
+	  require_once 'include/tools_exercice.inc.php';
+	  exit();
+  }
 ?>



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Sun Jul 29 09:30:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvTa9-0001Rf-Is
	for mharc-phpcompta-dev@gnu.org; Sun, 29 Jul 2012 09:30:53 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Sun, 29 Jul 2012 15:19:12 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.363169.1343568652.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r393 - tag/rel650/tva
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 13:30:52 -0000

Author: danydb
Date: 2012-07-29 15:19:11 +0200 (Sun, 29 Jul 2012)
New Revision: 393

Removed:
   tag/rel650/tva/class_tva_param.php
Log:
remove obsolete

Deleted: tag/rel650/tva/class_tva_param.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/tva/class_tva_param.php	2012-07-29 13:09:32 UTC (rev 392)
+++ tag/rel650/tva/class_tva_param.php	2012-07-29 13:19:11 UTC (rev 393)
@@ -1,111 +0,0 @@
-<?php
-/*
- *   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 b=
y
- *   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-130=
7  USA
-*/
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
-
-/*!\file
- * \brief manage the table tva.parameters
- */
-
-/*!\brief=20
- *
- *
- */
-class=20
-{
-  /* example private $variable=3Darray("val1"=3D>1,"val2"=3D>"Seconde va=
leur","val3"=3D>0); */
-  private static $variable;
-  function __construct ($p_init) {
-    /* example    $this->set_parameter("val3",$p_init); */
-  }
-  public function get_parameter($p_string) {
-    if ( array_key_exists($p_string,self::$variable) ) {
-      $idx=3Dself::$variable[$p_string];
-      return $this->$idx;
-    }
-    else=20
-      exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
-  }
-  public function set_parameter($p_string,$p_value) {
-    if ( array_key_exists($p_string,self::$variable) ) {
-      $idx=3Dself::$variable[$p_string];
-      $this->$idx=3D$p_value;
-    }
-    else=20
-      exit (__FILE__.":".__LINE__.'Erreur attribut inexistant');
-   =20
-   =20
-  }
-  public function get_info() {    return var_export(self::$variable,true=
);  }
-  public function verify() {
-    // Verify that the elt we want to add is correct
-  }
-  public function save() {
-      $this->update();
-  }
-
-  public function update() {
-    if ( $this->verify() !=3D 0 ) return;
-    /*   please adapt
-    $sql=3D"update tva_rate set tva_label=3D$1,tva_rate=3D$2,tva_comment=
=3D$3,tva_poste=3D$4 ".
-      " where tva_id =3D $5";
-    $res=3DExecSqlParam($this->cn,
-		 $sql,
-		 array($this->tva_label,
-		       $this->tva_rate,
-		       $this->tva_comment,
-		       $this->tva_poste,
-		       $this->tva_id)
-		 );
-		 */
-  }
-
-  public function load() {
-
-   $sql=3D"select tva_label,tva_rate, tva_comment,tva_poste from tva_rat=
e where tva_id=3D$1";=20
-    /* please adapt
-    $res=3DExecSqlParam($this->cn,
-		 $sql,
-		 array($this->tva_id)
-		 );
-		 */
-    if ( pg_NumRows($res) =3D=3D 0 ) return;
-    $row=3Dpg_fetch_array($res,0);
-    foreach ($row as $idx=3D>$value) { $this->$idx=3D$value; }
-  }
-  public function delete() {
-/*    $sql=3D"delete from tva_rate where tva_id=3D$1";=20
-    $res=3DExecSqlParam($this->cn,$sql,array($this->tva_id));
-*/
-  }
-  /*!\brief
-   *\param
-   *\return
-   *\note
-   *\see
-   *\todo
-   */=09
-  static function test_me() {
-  }
- =20
-}
-
-/* test::test_me(); */
-



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 14:25:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svueb-0008S9-Ka
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 14:25:17 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 20:13:30 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366600.1343672716.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5086 - phpcompta/tags/rel650/include/template
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 18:25:15 -0000

Author: danydb
Date: 2012-07-30 20:13:30 +0200 (Mon, 30 Jul 2012)
New Revision: 5086

Modified:
   phpcompta/tags/rel650/include/template/fiche_list.php
Log:
cosmetic

Modified: phpcompta/tags/rel650/include/template/fiche_list.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/template/fiche_list.php	2012-07-29 13:0=
8:56 UTC (rev 5085)
+++ phpcompta/tags/rel650/include/template/fiche_list.php	2012-07-30 18:1=
3:30 UTC (rev 5086)
@@ -74,7 +74,6 @@
 $iselect->value=3D$cn->make_array("select fd_id,fd_label from fiche_def =
order by 2");
 echo $iselect->input();
 ?>
-   =20
+
 <? endif ; ?>
-</form>
-<?=3D $bar?>
\ No newline at end of file
+</form>
\ No newline at end of file



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 14:30:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svuk1-0000l2-LT
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 14:30:53 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 20:19:07 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366607.1343673052.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r394 - in tag/rel650/import_doli: doc include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 18:30:51 -0000

Author: danydb
Date: 2012-07-30 20:19:07 +0200 (Mon, 30 Jul 2012)
New Revision: 394

Modified:
   tag/rel650/import_doli/doc/
   tag/rel650/import_doli/doc/import-donnee-dolibarr test.csv
   tag/rel650/import_doli/doc/import-donnee-dolibarr test.ods
   tag/rel650/import_doli/include/class_impdol_operation.php
Log:
fix bug : receipt missing


Property changes on: tag/rel650/import_doli/doc
___________________________________________________________________
Name: svn:ignore
   - .~lock.import-donnee-fiche.ods#
.~lock.import-donnee-dolibarr test.ods#
.~lock.import-donnee-dolibarr.ods#
.~lock.import-donnee-dolibarr test.csv#

   + .~lock.import-donnee-fiche.ods#
.~lock.import-donnee-dolibarr test.ods#
.~lock.import-donnee-dolibarr.ods#
.~lock.import-donnee-dolibarr test.csv#
.~lock.import_doli.odt#


Modified: tag/rel650/import_doli/doc/import-donnee-dolibarr test.csv
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/import_doli/doc/import-donnee-dolibarr test.csv	2012-07-29=
 13:19:11 UTC (rev 393)
+++ tag/rel650/import_doli/doc/import-donnee-dolibarr test.csv	2012-07-30=
 18:19:07 UTC (rev 394)
@@ -1,5 +1,5 @@
-1;"13.03.2012";"WOOHA";"achat de marchandises";;;;;;
-1;"13.03.2012";"M1";"Marchandise 1";;3;1,62;9;0,06;28,62
-1;"13.03.2012";"M2";"Marchandise 2";;12;0,72;1;0,06;12,72
-2;"14.03.2012";"TANGRAM";"Facture n=C2=B0121212121 : Electrict=C3=A9";;;=
;;;
-2;"14.03.2012";"ELEC";"=C3=89lectrict=C3=A9";;125;7,5;1;0,06;132,5
+3;"13.03.2012";"T";"WOOHA";"achat de marchandises";"A1";;;;;
+3;"13.03.2012";"S";"M1";"Marchandise 1";"A1";3;1,62;9;0,06;28,62
+3;"13.03.2012";"S";"M2";"Marchandise 2";"A1";12;0,72;1;0,06;12,72
+2;"14.03.2012";"T";"TANGRAM";"Facture n=C2=B0121212121 : Electrict=C3=A9=
";"B1";;;;;
+2;"14.03.2012";"S";"FID1070";"=C3=89lectrict=C3=A9";"B1";125;7,5;1;0,06;=
132,5

Modified: tag/rel650/import_doli/doc/import-donnee-dolibarr test.ods
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(Binary files differ)

Modified: tag/rel650/import_doli/include/class_impdol_operation.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tag/rel650/import_doli/include/class_impdol_operation.php	2012-07-29 =
13:19:11 UTC (rev 393)
+++ tag/rel650/import_doli/include/class_impdol_operation.php	2012-07-30 =
18:19:07 UTC (rev 394)
@@ -434,6 +434,7 @@
 				$acc_jrn->grpt =3D $grpt;
 				$acc_jrn->periode =3D 0;
 				$acc_jrn->insert_jrn();
+				$cn->exec_sql('update jrn set jr_pj_number=3D$1 where jr_id=3D$2',ar=
ray($oper->getp('pj'),$acc_jrn->jr_id));
=20
 				/* Update info */
 				$ledger->grpt_id =3D $grpt;



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 14:50:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svv2a-0003Nt-GO
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 14:50:04 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 20:38:17 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366659.1343674203.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5087 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 18:50:02 -0000

Author: danydb
Date: 2012-07-30 20:38:17 +0200 (Mon, 30 Jul 2012)
New Revision: 5087

Modified:
   phpcompta/tags/rel650/include/fiche.inc.php
Log:
cosmetic

Modified: phpcompta/tags/rel650/include/fiche.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/fiche.inc.php	2012-07-30 18:13:30 UTC (=
rev 5086)
+++ phpcompta/tags/rel650/include/fiche.inc.php	2012-07-30 18:38:17 UTC (=
rev 5087)
@@ -192,6 +192,7 @@
 	$nb_line =3D Database::num_row($res);
 	require_once 'template/fiche_list.php';
 	if ($write =3D=3D 1 && $allcard =3D=3D 0 ) echo $str_add_card;
+	echo '<hr>'.$bar;
 	exit();
 }
 /* * *******************************************************************=
**************************************************************
@@ -324,9 +325,9 @@
 					td(nbm(abs($solde['solde'])), 'style=3D"text-align:right"') .
 					td((($solde['debit'] < $solde['credit']) ? 'CRED' : 'DEB'), 'style=3D=
"text-align:right"'), $class
 			);
-                     =20
-                               =20
-                               =20
+
+
+
 		}
                 echo tr(
                                 td('').



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 15:40:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvvpR-00044Z-SP
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 15:40:33 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 21:28:46 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366758.1343677233.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5088 - phpcompta/tags/rel650/include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 19:40:32 -0000

Author: danydb
Date: 2012-07-30 21:28:46 +0200 (Mon, 30 Jul 2012)
New Revision: 5088

Modified:
   phpcompta/tags/rel650/include/constant.php
Log:
define max_card_search

Modified: phpcompta/tags/rel650/include/constant.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/constant.php	2012-07-30 18:38:17 UTC (r=
ev 5087)
+++ phpcompta/tags/rel650/include/constant.php	2012-07-30 19:28:46 UTC (r=
ev 5088)
@@ -55,6 +55,7 @@
 define ("MAX_COMPTE",4);
 define ('MAX_ARTICLE',12);
 define ('MAX_CAT',15);
+define ('MAX_CARD_SEARCH',50);
 define ('MAX_FORECAST_ITEM',10);
 define ('MAX_PREDEFINED_OPERATION',30);
 define ('MAX_COMPTE_CARD',4);



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 15:48:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvvxL-00058k-71
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 15:48:43 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 21:36:56 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366774.1343677722.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5089 - in phpcompta/tags/rel650: html html/js
	include
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 19:48:41 -0000

Author: danydb
Date: 2012-07-30 21:36:55 +0200 (Mon, 30 Jul 2012)
New Revision: 5089

Added:
   phpcompta/tags/rel650/include/ajax_boxcard_search.php
Modified:
   phpcompta/tags/rel650/html/ajax_misc.php
   phpcompta/tags/rel650/html/js/card.js
   phpcompta/tags/rel650/html/js/infobulle.js
   phpcompta/tags/rel650/include/fiche.inc.php
Log:
0000695: ajout d'un bouton pour chercher une fiche

Modified: phpcompta/tags/rel650/html/ajax_misc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/ajax_misc.php	2012-07-30 19:28:46 UTC (rev=
 5088)
+++ phpcompta/tags/rel650/html/ajax_misc.php	2012-07-30 19:36:55 UTC (rev=
 5089)
@@ -501,6 +501,9 @@
 	case 'add_menu':
 		require_once 'ajax_add_menu.php';
 		break;
+	case 'cardsearch':
+		require_once 'ajax_boxcard_search.php';
+		break;
 	case 'add_plugin':
 		$me_code =3D new IText('me_code');
 		$me_file =3D new IText('me_file');

Modified: phpcompta/tags/rel650/html/js/card.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/card.js	2012-07-30 19:28:46 UTC (rev 50=
88)
+++ phpcompta/tags/rel650/html/js/card.js	2012-07-30 19:36:55 UTC (rev 50=
89)
@@ -25,6 +25,35 @@
=20
 var card_layer=3D1;
 /**
+ *@brief search a card an display the result into a inner box
+ */
+function boxsearch_card(p_dossier)
+{
+	try
+	{
+	waiting_box();
+	removeDiv('boxsearch_card_div');
+	var queryString=3D"gDossier=3D"+p_dossier+"&op=3Dcardsearch"+"&card=3D"=
+$(card_search).value;
+	var action =3D new Ajax.Request(
+				  "ajax_misc.php" ,
+				  {
+				      method:'get', parameters:queryString,
+				      onFailure:ajax_misc_failure,
+				      onSuccess:function(req){
+						remove_waiting_box();
+						var y=3DposY+15;
+						var div_style=3D"left:10%;width:80%;"+";top:"+y;
+						add_div({id:'boxsearch_card_div',cssclass:'inner_box',html:loading=
(),style:div_style,drag:true});
+						$('boxsearch_card_div').innerHTML=3Dreq.responseText;
+				      }
+				  }
+				  );
+	}catch( e)
+	{
+		alert(e.getMessage);
+	}
+}
+/**
  *@brief show the ipopup with the form to search a card
  * the properties
  *  - jrn for the ledger

Modified: phpcompta/tags/rel650/html/js/infobulle.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/infobulle.js	2012-07-30 19:28:46 UTC (r=
ev 5088)
+++ phpcompta/tags/rel650/html/js/infobulle.js	2012-07-30 19:36:55 UTC (r=
ev 5089)
@@ -45,6 +45,7 @@
 content[15]=3D"Laissez =C3=A0 0 pour ne rien changer";
 content[16]=3D"Vous devez donner la date par op=C3=A9ration";
 content[17]=3D"Cliquez sur le titre d'une colonne pour trier";
+content[18]=3D"Donner une partie du nom, pr=C3=A9nom, de la description,=
 du poste comptable, du n=C2=B0 de TVA ou quick code";
=20
 function showBulle(p_ctl)
 {

Added: phpcompta/tags/rel650/include/ajax_boxcard_search.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/ajax_boxcard_search.php	               =
         (rev 0)
+++ phpcompta/tags/rel650/include/ajax_boxcard_search.php	2012-07-30 19:3=
6:55 UTC (rev 5089)
@@ -0,0 +1,104 @@
+<?php
+
+/*
+ *   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 b=
y
+ *   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-130=
7  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
+
+/**
+ * @file
+ * @brief show result card search
+ *
+ */
+$sql=3D"
+	select vw.f_id,vw_name,vw_first_name,vw_description,fd_label,quick_code=
,pc.ad_value as poste,tva_num
+	from vw_fiche_attr as vw
+	join fiche_def as fd on (vw.fd_id=3Dfd.fd_id)
+	left join (select f_id,ad_value from fiche_detail where ad_id=3D5) as p=
c on (pc.f_id=3Dvw.f_id)
+	where
+	vw_name ~* $1
+	or vw_first_name ~* $1
+	or vw_description ~* $1
+	or tva_num ~* $1
+	or pc.ad_value like $1||'%'
+	order by 2
+";
+$array=3D$cn->get_array($sql,array($_GET['card']));
+echo HtmlInput::title_box("R=C3=A9sultat recherche", "boxsearch_card_div=
");
+$max=3D(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array);
+?>
+<? if (count($array)>MAX_CARD_SEARCH ): ?>
+<h2 class=3D"notice">R=C3=A9sultat limit=C3=A9 =C3=A0 <?=3DMAX_CARD_SEAR=
CH?>, nombre de fiches trouv=C3=A9es : <?=3Dcount($array)?> </h2>
+
+<? endif?>
+<table class=3D"sortable">
+	<tr>
+		<th>
+			Categorie
+		</th>
+		<th>
+			Quick Code
+		</th>
+		<th>
+			Nom
+		</th>
+		<th>
+			Description
+		</th>
+		<th>
+			Num=C3=A9ro TVA
+		</th>
+		<th>
+			Poste comptable
+		</th>
+
+	</tr>
+<? if (count($array)=3D=3D0) : ?>
+	<h2 class=3D"notice"> Aucun r=C3=A9sultat</h2>
+<?endif?>
+<? for ($i=3D0;$i<$max;$i++):?>
+	<tr>
+		<td>
+			<?=3Dh($array[$i]['fd_label'])?>
+		</td>
+		<td>
+			<?=3DHtmlInput::card_detail($array[$i]['quick_code'])?>
+		</td>
+		<td>
+			<?=3Dh($array[$i]['vw_name'])?>&nbsp;
+			<?=3Dh($array[$i]['vw_first_name'])?>
+		</td>
+		<td>
+			<?=3Dh($array[$i]['vw_description'])?>
+
+		</td>
+		<td>
+			<?=3Dh($array[$i]['tva_num'])?>
+
+		</td>
+		<td>
+			<?=3Dh($array[$i]['poste'])?>
+
+		</td>
+	</tr>
+
+
+<? endfor; ?>
+</table>
+<?=3DHtmlInput::button_close("boxsearch_card_div")?>
\ No newline at end of file

Modified: phpcompta/tags/rel650/include/fiche.inc.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/include/fiche.inc.php	2012-07-30 19:28:46 UTC (=
rev 5088)
+++ phpcompta/tags/rel650/include/fiche.inc.php	2012-07-30 19:36:55 UTC (=
rev 5089)
@@ -82,6 +82,16 @@
 require_once('template/impress_cat_card.php');
 echo HtmlInput::submit('cat_display', _('Recherche'));
 echo '</FORM>';
+$search_card=3Dnew IText('card_search');
+$search_card_js=3Dsprintf('onclick=3D"boxsearch_card(\'%d\')"',dossier::=
id());
+?>
+<div style=3D"position:absolute;right:230px;top:110px">
+
+		Recherche de fiche <?=3DHtmlInput::infobulle(18)?> :<?=3D$search_card-=
>input()?>
+		<?=3DHtmlInput::button_anchor("Chercher","javascript:void(0)","",$sear=
ch_card_js)?>
+</div>
+<?
+echo '</div>';
 $str =3D "if (g('histo').value=3D=3D3 || g('histo').value=3D=3D -1 ) {
      g('trstart').style.display=3D'none';g('trend').style.display=3D'non=
e';g('allcard').style.display=3D'none';}
      else  {g('trstart').style.display=3D'';g('trend').style.display=3D'=
';g('allcard').style.display=3D'';}



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 15:53:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svw2L-0005wB-12
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 15:53:53 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 21:42:07 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366785.1343678031.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5090 - in phpcompta/tags/rel650/html: . js
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 19:53:51 -0000

Author: danydb
Date: 2012-07-30 21:42:06 +0200 (Mon, 30 Jul 2012)
New Revision: 5090

Modified:
   phpcompta/tags/rel650/html/ajax_card.php
   phpcompta/tags/rel650/html/js/infobulle.js
Log:
Am?\195?\169lioration recherche

Modified: phpcompta/tags/rel650/html/ajax_card.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/ajax_card.php	2012-07-30 19:36:55 UTC (rev=
 5089)
+++ phpcompta/tags/rel650/html/ajax_card.php	2012-07-30 19:42:06 UTC (rev=
 5090)
@@ -327,7 +327,7 @@
     $r.=3D'<form method=3D"GET" onsubmit=3D"this.ctl=3D\'ipop_card\';sea=
rch_get_card(this);return false;">';
     $q=3Dnew IText('query');
     $q->value=3D(isset($query))?$query:'';
-    $r.=3D_('Fiche contenant');
+    $r.=3D_('Fiche contenant').HtmlInput::infobulle(19);
     $r.=3D$q->input();
     $r.=3DHtmlInput::submit('fs',_('Recherche'));
     $r.=3Ddossier::hidden().HtmlInput::hidden('op','fs');

Modified: phpcompta/tags/rel650/html/js/infobulle.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/js/infobulle.js	2012-07-30 19:36:55 UTC (r=
ev 5089)
+++ phpcompta/tags/rel650/html/js/infobulle.js	2012-07-30 19:42:06 UTC (r=
ev 5090)
@@ -46,6 +46,7 @@
 content[16]=3D"Vous devez donner la date par op=C3=A9ration";
 content[17]=3D"Cliquez sur le titre d'une colonne pour trier";
 content[18]=3D"Donner une partie du nom, pr=C3=A9nom, de la description,=
 du poste comptable, du n=C2=B0 de TVA ou quick code";
+content[19]=3D"Donner une partie du nom, de la description,  du n=C2=B0 =
de TVA ou quick code";
=20
 function showBulle(p_ctl)
 {



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


From MAILER-DAEMON Mon Jul 30 15:56:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svw4X-0006U2-MS
	for mharc-phpcompta-dev@gnu.org; Mon, 30 Jul 2012 15:56:09 -0400
To: phpcompta-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
Date: Mon, 30 Jul 2012 21:44:24 +0200 (CEST)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 91.121.80.190
Message-ID: <mailman.366789.1343678168.854.phpcompta-dev@nongnu.org>
From: phpcompta-dev@nongnu.org
Subject: [Phpcompta-dev] r5091 - phpcompta/tags/rel650/html
X-BeenThere: phpcompta-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: phpcompta-dev@nongnu.org
List-Id: <phpcompta-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/phpcompta-dev>
List-Post: <mailto:phpcompta-dev@nongnu.org>
List-Help: <mailto:phpcompta-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/phpcompta-dev>,
	<mailto:phpcompta-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 19:56:08 -0000

Author: danydb
Date: 2012-07-30 21:44:23 +0200 (Mon, 30 Jul 2012)
New Revision: 5091

Modified:
   phpcompta/tags/rel650/html/ajax_card.php
Log:
Am?\195?\169lioration recherche

Modified: phpcompta/tags/rel650/html/ajax_card.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- phpcompta/tags/rel650/html/ajax_card.php	2012-07-30 19:42:06 UTC (rev=
 5090)
+++ phpcompta/tags/rel650/html/ajax_card.php	2012-07-30 19:44:23 UTC (rev=
 5091)
@@ -327,9 +327,11 @@
     $r.=3D'<form method=3D"GET" onsubmit=3D"this.ctl=3D\'ipop_card\';sea=
rch_get_card(this);return false;">';
     $q=3Dnew IText('query');
     $q->value=3D(isset($query))?$query:'';
+	$r.=3D'<span style=3D"margin-left:50px">';
     $r.=3D_('Fiche contenant').HtmlInput::infobulle(19);
     $r.=3D$q->input();
     $r.=3DHtmlInput::submit('fs',_('Recherche'));
+	$r.=3D'</span>';
     $r.=3Ddossier::hidden().HtmlInput::hidden('op','fs');
     $array=3Darray();
     foreach (array('query','inp','jrn','label','typecard','price','tvaid=
') as $i)



---
PhpCompta est un logiciel de comptabilit=C3=A9 libre en ligne (full web)
Projet opensource http://www.phpcompta.eu


