Compare commits
850 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
223ef4b268 | ||
|
|
e5ade4df2b | ||
|
|
97de42742c | ||
|
|
d20a950349 | ||
|
|
68ffff7c19 | ||
|
|
f4e1484cb9 | ||
|
|
826bd7f2d1 | ||
|
|
e3a546e535 | ||
|
|
c2d9fdb88f | ||
|
|
bba65cb868 | ||
|
|
4dee91a1ec | ||
|
|
3604a798b0 | ||
|
|
cb5fde8c62 | ||
|
|
6838247724 | ||
|
|
196cb74750 | ||
|
|
ccc4e9193e | ||
|
|
329ab8a392 | ||
|
|
43b4ebdd23 | ||
|
|
88f303b083 | ||
|
|
2cc6df7eee | ||
|
|
36208d4b16 | ||
|
|
84d7b5a099 | ||
|
|
dcf2fa243f | ||
|
|
4b4aeae842 | ||
|
|
9906ca9707 | ||
|
|
2f227d8229 | ||
|
|
5479c56b94 | ||
|
|
709d19f494 | ||
|
|
504941e50e | ||
|
|
026a7df6da | ||
|
|
fc50485d08 | ||
|
|
2638320ede | ||
|
|
4b771e3750 | ||
|
|
5b24b7cf46 | ||
|
|
d2b9d736cd | ||
|
|
d104ae3a27 | ||
|
|
12d831b1ca | ||
|
|
3afd8d3893 | ||
|
|
da27f27f78 | ||
|
|
427f0ef325 | ||
|
|
84b96126f1 | ||
|
|
83437a678f | ||
|
|
58ded3b529 | ||
|
|
dc6d797a36 | ||
|
|
97f22d05d6 | ||
|
|
725d98aaeb | ||
|
|
013714e63c | ||
|
|
4119d9e933 | ||
|
|
69cc38dc8b | ||
|
|
b37d683c2d | ||
|
|
0d11642bc0 | ||
|
|
3f60e2926e | ||
|
|
c2b5fca8b6 | ||
|
|
2a8d5a7ef4 | ||
|
|
1d86f8cb66 | ||
|
|
35ef0407a4 | ||
|
|
a31936d2b7 | ||
|
|
22f97e86e1 | ||
|
|
cfc6cdc4ef | ||
|
|
0ab9f39756 | ||
|
|
e95ba9080f | ||
|
|
045ac251fb | ||
|
|
cb33cdd6a2 | ||
|
|
f28b3f8aba | ||
|
|
fe53a86868 | ||
|
|
1f065fd34a | ||
|
|
e12c73d1e0 | ||
|
|
2b7ee9e8f4 | ||
|
|
a5370c0f5a | ||
|
|
d637e8b83c | ||
|
|
c58e63a843 | ||
|
|
6c6bd45acf | ||
|
|
020246b136 | ||
|
|
5735b65ed8 | ||
|
|
f441dbc99b | ||
|
|
3c2673e528 | ||
|
|
ea8d8a1e28 | ||
|
|
d765d6d7d1 | ||
|
|
332b2fc4d7 | ||
|
|
fbb59da164 | ||
|
|
1432e8dda6 | ||
|
|
9ab758e1fc | ||
|
|
8d8cf0cd21 | ||
|
|
c0b320176b | ||
|
|
a8c914b4cf | ||
|
|
2861d5b033 | ||
|
|
e1b9df9970 | ||
|
|
47c6cff9c1 | ||
|
|
b86537f122 | ||
|
|
cd86d03d35 | ||
|
|
9aa83f13d2 | ||
|
|
fcf5723183 | ||
|
|
382c74fec2 | ||
|
|
ff6916a5a3 | ||
|
|
5ab7a296e2 | ||
|
|
81312671e7 | ||
|
|
35b3f7ed8a | ||
|
|
42763321e9 | ||
|
|
85c24f4a5f | ||
|
|
b8b16552ec | ||
|
|
8258dd432f | ||
|
|
ce34028fcd | ||
|
|
344b2b38ea | ||
|
|
f71f33d2da | ||
|
|
75506b7794 | ||
|
|
c0103034b0 | ||
|
|
76b87cd0bb | ||
|
|
a22bf3fb0a | ||
|
|
795d08c14c | ||
|
|
bc954c1a77 | ||
|
|
2ee7271c8e | ||
|
|
d881cfafd7 | ||
|
|
11a6acce5a | ||
|
|
c6a136930e | ||
|
|
3ee92a0de3 | ||
|
|
13d8d996e1 | ||
|
|
5d38b90d04 | ||
|
|
d7843e0e60 | ||
|
|
d0d02a54bc | ||
|
|
6d4fc1b0f5 | ||
|
|
9bb912d61c | ||
|
|
997523a07a | ||
|
|
335c038dd8 | ||
|
|
ba479b95f0 | ||
|
|
5490f71326 | ||
|
|
9ef72f92fa | ||
|
|
7fbc68abdb | ||
|
|
d288f7d816 | ||
|
|
621bd68e3b | ||
|
|
c902acf99a | ||
|
|
817a09c77d | ||
|
|
7c11750aa3 | ||
|
|
de8d2f58ee | ||
|
|
5e22c1456a | ||
|
|
ffa1c8d451 | ||
|
|
48fbdd04f6 | ||
|
|
43c6254253 | ||
|
|
93076fa3f1 | ||
|
|
3f4590e5b6 | ||
|
|
e1c01ac3c8 | ||
|
|
56942f72d1 | ||
|
|
d58313488c | ||
|
|
952ddd7488 | ||
|
|
921df5f94f | ||
|
|
c0a32c8fb4 | ||
|
|
db8f5ed592 | ||
|
|
1d491f7765 | ||
|
|
bf067d7c59 | ||
|
|
7bccb7dd86 | ||
|
|
a66d44431d | ||
|
|
3ad74bb92b | ||
|
|
48170ff25d | ||
|
|
667f63c0b7 | ||
|
|
f5ed264c1f | ||
|
|
bf50e0a2b1 | ||
|
|
8b9c869736 | ||
|
|
06126ae683 | ||
|
|
6ce69a7b18 | ||
|
|
e38b1bfe28 | ||
|
|
149d6ae8dd | ||
|
|
27acaefb6c | ||
|
|
e790b37d03 | ||
|
|
8516fe4c01 | ||
|
|
26a8da70af | ||
|
|
3268dcbab8 | ||
|
|
a897e62fd3 | ||
|
|
6cf5355b11 | ||
|
|
ef4df127f9 | ||
|
|
6e24ebd01f | ||
|
|
677ab4c128 | ||
|
|
acfefd03f4 | ||
|
|
81eb0cda2a | ||
|
|
0fcb012234 | ||
|
|
b716b87ab7 | ||
|
|
620cc53ca7 | ||
|
|
6f337fcd41 | ||
|
|
23466a5548 | ||
|
|
a175f5992a | ||
|
|
fd04ae0500 | ||
|
|
f6175c2213 | ||
|
|
846ed3688e | ||
|
|
40814719ee | ||
|
|
3d641b236f | ||
|
|
9f5a3f4f8e | ||
|
|
d7ffb431a7 | ||
|
|
0daea22e9b | ||
|
|
e9288027fd | ||
|
|
daa8609cb5 | ||
|
|
567b3d08e5 | ||
|
|
faef96823f | ||
|
|
138b3dfef2 | ||
|
|
99a3f0d4df | ||
|
|
218c129dcc | ||
|
|
e2d2461d1f | ||
|
|
62b0105a18 | ||
|
|
4486d25e9d | ||
|
|
163fba3872 | ||
|
|
4ecaee9068 | ||
|
|
62d63bc1b6 | ||
|
|
1f3bcb3747 | ||
|
|
908b1fe394 | ||
|
|
59c791e826 | ||
|
|
b33b1c56b8 | ||
|
|
9df4f1ad7e | ||
|
|
0e715c7075 | ||
|
|
8fa20217bb | ||
|
|
7cac5f5380 | ||
|
|
c86db093be | ||
|
|
b48377312b | ||
|
|
916e3de6a7 | ||
|
|
4846b9b98b | ||
|
|
ed377157f8 | ||
|
|
84f8a18a72 | ||
|
|
e5a5c2ae98 | ||
|
|
684e6bc63c | ||
|
|
f21aed7f61 | ||
|
|
8f171f4336 | ||
|
|
32f112fa59 | ||
|
|
db9e0e3790 | ||
|
|
98a1fe553b | ||
|
|
6ccd3bbc75 | ||
|
|
79d7be01d1 | ||
|
|
0e7cfd1ea3 | ||
|
|
0a20213909 | ||
|
|
78c66bc7a0 | ||
|
|
30dcda109e | ||
|
|
7850c536a1 | ||
|
|
0fe708a5f6 | ||
|
|
47ff342fa4 | ||
|
|
ea40998528 | ||
|
|
f64b879fac | ||
|
|
3c909fc752 | ||
|
|
2ca163f388 | ||
|
|
b2eac2e248 | ||
|
|
2cc33910f7 | ||
|
|
f9c4c30ec5 | ||
|
|
a6edf971de | ||
|
|
f922ad5ff1 | ||
|
|
eaf654ed32 | ||
|
|
3e6b55ed67 | ||
|
|
3146d3c6b9 | ||
|
|
6caf966ea8 | ||
|
|
cca1ac28fb | ||
|
|
45967843cb | ||
|
|
73f216fd89 | ||
|
|
7b1c726424 | ||
|
|
47f2586070 | ||
|
|
d8982e5d8c | ||
|
|
379b3a63ab | ||
|
|
8774e69ea9 | ||
|
|
9b2f724ea7 | ||
|
|
e104888ceb | ||
|
|
5b9b581f99 | ||
|
|
bd6d534a60 | ||
|
|
01991cec89 | ||
|
|
011ea91f81 | ||
|
|
bf2e3e80df | ||
|
|
90e1903c95 | ||
|
|
7c08376335 | ||
|
|
3aa18cfaa9 | ||
|
|
d3aa15827a | ||
|
|
6e3dbf8cac | ||
|
|
06bee0228d | ||
|
|
2f015f1c9c | ||
|
|
6822502876 | ||
|
|
e3d874f72c | ||
|
|
44fed2ce8b | ||
|
|
f182d4999c | ||
|
|
c60d5d84f9 | ||
|
|
f33e176a96 | ||
|
|
3a4400d72f | ||
|
|
86e27744b9 | ||
|
|
6f7f1c7c65 | ||
|
|
bfc6549ec4 | ||
|
|
dcfd49668c | ||
|
|
0e5a0c5167 | ||
|
|
3a200ee4cf | ||
|
|
d456c92553 | ||
|
|
ab8664a7dd | ||
|
|
7993ddea0a | ||
|
|
1f7153e542 | ||
|
|
6dae61e84b | ||
|
|
7247b6f443 | ||
|
|
ecc51347b3 | ||
|
|
8a10f4801b | ||
|
|
e3ec84d202 | ||
|
|
6935beece2 | ||
|
|
b1ccb47200 | ||
|
|
143acdc3f0 | ||
|
|
86b44f460d | ||
|
|
241cd8e282 | ||
|
|
f4ee8e54b5 | ||
|
|
209b10467c | ||
|
|
06d2741cfc | ||
|
|
c11acda907 | ||
|
|
b1f01a6330 | ||
|
|
b447657303 | ||
|
|
da9b20d058 | ||
|
|
2dd4f080f0 | ||
|
|
b5bc6dac90 | ||
|
|
92df58e7ba | ||
|
|
8c892221d0 | ||
|
|
397d8a7a70 | ||
|
|
311454d4c2 | ||
|
|
d883a88e2e | ||
|
|
00ae4c6f72 | ||
|
|
e7855d0bc7 | ||
|
|
fbc31d9cb5 | ||
|
|
d6164deddc | ||
|
|
6910dd0b62 | ||
|
|
eda2b05a09 | ||
|
|
a2e43a4464 | ||
|
|
f6f5346229 | ||
|
|
933c84c127 | ||
|
|
0bee9e9362 | ||
|
|
b484519393 | ||
|
|
0ac656b218 | ||
|
|
2e595643f5 | ||
|
|
9793a8f13a | ||
|
|
488479de5e | ||
|
|
048f3dbe0f | ||
|
|
60823fa517 | ||
|
|
056c8f37a7 | ||
|
|
1730e5777c | ||
|
|
c66b2a3948 | ||
|
|
831fd399f4 | ||
|
|
2716949fd6 | ||
|
|
bf7e5ab338 | ||
|
|
3d0d2053bb | ||
|
|
397c5487d0 | ||
|
|
690199c94d | ||
|
|
57ae19fc71 | ||
|
|
d6ff0f9176 | ||
|
|
daeab33c0d | ||
|
|
b089fb6ee4 | ||
|
|
d938cea797 | ||
|
|
3c5afdd783 | ||
|
|
f090580fa1 | ||
|
|
d7205fe627 | ||
|
|
226901a7b9 | ||
|
|
645303d256 | ||
|
|
055b27695f | ||
|
|
320fd180b5 | ||
|
|
170a099c78 | ||
|
|
893897d4f0 | ||
|
|
b1c1b6ffd1 | ||
|
|
37a2f537c2 | ||
|
|
b6283b64e5 | ||
|
|
353b972011 | ||
|
|
c7134b5027 | ||
|
|
55b313f798 | ||
|
|
281805991a | ||
|
|
3239569860 | ||
|
|
8e32de74f1 | ||
|
|
40b5352430 | ||
|
|
f4afed58c3 | ||
|
|
8dafdccf63 | ||
|
|
a800efb992 | ||
|
|
491c1b6ecb | ||
|
|
7dddea4abe | ||
|
|
671ce8a542 | ||
|
|
9ba2d6d97f | ||
|
|
f19e397652 | ||
|
|
78b9faca85 | ||
|
|
6005e8c4fc | ||
|
|
6bd01ce7d2 | ||
|
|
0895f0acba | ||
|
|
cb67ca4d03 | ||
|
|
674307aed8 | ||
|
|
1cac612e61 | ||
|
|
aa8b60ea50 | ||
|
|
f22b065c81 | ||
|
|
0decdac095 | ||
|
|
3e2e5d3d75 | ||
|
|
3d77214949 | ||
|
|
4e26e0b090 | ||
|
|
04986e3146 | ||
|
|
ff83edcd31 | ||
|
|
26481b5665 | ||
|
|
f221569858 | ||
|
|
4d4f304066 | ||
|
|
a52a87d6ef | ||
|
|
024409e35a | ||
|
|
e506664e36 | ||
|
|
2db3505f79 | ||
|
|
6effbfbefa | ||
|
|
2bc938cf4c | ||
|
|
f076c00dcd | ||
|
|
a266e92bd0 | ||
|
|
fc705a70f8 | ||
|
|
c5cbe5f812 | ||
|
|
698fed667e | ||
|
|
6c779d2b97 | ||
|
|
0e0bfe9624 | ||
|
|
201cec124d | ||
|
|
e0610967b7 | ||
|
|
f5fd07e523 | ||
|
|
9e8b347fdc | ||
|
|
ac58545a94 | ||
|
|
2dcb267b4b | ||
|
|
cab4356e3d | ||
|
|
7335f85d95 | ||
|
|
355bbf5e99 | ||
|
|
76d25dad17 | ||
|
|
8670dc91e4 | ||
|
|
2bf49cf8d8 | ||
|
|
b6d8b648d9 | ||
|
|
522863549c | ||
|
|
dc7e368736 | ||
|
|
e4c2d9cd1f | ||
|
|
839ceebfc7 | ||
|
|
3ef00adb4a | ||
|
|
d2aff43936 | ||
|
|
8e398cc069 | ||
|
|
f8329da895 | ||
|
|
10cb81d756 | ||
|
|
9f7bb65a1d | ||
|
|
bdf4bbaa1f | ||
|
|
eb3e50537b | ||
|
|
a28b7e7f18 | ||
|
|
c973361832 | ||
|
|
7df981b7e6 | ||
|
|
aba2a51fa2 | ||
|
|
ce1ca0219b | ||
|
|
4ba071958d | ||
|
|
d1ab91671b | ||
|
|
b60b99213e | ||
|
|
85ce1f0458 | ||
|
|
a9f316035a | ||
|
|
3ce3c74ba7 | ||
|
|
1574fe2a37 | ||
|
|
d66d765df4 | ||
|
|
48c5d8b68b | ||
|
|
28e39ffd6f | ||
|
|
b0e9ae91c3 | ||
|
|
6a7ae51e5f | ||
|
|
1ff4fe8c51 | ||
|
|
9414877261 | ||
|
|
653908c77c | ||
|
|
372f34ebad | ||
|
|
5ffcdd3ebe | ||
|
|
08fef48350 | ||
|
|
3bc4dadc7f | ||
|
|
42df48f5a5 | ||
|
|
6ae829dd68 | ||
|
|
a56832d521 | ||
|
|
eba07e7e47 | ||
|
|
649aca796a | ||
|
|
6e0d95ac79 | ||
|
|
84c3679129 | ||
|
|
99af90546f | ||
|
|
322e7dac48 | ||
|
|
c31514a2c4 | ||
|
|
2a6781a552 | ||
|
|
7aaa0680b0 | ||
|
|
5e609efffe | ||
|
|
642d07c1ef | ||
|
|
d0f5ddb322 | ||
|
|
9838cb993f | ||
|
|
ac6264e1c0 | ||
|
|
ee8d3ff5e6 | ||
|
|
c0b6e97ce8 | ||
|
|
49600d1423 | ||
|
|
d9334847d8 | ||
|
|
1bf509d551 | ||
|
|
7ebf5e4172 | ||
|
|
71c7777cc9 | ||
|
|
da5f951ff5 | ||
|
|
fa1e2ffe83 | ||
|
|
8dbc2e5340 | ||
|
|
2ad53b40eb | ||
|
|
ff5d7ee824 | ||
|
|
f7aa983481 | ||
|
|
497c2a9204 | ||
|
|
7dfa83fa63 | ||
|
|
4b8aca19e3 | ||
|
|
062cb57539 | ||
|
|
27b8208dee | ||
|
|
aba0729d22 | ||
|
|
b2a23fe29c | ||
|
|
acda03709b | ||
|
|
7d144cac32 | ||
|
|
556a6d279b | ||
|
|
31ced81af6 | ||
|
|
01811b5727 | ||
|
|
2fc70328fa | ||
|
|
6d1d932497 | ||
|
|
25b12337e9 | ||
|
|
f51a1f6bbd | ||
|
|
7585fd2948 | ||
|
|
ecedb7b273 | ||
|
|
9003096810 | ||
|
|
ac792417b6 | ||
|
|
66520afb6d | ||
|
|
e59a1f489c | ||
|
|
dc1df590ab | ||
|
|
9023ec01ff | ||
|
|
97b7207d4b | ||
|
|
39afca958e | ||
|
|
23d159a31f | ||
|
|
92dc795835 | ||
|
|
024290068c | ||
|
|
c7df8f8807 | ||
|
|
da437acd5d | ||
|
|
352a87afae | ||
|
|
f63bec3a34 | ||
|
|
435ef3594a | ||
|
|
5fe215cf40 | ||
|
|
48c113107b | ||
|
|
dd408be68c | ||
|
|
8b93460a90 | ||
|
|
6360fa6b2d | ||
|
|
c45bf06000 | ||
|
|
1129856241 | ||
|
|
c2d02d4c4e | ||
|
|
5cb6e30d78 | ||
|
|
f606b27160 | ||
|
|
435922ae37 | ||
|
|
0314cd72ac | ||
|
|
de5368e66e | ||
|
|
2e11263e72 | ||
|
|
967f3dac10 | ||
|
|
3ca2070a20 | ||
|
|
9d49b8544f | ||
|
|
a958d47b92 | ||
|
|
84c401d664 | ||
|
|
e89c3ba08e | ||
|
|
bab2b22b3a | ||
|
|
2da9b9df22 | ||
|
|
3670e0b0c3 | ||
|
|
c798b66863 | ||
|
|
c43f05ca3e | ||
|
|
10f1df53e0 | ||
|
|
95f44eb1bc | ||
|
|
0519e52a66 | ||
|
|
a39603d883 | ||
|
|
36532e39aa | ||
|
|
7ba8f38348 | ||
|
|
5a58b6b6ea | ||
|
|
2337235f7e | ||
|
|
81f2710647 | ||
|
|
96f1f41c83 | ||
|
|
88517555b6 | ||
|
|
6ff9ff11b1 | ||
|
|
8e7b3c795c | ||
|
|
4249291d4b | ||
|
|
fc925f9544 | ||
|
|
358c43c46f | ||
|
|
2633a74417 | ||
|
|
0bfcdb9d06 | ||
|
|
d7914b690a | ||
|
|
5077734b00 | ||
|
|
e3f4dddf02 | ||
|
|
003caa7063 | ||
|
|
b6626f562c | ||
|
|
11e90d72c9 | ||
|
|
1b112b4bb2 | ||
|
|
4a5bb8a327 | ||
|
|
5d5eb3c829 | ||
|
|
46a5d637aa | ||
|
|
e2eb6a5c18 | ||
|
|
db6800335c | ||
|
|
353a63390a | ||
|
|
f1216bfe4c | ||
|
|
9f722f671e | ||
|
|
3ffb11c53d | ||
|
|
c8179af08b | ||
|
|
1d911571cb | ||
|
|
0e9e2f6b21 | ||
|
|
2fa874513a | ||
|
|
4ca8533ff7 | ||
|
|
d38f72f50a | ||
|
|
3c9f50d34a | ||
|
|
15c1c818de | ||
|
|
086c803ca4 | ||
|
|
465cc90759 | ||
|
|
f793dd7398 | ||
|
|
b4fe65e88c | ||
|
|
c942d1928e | ||
|
|
ba5de65c0c | ||
|
|
799492d6dc | ||
|
|
6daae65520 | ||
|
|
faff05ce81 | ||
|
|
27376aad9c | ||
|
|
430b4cb961 | ||
|
|
b1058e93e4 | ||
|
|
7617ce4b32 | ||
|
|
e1d5c8f0b8 | ||
|
|
65d35b3a94 | ||
|
|
ec3031fa8d | ||
|
|
18ab1d14d6 | ||
|
|
f7af83cff3 | ||
|
|
3e6a26e72c | ||
|
|
c6cc29a22c | ||
|
|
0309ccf812 | ||
|
|
8b153fa48f | ||
|
|
ce3bf9a18f | ||
|
|
d1d40c596b | ||
|
|
0061b3c7d8 | ||
|
|
c05a1e066b | ||
|
|
0013bd4cd7 | ||
|
|
6251f5f8b6 | ||
|
|
9c77a7621e | ||
|
|
3ad6f2639d | ||
|
|
3cb4335f9a | ||
|
|
65f68c3283 | ||
|
|
137e32441c | ||
|
|
f213b4f555 | ||
|
|
1959dbb13a | ||
|
|
ef5d9dbc9b | ||
|
|
8ce5c5b66e | ||
|
|
ed19e89531 | ||
|
|
f1d67cba3c | ||
|
|
64b94af009 | ||
|
|
e9d13c5cff | ||
|
|
f825999f83 | ||
|
|
0bdd4c922a | ||
|
|
0d8d1fe160 | ||
|
|
85337e54c3 | ||
|
|
0f591d36ad | ||
|
|
a577152057 | ||
|
|
8980d9acc2 | ||
|
|
7906b63597 | ||
|
|
6b704d9ae4 | ||
|
|
6822a1b18b | ||
|
|
2dc31fa613 | ||
|
|
92cfaa42d3 | ||
|
|
7123a37db3 | ||
|
|
f0e95657d5 | ||
|
|
3f74e78f5f | ||
|
|
3628d600fa | ||
|
|
504cf83e73 | ||
|
|
23f36d7226 | ||
|
|
55a57aa6bf | ||
|
|
5d69d22c8c | ||
|
|
b6012e3bbc | ||
|
|
99e2bfb009 | ||
|
|
1f11eac702 | ||
|
|
cfb8d0b0eb | ||
|
|
0c4312105e | ||
|
|
e8163945fe | ||
|
|
b8c3177eb8 | ||
|
|
36ab2be4da | ||
|
|
87dccc1e76 | ||
|
|
b7201c5c5d | ||
|
|
72d0b60bbe | ||
|
|
f4cbec0c8f | ||
|
|
c9e8aaa108 | ||
|
|
925ead825c | ||
|
|
3605390156 | ||
|
|
e4fab24a0a | ||
|
|
1cae3c6083 | ||
|
|
39a1fc5be2 | ||
|
|
0c32191cda | ||
|
|
ff47f37996 | ||
|
|
a5ea5f2617 | ||
|
|
edf8434655 | ||
|
|
2642d924d3 | ||
|
|
e51a002c10 | ||
|
|
d9fabf962f | ||
|
|
b38f9aef21 | ||
|
|
627ef6d371 | ||
|
|
a22276df72 | ||
|
|
dd588bda19 | ||
|
|
703e35ad73 | ||
|
|
205666c206 | ||
|
|
bce9879a95 | ||
|
|
65b2ac3e56 | ||
|
|
4adf45647a | ||
|
|
ed44821987 | ||
|
|
00524039b2 | ||
|
|
68c1571d13 | ||
|
|
dd4ef1be67 | ||
|
|
818fec7e6b | ||
|
|
2b7f458ec0 | ||
|
|
e04e6631e8 | ||
|
|
9647d5a7a6 | ||
|
|
a740922190 | ||
|
|
337ebafceb | ||
|
|
dea8bc6751 | ||
|
|
f49d0eed46 | ||
|
|
0f1d95d7fa | ||
|
|
16214e7e30 | ||
|
|
9ba22b150e | ||
|
|
ca71e16869 | ||
|
|
de13f32818 | ||
|
|
20d4f65aed | ||
|
|
de1d313148 | ||
|
|
9da8724714 | ||
|
|
43b69e1da0 | ||
|
|
99e6134e82 | ||
|
|
addbd8b132 | ||
|
|
72c62e1899 | ||
|
|
e7533a2c24 | ||
|
|
40d42b56de | ||
|
|
d6f7018be6 | ||
|
|
a642131408 | ||
|
|
2fba5c03f3 | ||
|
|
677b831b24 | ||
|
|
0686579e30 | ||
|
|
dd97ad310b | ||
|
|
1642cbc098 | ||
|
|
8dab53a7bb | ||
|
|
f8d798c031 | ||
|
|
7e25edfe0a | ||
|
|
36c4605d17 | ||
|
|
ee867ed6c2 | ||
|
|
1104275318 | ||
|
|
60c262c9c5 | ||
|
|
ffd1e04f55 | ||
|
|
3d8dc0b7e7 | ||
|
|
379d29e867 | ||
|
|
bfb3321144 | ||
|
|
677c2fc6dc | ||
|
|
59288e66ac | ||
|
|
b7106c983f | ||
|
|
c001d75785 | ||
|
|
b5acf315b0 | ||
|
|
b02fcaf835 | ||
|
|
8f5b925603 | ||
|
|
d30e65cbaa | ||
|
|
ff6cb05477 | ||
|
|
0797106c3b | ||
|
|
843123d84a | ||
|
|
05cc92e3db | ||
|
|
eb2b3c0ea6 | ||
|
|
24efaa6fa1 | ||
|
|
5e65d811a9 | ||
|
|
dfd0895925 | ||
|
|
1f52da3e99 | ||
|
|
f480baa65e | ||
|
|
6fea17e79b | ||
|
|
b747fb13cb | ||
|
|
9eec20c754 | ||
|
|
c08b7def4f | ||
|
|
5b5b95d9d1 | ||
|
|
52e2fc71dd | ||
|
|
d5d9291449 | ||
|
|
5723bce76a | ||
|
|
bcaaf8e053 | ||
|
|
8b75708094 | ||
|
|
5634208946 | ||
|
|
8e724570df | ||
|
|
ee47cf17cf | ||
|
|
d08e058726 | ||
|
|
9a2a1f6c06 | ||
|
|
d3e8f6f3f9 | ||
|
|
e4188bf026 | ||
|
|
4d3abb2f1d | ||
|
|
d3a8fb190a | ||
|
|
da2e8dd348 | ||
|
|
84a6def3b0 | ||
|
|
cfc13df621 | ||
|
|
d13aea4054 | ||
|
|
ffc1308148 | ||
|
|
138fb9c401 | ||
|
|
2578562fe2 | ||
|
|
04cd6e919a | ||
|
|
ca30725757 | ||
|
|
f2423b654a | ||
|
|
dd06f2af7e | ||
|
|
d2dbbca945 | ||
|
|
21c5d870ae | ||
|
|
c601834e56 | ||
|
|
e6c91a10d7 | ||
|
|
fb0a558f37 | ||
|
|
329c93078b | ||
|
|
317dcff9e9 | ||
|
|
d3998336d5 | ||
|
|
3ff8509f94 | ||
|
|
671bf5bff1 | ||
|
|
60bf61aada | ||
|
|
72e78e95cc | ||
|
|
d5140d5121 | ||
|
|
22c1f604e7 | ||
|
|
3b00caf734 | ||
|
|
db5642274d | ||
|
|
623a6e696c | ||
|
|
64b7c07e37 | ||
|
|
bda51b47a6 | ||
|
|
fdda3198e1 | ||
|
|
21e44be700 | ||
|
|
55f8cf5982 | ||
|
|
7629b2faea | ||
|
|
cafc84d3a4 | ||
|
|
21987a4310 | ||
|
|
4ecdeff287 | ||
|
|
389151fab4 | ||
|
|
9087005279 | ||
|
|
d07140ff0b | ||
|
|
3ccd60c319 | ||
|
|
2e962068cc | ||
|
|
d04578f966 | ||
|
|
b4c9331461 | ||
|
|
5af5d306eb | ||
|
|
094fd7f0d7 | ||
|
|
4761e87e6b | ||
|
|
cf2a359674 | ||
|
|
7adef0ca3a | ||
|
|
302ab8b726 | ||
|
|
0f45a3c3b1 | ||
|
|
12c93d97bb | ||
|
|
2a53d4d2de | ||
|
|
e1e57f52ad | ||
|
|
1c2728547b | ||
|
|
ae3cfce7cc | ||
|
|
8e675a9c01 | ||
|
|
2fd6e376da | ||
|
|
df312b361e | ||
|
|
1f8e2aa660 | ||
|
|
770055cd26 | ||
|
|
459855a636 | ||
|
|
a0355cc9b1 | ||
|
|
e765f83644 | ||
|
|
9cd4d949c3 | ||
|
|
14b660f97d | ||
|
|
312392860d | ||
|
|
ca6fd04aea | ||
|
|
ba32176b35 | ||
|
|
73eeda8cb4 | ||
|
|
3acd11c13c | ||
|
|
f1af02f79e | ||
|
|
e7529532f3 | ||
|
|
73ab538669 | ||
|
|
299db38757 | ||
|
|
e514b5604b | ||
|
|
b81aad83dc | ||
|
|
117df1c438 | ||
|
|
54388ffa9f | ||
|
|
f85f7eb8f2 | ||
|
|
9b9cae5570 | ||
|
|
a1874eb10a | ||
|
|
11a418029e | ||
|
|
a605a63d20 | ||
|
|
15561ea6c6 | ||
|
|
36af43816e | ||
|
|
8365172200 | ||
|
|
e6849ae6ff | ||
|
|
089fc33c61 | ||
|
|
a1012387cf | ||
|
|
65fdbc3696 | ||
|
|
9431c471ca | ||
|
|
d5b1097d13 | ||
|
|
c5e01667ee | ||
|
|
1fce3e6cf1 | ||
|
|
d2f88397ec | ||
|
|
fa77588aff | ||
|
|
98c7f5164a | ||
|
|
50d314eb80 | ||
|
|
5486e96986 |
@@ -1,3 +1,3 @@
|
||||
#Thu Aug 13 19:26:05 CEST 2009
|
||||
#Sun Mar 21 19:12:06 CET 2010
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
||||
|
||||
12
COPYRIGHT
@@ -14,12 +14,13 @@ ArtiChow 1.07 Public Domain Yes Graphics
|
||||
Php-barcode 0.3pl1 GPL 2.0 Yes Bar code generation
|
||||
EFC/XFSS 1.0.1 LGPL 3.0 Yes Enhanced File Crypt/Extended File Stealth System
|
||||
FCKEditor 2.6.4 LGPL 2.1 or Mozilla PL 1.0 Yes Editor WYSIWYG
|
||||
FPDF 1.53 Public domain Yes PDF generation (original code is modified)
|
||||
FPDF_TPL 1.1.2 Apache Software License 2.0 No GPL3 only PDF templates management
|
||||
FPDI 1.2.1 Apache Software License 2.0 No GPL3 only PDF templates management
|
||||
FPDI_Protection 1.0.2 Apache Software License 2.0 No GPL3 only PDF encryption (8 files)
|
||||
FPDF 1.6 Public domain Yes PDF generation (original code is modified)
|
||||
FPDF_TPL 1.1.4 Apache Software License 2.0 No GPL3 only PDF templates management
|
||||
FPDI 1.3.2 Apache Software License 2.0 No GPL3 only PDF templates management
|
||||
FPDI_Protection 1.0.3 Apache Software License 2.0 No GPL3 only PDF encryption (8 files)
|
||||
GeoIP x.x Yes GeoIP Maxmind conversion
|
||||
iWebkit 4.6.2 LGPL 3.0 Yes Iphone templates framework
|
||||
iWebkit 5.0.4 LGPL 3.0 Yes Iphone templates framework
|
||||
JCrop 0.9.8 MIT Licence Yes JS library to crop images
|
||||
MagPieRss 0.72 GPL 2.0 Yes Load RSS
|
||||
NuSoap 0.7.3 LGPL 2.1 Yes Interfaces with third tools
|
||||
OdtPHP 1.0.1 GPL 2.0 Yes Mibrary to build/edit ODT files
|
||||
@@ -44,6 +45,7 @@ Copyright (C) 2010
|
||||
- Regis Houssin <regis@dolibarr.fr>
|
||||
- simnandez
|
||||
- r2gnl
|
||||
- meos
|
||||
|
||||
Copyright (C) 2009
|
||||
- Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
|
||||
129
ChangeLog
@@ -1,5 +1,128 @@
|
||||
English Dolibarr ChangeLog
|
||||
|
||||
***** ChangeLog for 2.9.1 compared to 2.9 *****
|
||||
|
||||
For users:
|
||||
- Fix: Only few bug fixes in GUI.
|
||||
- Fix: Fix: Error when deleting lock file by doliwamp.
|
||||
|
||||
|
||||
***** ChangeLog for 2.9 compared to 2.8 *****
|
||||
|
||||
For users:
|
||||
- New: POS module allow to choose which warehouse to use.
|
||||
- New: Support "Department/State" field on company setup, contact,
|
||||
bank account and members card.
|
||||
- New: Can reopen a refused/canceled supplier order.
|
||||
- New: Add Gant diagramm on project module.
|
||||
- New: Add a new mode for automatic stock increase: Can be increased
|
||||
on dispatching of products from a supplier order receipt.
|
||||
- New: Can set a past delay to limit calendar export.
|
||||
- New: Can attach files on emailing campaigns.
|
||||
- New: Add statistics on trips and expenses module.
|
||||
- New: Can reopen a closed customer order.
|
||||
- New: Add module externalsite to add a web site/tools inside
|
||||
menu and a Dolibarr frame.
|
||||
- New: Can link trips and fees to a project.
|
||||
- New: Add civility title in foundation module.
|
||||
- New: Can set accountancy code for product (buy and sell).
|
||||
- New: Can filter third parties lists on categories.
|
||||
- New: Can filter products and services lists on categories.
|
||||
- New: task #10202 : Support categories for members.
|
||||
- New: Can build documents for third parties (Using ODT templates, need PHP 5.2+).
|
||||
- New: Support new products properties: length and area.
|
||||
- New: Add the "payment due before" field in invoice exports.
|
||||
- New: Add feature to resize or crop image files (for products photos)
|
||||
- New: task #10113 : Show list of emailing on clicking on "number of mass emailing received"
|
||||
- New: Add default language for third parties and use it when multilang is enabled
|
||||
to define default language for document generation.
|
||||
- New: Can reopen a closed supplier invoice.
|
||||
- New: Move permission "see hidden categories" into "see hidden products/services".
|
||||
- New: Can delete several files at once in FTP module.
|
||||
- New: Add box "last contracts".
|
||||
- New: Works even if Web hosting provider has disabled PHP "glob" function.
|
||||
- New: Can now send supplier orders by email.
|
||||
- New: task #10076 : Show content of message in notification module.
|
||||
- New: Bank name is shown on invoice.
|
||||
- New: IBAN value is called IFSC if country is India.
|
||||
- New: Add option to choose to show firstname then name or name then firstname on PDF.
|
||||
- New: Add company in fields exported by export of members tool.
|
||||
- New: Reorganise bank menus.
|
||||
- New: Bookmarks can be sorted on a particular order.
|
||||
- New: Support spanish RE and IRPF taxes on invoices.
|
||||
- New: Module category offers categories for foundation module.
|
||||
- New: Can filter on category on third parties, products and members listings.
|
||||
- New: A flag is visible before country labels.
|
||||
- New: When activating a new module, permissions for admin user are set. This save
|
||||
time when configuring Dolibarr.
|
||||
- New: Dolibarr 2.9 is faster than 2.8.
|
||||
- New: A lot of more predefined VAT values, states, regions for
|
||||
miscelaneous contries.
|
||||
- New: Enhance skin engine to make themes easier.
|
||||
- New: Add images into menu "eldy".
|
||||
- New: Auguria theme is now more modern.
|
||||
- New: Update tools refers to www.dolibarr.org but also www.dolistore.com web site.
|
||||
- New: Postgresql experimental support seems to work completely.
|
||||
- New: Changes in Dolibarr core to allow to use cache servers (see Memcached module on
|
||||
dolistore.com).
|
||||
- New: Default choice for interactive confirm box is yes by default, and no only for
|
||||
delete actions. This reduce number of clicks required to validate actions and
|
||||
is still safe to dangerous actions.
|
||||
- Fix: Durations are correctly shown for languages using PM/AM dates.
|
||||
- Fix: A lot of fixes in Point of Sale module.
|
||||
- Fix: Debug experimental module widthrawal.
|
||||
- Fix: Format number was wrong for ar_AR language.
|
||||
- Fix: Can change password if user has only permission "change password".
|
||||
- Fix: Project PDF document shows all tasks.
|
||||
- Fix: bug #29278 : SMTP fails with IP instead of hostname.
|
||||
- Fix: Default language on login page was wrong.
|
||||
- Fix: Complete support of euros sign (even in PDF).
|
||||
- Fix: Bad setup of phpMyAdmin for DoliWamp installer.
|
||||
- Fix: Tracking number should be available on sending sheets.
|
||||
- Fix: Stock value is not reset when product is transfered into other warehouse.
|
||||
- Fix: A lot of not tracked bugs fixed.
|
||||
- Fix: Some fixes in barcode management.
|
||||
- Fix: Access to phpMyAdmin is now ok on new DoliWamp installation.
|
||||
|
||||
For tranlators:
|
||||
- Fix: Major update of italian translation (it_IT).
|
||||
- Fix: A lot of translation fixes in all languages.
|
||||
- New: Added translations (sl_SL, is_IS).
|
||||
- New: Add translations for the DoliWamp installer.
|
||||
|
||||
For developers:
|
||||
- More comments in code.
|
||||
- Uniformize some code.
|
||||
- Delete all useless pre.inc.php files (this also increase speed).
|
||||
- Fix W3C errors in page forging.
|
||||
- Qual: Mutualize code of menu managers.
|
||||
- Better isolation of modules files and dolibarr core files.
|
||||
- Task #8682 : Remove functions unix_timestamp.
|
||||
- The makepack tool now make pack with UID 500.
|
||||
- More css class and div to output menu to allow more skins.
|
||||
- Generated documentation can be build from Eclipse using Doxygen plugin.
|
||||
- Snapshot is provided with PHPunit tests.
|
||||
|
||||
WARNING:
|
||||
- A lot of class files (*.class.php) has moved into subdirectories. So If you use
|
||||
or develop non official modules that includes Dolibarr classes, you will have to rename
|
||||
path to thoose classes into the include function.
|
||||
- Also, parameters of the "fetch()" method for class "User" has changed to reflect
|
||||
other fetch methods.
|
||||
- If you build a personalised themes, you must rename the style sheet into style.css.php.
|
||||
- This version is also the last one to support PHP 4.*, Mysql 3.1, IE6.
|
||||
Dolibarr 3.* will be supported with PHP 5+ and MySql 4.1+ only.
|
||||
|
||||
|
||||
***** ChangeLog for 2.8.1 compared to 2.8 *****
|
||||
For users:
|
||||
- Fix: Works on database with _ in name.
|
||||
- Fix: Broken feature in trips and expense module.
|
||||
- Fix: Can use $ in database and login/pass values.
|
||||
- Fix: No error on upgrade if there is orphelins tasks.
|
||||
- Fix: Failed to login when user agent string was longer than 128.
|
||||
- Fix: bug #29526 : Numérotation Proposition Incorrecte après duplication
|
||||
|
||||
|
||||
***** ChangeLog for 2.8 compared to 2.7 *****
|
||||
|
||||
@@ -20,9 +143,9 @@ For users:
|
||||
- New: Add a default errors-to email for emailing module.
|
||||
- New: Can filter on user on stock movement list.
|
||||
- New: When creating a third party from a member, it is set as a new
|
||||
customer.
|
||||
customer.
|
||||
- New: Can use {tttt} in numbering mask setup. It will be replaced
|
||||
with third party type.
|
||||
with third party type.
|
||||
- New: VAT number is stored in one field. This is more "international".
|
||||
- New: task #9782 : Add possibility to delete a warehouse.
|
||||
- New: task #9640 : Add label for stock movements.
|
||||
@@ -41,6 +164,8 @@ For users:
|
||||
- Fix: Running sending-email.php
|
||||
- Fix: Warning should not appears for invoice closed
|
||||
- Fix: Import for companies works even with prefix empty.
|
||||
- Fix: bug #28895 : Création d'utilisateur impossible.
|
||||
- Fix: Can change password if has only permission change password.
|
||||
|
||||
For developers:
|
||||
- Qual: Reorganize /dev directory.
|
||||
|
||||
4
README
@@ -68,7 +68,7 @@ To upgrade Dolibarr from an old version to this one:
|
||||
http://yourdolibarrhost/something/install/
|
||||
|
||||
Then choose the "update" option according to your case.
|
||||
Note: Migrate process can ben runned safely several times.
|
||||
Note: Migrate process can be ran safely several times.
|
||||
|
||||
|
||||
III - WHAT'S NEW
|
||||
@@ -97,7 +97,7 @@ Main modules/features:
|
||||
- ECM (Electronic Content Management)
|
||||
- EMailings
|
||||
- Agenda with ical,vcal export for third tools integration
|
||||
- Management of fundation members
|
||||
- Management of foundation members
|
||||
- Donation management
|
||||
|
||||
Other modules:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
README (french)
|
||||
--------------------------------
|
||||
Documentation demarrage rapide
|
||||
Documentation démarrage rapide
|
||||
--------------------------------
|
||||
|
||||
1) Installer Dolibarr
|
||||
2) Mettre a jour Dolibarr depuis une ancienne version
|
||||
2) Mettre à jour Dolibarr depuis une ancienne version
|
||||
3) Ce qui est nouveau dans cette version
|
||||
4) Ce que peux faire Dolibarr
|
||||
5) Ce que ne peux pas faire Dolibarr (pas encore)
|
||||
|
||||
@@ -4,7 +4,6 @@ Section: web
|
||||
Priority: optional
|
||||
Maintainer: Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
Package: dolibarr
|
||||
Section: web
|
||||
Architecture: all
|
||||
Essential: no
|
||||
Depends: wwwconfig-common, apache2, libapache2-mod-php5, php5, php5-cgi, php5-curl, php5-gd, php5-imagick, php5-ldap, php5-mcrypt, php5-mysql, mysql-server, perl
|
||||
|
||||
@@ -12,5 +12,5 @@ $force_install_databaserootlogin='__SUPERUSERLOGIN__';
|
||||
$force_install_databaserootpass='__SUPERUSERPASSWORD__';
|
||||
$force_install_dolibarrlogin='admin';
|
||||
$force_install_nophpinfo='1';
|
||||
$force_install_lockinstall='1';
|
||||
$force_install_lockinstall='444';
|
||||
?>
|
||||
@@ -12,5 +12,5 @@ $force_install_databaserootlogin='root';
|
||||
$force_install_databaserootpass='root';
|
||||
$force_install_dolibarrlogin='admin';
|
||||
$force_install_nophpinfo='1';
|
||||
$force_install_lockinstall='1';
|
||||
$force_install_lockinstall='444';
|
||||
?>
|
||||
42
build/exe/doliwamp/Languages/MyFrench.isl
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
[CustomMessages]
|
||||
|
||||
NameAndVersion=%1 version %2
|
||||
AdditionalIcons=Ic<49>nes suppl<70>mentaires :
|
||||
CreateDesktopIcon=Cr<43>er une ic<69>ne sur le &Bureau
|
||||
CreateQuickLaunchIcon=Cr<43>er une ic<69>ne dans la barre de &Lancement rapide
|
||||
ProgramOnTheWeb=Page d'accueil de %1
|
||||
UninstallProgram=D<>sinstaller %1
|
||||
LaunchProgram=Ex<45>cuter %1
|
||||
AssocFileExtension=&Associer %1 avec l'extension de fichier %2
|
||||
AssocingFileExtension=Associe %1 avec l'extension de fichier %2...
|
||||
|
||||
YouWillInstallDoliWamp=Vous allez installer ou mettre <20> jour DoliWamp (Apache+Mysql+PHP+Dolibarr) sur votre ordinateur.
|
||||
ThisAssistantInstallOrUpgrade=Cet assistant installe ou met <20> jour Dolibarr ERP-CRM et tous ses composants pr<70>requis (Apache, Mysql et PHP) optimis<69> pour une utilisation de Dolibarr.
|
||||
IfYouHaveTechnicalKnowledge=Si vous avez des comp<6D>tences techniques et envisagez de partager votre Apache, Mysql et PHP avec d'autres applications que Dolibarr, vous ne devriez pas utiliser cet assistant mais faire plutot une installation manuelle de Dolibarr sur un socle Apache, Mysql et PHP existant.
|
||||
ButIfYouLook=Mais si vous recherchez une installation cl<63> en main automatis<69>e, vous <20>tes sur la bonne voie...
|
||||
DoYouWantToStart=Voulez-vous d<>marrer le processus d'installation/mise <20> jour ?
|
||||
|
||||
TechnicalParameters=Param<61>tres techniques
|
||||
IfFirstInstall=S'il s'agit de la premi<6D>re installation, merci de sp<73>cifier ces quelques param<61>tres techniques. Si vous ne les comprennez pas, <20>tes non surs, ou proc<6F>dez <20> une mise <20> jour, laissez les champs avec les valeurs propos<6F>es par d<>faut.
|
||||
|
||||
; WARNING !!! STRINGS HERE MUST BE LOWER THAN 60 CHARACTERS
|
||||
SMTPServer=Serveur SMTP (le votre ou celui de votre FAI, premi<6D>re install uniquement) :
|
||||
ApachePort=Port Apache (premi<6D>re install uniquement, le choix standard est 80) :
|
||||
MySqlPort=Port Mysql (premi<6D>re install uniquement, le choix standard est 3306) :
|
||||
MySqlPassword=Mot de passe du serveur et base MySql pour root (premi<6D>re install uniquement):
|
||||
|
||||
FailedToDeleteLock=Echec de la suppression du fichier %1/www/dolibarr/install.lock. Vous pouvez ignorer l'avertissement mais il est possible que vous deviez le supprimer manuellement plus tard. Dans ce cas, cela vous sera signal<61>. Cliquer sur OK pour continuer...
|
||||
|
||||
PortAlreadyInUse=Le port %1 semble d<>j<EFBFBD> utilis<69>. Il est recommand<6E> d'annuler pour revenir en arri<72>re et sp<73>cifier une autre valeur pour le port %2. Annuler le choix et choisir une autre valeur ?
|
||||
|
||||
FirefoxDetected=Firefox a <20>t<EFBFBD> d<>tect<63> sur votre ordinateur. Voulez-vous en faire votre navigateur par d<>faut pour Dolibarr ?
|
||||
ChooseDefaultBrowser=Merci de choisir votre navigateur par d<>faut. Si vous n'<27>tes pas sur, cliquer simplement sur Ouvrir :
|
||||
|
||||
LaunchNow=Lancer Dolibarr maintenant
|
||||
|
||||
ProgramHasBeenRemoved=Les fichiers du programe Dolibarr ont <20>t<EFBFBD> supprim<69>s. Toutefois, tous vos fichiers de donn<6E>es sont toujours dans le r<>pertoire $1. Vous devez supprimer ce r<>pertoire manuellement pour avoir une d<>sinstallation compl<70>te.
|
||||
|
||||
DoliWampWillStartApacheMysql=L'installeur DoliWamp va maintenant d<>marrer ou red<65>marrer Apache et Mysql, ceci peut durer de quelques secondes <20> une minute apr<70>s cette confirmation. D<>marrer l'installation ou mise <20> jour du serveur web et base de donn<6E>es requis par Dolibarr ?
|
||||
|
||||
|
||||
@@ -18,13 +18,14 @@
|
||||
; ----- Change this -----
|
||||
AppName=DoliWamp
|
||||
; DoliWamp-x.x.x or DoliWamp-x.x.x-dev or DoliWamp-x.x.x-beta
|
||||
AppVerName=DoliWamp-2.8.0-beta
|
||||
AppVerName=DoliWamp-2.9.0
|
||||
; DoliWamp-x.x x or DoliWamp-x.x.x-dev or DoliWamp-x.x.x-beta
|
||||
OutputBaseFilename=DoliWamp-2.8.0-beta
|
||||
OutputBaseFilename=DoliWamp-2.9.0
|
||||
; Define full path from wich all relative path are defined
|
||||
; You must modify this to put here your dolibarr root directory
|
||||
SourceDir=D:\Mes developpements\dolibarr
|
||||
SourceDir=D:\Mes developpements\dolibarrold
|
||||
; ----- End of change
|
||||
;OutputManifestFile=build\doliwampbuild.log
|
||||
AppId=doliwamp
|
||||
AppPublisher=NLTechno
|
||||
AppPublisherURL=http://www.nltechno.com
|
||||
@@ -41,17 +42,40 @@ SolidCompression=yes
|
||||
WizardImageFile=build\exe\doliwamp\doliwamp.bmp
|
||||
WizardSmallImageFile=build\exe\doliwamp\doliwampsmall.bmp
|
||||
SetupIconFile=doc\images\dolibarr.ico
|
||||
PrivilegesRequired=poweruser
|
||||
PrivilegesRequired=admin
|
||||
DisableProgramGroupPage=yes
|
||||
ChangesEnvironment=no
|
||||
CreateUninstallRegKey=yes
|
||||
;UseSetupLdr=no
|
||||
;UninstallDisplayIcon={app}\bidon
|
||||
OutputDir=build
|
||||
ShowLanguageDialog=auto
|
||||
ShowUndisplayableLanguages=no
|
||||
;LanguageDetectionMethod=none
|
||||
LanguageDetectionMethod=uilanguage
|
||||
;SignedUninstaller=yes
|
||||
|
||||
[Languages]
|
||||
Name: "en"; MessagesFile: "compiler:Default.isl,build\exe\doliwamp\Languages\MyEnglish.isl"
|
||||
Name: "br"; MessagesFile: "compiler:Languages\Portuguese.isl,build\exe\doliwamp\Languages\MyBrazilianPortuguese.isl"
|
||||
Name: "ca"; MessagesFile: "compiler:Languages\Catalan.isl,build\exe\doliwamp\Languages\MyCatalan.isl"
|
||||
Name: "da"; MessagesFile: "compiler:Languages\Danish.isl,build\exe\doliwamp\Languages\MyDanish.isl"
|
||||
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl,build\exe\doliwamp\Languages\MySpanish.isl"
|
||||
Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl,build\exe\doliwamp\Languages\MyDutch.isl"
|
||||
Name: "fi"; MessagesFile: "compiler:Languages\Finnish.isl,build\exe\doliwamp\Languages\MyFinnish.isl"
|
||||
Name: "fr"; MessagesFile: "compiler:Languages\French.isl,build\exe\doliwamp\Languages\MyFrench.isl"
|
||||
Name: "ge"; MessagesFile: "compiler:Languages\German.isl,build\exe\doliwamp\Languages\MyGerman.isl"
|
||||
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl,build\exe\doliwamp\Languages\MyItalian.isl"
|
||||
Name: "nb"; MessagesFile: "compiler:Languages\Norwegian.isl,build\exe\doliwamp\Languages\MyNorwegian.isl"
|
||||
Name: "po"; MessagesFile: "compiler:Languages\Polish.isl,build\exe\doliwamp\Languages\MyPolish.isl"
|
||||
Name: "pt"; MessagesFile: "compiler:Languages\Portuguese.isl,build\exe\doliwamp\Languages\MyPortuguese.isl"
|
||||
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl,build\exe\doliwamp\Languages\MyRussian.isl"
|
||||
Name: "sv"; MessagesFile: "compiler:Languages\Slovenian.isl,build\exe\doliwamp\Languages\MySlovenian.isl"
|
||||
|
||||
[Tasks]
|
||||
;Name: "autostart"; Description: "Automatically launch DoliWamp server on startup. If you check this option, Services will be installed as automatic. Otherwise, services will be installed as manual and will start and stop with the service manager."; GroupDescription: "Auto Start:" ;Flags: unchecked;
|
||||
Name: quicklaunchicon; Description: "Create a &Quick Launch icon"; GroupDescription: "Additional icons:"; Flags: unchecked
|
||||
Name: "desktopicon"; Description: "Create a &Desktop icon"; GroupDescription: "Additional icons:"; Flags: unchecked
|
||||
Name: "quicklaunchicon"; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
|
||||
Name: "desktopicon"; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
|
||||
|
||||
[Dirs]
|
||||
Name: "{app}\logs"
|
||||
@@ -79,11 +103,11 @@ Source: "build\exe\doliwamp\UsedPort.exe"; DestDir: "{app}\"; Flags: ignoreversi
|
||||
Source: "C:\Program Files (x86)\Wamp\apps\phpmyadmin3.2.0.1\*.*"; DestDir: "{app}\apps\phpmyadmin3.2.0.1"; Flags: ignoreversion recursesubdirs; Excludes: "config.inc.php,wampserver.conf,*.log,*_log"
|
||||
Source: "C:\Program Files (x86)\Wamp\bin\apache\apache2.2.6\*.*"; DestDir: "{app}\bin\apache\apache2.2.6"; Flags: ignoreversion recursesubdirs; Excludes: "php.ini,httpd.conf,wampserver.conf,*.log,*_log"
|
||||
Source: "C:\Program Files (x86)\Wamp\bin\php\php5.2.5\*.*"; DestDir: "{app}\bin\php\php5.2.5"; Flags: ignoreversion recursesubdirs; Excludes: "php.ini,phpForApache.ini,wampserver.conf,*.log,*_log"
|
||||
Source: "C:\Program Files (x86)\Wamp\bin\mysql\mysql5.0.45\*.*"; DestDir: "{app}\bin\mysql\mysql5.0.45"; Flags: ignoreversion recursesubdirs; Excludes: "my.ini,data\*,wampserver.conf,*.log,*_log"
|
||||
Source: "C:\Program Files (x86)\Wamp\bin\mysql\mysql5.0.45\*.*"; DestDir: "{app}\bin\mysql\mysql5.0.45"; Flags: ignoreversion recursesubdirs; Excludes: "my.ini,data\*,wampserver.conf,*.log,*_log,MySQLInstanceConfig.exe"
|
||||
; Mysql data files (does not overwrite if exists)
|
||||
Source: "build\exe\doliwamp\mysql\*.*"; DestDir: "{app}\bin\mysql\mysql5.0.45\data\mysql"; Flags: onlyifdoesntexist ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db"
|
||||
; Dolibarr
|
||||
Source: "htdocs\*.*"; DestDir: "{app}\www\dolibarr\htdocs"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,telephonie\*,*\conf.php,*\install.forced.php,*\modBookmark4u.class.php,*\modDocument.class.php,*\modDroitPret.class.php,*\modEditeur.class.php,*\modPostnuke.class.php,*\modTelephonie.class.php,*\interface_modEditeur_Editeur.class.php*,*\rodolphe"
|
||||
Source: "htdocs\*.*"; DestDir: "{app}\www\dolibarr\htdocs"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,telephonie\*,*\conf.php,*\conf.php.mysql,*\conf.php.old,*\conf.php.postgres,*\install.forced.php,*\modBookmark4u.class.php,*\modDocument.class.php,*\modDroitPret.class.php,*\modEditeur.class.php,*\modPostnuke.class.php,*\modTelephonie.class.php,*\interface_modEditeur_Editeur.class.php*,*\rodolphe"
|
||||
Source: "dev\*.*"; DestDir: "{app}\www\dolibarr\dev"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,fpdf\*,initdemo\*,iso-normes\*,samples\*,test\*,uml\*,xdebug\*"
|
||||
Source: "doc\*.*"; DestDir: "{app}\www\dolibarr\doc"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,wiki\*,plaquette\*,dev\*"
|
||||
Source: "scripts\*.*"; DestDir: "{app}\www\dolibarr\scripts"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,product\materiel.net.php,product\import-product.php"
|
||||
@@ -135,6 +159,7 @@ var apachePort: String;
|
||||
var mysqlPort: String;
|
||||
var newPassword: String;
|
||||
|
||||
var lockFile: String;
|
||||
var srcFile: String;
|
||||
var destFile: String;
|
||||
var srcFileH: String;
|
||||
@@ -162,7 +187,7 @@ var value: String;
|
||||
//procedures lancees au debut de l'installation
|
||||
function InitializeSetup(): Boolean;
|
||||
begin
|
||||
Result := MsgBox('You will install or upgrade DoliWamp (Apache+Mysql+PHP+Dolibarr) on your computer.' #13#13 'This assistant installs or upgrades Dolibarr ERP-CRM and required third party softwares (Apache, Mysql and PHP) configured for a Dolibarr usage.' #13#13 'If you have technical knowledge and plan to share your Apache, Mysql and PHP with other projects than Dolibarr, you should not use this assistant and make a manual installation of Dolibarr on an existing Apache, Mysql and PHP installation. If you don''t need a sophisticated manual setup, you''re on the good way...' #13#13 'Do you want to start installation/upgrade process ?', mbConfirmation, MB_YESNO) = IDYES;
|
||||
Result := MsgBox(CustomMessage('YouWillInstallDoliWamp')+#13#13+CustomMessage('ThisAssistantInstallOrUpgrade')+#13#13+CustomMessage('IfYouHaveTechnicalKnowledge')+#13#13+CustomMessage('ButIfYouLook')+#13#13+CustomMessage('DoYouWantToStart'), mbConfirmation, MB_YESNO) = IDYES;
|
||||
end;
|
||||
|
||||
procedure InitializeWizard();
|
||||
@@ -229,24 +254,24 @@ begin
|
||||
// Prepare an object calle "Page" of type wpInstalling.
|
||||
// Object will be show later in NextButtonClick function.
|
||||
Page := CreateInputQueryPage(wpInstalling,
|
||||
'Technical parameters', '',
|
||||
'If first install, please specify some technical parameters. If you don''t understand, are not sure, or are doing an upgrade, just leave the default values.');
|
||||
CustomMessage('TechnicalParameters'), '',
|
||||
CustomMessage('IfFirstInstall'));
|
||||
|
||||
// TODO Add control differently if first install or update
|
||||
if firstinstall
|
||||
then
|
||||
begin
|
||||
Page.Add('SMTP server (your own or ISP SMTP server, first install only) :', False);
|
||||
Page.Add('Apache port (first install only, common choice is 80) :', False);
|
||||
Page.Add('Mysql port (first install only, common choice is 3306) :', False);
|
||||
Page.Add('Mysql server and database password you want for root (first install only):', False);
|
||||
Page.Add(CustomMessage('SMTPServer'), False);
|
||||
Page.Add(CustomMessage('ApachePort'), False);
|
||||
Page.Add(CustomMessage('MySqlPort'), False);
|
||||
Page.Add(CustomMessage('MySqlPassword'), False);
|
||||
end
|
||||
else
|
||||
begin
|
||||
Page.Add('SMTP server (your own or ISP SMTP server, first install only) :', False);
|
||||
Page.Add('Apache port (first install only, common choice is 80) :', False);
|
||||
Page.Add('Mysql port (first install only, common choice is 3306) :', False);
|
||||
Page.Add('Mysql server and database password you want for root (first install only):', False);
|
||||
Page.Add(CustomMessage('SMTPServer'), False);
|
||||
Page.Add(CustomMessage('ApachePort'), False);
|
||||
Page.Add(CustomMessage('MySqlPort'), False);
|
||||
Page.Add(CustomMessage('MySqlPassword'), False);
|
||||
end;
|
||||
|
||||
// Default values
|
||||
@@ -292,7 +317,6 @@ begin
|
||||
if CurPageID = Page.ID then
|
||||
begin
|
||||
|
||||
|
||||
// This must be in if curpage.id = page.id, otherwise it is executed after each Next button
|
||||
|
||||
//----------------------------------------------
|
||||
@@ -313,29 +337,38 @@ begin
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'msql.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'libmcrypt.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'libmysqli.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'ntwdblib.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
|
||||
phpDllCopy := 'php5activescript.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'php5isapi.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'php5nsapi.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'php5ts.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
|
||||
phpDllCopy := 'ssleay32.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'yaz.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'libmcrypt.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
phpDllCopy := 'php5ts.dll';
|
||||
// With Wampserver 2.0i and PHP 5.3
|
||||
phpDllCopy := 'libpq.dll';
|
||||
filecopy (pathWithSlashes+'/bin/php/php'+phpVersion+'/'+phpDllCopy, pathWithSlashes+'/bin/apache/apache'+apacheVersion+'/bin/'+phpDllCopy, False);
|
||||
|
||||
|
||||
// Remove lock file
|
||||
DeleteFile(pathWithSlashes+'/www/dolibarr/install.lock');
|
||||
|
||||
lockfile := pathWithSlashes+'/www/dolibarr/install.lock';
|
||||
if FileExists (lockfile) and not DeleteFile(lockfile) then
|
||||
begin
|
||||
themessage := FmtMessage(CustomMessage('FailedToDeleteLock'),[pathWithSlashes]);
|
||||
MsgBox(themessage,mbInformation,MB_OK);
|
||||
end
|
||||
|
||||
|
||||
// Check if parameters already defined in conf.php file
|
||||
@@ -382,7 +415,7 @@ begin
|
||||
// paramok := False;
|
||||
// end;
|
||||
// end;
|
||||
|
||||
|
||||
if paramok then
|
||||
begin
|
||||
// Test port Apache
|
||||
@@ -390,7 +423,7 @@ begin
|
||||
//MsgBox('batFile = '+batFile,mbConfirmation,MB_YESNO)
|
||||
Exec(batFile, '-s localhost -p '+myporta, path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
//themessage := 'Le port '+myporta+' semble deja pris. Revenez en arriere pour choisir une autre valeur pour le port Apache.';
|
||||
themessage := 'Port '+myporta+' seems to be already in use. Go back to choose another value for Apache port. Cancel choice and choose another value ?';
|
||||
themessage := FmtMessage(CustomMessage('PortAlreadyInUse'),[myporta,'Apache']);
|
||||
if ((IntToStr(myResult) = '0') and (MsgBox(themessage,mbConfirmation,MB_YESNO) = IDYES)) then
|
||||
begin
|
||||
paramok := False;
|
||||
@@ -404,7 +437,7 @@ begin
|
||||
//MsgBox('batFile = '+batFile,mbConfirmation,MB_YESNO)
|
||||
Exec(batFile, '-s localhost -p '+myport, path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
//themessage := 'Le port '+myport+' semble deja pris. Revenez en arriere pour choisir une autre valeur pour le port MySQL.';
|
||||
themessage := 'Port '+myport+' seems to be already in use. Go back to choose another value for MySQL port. Cancel choice and choose another value ?';
|
||||
themessage := FmtMessage(CustomMessage('PortAlreadyInUse'),[myport,'MySql']);
|
||||
if ((IntToStr(myResult) = '0') and (MsgBox(themessage,mbConfirmation,MB_YESNO) = IDYES)) then
|
||||
begin
|
||||
paramok := False;
|
||||
@@ -458,37 +491,37 @@ begin
|
||||
browser := 'iexplore.exe';
|
||||
if FileExists (pfPath+'/Mozilla Firefox/firefox.exe') then
|
||||
begin
|
||||
if MsgBox('Firefox has been detected on your computer. Would you like to use it as the default browser with Dolibarr ?',mbConfirmation,MB_YESNO) = IDYES then
|
||||
if MsgBox(CustomMessage('FirefoxDetected'),mbConfirmation,MB_YESNO) = IDYES then
|
||||
begin
|
||||
browser := pfPath+'/Mozilla Firefox/firefox.exe';
|
||||
end;
|
||||
end;
|
||||
if browser = 'iexplore.exe' then
|
||||
begin
|
||||
GetOpenFileName('Please choose your default browser. If you are not sure, just click Open :', browser, winPath,'exe files (*.exe)|*.exe|All files (*.*)|*.*' ,'exe');
|
||||
GetOpenFileName(CustomMessage('ChooseDefaultBrowser'), browser, winPath,'exe files (*.exe)|*.exe|All files (*.*)|*.*' ,'exe');
|
||||
end;
|
||||
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
StringChange (srcContents, 'WAMPBROWSER', browser);
|
||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
||||
StringChangeEx (srcContents, 'WAMPBROWSER', browser, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
|
||||
LoadStringFromFile (srcFileH, srcContents);
|
||||
StringChange (srcContents, 'WAMPBROWSER', browser);
|
||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
||||
StringChangeEx (srcContents, 'WAMPBROWSER', browser, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||
SaveStringToFile(destFileH,srcContents, False);
|
||||
|
||||
LoadStringFromFile (srcFileA, srcContents);
|
||||
StringChange (srcContents, 'WAMPBROWSER', browser);
|
||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
||||
StringChangeEx (srcContents, 'WAMPBROWSER', browser, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||
SaveStringToFile(destFileA,srcContents, False);
|
||||
end
|
||||
|
||||
|
||||
if MsgBox('DoliWamp installer will now start or restart Apache and Mysql, this may last from several seconds to one minute after this confirmation. Start to install or upgrade the web server and database server ?',mbConfirmation,MB_YESNO) = IDYES then
|
||||
if MsgBox(CustomMessage('DoliWampWillStartApacheMysql'),mbConfirmation,MB_YESNO) = IDYES then
|
||||
begin
|
||||
|
||||
|
||||
@@ -504,8 +537,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//installDir et version de phpmyadmin
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPPHPMYADMINVERSION', phpmyadminVersion);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPPHPMYADMINVERSION', phpmyadminVersion, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -524,8 +557,8 @@ begin
|
||||
begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||
|
||||
SaveStringToFile(destFile, srcContents, False);
|
||||
end
|
||||
@@ -545,7 +578,8 @@ begin
|
||||
begin
|
||||
// sinon on prends le fichier par defaut
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
|
||||
@@ -563,10 +597,10 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//installDir et version de php
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPPHPVERSION', phpVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -586,8 +620,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//installDir et version de php
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -605,22 +639,22 @@ begin
|
||||
if not FileExists (destFile) then
|
||||
begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
||||
StringChangeEx (srcContents, 'WAMPPHPVERSION', phpVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||
SaveStringToFile(destFile, srcContents, False);
|
||||
end
|
||||
else
|
||||
begin
|
||||
RenameFile(destFile, destFile+'.old');
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
||||
StringChangeEx (srcContents, 'WAMPPHPVERSION', phpVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||
SaveStringToFile(destFile, srcContents, False);
|
||||
end
|
||||
|
||||
@@ -639,10 +673,10 @@ begin
|
||||
begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -661,8 +695,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -681,8 +715,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -702,8 +736,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -722,9 +756,9 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -742,10 +776,10 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -763,10 +797,10 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -784,8 +818,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
@@ -801,8 +835,8 @@ begin
|
||||
if not FileExists (destFile) and FileExists(srcFile) then
|
||||
begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPSMTP', mysmtp);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPSMTP', mysmtp, True);
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
|
||||
@@ -816,8 +850,8 @@ begin
|
||||
if not FileExists (destFile) and FileExists(srcFile) then
|
||||
begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPSMTP', mysmtp);
|
||||
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||
StringChangeEx (srcContents, 'WAMPSMTP', mysmtp, True);
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
|
||||
@@ -914,13 +948,13 @@ begin
|
||||
pathWithSlashes := path;
|
||||
StringChange (pathWithSlashes, '\','/');
|
||||
|
||||
MsgBox('Dolibarr program files have been removed. However, all your old data files are still in directory '+path+'. You must remove this directory manually for a complete uninstall.',mbInformation,MB_OK);
|
||||
MsgBox(FmtMessage(CustomMessage('ProgramHasBeenRemoved'),[path]),mbInformation,MB_OK);
|
||||
end;
|
||||
|
||||
|
||||
[Run]
|
||||
; Launch Dolibarr in browser. This is run after Wizard because of postinstall flag
|
||||
Filename: "{app}\rundoliwamp.bat"; Description: "Launch Dolibarr now"; Flags: shellexec postinstall skipifsilent runhidden
|
||||
Filename: "{app}\rundoliwamp.bat"; Description: {cm:LaunchNow}; Flags: shellexec postinstall skipifsilent runhidden
|
||||
|
||||
|
||||
[UninstallDelete]
|
||||
|
||||
@@ -12,5 +12,5 @@ $force_install_databaserootlogin='root';
|
||||
$force_install_databaserootpass='WAMPMYSQLNEWPASSWORD';
|
||||
$force_install_dolibarrlogin='admin';
|
||||
$force_install_nophpinfo='1';
|
||||
$force_install_lockinstall='1';
|
||||
$force_install_lockinstall='644';
|
||||
?>
|
||||
@@ -686,11 +686,11 @@ extension=php_pdo_mysql.dll
|
||||
;extension=php_pdo_odbc.dll
|
||||
;extension=php_pdo_pgsql.dll
|
||||
;extension=php_pdo_sqlite.dll
|
||||
;extension=php_pgsql.dll
|
||||
extension=php_pgsql.dll
|
||||
;extension=php_pspell.dll
|
||||
extension=php_shmop.dll
|
||||
;extension=php_snmp.dll
|
||||
;extension=php_soap.dll
|
||||
extension=php_soap.dll
|
||||
extension=php_sockets.dll
|
||||
extension=php_sqlite.dll
|
||||
;extension=php_sybase_ct.dll
|
||||
|
||||
@@ -6,12 +6,12 @@ REM Microsoft add bugs in service packs that prevents
|
||||
REM servers ran as a service to launch.
|
||||
REM -----------------------------------------------------
|
||||
|
||||
echo Running Apache
|
||||
WAMPROOT\bin\apache\apacheWAMPAPACHEVERSION\bin\httpd.exe -k start
|
||||
echo Running Apache as user process (this process does not return so we use "start")
|
||||
start WAMPROOT\bin\apache\apacheWAMPAPACHEVERSION\bin\httpd.exe -f conf\httpd.conf
|
||||
|
||||
echo
|
||||
|
||||
echo Running Mysql
|
||||
WAMPROOT\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqld-nt.exe --defaults-file=WAMPROOT\bin\mysql\mysqlWAMPMYSQLVERSION\my.ini
|
||||
echo Running Mysql as user process (this process does not return so we use "start")
|
||||
start WAMPROOT\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqld-nt.exe --defaults-file=WAMPROOT\bin\mysql\mysqlWAMPMYSQLVERSION\my.ini --console
|
||||
|
||||
pause
|
||||
@@ -10,8 +10,8 @@ use Cwd;
|
||||
|
||||
$PROJECT="dolibarr";
|
||||
$MAJOR="2";
|
||||
$MINOR="8";
|
||||
$BUILD="0-beta"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
|
||||
$MINOR="9";
|
||||
$BUILD="0-dev"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
|
||||
$RPMSUBVERSION="1"; # A incrementer au moment de la release
|
||||
|
||||
@LISTETARGET=("TGZ","ZIP","RPM","DEB","EXE","EXEDOLIWAMP","SNAPSHOT"); # Possible packages
|
||||
@@ -241,6 +241,7 @@ if ($nboftargetok) {
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/documents`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/document`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php.mysql`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php.old`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php.postgres`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/Thumbs.db $BUILDROOT/$PROJECT/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/*/*/Thumbs.db`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/CVS* $BUILDROOT/$PROJECT/*/CVS* $BUILDROOT/$PROJECT/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/CVS*`;
|
||||
@@ -260,7 +261,7 @@ if ($nboftargetok) {
|
||||
|
||||
print "Compress $BUILDROOT into $FILENAMESNAPSHOT.tgz...\n";
|
||||
#$cmd="tar --exclude \"$BUILDROOT/tgz/tar_exclude.txt\" --exclude .cache --exclude .settings --exclude conf.php --directory \"$BUILDROOT\" -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT";
|
||||
$cmd="tar --exclude .cache --exclude .settings --exclude conf.php --directory \"$BUILDROOT\" -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT";
|
||||
$cmd="tar --exclude .cache --exclude .settings --exclude conf.php --exclude conf.php.mysql --exclude conf.php.old --exclude conf.php.postgres --directory \"$BUILDROOT\" -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT";
|
||||
print $cmd."\n";
|
||||
$ret=`$cmd`;
|
||||
if ($OS =~ /windows/i)
|
||||
@@ -385,6 +386,7 @@ if ($nboftargetok) {
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/usr/share/$PROJECT/doc/tshirt`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/usr/share/$PROJECT/doc/rollup`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php.mysql`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php.old`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php.postgres`;
|
||||
|
||||
print "Edit version in file $BUILDROOT/$PROJECT/DEBIAN/control\n";
|
||||
|
||||
@@ -1,9 +1,40 @@
|
||||
***** Actions to do to release *****
|
||||
----- Dolibarr Makepack How To -----
|
||||
This documentation describe steps to build a BETA or RELREASE versions
|
||||
of Dolibarr. There is a chapter for BETA version and a chapter vor
|
||||
RELEASE version.
|
||||
|
||||
***** Actions to do a BETA *****
|
||||
This files describe steps made by Dolibarr packaging team to make a
|
||||
beta version of Dolibarr, step by step.
|
||||
|
||||
- Check all files are commited.
|
||||
- Update version/info in / directory (README*.txt, ChangeLog...)
|
||||
- Update version number in build/makepack-dolibarr.pl
|
||||
- Update version number in build/exe/doliwamp/doliwamp.iss
|
||||
- Update version number in htdocs/master.inc.php
|
||||
- Update version number in htdocs/install/inc.php
|
||||
- Commit all changes.
|
||||
- Add a CVS Tag (DOLIBARR_x_y_BETA)
|
||||
- If it's a new branch (Vx.y), create a branch (DOLIBARR_x_y_BRANCH).
|
||||
|
||||
- Build Dolibarr and DoliWamp with makepack-dolibarr.pl
|
||||
- Check content of built packages.
|
||||
- Move build files (tgz+exe+deb), ChangeLog and PAD/DOAP files into the
|
||||
Dolibarr web site repository /home/dolibarr/wwwroot/files.
|
||||
- Update and upload NLTechno web page with DoliWamp version.
|
||||
|
||||
- Add/Update entries on joomla web site www.dolibarr.org with links
|
||||
to files http://www.dolibarr.org/files/XXX.
|
||||
|
||||
- Send mail on mailings-list
|
||||
|
||||
|
||||
***** Actions to do a RELEASE *****
|
||||
This files describe steps made by Dolibarr packaging team to make a
|
||||
complete release of Dolibarr, step by step.
|
||||
|
||||
- Check all files are commited.
|
||||
- Update files in root directory (README*.txt, ChangeLog...)
|
||||
- Update version/info in / directory (README*.txt, ChangeLog...)
|
||||
- Update version number in build/makepack-dolibarr.pl
|
||||
- Update version number in build/doxygen/dolibarr-doxygen.doxyfile
|
||||
- Update version number in build/exe/doliwamp/doliwamp.iss
|
||||
@@ -12,19 +43,18 @@ complete release of Dolibarr, step by step.
|
||||
- Update version number in htdocs/install/inc.php
|
||||
- Update PAD and DOAP files.
|
||||
- Commit all changes.
|
||||
- Add a CVS Tag
|
||||
- If it's a new branch (Vx.y), create a branch.
|
||||
- Add a CVS Tag (DOLIBARR_x_y)
|
||||
|
||||
- Build Dolibarr and DoliWamp with makepack-dolibarr.pl
|
||||
- Check content of built packages.
|
||||
- Move build files (tgz+exe), ChangeLog and PAD/DOAP files into Dolibarr
|
||||
web site repository /home/dolibarr/wwwroot/files.
|
||||
- Move links in directory "/home/dolibarr/wwwroot/files" on server to point
|
||||
to new files.
|
||||
- Upload NLTechno web page with DoliWamp version.
|
||||
- Move build files (tgz+exe+deb), ChangeLog and PAD/DOAP files into the
|
||||
Dolibarr web site repository /home/dolibarr/wwwroot/files.
|
||||
- Edit symbolic links in directory "/home/dolibarr/wwwroot/files" on server to
|
||||
point to new files.
|
||||
- Update and upload NLTechno web page with DoliWamp version.
|
||||
|
||||
- Upload files dolibarr.*.tgz and doliwamp.*.exe on sourceforge.
|
||||
- Update entries on joomla web site www.dolibarr.org with new sourceforge link.
|
||||
- Add/Update entries on joomla web site www.dolibarr.org with new sourceforge link.
|
||||
|
||||
- Send mail on mailings-list
|
||||
- Send news on OpenSource web sites (if major beta or release)
|
||||
|
||||
@@ -6,26 +6,26 @@
|
||||
<MASTER_PAD_INFO>Portable Application Description, or PAD for short, is a data set that is used by shareware authors to disseminate information to anyone interested in their software products. To find out more go to http://www.asp-shareware.org/pad</MASTER_PAD_INFO>
|
||||
</MASTER_PAD_VERSION_INFO>
|
||||
<Company_Info>
|
||||
<Company_Name>Dolibarr team</Company_Name>
|
||||
<Company_Name>NLTechno</Company_Name>
|
||||
<Address_1>61 Boulevard Vauban</Address_1>
|
||||
<Address_2 />
|
||||
<City_Town>Montigny-le-Bretonneux</City_Town>
|
||||
<State_Province />
|
||||
<Zip_Postal_Code>78180</Zip_Postal_Code>
|
||||
<Country>FRANCE</Country>
|
||||
<Company_WebSite_URL>http://www.dolibarr.org</Company_WebSite_URL>
|
||||
<Company_WebSite_URL>http://www.nltechno.com</Company_WebSite_URL>
|
||||
<Contact_Info>
|
||||
<Author_First_Name>Dolibarr team</Author_First_Name>
|
||||
<Author_Last_Name>Dolibarr team</Author_Last_Name>
|
||||
<Author_Email>dolibarr-dev@nongnu.org</Author_Email>
|
||||
<Contact_First_Name>Dolibarr team</Contact_First_Name>
|
||||
<Contact_Last_Name>Dolibarr team</Contact_Last_Name>
|
||||
<Contact_Email>dolibarr-dev@nongnu.org</Contact_Email>
|
||||
<Author_First_Name>NLTechno</Author_First_Name>
|
||||
<Author_Last_Name>NLTechno</Author_Last_Name>
|
||||
<Author_Email>dolibarr@nltechno.com</Author_Email>
|
||||
<Contact_First_Name>NLTechno</Contact_First_Name>
|
||||
<Contact_Last_Name>NLTechno</Contact_Last_Name>
|
||||
<Contact_Email>dolibarr@nltechno.com</Contact_Email>
|
||||
</Contact_Info>
|
||||
<Support_Info>
|
||||
<Sales_Email>dolibarr-dev@nongnu.org</Sales_Email>
|
||||
<Support_Email>dolibarr-dev@nongnu.org</Support_Email>
|
||||
<General_Email>dolibarr-dev@nongnu.org</General_Email>
|
||||
<Sales_Email>dolibarr@nltechno.com</Sales_Email>
|
||||
<Support_Email>dolibarr@nltechno.com</Support_Email>
|
||||
<General_Email>dolibarr@nltechno.com</General_Email>
|
||||
<Sales_Phone />
|
||||
<Support_Phone />
|
||||
<General_Phone />
|
||||
@@ -34,8 +34,8 @@
|
||||
</Company_Info>
|
||||
<Program_Info>
|
||||
<Program_Name>Dolibarr</Program_Name>
|
||||
<Program_Version>2.8.0</Program_Version>
|
||||
<Program_Release_Month>02</Program_Release_Month>
|
||||
<Program_Version>2.9.0</Program_Version>
|
||||
<Program_Release_Month>04</Program_Release_Month>
|
||||
<Program_Release_Day>13</Program_Release_Day>
|
||||
<Program_Release_Year>2010</Program_Release_Year>
|
||||
<Program_Cost_Dollars />
|
||||
@@ -45,8 +45,8 @@
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>No Install Support</Program_Install_Support>
|
||||
<Program_OS_Support>Linux,Mac OS X,Mac Other,Unix,Win2000,Win7 x32,Win7 x64,Win98,WinOther,WinServer,WinVista,WinVista x64,WinXP,Other</Program_OS_Support>
|
||||
<Program_Language>English,Catalan,Dutch,French,German,Italian,Norwegian,Portuguese,Spanish</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Language>English,Catalan,Danish,Dutch,French,German,Italian,Norwegian,Portuguese,Romanian,Russian,Spanish</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org/files/ChangeLog</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
</Company_Info>
|
||||
<Program_Info>
|
||||
<Program_Name>DoliWamp</Program_Name>
|
||||
<Program_Version>2.8.0</Program_Version>
|
||||
<Program_Release_Month>02</Program_Release_Month>
|
||||
<Program_Version>2.9.0</Program_Version>
|
||||
<Program_Release_Month>04</Program_Release_Month>
|
||||
<Program_Release_Day>13</Program_Release_Day>
|
||||
<Program_Release_Year>2010</Program_Release_Year>
|
||||
<Program_Cost_Dollars />
|
||||
@@ -45,8 +45,8 @@
|
||||
<Program_Release_Status>Major Update</Program_Release_Status>
|
||||
<Program_Install_Support>Install and Uninstall</Program_Install_Support>
|
||||
<Program_OS_Support>Win2000,Win7 x32,Win7 x64,Win98,WinOther,WinServer,WinVista,WinVista x64,WinXP,Other</Program_OS_Support>
|
||||
<Program_Language>English,Catalan,Dutch,French,German,Italian,Norwegian,Portuguese,Spanish</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org</Program_Change_Info>
|
||||
<Program_Language>English,Catalan,Danish,Dutch,French,German,Italian,Norwegian,Portuguese,Romanian,Russian,Spanish</Program_Language>
|
||||
<Program_Change_Info>http://www.dolibarr.org/files/ChangeLog</Program_Change_Info>
|
||||
<Program_Specific_Category>Business</Program_Specific_Category>
|
||||
<Program_Category_Class>Business::Accounting & Finance</Program_Category_Class>
|
||||
<Program_System_Requirements>None</Program_System_Requirements>
|
||||
|
||||
@@ -23,20 +23,25 @@ sub script_dolibarr_longdesc
|
||||
return "Dolibarr ERP/CRM is a powerful Open Source software to manage a professional or foundation activity (small and medium enterprises, freelancers).";
|
||||
}
|
||||
|
||||
sub script_dolibarr_author
|
||||
{
|
||||
return "Regis Houssin";
|
||||
}
|
||||
|
||||
# script_dolibarr_versions()
|
||||
sub script_dolibarr_versions
|
||||
{
|
||||
return ( "2.7.0", "2.7.1", "2.8.0" );
|
||||
return ( "2.8.0", "2.7.1" );
|
||||
}
|
||||
|
||||
sub script_dolibarr_category
|
||||
{
|
||||
return "ERP/CRM";
|
||||
return "Commerce";
|
||||
}
|
||||
|
||||
sub script_dolibarr_php_vers
|
||||
{
|
||||
return ( 4, 5 );
|
||||
return ( 5 );
|
||||
}
|
||||
|
||||
sub script_dolibarr_php_vars
|
||||
@@ -179,10 +184,10 @@ local $olddocdir = &transname();
|
||||
local $url;
|
||||
$path = &script_path_url($d, $opts);
|
||||
if ($path =~ /^https:/) {
|
||||
$url = "https://www.$d->{'dom'}";
|
||||
$url = "https://$d->{'dom'}";
|
||||
}
|
||||
else {
|
||||
$url = "http://www.$d->{'dom'}";
|
||||
$url = "http://$d->{'dom'}";
|
||||
}
|
||||
if ($opts->{'path'} =~ /\w/) {
|
||||
$url .= $opts->{'path'};
|
||||
@@ -206,26 +211,37 @@ if ($upgrade) {
|
||||
# Put back original config file and documents directory
|
||||
©_source_dest_as_domain_user($d, $oldcfile, $cfile);
|
||||
©_source_dest_as_domain_user($d, $olddocdir, $docdir);
|
||||
|
||||
|
||||
# First page (Update database schema)
|
||||
local @params = ( [ "action", "upgrade" ],
|
||||
[ "versionfrom", $ver ],
|
||||
[ "versionto", $upgrade->{'version'} ],
|
||||
[ "versionfrom", $upgrade->{'version'} ],
|
||||
[ "versionto", $ver ],
|
||||
);
|
||||
local $err = &call_dolibarr_wizard_page(\@params, "upgrade", $d, $opts);
|
||||
return (-1, "Dolibarr wizard failed : $err") if ($err);
|
||||
|
||||
|
||||
# Second page (Migrate some data)
|
||||
local @params = ( [ "action", "upgrade" ] );
|
||||
local @params = ( [ "action", "upgrade" ],
|
||||
[ "versionfrom", $upgrade->{'version'} ],
|
||||
[ "versionto", $ver ],
|
||||
);
|
||||
local $err = &call_dolibarr_wizard_page(\@params, "upgrade2", $d, $opts);
|
||||
return (-1, "Dolibarr wizard failed : $err") if ($err);
|
||||
|
||||
|
||||
# Third page (Update version number)
|
||||
local @params = ( [ "action", "upgrade" ],
|
||||
[ "versionfrom", $upgrade->{'version'} ],
|
||||
[ "versionto", $ver ],
|
||||
);
|
||||
local $err = &call_dolibarr_wizard_page(\@params, "etape5", $d, $opts);
|
||||
return (-1, "Dolibarr wizard failed : $err") if ($err);
|
||||
|
||||
# Remove the installation directory.
|
||||
local $dinstall = "$opts->{'dir'}/install";
|
||||
$dinstall =~ s/\/$//;
|
||||
$out = &run_as_domain_user($d, "rm -rf ".quotemeta($dinstall )."/* ");
|
||||
$out = &run_as_domain_user($d, "rmdir ".quotemeta($dinstall ));
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
# First page (Db connection and config file creation)
|
||||
@@ -241,12 +257,12 @@ else {
|
||||
);
|
||||
local $err = &call_dolibarr_wizard_page(\@params, "etape1", $d, $opts);
|
||||
return (-1, "Dolibarr wizard failed : $err") if ($err);
|
||||
|
||||
|
||||
# Second page (Populate database)
|
||||
local @params = ( [ "action", "set" ] );
|
||||
local $err = &call_dolibarr_wizard_page(\@params, "etape2", $d, $opts);
|
||||
return (-1, "Dolibarr wizard failed : $err") if ($err);
|
||||
|
||||
|
||||
# Third page (Add administrator account)
|
||||
local @params = ( [ "action", "set" ],
|
||||
[ "login", "admin" ],
|
||||
@@ -255,7 +271,7 @@ else {
|
||||
);
|
||||
local $err = &call_dolibarr_wizard_page(\@params, "etape5", $d, $opts);
|
||||
return (-1, "Dolibarr wizard failed : $err") if ($err);
|
||||
|
||||
|
||||
# Remove the installation directory and protect config file.
|
||||
local $dinstall = "$opts->{'dir'}/install";
|
||||
$dinstall =~ s/\/$//;
|
||||
@@ -263,7 +279,7 @@ else {
|
||||
$out = &run_as_domain_user($d, "rmdir ".quotemeta($dinstall ));
|
||||
&set_ownership_permissions(undef, undef, 0644, $cfile);
|
||||
&set_ownership_permissions(undef, undef, 0755, $cfiledir);
|
||||
|
||||
|
||||
}
|
||||
|
||||
# Return a URL for the user
|
||||
@@ -320,8 +336,11 @@ return (1, "Dolibarr directory and tables deleted.");
|
||||
sub script_dolibarr_latest
|
||||
{
|
||||
local ($ver) = @_;
|
||||
return ( "http://www.dolibarr.fr/files/stable/",
|
||||
"dolibarr\-(2\.[0-9\.][0-9])" );
|
||||
if ($ver >= 2.8) {
|
||||
return ( "http://www.dolibarr.fr/files/stable/",
|
||||
"dolibarr\\-(2\\.[0-9\\.]+)" );
|
||||
}
|
||||
return ( );
|
||||
}
|
||||
|
||||
sub script_dolibarr_site
|
||||
|
||||
@@ -25,6 +25,7 @@ document
|
||||
documents
|
||||
htdocs/conf/conf.php
|
||||
htdocs/conf/conf.php.mysql
|
||||
htdocs/conf/conf.php.old
|
||||
htdocs/conf/conf.php.postgres
|
||||
htdocs/avoir
|
||||
htdocs/document
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/documents/*
|
||||
*/htdocs/conf/conf.php
|
||||
*/htdocs/conf/conf.php.mysql
|
||||
*/htdocs/conf/conf.php.old
|
||||
*/htdocs/conf/conf.php.postgres
|
||||
*/htdocs/avoir/*
|
||||
*/htdocs/document/*
|
||||
|
||||
@@ -35,10 +35,10 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
// Recupere root dolibarr
|
||||
$path=preg_replace('/generate-commande.php/i','',$_SERVER["PHP_SELF"]);
|
||||
require ($path."../htdocs/master.inc.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/societe.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contact.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/societe/societe.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contact/contact.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||
|
||||
@@ -160,7 +160,7 @@ for ($s = 0 ; $s < GEN_NUMBER_COMMANDE ; $s++)
|
||||
$com->date_commande = $dates[rand(1, sizeof($dates)-1)];
|
||||
$com->note = $_POST["note"];
|
||||
$com->source = 1;
|
||||
$com->projetid = 0;
|
||||
$com->fk_project = 0;
|
||||
$com->remise_percent = 0;
|
||||
|
||||
$nbp = rand(2, 5);
|
||||
|
||||
@@ -34,8 +34,8 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
// Recupere root dolibarr
|
||||
$path=preg_replace('/generate-facture.php/i','',$_SERVER["PHP_SELF"]);
|
||||
require ($path."../htdocs/master.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/societe.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/societe/societe.class.php");
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -35,10 +35,10 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
// Recupere root dolibarr
|
||||
$path=preg_replace('/generate-produit.php/i','',$_SERVER["PHP_SELF"]);
|
||||
require ($path."../htdocs/master.inc.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/societe.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contact.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/societe/societe.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contact/contact.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||
|
||||
|
||||
@@ -35,10 +35,10 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
// Recupere root dolibarr
|
||||
$path=preg_replace('/generate-propale.php/i','',$_SERVER["PHP_SELF"]);
|
||||
require ($path."../htdocs/master.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/comm/propal/propal.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/societe.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/societe/societe.class.php");
|
||||
|
||||
/*
|
||||
* Parameters
|
||||
|
||||
@@ -35,10 +35,10 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
// Recupere root dolibarr
|
||||
$path=preg_replace('/generate-societe.php/i','',$_SERVER["PHP_SELF"]);
|
||||
require ($path."../htdocs/master.inc.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/societe.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contact.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/societe/societe.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contact/contact.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
|
||||
$sapi_type = php_sapi_name();
|
||||
$script_file = basename(__FILE__);
|
||||
$path=str_replace($script_file,'',$_SERVER["PHP_SELF"]);
|
||||
$path=preg_replace('@[\\\/]+$@','',$path).'/';
|
||||
$path=dirname(__FILE__).'/';
|
||||
|
||||
// Test if batch mode
|
||||
if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
|
||||
$sapi_type = php_sapi_name();
|
||||
$script_file = basename(__FILE__);
|
||||
$path=str_replace($script_file,'',$_SERVER["PHP_SELF"]);
|
||||
$path=preg_replace('@[\\\/]+$@','',$path).'/';
|
||||
$path=dirname(__FILE__).'/';
|
||||
|
||||
// Test if batch mode
|
||||
if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
@@ -68,7 +67,7 @@ print 'Argument 2='.$argv[2]."\n";
|
||||
// Start of transaction
|
||||
$db->begin();
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
||||
|
||||
// Create instance of object
|
||||
$myproduct=new Product($db);
|
||||
|
||||
@@ -25,12 +25,11 @@
|
||||
|
||||
$sapi_type = php_sapi_name();
|
||||
$script_file = basename(__FILE__);
|
||||
$path=str_replace($script_file,'',$_SERVER["PHP_SELF"]);
|
||||
$path=preg_replace('@[\\\/]+$@','',$path).'/';
|
||||
$path=dirname(__FILE__).'/';
|
||||
|
||||
// Test if batch mode
|
||||
if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
echo "Error: You ar usingr PH for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";
|
||||
echo "Error: You are using PHP for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -123,8 +122,8 @@ else
|
||||
// Define working variables
|
||||
$table=strtolower($table);
|
||||
$tablenollx=preg_replace('/llx_/i','',$table);
|
||||
$class=ucfirst($tablenollx);
|
||||
$classmin=strtolower($class);
|
||||
$classname=ucfirst($tablenollx);
|
||||
$classmin=strtolower($classname);
|
||||
|
||||
|
||||
// Read skeleton_class.class.php file
|
||||
@@ -146,7 +145,7 @@ $targetcontent=$sourcecontent;
|
||||
$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent);
|
||||
$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
|
||||
$targetcontent=preg_replace('/\$table_element=\'skeleton\'/', '\$table_element=\''.$classmin.'\'', $targetcontent);
|
||||
$targetcontent=preg_replace('/Skeleton_class/', $class, $targetcontent);
|
||||
$targetcontent=preg_replace('/Skeleton_class/', $classname, $targetcontent);
|
||||
|
||||
// Substitute comments
|
||||
$targetcontent=preg_replace('/This file is an example to create a new class file/', 'Put here description of this class', $targetcontent);
|
||||
@@ -377,7 +376,7 @@ $targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.ph
|
||||
$targetcontent=preg_replace('/skeleton_script\.php/', $classmin.'_script.php', $targetcontent);
|
||||
$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
|
||||
$targetcontent=preg_replace('/\$table_element=\'skeleton\'/', '\$table_element=\''.$classmin.'\'', $targetcontent);
|
||||
$targetcontent=preg_replace('/Skeleton_class/', $class, $targetcontent);
|
||||
$targetcontent=preg_replace('/Skeleton_class/', $classname, $targetcontent);
|
||||
|
||||
// Substitute comments
|
||||
$targetcontent=preg_replace('/This file is an example to create a new class file/', 'Put here description of this class', $targetcontent);
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
|
||||
$sapi_type = php_sapi_name();
|
||||
$script_file = basename(__FILE__);
|
||||
$path=str_replace($script_file,'',$_SERVER["PHP_SELF"]);
|
||||
$path=preg_replace('@[\\\/]+$@','',$path).'/';
|
||||
$path=dirname(__FILE__).'/';
|
||||
|
||||
// Test if batch mode
|
||||
if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -17,7 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/** \defgroup mymodule Module MyModule
|
||||
/**
|
||||
* \defgroup mymodule Module MyModule
|
||||
* \brief Example of a module descriptor.
|
||||
* Such a file must be copied into htdocs/includes/module directory.
|
||||
*/
|
||||
@@ -31,7 +33,8 @@
|
||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||
|
||||
|
||||
/** \class modMyModule
|
||||
/**
|
||||
* \class modMyModule
|
||||
* \brief Description and activation class for module MyModule
|
||||
*/
|
||||
class modMyModule extends DolibarrModules
|
||||
@@ -65,15 +68,18 @@ class modMyModule extends DolibarrModules
|
||||
$this->special = 0;
|
||||
// Name of image file used for this module.
|
||||
// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
|
||||
// If file is in module/images directory, use this->picto=DOL_URL_ROOT.'/module/images/file.png'
|
||||
// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
|
||||
$this->picto='generic';
|
||||
|
||||
// Defined if the directory /mymodule/inc/triggers/ contains triggers or not
|
||||
$this->triggers = 0;
|
||||
|
||||
// Data directories to create when module is enabled.
|
||||
// Example: this->dirs = array("/mymodule/temp");
|
||||
$this->dirs = array();
|
||||
$r=0;
|
||||
|
||||
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
||||
// Relative path to module style sheet if exists. Example: '/mymodule/css/mycss.css'.
|
||||
$this->style_sheet = '';
|
||||
|
||||
// Config pages. Put here list of php page names stored in admmin directory used to setup module.
|
||||
@@ -87,9 +93,9 @@ class modMyModule extends DolibarrModules
|
||||
$this->langfiles = array("mymodule");
|
||||
|
||||
// Constants
|
||||
$this->const = array(); // List of particular constants to add when module is enabled
|
||||
//Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',0),
|
||||
// 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0) );
|
||||
// Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',0),
|
||||
// 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0) );
|
||||
$this->const = array(); // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 0 or 'allentities')
|
||||
|
||||
// Array to add new pages in new tabs
|
||||
$this->tabs = array('entity:Title:@mymodule:/mymodule/mynewtab.php?id=__ID__');
|
||||
@@ -142,7 +148,7 @@ class modMyModule extends DolibarrModules
|
||||
// 'type'=>'top', // This is a Top menu entry
|
||||
// 'titre'=>'MyModule top menu',
|
||||
// 'mainmenu'=>'mymodule',
|
||||
// 'leftmenu'=>'1', // Use 1 if you also want to add left menu entries using this descriptor. Use 0 if left menu entries are defined in a file pre.inc.php (old school).
|
||||
// 'leftmenu'=>'1', // Use 1 if you also want to add left menu entries using this descriptor.
|
||||
// 'url'=>'/mymodule/pagetop.php',
|
||||
// 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||
// 'position'=>100,
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/dev/skeletons/pre.inc.php
|
||||
* \brief File to manage left menu by default
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
// Include environment and check authentification
|
||||
require ("../../main.inc.php"); // This include must use a relative link to the main.inc.php file
|
||||
|
||||
|
||||
/**
|
||||
* \brief Function called by page to show menus (top and left)
|
||||
* \param head Text to show as head line
|
||||
* \param title Not used
|
||||
* \param helppagename Name of a help page ('' by default).
|
||||
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
|
||||
* For other external page: http://server/url
|
||||
*/
|
||||
function llxHeader($head = '', $title='', $help_url='')
|
||||
{
|
||||
global $user, $conf, $langs;
|
||||
|
||||
top_menu($head, $title);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
// Create default menu.
|
||||
|
||||
// No code here is required if you already added menu entries in
|
||||
// the module descriptor (recommanded).
|
||||
// If not you must manually add menu entries here (not recommanded).
|
||||
/*
|
||||
$langs->load("mylangfile");
|
||||
$menu->add(DOL_URL_ROOT."/mylink.php", $langs->trans("MyMenuLabel"));
|
||||
}
|
||||
*/
|
||||
|
||||
left_menu($menu->liste, $help_url);
|
||||
}
|
||||
?>
|
||||
@@ -27,9 +27,9 @@
|
||||
*/
|
||||
|
||||
// Put here all includes required by your class file
|
||||
//require_once(DOL_DOCUMENT_ROOT."/commonobject.class.php");
|
||||
//require_once(DOL_DOCUMENT_ROOT."/societe.class.php");
|
||||
//require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||
//require_once(DOL_DOCUMENT_ROOT."/core/commonobject.class.php");
|
||||
//require_once(DOL_DOCUMENT_ROOT."/societe/societe.class.php");
|
||||
//require_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
||||
|
||||
|
||||
/**
|
||||
@@ -108,7 +108,7 @@ class Skeleton_class // extends CommonObject
|
||||
// want this action call a trigger.
|
||||
|
||||
//// Call triggers
|
||||
//include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
//include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
//$interface=new Interfaces($this->db);
|
||||
//$result=$interface->run_triggers('MYOBJECT_CREATE',$this,$user,$langs,$conf);
|
||||
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -217,7 +217,7 @@ class Skeleton_class // extends CommonObject
|
||||
// want this action call a trigger.
|
||||
|
||||
//// Call triggers
|
||||
//include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
//include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
//$interface=new Interfaces($this->db);
|
||||
//$result=$interface->run_triggers('MYOBJECT_MODIFY',$this,$user,$langs,$conf);
|
||||
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -272,7 +272,7 @@ class Skeleton_class // extends CommonObject
|
||||
// want this action call a trigger.
|
||||
|
||||
//// Call triggers
|
||||
//include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
//include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
//$interface=new Interfaces($this->db);
|
||||
//$result=$interface->run_triggers('MYOBJECT_DELETE',$this,$user,$langs,$conf);
|
||||
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2007-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) ---Put here your own copyright and developer email---
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -25,8 +25,22 @@
|
||||
* \author Put author name here
|
||||
* \remarks Put here some comments
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/../dev/skeletons/skeleton_class.class.php");
|
||||
|
||||
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1');
|
||||
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1');
|
||||
//if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
//if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK','1');
|
||||
//if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1');
|
||||
//if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
//if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
//if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
//if (! defined("NOLOGIN")) define("NOLOGIN",'1');
|
||||
|
||||
// Change this following line to use the correct relative path (../, ../../, etc)
|
||||
require("../main.inc.php");
|
||||
// Change this following line to use the correct relative path from htdocs (do not remove DOL_DOCUMENT_ROOT)
|
||||
require_once(DOL_DOCUMENT_ROOT."/skeleton/skeleton_class.class.php");
|
||||
|
||||
// Load traductions files requiredby by page
|
||||
$langs->load("companies");
|
||||
@@ -84,6 +98,21 @@ $form=new Form($db);
|
||||
// ...
|
||||
|
||||
|
||||
/***************************************************
|
||||
* LINKED OBJECT BLOCK
|
||||
*
|
||||
* Put here code to view linked object
|
||||
****************************************************/
|
||||
$myobject->load_object_linked($myobject->id,$myobject->element);
|
||||
|
||||
foreach($myobject->linked_object as $object => $objectid)
|
||||
{
|
||||
if($conf->$object->enabled)
|
||||
{
|
||||
$somethingshown=$myobject->showLinkedObjectBlock($object,$objectid,$somethingshown);
|
||||
}
|
||||
}
|
||||
|
||||
// End of page
|
||||
$db->close();
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
|
||||
$sapi_type = php_sapi_name();
|
||||
$script_file = basename(__FILE__);
|
||||
$path=str_replace($script_file,'',$_SERVER["PHP_SELF"]);
|
||||
$path=preg_replace('@[\\\/]+$@','',$path).'/';
|
||||
$path=dirname(__FILE__).'/';
|
||||
|
||||
// Test if batch mode
|
||||
if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
|
||||
$sapi_type = php_sapi_name();
|
||||
$script_file = basename(__FILE__);
|
||||
$path=str_replace($script_file,'',$_SERVER["PHP_SELF"]);
|
||||
$path=preg_replace('@[\\\/]+$@','',$path).'/';
|
||||
$path=dirname(__FILE__).'/';
|
||||
|
||||
// Test if batch mode
|
||||
if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
|
||||
@@ -14,10 +14,12 @@
|
||||
class langAutoParser {
|
||||
|
||||
private $translatedFiles = array();
|
||||
private $destLang = string;
|
||||
private $refLang = string;
|
||||
private $langDir = string;
|
||||
private $limittofile = string;
|
||||
private $destLang = '';
|
||||
private $refLang = '';
|
||||
private $langDir = '';
|
||||
private $limittofile = '';
|
||||
private $time;
|
||||
private $time_end;
|
||||
private $outputpagecode = 'UTF-8';
|
||||
//private $outputpagecode = 'ISO-8859-1';
|
||||
const DIR_SEPARATOR = '/';
|
||||
@@ -46,42 +48,77 @@ class langAutoParser {
|
||||
if ($this->limittofile && $this->limittofile != $file) continue;
|
||||
$counter++;
|
||||
$fileContent = null;
|
||||
$this->translatedFiles = array();
|
||||
$refPath = $this->langDir.$this->refLang.self::DIR_SEPARATOR.$file;
|
||||
$destPath = $this->langDir.$this->destLang.self::DIR_SEPARATOR.$file;
|
||||
$fileContent = file($refPath,FILE_IGNORE_NEW_LINES |
|
||||
FILE_SKIP_EMPTY_LINES);
|
||||
print "Processing file " . $file . ", found ".sizeof($fileContent)." records<br>\n";
|
||||
// Check destination file presence
|
||||
if ( ! file_exists( $destPath ) ){
|
||||
// No file presente generate file
|
||||
echo "File not found: " . $file . "<br>\n";
|
||||
echo "Generating file " . $file . "<br>\n";
|
||||
$this->createTranslationFile($destPath);
|
||||
}
|
||||
// Translate lines
|
||||
$fileContentDest = file($destPath,FILE_IGNORE_NEW_LINES |
|
||||
FILE_SKIP_EMPTY_LINES);
|
||||
$newlines=0;
|
||||
foreach($fileContent as $line){
|
||||
$key = $this->getLineKey($line);
|
||||
$value = $this->getLineValue($line);
|
||||
if ($key && $value)
|
||||
$fileContent = file($refPath,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
|
||||
print "Processing file " . $file . ", with ".sizeof($fileContent)." lines<br>\n";
|
||||
|
||||
// Define target dirs
|
||||
$targetlangs=array($this->destLang);
|
||||
if ($this->destLang == 'all')
|
||||
{
|
||||
$targetlangs=array();
|
||||
|
||||
// If we must process all languages
|
||||
$arraytmp=dol_dir_list($this->langDir,'directories',0);
|
||||
foreach($arraytmp as $dirtmp)
|
||||
{
|
||||
$newlines+=$this->translateFileLine($fileContentDest,$file,$key,$value);
|
||||
if ($dirtmp['name'] === $this->refLang) continue; // We discard source language
|
||||
$tmppart=explode('_',$dirtmp['name']);
|
||||
if (preg_match('/^en/i',$dirtmp['name'])) continue; // We discard en_* languages
|
||||
if (preg_match('/^fr/i',$dirtmp['name'])) continue; // We discard fr_* languages
|
||||
if (preg_match('/^es/i',$dirtmp['name'])) continue; // We discard es_* languages
|
||||
if (preg_match('/ca_ES/i',$dirtmp['name'])) continue; // We discard es_CA language
|
||||
if (preg_match('/pt_BR/i',$dirtmp['name'])) continue; // We discard pt_BR language
|
||||
if (preg_match('/^\./i',$dirtmp['name'])) continue; // We discard files .*
|
||||
if (preg_match('/^CVS/i',$dirtmp['name'])) continue; // We discard CVS
|
||||
$targetlangs[]=$dirtmp['name'];
|
||||
}
|
||||
//var_dump($targetlangs);
|
||||
}
|
||||
|
||||
$this->updateTranslationFile($destPath,$file);
|
||||
echo "New translated lines: " . $newlines . "<br>\n";
|
||||
#if ($counter ==3) die('fim');
|
||||
// Process translation of source file for each target languages
|
||||
foreach($targetlangs as $mydestLang)
|
||||
{
|
||||
$this->translatedFiles = array();
|
||||
|
||||
$destPath = $this->langDir.$mydestLang.self::DIR_SEPARATOR.$file;
|
||||
// Check destination file presence
|
||||
if ( ! file_exists( $destPath ) ){
|
||||
// No file present, we generate file
|
||||
echo "File not found: " . $destPath . ". We generate it.<br>\n";
|
||||
$this->createTranslationFile($destPath,$mydestLang);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Updating file: " . $destPath . "<br>\n";
|
||||
}
|
||||
|
||||
// Translate lines
|
||||
$fileContentDest = file($destPath,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
|
||||
$newlines=0;
|
||||
foreach($fileContent as $line){
|
||||
$key = $this->getLineKey($line);
|
||||
$value = $this->getLineValue($line);
|
||||
if ($key && $value)
|
||||
{
|
||||
$newlines+=$this->translateFileLine($fileContentDest,$file,$key,$value,$mydestLang);
|
||||
}
|
||||
}
|
||||
|
||||
$this->updateTranslationFile($destPath,$file);
|
||||
echo "New translated lines: " . $newlines . "<br>\n";
|
||||
#if ($counter ==3) die('fim');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function updateTranslationFile($destPath,$file){
|
||||
private function updateTranslationFile($destPath,$file)
|
||||
{
|
||||
$this->time_end = date('Y-m-d H:i:s');
|
||||
|
||||
if (count($this->translatedFiles[$file])>0){
|
||||
if (count($this->translatedFiles[$file])>0)
|
||||
{
|
||||
$fp = fopen($destPath, 'a');
|
||||
fwrite($fp, "\r\n");
|
||||
fwrite($fp, "\r\n");
|
||||
@@ -90,16 +127,16 @@ FILE_SKIP_EMPTY_LINES);
|
||||
foreach( $this->translatedFiles[$file] as $line) {
|
||||
fwrite($fp, $line . "\r\n");
|
||||
}
|
||||
fwrite($fp, "// STOP - Lines generated via autotranslator.php tool (".$this->time.").\r\n");
|
||||
fwrite($fp, "// STOP - Lines generated via autotranslator.php tool (".$this->time_end.").\r\n");
|
||||
fclose($fp);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
private function createTranslationFile($path){
|
||||
private function createTranslationFile($path,$mydestlang){
|
||||
$fp = fopen($path, 'w+');
|
||||
fwrite($fp, "/*\r\n");
|
||||
fwrite($fp, " * Language code: {$this->destLang}\r\n");
|
||||
fwrite($fp, " * Language code: {$mydestlang}\r\n");
|
||||
fwrite($fp, " * Automatic generated via autotranslator.php tool\r\n");
|
||||
fwrite($fp, " * Generation date " . $this->time. "\r\n");
|
||||
fwrite($fp, " */\r\n");
|
||||
@@ -108,15 +145,17 @@ FILE_SKIP_EMPTY_LINES);
|
||||
}
|
||||
|
||||
/**
|
||||
* Put in array translation of a key
|
||||
* Put in array translatedFiles[$file], line of a new tranlated pair
|
||||
*
|
||||
* @param unknown_type $content Existing content of dest file
|
||||
* @param unknown_type $file File name translated (xxxx.lang)
|
||||
* @param unknown_type $key Key to translate
|
||||
* @param unknown_type $value Existing key in source file
|
||||
* @return int 0=Nothing translated, 1=Record translated
|
||||
* @param $content Existing content of dest file
|
||||
* @param $file Target file name translated (xxxx.lang)
|
||||
* @param $key Key to translate
|
||||
* @param $value Existing value in source file
|
||||
* @param string Language code (ie: fr_FR)
|
||||
* @return int 0=Nothing translated, 1=Record translated
|
||||
*/
|
||||
private function translateFileLine($content,$file,$key,$value){
|
||||
private function translateFileLine($content,$file,$key,$value,$mydestLang)
|
||||
{
|
||||
|
||||
//print "key =".$key."\n";
|
||||
foreach( $content as $line ) {
|
||||
@@ -125,16 +164,24 @@ FILE_SKIP_EMPTY_LINES);
|
||||
// If translated return
|
||||
//print "destKey=".$destKey."\n";
|
||||
if ( trim($destKey) == trim($key) )
|
||||
{ // Found already existing translation
|
||||
return 0;
|
||||
{ // Found already existing translation (key already exits in dest file)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// If not translated then translate
|
||||
if ($this->outputpagecode == 'UTF-8') $val=$this->translateTexts(array($value),substr($this->refLang,0,2),substr($this->destLang,0,2));
|
||||
else $val=utf8_decode($this->translateTexts(array($value),substr($this->refLang,0,2),substr($this->destLang,0,2)));
|
||||
|
||||
if ($key == 'CHARSET') $val=$this->outputpagecode;
|
||||
else if (preg_match('/^Format/',$key)) $val=$value;
|
||||
else if ($value=='-') $val=$value;
|
||||
else
|
||||
{
|
||||
// If not translated then translate
|
||||
if ($this->outputpagecode == 'UTF-8') $val=$this->translateTexts(array($value),substr($this->refLang,0,2),substr($mydestLang,0,2));
|
||||
else $val=utf8_decode($this->translateTexts(array($value),substr($this->refLang,0,2),substr($mydestLang,0,2)));
|
||||
}
|
||||
|
||||
$val=trim($val);
|
||||
|
||||
if (empty($val)) return 0;
|
||||
|
||||
$this->translatedFiles[$file][] = $key . '=' . $val ;
|
||||
return 1;
|
||||
@@ -162,8 +209,15 @@ FILE_SKIP_EMPTY_LINES);
|
||||
return $files;
|
||||
}
|
||||
|
||||
private function translateTexts($src_texts = array(), $src_lang,
|
||||
$dest_lang){
|
||||
/**
|
||||
* Return translation of a value
|
||||
*
|
||||
* @param $src_texts Array with one value
|
||||
* @param $src_lang
|
||||
* @param $dest_lang
|
||||
* @return string Value translated
|
||||
*/
|
||||
private function translateTexts($src_texts = array(), $src_lang, $dest_lang){
|
||||
|
||||
$tmp=explode('_',$src_lang);
|
||||
if ($tmp[0] == $tmp[1]) $src_lang=$tmp[0];
|
||||
@@ -175,9 +229,9 @@ $dest_lang){
|
||||
$lang_pair = $src_lang.'|'.$dest_lang;
|
||||
|
||||
$src_texts_query = "";
|
||||
foreach ($src_texts as $src_text){
|
||||
$src_texts_query .= "&q=".urlencode($src_text);
|
||||
}
|
||||
$src_text_to_translate=preg_replace('/%s/','SSSSS',join('',$src_texts));
|
||||
|
||||
$src_texts_query .= "&q=".urlencode($src_text_to_translate);
|
||||
|
||||
$url =
|
||||
"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0".$src_texts_query."&langpair=".urlencode($lang_pair);
|
||||
@@ -185,6 +239,8 @@ $dest_lang){
|
||||
// sendRequest
|
||||
// note how referer is set manually
|
||||
|
||||
//print "Url to translate: ".$url."\n";
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
@@ -196,24 +252,16 @@ $dest_lang){
|
||||
$json = json_decode($body, true);
|
||||
|
||||
if ($json['responseStatus'] != 200){
|
||||
print "Error: ".$json['responseStatus']." ".$url."\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
$results = $json['responseData'];
|
||||
$rep=$json['responseData']['translatedText'];
|
||||
$rep=preg_replace('/SSSSS/','%s',$rep);
|
||||
|
||||
$return_array = array();
|
||||
//print "OK ".join('',$src_texts).' => '.$rep."\n";
|
||||
|
||||
foreach ($results as $result){
|
||||
if ($result['responseStatus'] == 200){
|
||||
$return_array[] = $result['responseData']['translatedText'];
|
||||
} else {
|
||||
$return_array[] = false;
|
||||
}
|
||||
}
|
||||
|
||||
//return translated text
|
||||
#return $return_array;
|
||||
return $json['responseData']['translatedText'];
|
||||
return $rep;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
BIN
doc/images/dolibarr2.gif
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.6 MiB |
10
doc/tshirts/README
Normal file
@@ -0,0 +1,10 @@
|
||||
README (english)
|
||||
--------------------------------
|
||||
Rollups
|
||||
--------------------------------
|
||||
|
||||
This directory contains source for the Inkscape vector
|
||||
graphic editor (www.inkscape.org) to create tshirts.
|
||||
|
||||
Note: You may need to install some font to read correctly files
|
||||
into this directory. For this, see directory doc/font.
|
||||
281
doc/tshirts/dolibarr_tshirts.svg
Normal file
@@ -0,0 +1,281 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="1052.3622"
|
||||
height="744.09448"
|
||||
id="svg2953"
|
||||
version="1.1"
|
||||
inkscape:version="0.47 r22583"
|
||||
sodipodi:docname="dolibarr_tshirts.svg">
|
||||
<defs
|
||||
id="defs3">
|
||||
<inkscape:perspective
|
||||
sodipodi:type="inkscape:persp3d"
|
||||
inkscape:vp_x="0 : 526.18109 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_z="744.09448 : 526.18109 : 1"
|
||||
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
|
||||
id="perspective2959" />
|
||||
<inkscape:perspective
|
||||
id="perspective2961"
|
||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
||||
inkscape:vp_z="1 : 0.5 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_x="0 : 0.5 : 1"
|
||||
sodipodi:type="inkscape:persp3d" />
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.59172,0,0,0.59172016,-241.72147,287.8142)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient5510"
|
||||
xlink:href="#linearGradient3734"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3734">
|
||||
<stop
|
||||
id="stop3736"
|
||||
offset="0"
|
||||
style="stop-color:#0b5b85;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop3738"
|
||||
offset="1"
|
||||
style="stop-color:#4fbedf;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(1.3443321,0,0,1.3443323,-84.203155,-604.54637)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient2969"
|
||||
xlink:href="#linearGradient3734"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient2971">
|
||||
<stop
|
||||
id="stop2973"
|
||||
offset="0"
|
||||
style="stop-color:#0b5b85;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop2975"
|
||||
offset="1"
|
||||
style="stop-color:#4fbedf;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<inkscape:perspective
|
||||
id="perspective3788"
|
||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
||||
inkscape:vp_z="1 : 0.5 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_x="0 : 0.5 : 1"
|
||||
sodipodi:type="inkscape:persp3d" />
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.59172,0,0,0.59172016,-238.06681,287.8142)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient5510-7"
|
||||
xlink:href="#linearGradient3734-4"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3734-4">
|
||||
<stop
|
||||
id="stop3736-0"
|
||||
offset="0"
|
||||
style="stop-color:#0b5b85;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop3738-9"
|
||||
offset="1"
|
||||
style="stop-color:#4fbedf;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.59172,0,0,0.59172016,-238.06681,287.8142)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3796"
|
||||
xlink:href="#linearGradient3734-4"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3798">
|
||||
<stop
|
||||
id="stop3800"
|
||||
offset="0"
|
||||
style="stop-color:#0b5b85;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop3802"
|
||||
offset="1"
|
||||
style="stop-color:#4fbedf;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.64317245,0,0,0.64317264,-265.7108,-221.05337)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3808"
|
||||
xlink:href="#linearGradient3734-4"
|
||||
inkscape:collect="always" />
|
||||
<inkscape:perspective
|
||||
id="perspective3851"
|
||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
||||
inkscape:vp_z="1 : 0.5 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_x="0 : 0.5 : 1"
|
||||
sodipodi:type="inkscape:persp3d" />
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.59172,0,0,0.59172016,-239.06564,-128.74015)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3808-4"
|
||||
xlink:href="#linearGradient3734-4-5"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3734-4-5">
|
||||
<stop
|
||||
id="stop3736-0-5"
|
||||
offset="0"
|
||||
style="stop-color:#0b5b85;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop3738-9-1"
|
||||
offset="1"
|
||||
style="stop-color:#4fbedf;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.59172,0,0,0.59172016,-239.06564,-128.74015)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3859"
|
||||
xlink:href="#linearGradient3734-4-5"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3861">
|
||||
<stop
|
||||
id="stop3863"
|
||||
offset="0"
|
||||
style="stop-color:#0b5b85;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop3865"
|
||||
offset="1"
|
||||
style="stop-color:#4fbedf;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="1317.5959"
|
||||
x2="1221.0221"
|
||||
y1="1026.5248"
|
||||
x1="1223.7272"
|
||||
gradientTransform="matrix(0.64576725,0,0,0.64576741,-264.21722,120.26204)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3871"
|
||||
xlink:href="#linearGradient3734-4-5"
|
||||
inkscape:collect="always" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
inkscape:document-units="mm"
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.69799173"
|
||||
inkscape:cx="509.47445"
|
||||
inkscape:cy="420.2311"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="968"
|
||||
inkscape:window-x="-4"
|
||||
inkscape:window-y="-4"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata4">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-308.2677)">
|
||||
<text
|
||||
transform="scale(1.0067426,0.99330258)"
|
||||
id="text2828-4"
|
||||
y="621.56976"
|
||||
x="60.991871"
|
||||
style="font-size:423.95123291px;font-style:normal;font-weight:normal;fill:url(#linearGradient3808);fill-opacity:1;fill-rule:nonzero;stroke:#010101;stroke-width:2.17207408;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:0.45798322;stroke-dasharray:none;font-family:Bitstream Vera Sans"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-size:247.90473938px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:url(#linearGradient3808);fill-opacity:1;fill-rule:nonzero;stroke:#010101;stroke-width:2.17207408;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:0.45798322;stroke-dasharray:none;font-family:Bauhaus 93;-inkscape-font-specification:Bauhaus 93"
|
||||
y="621.56976"
|
||||
x="60.991871"
|
||||
id="tspan2830-8"
|
||||
sodipodi:role="line">Dolibarr</tspan></text>
|
||||
<text
|
||||
transform="scale(0.92379094,1.082496)"
|
||||
id="text5484-8"
|
||||
y="438.42856"
|
||||
x="875.20703"
|
||||
style="font-size:40.16991425px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
|
||||
xml:space="preserve"><tspan
|
||||
y="438.42856"
|
||||
x="875.20703"
|
||||
id="tspan5486-2"
|
||||
sodipodi:role="line"
|
||||
style="fill:#000000;fill-opacity:1;font-family:Arial;-inkscape-font-specification:Arial">ERP/CRM</tspan></text>
|
||||
<text
|
||||
transform="scale(1.0026876,0.99731961)"
|
||||
id="text2828-4-7"
|
||||
y="966.28461"
|
||||
x="63.803482"
|
||||
style="font-size:425.66162109px;font-style:normal;font-weight:normal;fill:url(#linearGradient3871);fill-opacity:1;fill-rule:nonzero;stroke:#010101;stroke-width:2.18083692;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:0.45798322;stroke-dasharray:none;font-family:Bitstream Vera Sans"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-size:248.90486145px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:url(#linearGradient3871);fill-opacity:1;fill-rule:nonzero;stroke:#010101;stroke-width:2.18083692;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:0.45798322;stroke-dasharray:none;font-family:Bauhaus 93;-inkscape-font-specification:Bauhaus 93"
|
||||
y="966.28461"
|
||||
x="63.803482"
|
||||
id="tspan2830-8-1"
|
||||
sodipodi:role="line">Dolibarr</tspan></text>
|
||||
<text
|
||||
transform="scale(0.92379094,1.082496)"
|
||||
id="text5484-8-1"
|
||||
y="757.02539"
|
||||
x="877.98615"
|
||||
style="font-size:40.16991425px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
|
||||
xml:space="preserve"><tspan
|
||||
y="757.02539"
|
||||
x="877.98615"
|
||||
id="tspan5486-2-5"
|
||||
sodipodi:role="line"
|
||||
style="fill:#000000;fill-opacity:1;font-family:Arial;-inkscape-font-specification:Arial">ERP/CRM</tspan></text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
1
documents/.cvsignore
Normal file
@@ -0,0 +1 @@
|
||||
.htaccess
|
||||
@@ -4,3 +4,4 @@ google
|
||||
dolibarr_mail
|
||||
demo_pwc
|
||||
phpsane
|
||||
test.php
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
||||
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
@@ -22,11 +22,11 @@
|
||||
|
||||
/**
|
||||
* \file htdocs/about.php
|
||||
* \brief Fichier page a propos
|
||||
* \brief About Dolibarr File page
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("./main.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
@@ -67,7 +67,7 @@ print '<ul>';
|
||||
print '<li>';
|
||||
print '<a target="blank" href="http://www.dolibarr.org/">'.$langs->trans("OfficialWebSite").'</a>';
|
||||
print '</li>';
|
||||
// Si langue francaise, on affiche site web francophone
|
||||
// If the French language, it displays French website
|
||||
if (preg_match('/^fr_/i',$langs->getDefaultLang()))
|
||||
{
|
||||
print '<li>';
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/commonobject.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/commonobject.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
||||
|
||||
@@ -47,6 +47,7 @@ class Adherent extends CommonObject
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
var $civilite_id;
|
||||
var $prenom;
|
||||
var $nom;
|
||||
var $fullname;
|
||||
@@ -148,6 +149,7 @@ class Adherent extends CommonObject
|
||||
}
|
||||
|
||||
$infos='';
|
||||
if ($this->civilite_id) $infos.= $langs->trans("UserTitle").": ".$this->getCivilityLabel()."\n";
|
||||
$infos.= $langs->trans("Lastname").": $this->nom\n";
|
||||
$infos.= $langs->trans("Firstname").": $this->prenom\n";
|
||||
$infos.= $langs->trans("Company").": $this->societe\n";
|
||||
@@ -165,7 +167,8 @@ class Adherent extends CommonObject
|
||||
|
||||
// Substitutions
|
||||
$patterns = array (
|
||||
'/%PRENOM%/',
|
||||
'/%CIVILITE%/',
|
||||
'/%PRENOM%/',
|
||||
'/%NOM%/',
|
||||
'/%INFOS%/',
|
||||
'/%DOL_MAIN_URL_ROOT%/',
|
||||
@@ -181,6 +184,7 @@ class Adherent extends CommonObject
|
||||
'/%PASSWORD%/'
|
||||
);
|
||||
$replace = array (
|
||||
$this->getCivilityLabel(),
|
||||
$this->prenom,
|
||||
$this->nom,
|
||||
$infos,
|
||||
@@ -323,7 +327,7 @@ class Adherent extends CommonObject
|
||||
if (! $notrigger)
|
||||
{
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_CREATE',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -388,7 +392,8 @@ class Adherent extends CommonObject
|
||||
$this->db->begin();
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."adherent SET";
|
||||
$sql.= " prenom = ".($this->prenom?"'".addslashes($this->prenom)."'":"null");
|
||||
$sql.= " civilite = ".($this->civilite_id?"'".$this->civilite_id."'":"null");
|
||||
$sql.= ", prenom = ".($this->prenom?"'".addslashes($this->prenom)."'":"null");
|
||||
$sql.= ", nom=" .($this->nom?"'".addslashes($this->nom)."'":"null");
|
||||
$sql.= ", login=" .($this->login?"'".addslashes($this->login)."'":"null");
|
||||
$sql.= ", societe=" .($this->societe?"'".addslashes($this->societe)."'":"null");
|
||||
@@ -492,7 +497,7 @@ class Adherent extends CommonObject
|
||||
{
|
||||
if ($this->user_id > 0 && ! $nosyncuser)
|
||||
{
|
||||
require_once(DOL_DOCUMENT_ROOT."/user.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/user/user.class.php");
|
||||
|
||||
dol_syslog("Adherent::update update linked user");
|
||||
|
||||
@@ -504,6 +509,7 @@ class Adherent extends CommonObject
|
||||
|
||||
if ($result >= 0)
|
||||
{
|
||||
$luser->civilite_id=$this->civilite_id;
|
||||
$luser->prenom=$this->prenom;
|
||||
$luser->nom=$this->nom;
|
||||
$luser->login=$this->user_login;
|
||||
@@ -540,7 +546,7 @@ class Adherent extends CommonObject
|
||||
$this->use_webcal=($conf->global->PHPWEBCALENDAR_MEMBERSTATUS=='always'?1:0);
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_MODIFY',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -664,7 +670,7 @@ class Adherent extends CommonObject
|
||||
$this->use_webcal=($conf->global->PHPWEBCALENDAR_MEMBERSTATUS=='always'?1:0);
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_DELETE',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -761,7 +767,7 @@ class Adherent extends CommonObject
|
||||
|
||||
if ($this->user_id && ! $nosyncuser)
|
||||
{
|
||||
require_once(DOL_DOCUMENT_ROOT."/user.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/user/user.class.php");
|
||||
|
||||
// This member is linked with a user, so we also update users informations
|
||||
// if this is an update.
|
||||
@@ -789,7 +795,7 @@ class Adherent extends CommonObject
|
||||
if (! $error && ! $notrigger)
|
||||
{
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_NEW_PASSWORD',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -926,7 +932,7 @@ class Adherent extends CommonObject
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, d.fk_soc, d.statut, d.public, d.adresse, d.cp, d.ville, d.note,";
|
||||
$sql = "SELECT d.rowid, d.civilite, d.prenom, d.nom, d.societe, d.fk_soc, d.statut, d.public, d.adresse, d.cp, d.ville, d.note,";
|
||||
$sql.= " d.email, d.phone, d.phone_perso, d.phone_mobile, d.login, d.pass,";
|
||||
$sql.= " d.photo, d.fk_adherent_type, d.morphy,";
|
||||
$sql.= " d.datec as datec,";
|
||||
@@ -946,8 +952,8 @@ class Adherent extends CommonObject
|
||||
if ($ref) $sql.= " AND d.rowid='".$ref."'";
|
||||
elseif ($fk_soc) $sql.= " AND d.fk_soc='".$fk_soc."'";
|
||||
else $sql.= " AND d.rowid=".$rowid;
|
||||
dol_syslog("Adherent::fetch sql=".$sql);
|
||||
|
||||
dol_syslog("Adherent::fetch sql=".$sql);
|
||||
$resql=$this->db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
@@ -957,6 +963,7 @@ class Adherent extends CommonObject
|
||||
|
||||
$this->ref = $obj->rowid;
|
||||
$this->id = $obj->rowid;
|
||||
$this->civilite_id = $obj->civilite;
|
||||
$this->prenom = $obj->prenom;
|
||||
$this->nom = $obj->nom;
|
||||
$this->fullname = trim($obj->nom.' '.$obj->prenom);
|
||||
@@ -1009,7 +1016,8 @@ class Adherent extends CommonObject
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->error=$this->db->error();
|
||||
$this->error=$this->db->lasterror();
|
||||
dol_syslog("Adherent::fetch ".$this->error, LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -1231,7 +1239,7 @@ class Adherent extends CommonObject
|
||||
$this->use_webcal=($conf->global->PHPWEBCALENDAR_MEMBERSTATUS=='always'?1:0);
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_SUBSCRIPTION',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -1286,7 +1294,7 @@ class Adherent extends CommonObject
|
||||
$this->use_webcal=($conf->global->PHPWEBCALENDAR_MEMBERSTATUS=='always'?1:0);
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_VALIDATE',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -1334,7 +1342,7 @@ class Adherent extends CommonObject
|
||||
$this->use_webcal=($conf->global->PHPWEBCALENDAR_MEMBERSTATUS=='always'?1:0);
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('MEMBER_RESILIATE',$this,$user,$langs,$conf);
|
||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||
@@ -1699,6 +1707,18 @@ class Adherent extends CommonObject
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Retourne le libelle de civilite du contact
|
||||
* \return string Nom traduit de la civilite
|
||||
*/
|
||||
function getCivilityLabel()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("dict");
|
||||
|
||||
$code=$this->civilite_id;
|
||||
return $langs->trans("Civility".$code)!="Civility".$code ? $langs->trans("Civility".$code) : $code;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Renvoie nom clicable (avec eventuellement le picto)
|
||||
@@ -1907,6 +1927,7 @@ class Adherent extends CommonObject
|
||||
// Initialise parametres
|
||||
$this->id=0;
|
||||
$this->specimen=1;
|
||||
$this->civilite_id = 0;
|
||||
$this->nom = 'DOLIBARR';
|
||||
$this->prenom = 'SPECIMEN';
|
||||
$this->fullname=trim($this->nom.' '.$this->prenom);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/commonobject.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/commonobject.class.php");
|
||||
|
||||
|
||||
/**
|
||||
@@ -82,7 +82,7 @@ class AdherentType extends CommonObject
|
||||
function create($userid)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
|
||||
$this->statut=trim($this->statut);
|
||||
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."adherent_type (";
|
||||
@@ -177,7 +177,7 @@ class AdherentType extends CommonObject
|
||||
$sql = "SELECT d.rowid, d.libelle, d.statut, d.cotisation, d.mail_valid, d.note, d.vote";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."adherent_type as d";
|
||||
$sql .= " WHERE d.rowid = ".$rowid;
|
||||
|
||||
|
||||
dol_syslog("Adherent_type::fetch sql=".$sql);
|
||||
|
||||
$resql=$this->db->query($sql);
|
||||
@@ -200,7 +200,8 @@ class AdherentType extends CommonObject
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->error=$this->db->error();
|
||||
$this->error=$this->db->lasterror();
|
||||
dol_syslog("Adherent_type::fetch ".$this->error, LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -212,7 +213,7 @@ class AdherentType extends CommonObject
|
||||
function liste_array()
|
||||
{
|
||||
global $conf;
|
||||
|
||||
|
||||
$projets = array();
|
||||
|
||||
$sql = "SELECT rowid, libelle";
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
/**
|
||||
* \file htdocs/adherents/card_subscriptions.php
|
||||
* \ingroup member
|
||||
* \brief Onglet d'ajout, edition, suppression des adh<EFBFBD>sions d'un adh<EFBFBD>rent
|
||||
* \brief Onglet d'ajout, edition, suppression des adhesions d'un adherent
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
|
||||
/**
|
||||
* \file htdocs/adherents/cartes/carte.php
|
||||
* \ingroup adherent
|
||||
* \ingroup member
|
||||
* \brief Page to output members business cards
|
||||
* \version $Id$
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
require("../../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/member/cards/modules_cards.php");
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ if ($result)
|
||||
$objp->ville,
|
||||
$objp->pays,
|
||||
$objp->email,
|
||||
$objp->naiss,
|
||||
dol_print_date($objp->naiss,'day'),
|
||||
$objp->type,
|
||||
$objp->rowid,
|
||||
$year,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/includes/modules/member/PDF_card.class.php');
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/adherents/cartes/pre.inc.php
|
||||
\ingroup adherent
|
||||
\brief Fichier de gestion du menu gauche du module adherent
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("../../main.inc.php");
|
||||
|
||||
function llxHeader($head = '', $title='', $help_url='')
|
||||
{
|
||||
global $user, $conf, $langs;
|
||||
|
||||
top_menu($head);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Members"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/fiche.php?action=create",$langs->trans("NewMember"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php",$langs->trans("List"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=-1",$langs->trans("MenuMembersToValidate"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1",$langs->trans("MenuMembersValidated"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1&filter=uptodate",$langs->trans("MenuMembersUpToDate"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=0",$langs->trans("MenuMembersResiliated"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/public.php?leftmenu=member_public",$langs->trans("MemberPublicLinks"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Exports"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("Datas"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/htpasswd.php",$langs->trans("Filehtpasswd"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/cartes/carte.php",$langs->trans("MembersCards"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/cartes/etiquette.php",$langs->trans("MembersTickets"));
|
||||
|
||||
$langs->load("compta");
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Accountancy"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/cotisations.php",$langs->trans("Subscriptions"));
|
||||
$langs->load("banks");
|
||||
$menu->add_submenu(DOL_URL_ROOT."/compta/bank/",$langs->trans("Bank"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Setup"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/type.php",$langs->trans("MembersTypes"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/options.php",$langs->trans("MembersAttributes"));
|
||||
|
||||
left_menu($menu->liste);
|
||||
}
|
||||
|
||||
?>
|
||||
2126
htdocs/adherents/class/adherent.class.php
Normal file
@@ -24,6 +24,8 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/commonobject.class.php");
|
||||
|
||||
|
||||
/**
|
||||
* \class Cotisation
|
||||
@@ -278,8 +280,8 @@ class Cotisation extends CommonObject
|
||||
*/
|
||||
function info($id)
|
||||
{
|
||||
$sql = 'SELECT c.rowid, '.$this->db->pdate('c.datec').' as datec,';
|
||||
$sql.= ' '.$this->db->pdate('c.tms').' as datem';
|
||||
$sql = 'SELECT c.rowid, c.datec,';
|
||||
$sql.= ' c.tms as datem';
|
||||
$sql.= ' FROM '.MAIN_DB_PREFIX.'cotisation as c';
|
||||
$sql.= ' WHERE c.rowid = '.$id;
|
||||
|
||||
@@ -291,8 +293,8 @@ class Cotisation extends CommonObject
|
||||
$obj = $this->db->fetch_object($result);
|
||||
$this->id = $obj->rowid;
|
||||
|
||||
$this->date_creation = $obj->datec;
|
||||
$this->date_modification = $obj->datem;
|
||||
$this->date_creation = $this->db->jdate($obj->datec);
|
||||
$this->date_modification = $this->db->jdate($obj->datem);
|
||||
}
|
||||
|
||||
$this->db->free($result);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
|
||||
@@ -146,8 +146,8 @@ if ($msg) print $msg.'<br>';
|
||||
// Liste des cotisations
|
||||
$sql = "SELECT d.rowid, d.login, d.prenom, d.nom, d.societe,";
|
||||
$sql.= " c.rowid as crowid, c.cotisation,";
|
||||
$sql.= " ".$db->pdate("c.dateadh")." as dateadh,";
|
||||
$sql.= " ".$db->pdate("c.datef")." as datef,";
|
||||
$sql.= " c.dateadh,";
|
||||
$sql.= " c.datef,";
|
||||
$sql.= " c.fk_bank as bank, c.note,";
|
||||
$sql.= " b.fk_account";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."cotisation as c";
|
||||
@@ -157,7 +157,7 @@ if (isset($date_select) && $date_select != '')
|
||||
{
|
||||
$sql.= " AND dateadh LIKE '$date_select%'";
|
||||
}
|
||||
$sql.= " ORDER BY $sortfield $sortorder";
|
||||
$sql.= $db->order($sortfield,$sortorder);
|
||||
$sql.= $db->plimit($conf->liste_limit+1, $offset);
|
||||
|
||||
$result = $db->query($sql);
|
||||
@@ -229,7 +229,7 @@ if ($result)
|
||||
print '<td>';
|
||||
if ($allowinsertbankafter && $user->rights->banque->modifier && ! $objp->fk_account && $conf->banque->enabled && $conf->global->ADHERENT_BANK_USE && $objp->cotisation)
|
||||
{
|
||||
print "<input name=\"label\" type=\"text\" class=\"flat\" size=\"30\" value=\"".$langs->trans("Subscriptions").' '.dol_print_date($objp->dateadh,"%Y")."\" >\n";
|
||||
print "<input name=\"label\" type=\"text\" class=\"flat\" size=\"30\" value=\"".$langs->trans("Subscriptions").' '.dol_print_date($db->jdate($objp->dateadh),"%Y")."\" >\n";
|
||||
// print "<td><input name=\"debit\" type=\"text\" size=8></td>";
|
||||
// print "<td><input name=\"credit\" type=\"text\" size=8></td>";
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Save").'">';
|
||||
@@ -272,10 +272,10 @@ if ($result)
|
||||
}
|
||||
|
||||
// Date start
|
||||
print '<td align="center">'.dol_print_date($objp->dateadh,'day')."</td>\n";
|
||||
print '<td align="center">'.dol_print_date($db->jdate($objp->dateadh),'day')."</td>\n";
|
||||
|
||||
// Date end
|
||||
print '<td align="center">'.dol_print_date($objp->datef,'day')."</td>\n";
|
||||
print '<td align="center">'.dol_print_date($db->jdate($objp->datef),'day')."</td>\n";
|
||||
|
||||
// Price
|
||||
print '<td align="right">'.price($objp->cotisation).'</td>';
|
||||
|
||||
@@ -21,20 +21,21 @@
|
||||
/**
|
||||
* \file htdocs/adherents/fiche.php
|
||||
* \ingroup member
|
||||
* \brief Page d'ajout, edition, suppression d'une fiche adherent
|
||||
* \brief Page of member
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/images.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent_type.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent_options.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/class/cotisation.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/bank/class/account.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/class/html.formcompany.class.php");
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("bills");
|
||||
@@ -143,7 +144,7 @@ if ($_POST['action'] == 'setsocid')
|
||||
$thirdparty=new Societe($db);
|
||||
$thirdparty->fetch($_POST["socid"]);
|
||||
$error++;
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorMemberIsAlreadyLinkedToThisThirdParty",$othermember->fullname,$othermember->login,$thirdparty->nom).'</div>';
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorMemberIsAlreadyLinkedToThisThirdParty",$othermember->getFullName($langs),$othermember->login,$thirdparty->nom).'</div>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,6 +212,8 @@ if ($_REQUEST["action"] == 'confirm_sendinfo' && $_REQUEST["confirm"] == 'yes')
|
||||
|
||||
if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
|
||||
{
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
|
||||
|
||||
$datenaiss='';
|
||||
if (isset($_POST["naissday"]) && $_POST["naissday"]
|
||||
&& isset($_POST["naissmonth"]) && $_POST["naissmonth"]
|
||||
@@ -218,17 +221,16 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"] && $user->rights->adhe
|
||||
{
|
||||
$datenaiss=dol_mktime(12, 0, 0, $_POST["naissmonth"], $_POST["naissday"], $_POST["naissyear"]);
|
||||
}
|
||||
//print $_POST["naissmonth"].", ".$_POST["naissday"].", ".$_POST["naissyear"]." ".$datenaiss." ".adodb_strftime('%Y-%m-%d %H:%M:%S',$datenaiss);
|
||||
|
||||
// Create new object
|
||||
if ($result > 0)
|
||||
{
|
||||
$adh->oldcopy=dol_clone($adh);
|
||||
|
||||
// Modifie valeures
|
||||
// Change values
|
||||
$adh->civilite_id = trim($_POST["civilite_id"]);
|
||||
$adh->prenom = trim($_POST["prenom"]);
|
||||
$adh->nom = trim($_POST["nom"]);
|
||||
$adh->fullname = trim($adh->prenom.' '.$adh->nom);
|
||||
$adh->login = trim($_POST["login"]);
|
||||
$adh->pass = trim($_POST["pass"]);
|
||||
|
||||
@@ -236,7 +238,9 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"] && $user->rights->adhe
|
||||
$adh->adresse = trim($_POST["adresse"]);
|
||||
$adh->cp = trim($_POST["cp"]);
|
||||
$adh->ville = trim($_POST["ville"]);
|
||||
$adh->pays_id = $_POST["pays"];
|
||||
|
||||
$adh->fk_departement = $_POST["departement_id"];
|
||||
$adh->pays_id = $_POST["pays"];
|
||||
|
||||
$adh->phone = trim($_POST["phone"]);
|
||||
$adh->phone_perso = trim($_POST["phone_perso"]);
|
||||
@@ -250,7 +254,7 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"] && $user->rights->adhe
|
||||
|
||||
$adh->amount = $_POST["amount"];
|
||||
|
||||
$adh->photo = $_FILES['photo']['name'];
|
||||
$adh->photo = ($_FILES['photo']['name']?$_FILES['photo']['name']:$adh->oldcopy->photo);
|
||||
|
||||
// Get status and public property
|
||||
$adh->statut = $_POST["statut"];
|
||||
@@ -283,7 +287,7 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"] && $user->rights->adhe
|
||||
$result=$adh->update($user,0,$nosyncuser,$nosyncuserpass);
|
||||
if ($result >= 0 && ! sizeof($adh->errors))
|
||||
{
|
||||
if (isset($_FILES['photo']['tmp_name']) && trim($_FILES['photo']['tmp_name']))
|
||||
if (!empty($_FILES['photo']['tmp_name']) && trim($_FILES['photo']['tmp_name']))
|
||||
{
|
||||
$dir= $conf->adherent->dir_output . '/' . get_exdir($adh->id,2,0,1);
|
||||
|
||||
@@ -292,7 +296,7 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"] && $user->rights->adhe
|
||||
if (@is_dir($dir))
|
||||
{
|
||||
$newfile=$dir.'/'.$_FILES['photo']['name'];
|
||||
if (! dol_move_uploaded_file($_FILES['photo']['tmp_name'],$newfile,1) > 0)
|
||||
if (! dol_move_uploaded_file($_FILES['photo']['tmp_name'],$newfile,1,0,$_FILES['photo']['error']) > 0)
|
||||
{
|
||||
$message .= '<div class="error">'.$langs->trans("ErrorFailedToSaveFile").'</div>';
|
||||
}
|
||||
@@ -347,12 +351,14 @@ if ($_POST["action"] == 'add' && $user->rights->adherent->creer)
|
||||
}
|
||||
|
||||
$typeid=$_POST["typeid"];
|
||||
$civilite_id=$_POST["civilite_id"];
|
||||
$nom=$_POST["nom"];
|
||||
$prenom=$_POST["prenom"];
|
||||
$societe=$_POST["societe"];
|
||||
$adresse=$_POST["adresse"];
|
||||
$cp=$_POST["cp"];
|
||||
$ville=$_POST["ville"];
|
||||
$departement_id=$_POST["departement_id"];
|
||||
$pays_id=$_POST["pays_id"];
|
||||
|
||||
$phone=$_POST["phone"];
|
||||
@@ -370,12 +376,14 @@ if ($_POST["action"] == 'add' && $user->rights->adherent->creer)
|
||||
$userid=$_POST["userid"];
|
||||
$socid=$_POST["socid"];
|
||||
|
||||
$adh->civilite_id = $civilite_id;
|
||||
$adh->prenom = $prenom;
|
||||
$adh->nom = $nom;
|
||||
$adh->societe = $societe;
|
||||
$adh->adresse = $adresse;
|
||||
$adh->cp = $cp;
|
||||
$adh->ville = $ville;
|
||||
$adh->fk_departement = $departement_id;
|
||||
$adh->pays_id = $pays_id;
|
||||
$adh->phone = $phone;
|
||||
$adh->phone_perso = $phone_perso;
|
||||
@@ -463,7 +471,7 @@ if ($_POST["action"] == 'add' && $user->rights->adherent->creer)
|
||||
$crowid=$adh->cotisation($datecotisation, $cotisation);
|
||||
|
||||
// insertion dans la gestion banquaire si configure pour
|
||||
if ($global->conf->ADHERENT_BANK_USE)
|
||||
if ($conf->global->ADHERENT_BANK_USE)
|
||||
{
|
||||
$dateop=time();
|
||||
$amount=$cotisation;
|
||||
@@ -650,10 +658,13 @@ if ($user->rights->adherent->creer && $_POST["action"] == 'confirm_add_spip' &&
|
||||
llxHeader('',$langs->trans("Member"),'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros');
|
||||
|
||||
$html = new Form($db);
|
||||
$htmlcompany = new FormCompany($db);
|
||||
|
||||
// fetch optionals attributes and labels
|
||||
$adho->fetch_name_optionals_label();
|
||||
|
||||
$countrynotdefined=$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')';
|
||||
|
||||
|
||||
if ($action == 'edit')
|
||||
{
|
||||
@@ -676,9 +687,24 @@ if ($action == 'edit')
|
||||
$adht->fetch($adh->typeid);
|
||||
|
||||
|
||||
/*
|
||||
* Affichage onglets
|
||||
*/
|
||||
// We set pays_id, and pays_code label of the chosen country
|
||||
if (isset($_POST["pays"]) || $adh->pays_id)
|
||||
{
|
||||
$sql = "SELECT rowid, code, libelle from ".MAIN_DB_PREFIX."c_pays where rowid = ".(isset($_POST["pays"])?$_POST["pays"]:$adh->pays_id);
|
||||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$obj = $db->fetch_object($resql);
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_print_error($db);
|
||||
}
|
||||
$adh->pays_id=$obj->rowid;
|
||||
$adh->pays_code=$obj->code;
|
||||
$adh->pays=$langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->libelle;
|
||||
}
|
||||
|
||||
$head = member_prepare_head($adh);
|
||||
|
||||
dol_fiche_head($head, 'general', $langs->trans("Member"), 0, 'user');
|
||||
@@ -690,11 +716,11 @@ if ($action == 'edit')
|
||||
if ($mesg) print '<div class="ok">'.$mesg.'</div>';
|
||||
|
||||
|
||||
$rowspan=15;
|
||||
$rowspan=17;
|
||||
$rowspan+=sizeof($adho->attribute_label);
|
||||
if ($conf->societe->enabled) $rowspan++;
|
||||
|
||||
print '<form name="update" action="'.$_SERVER["PHP_SELF"].'" method="post" enctype="multipart/form-data">';
|
||||
print '<form name="formsoc" action="'.$_SERVER["PHP_SELF"].'" method="post" enctype="multipart/form-data">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
|
||||
print "<input type=\"hidden\" name=\"rowid\" value=\"$rowid\">";
|
||||
@@ -709,18 +735,20 @@ if ($action == 'edit')
|
||||
$morphys["phy"] = $langs->trans("Physical");
|
||||
$morphys["mor"] = $langs->trans("Morale");
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Person").'</span></td><td colspan="2">';
|
||||
$html->select_array("morphy", $morphys, $adh->morphy);
|
||||
$html->select_array("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy);
|
||||
print "</td></tr>";
|
||||
|
||||
// Societe
|
||||
print '<tr><td>'.$langs->trans("Company").'</td><td colspan="2"><input type="text" name="societe" size="40" value="'.$adh->societe.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Company").'</td><td colspan="2"><input type="text" name="societe" size="40" value="'.(isset($_POST["societe"])?$_POST["societe"]:$adh->societe).'"></td></tr>';
|
||||
|
||||
// Nom
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Lastname").'</span></td><td><input type="text" name="nom" size="40" value="'.$adh->nom.'"></td>';
|
||||
// Civilite
|
||||
print '<tr><td width="20%">'.$langs->trans("UserTitle").'</td><td width="35%">';
|
||||
print $htmlcompany->select_civilite(isset($_POST["civilite_id"])?$_POST["civilite_id"]:$adh->civilite_id)."\n";
|
||||
print '</td>';
|
||||
|
||||
// Photo
|
||||
print '<td align="center" valign="middle" width="25%" rowspan="'.$rowspan.'">';
|
||||
print $html->showphoto('memberphoto',$adh);
|
||||
print $html->showphoto('memberphoto',$adh)."\n";
|
||||
if ($caneditfieldmember)
|
||||
{
|
||||
print '<br><br><table class="nobordernopadding"><tr><td>'.$langs->trans("PhotoFile").'</td></tr>';
|
||||
@@ -731,21 +759,25 @@ if ($action == 'edit')
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Prenom
|
||||
print '<tr><td width="20%"><span class="fieldrequired">'.$langs->trans("Firstname").'</span></td><td width="35%"><input type="text" name="prenom" size="40" value="'.$adh->prenom.'"></td>';
|
||||
// Name
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Lastname").'</span></td><td><input type="text" name="nom" size="40" value="'.(isset($_POST["nom"])?$_POST["nom"]:$adh->nom).'"></td>';
|
||||
print '</tr>';
|
||||
|
||||
// Firstname
|
||||
print '<tr><td width="20%"><span class="fieldrequired">'.$langs->trans("Firstname").'</span></td><td><input type="text" name="prenom" size="40" value="'.(isset($_POST["prenom"])?$_POST["prenom"]:$adh->prenom).'"></td>';
|
||||
print '</tr>';
|
||||
|
||||
// Login
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Login").'</span></td><td><input type="text" name="login" size="30" value="'.$adh->login.'"></td></tr>';
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Login").'</span></td><td><input type="text" name="login" size="30" value="'.(isset($_POST["login"])?$_POST["login"]:$adh->login).'"></td></tr>';
|
||||
|
||||
// Password
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Password").'</span></td><td><input type="password" name="pass" size="30" value="'.$adh->pass.'"></td></tr>';
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Password").'</span></td><td><input type="password" name="pass" size="30" value="'.(isset($_POST["pass"])?$_POST["pass"]:$adh->pass).'"></td></tr>';
|
||||
|
||||
// Type
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Type").'</span></td><td>';
|
||||
if ($user->rights->adherent->creer)
|
||||
{
|
||||
$html->select_array("typeid", $adht->liste_array(), $adh->typeid);
|
||||
$html->select_array("typeid", $adht->liste_array(), (isset($_POST["typeid"])?$_POST["typeid"]:$adh->typeid));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -756,36 +788,42 @@ if ($action == 'edit')
|
||||
|
||||
// Address
|
||||
print '<tr><td>'.$langs->trans("Address").'</td><td>';
|
||||
print '<textarea name="adresse" wrap="soft" cols="40" rows="2">'.$adh->adresse.'</textarea></td></tr>';
|
||||
print '<textarea name="adresse" wrap="soft" cols="40" rows="2">'.(isset($_POST["adresse"])?$_POST["adresse"]:$adh->adresse).'</textarea></td></tr>';
|
||||
|
||||
// Cp
|
||||
print '<tr><td>'.$langs->trans("Zip").'/'.$langs->trans("Town").'</td><td><input type="text" name="cp" size="6" value="'.$adh->cp.'"> <input type="text" name="ville" size="32" value="'.$adh->ville.'"></td></tr>';
|
||||
// Zip / Town
|
||||
print '<tr><td>'.$langs->trans("Zip").'/'.$langs->trans("Town").'</td><td><input type="text" name="cp" size="6" value="'.(isset($_POST["cp"])?$_POST["cp"]:$adh->cp).'"> <input type="text" name="ville" size="32" value="'.(isset($_POST["ville"])?$_POST["ville"]:$adh->ville).'"></td></tr>';
|
||||
|
||||
// Country
|
||||
print '<tr><td>'.$langs->trans("Country").'</td><td>';
|
||||
$html->select_pays($adh->pays_code?$adh->pays_code:$mysoc->pays_code,'pays');
|
||||
$html->select_pays(isset($_POST["pays"])?$_POST["pays"]:$adh->pays_id,'pays',$conf->use_javascript_ajax?' onChange="company_save_refresh_edit()"':'');
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
print '</td></tr>';
|
||||
|
||||
// State
|
||||
print '<tr><td>'.$langs->trans('State').'</td><td>';
|
||||
$htmlcompany->select_departement($adh->fk_departement,$adh->pays_code);
|
||||
print '</td></tr>';
|
||||
|
||||
// Tel
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td><input type="text" name="phone" size="20" value="'.$adh->phone.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td><input type="text" name="phone" size="20" value="'.(isset($_POST["phone"])?$_POST["phone"]:$adh->phone).'"></td></tr>';
|
||||
|
||||
// Tel perso
|
||||
print '<tr><td>'.$langs->trans("PhonePerso").'</td><td><input type="text" name="phone_perso" size="20" value="'.$adh->phone_perso.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhonePerso").'</td><td><input type="text" name="phone_perso" size="20" value="'.(isset($_POST["phone_perso"])?$_POST["phone_perso"]:$adh->phone_perso).'"></td></tr>';
|
||||
|
||||
// Tel mobile
|
||||
print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td><input type="text" name="phone_mobile" size="20" value="'.$adh->phone_mobile.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td><input type="text" name="phone_mobile" size="20" value="'.(isset($_POST["phone_mobile"])?$_POST["phone_mobile"]:$adh->phone_mobile).'"></td></tr>';
|
||||
|
||||
// EMail
|
||||
print '<tr><td>'.($conf->global->ADHERENT_MAIL_REQUIRED?'<span class="fieldrequired">':'').$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'</span>':'').'</td><td><input type="text" name="email" size="40" value="'.$adh->email.'"></td></tr>';
|
||||
print '<tr><td>'.($conf->global->ADHERENT_MAIL_REQUIRED?'<span class="fieldrequired">':'').$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'</span>':'').'</td><td><input type="text" name="email" size="40" value="'.(isset($_POST["email"])?$_POST["email"]:$adh->email).'"></td></tr>';
|
||||
|
||||
// Date naissance
|
||||
print "<tr><td>".$langs->trans("Birthday")."</td><td>\n";
|
||||
$html->select_date(($adh->naiss ? $adh->naiss : -1),'naiss','','',1,'update');
|
||||
$html->select_date(($adh->naiss ? $adh->naiss : -1),'naiss','','',1,'formsoc');
|
||||
print "</td></tr>\n";
|
||||
|
||||
// Profil public
|
||||
print "<tr><td>".$langs->trans("Public")."</td><td>\n";
|
||||
print $html->selectyesno("public",$adh->public,1);
|
||||
print $html->selectyesno("public",(isset($_POST["public"])?$_POST["public"]:$adh->public),1);
|
||||
print "</td></tr>\n";
|
||||
|
||||
// Attributs supplementaires
|
||||
@@ -821,7 +859,7 @@ if ($action == 'edit')
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td colspan="3" align="center">';
|
||||
print '<input type="submit" class="button" name="submit" value="'.$langs->trans("Save").'">';
|
||||
print '<input type="submit" class="button" name="save" value="'.$langs->trans("Save").'">';
|
||||
print ' ';
|
||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||
print '</td></tr>';
|
||||
@@ -840,6 +878,28 @@ if ($action == 'create')
|
||||
/* Fiche creation */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
$adh->fk_departement = $_POST["departement_id"];
|
||||
|
||||
// We set pays_id, pays_code and label for the selected country
|
||||
$adh->pays_id=$_POST["pays_id"]?$_POST["pays_id"]:$conf->global->MAIN_INFO_SOCIETE_PAYS;
|
||||
if ($adh->pays_id)
|
||||
{
|
||||
$sql = "SELECT rowid, code, libelle";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."c_pays";
|
||||
$sql.= " WHERE rowid = ".$adh->pays_id;
|
||||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$obj = $db->fetch_object($resql);
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_print_error($db);
|
||||
}
|
||||
$adh->pays_id=$obj->rowid;
|
||||
$adh->pays_code=$obj->code;
|
||||
$adh->pays=$obj->libelle;
|
||||
}
|
||||
|
||||
$adht = new AdherentType($db);
|
||||
|
||||
@@ -851,32 +911,37 @@ if ($action == 'create')
|
||||
}
|
||||
if ($mesg) print '<div class="ok">'.$mesg.'</div>';
|
||||
|
||||
print '<form name="add" action="'.$_SERVER["PHP_SELF"].'" method="post" enctype="multipart/form-data">';
|
||||
print '<form name="formsoc" action="'.$_SERVER["PHP_SELF"].'" method="post" enctype="multipart/form-data">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
|
||||
// Moral-Physique
|
||||
$morphys["phy"] = "Physique";
|
||||
$morphys["mor"] = "Morale";
|
||||
$morphys["phy"] = $langs->trans("Physical");
|
||||
$morphys["mor"] = $langs->trans("Moral");
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Person")."</span></td><td>\n";
|
||||
$html->select_array("morphy", $morphys, $adh->morphy, 1);
|
||||
$html->select_array("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy, 1);
|
||||
print "</td>\n";
|
||||
|
||||
// Company
|
||||
print '<tr><td>'.$langs->trans("Company").'</td><td><input type="text" name="societe" size="40" value="'.$adh->societe.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Company").'</td><td><input type="text" name="societe" size="40" value="'.(isset($_POST["societe"])?$_POST["societe"]:$adh->societe).'"></td></tr>';
|
||||
|
||||
// Civility
|
||||
print '<tr><td>'.$langs->trans("UserTitle").'</td><td>';
|
||||
print $htmlcompany->select_civilite(isset($_POST["civilite_id"])?$_POST["civilite_id"]:$adh->civilite_id,'civilite_id').'</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Nom
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Lastname").'</span></td><td><input type="text" name="nom" value="'.$adh->nom.'" size="40"></td>';
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Lastname").'</span></td><td><input type="text" name="nom" value="'.(isset($_POST["nom"])?$_POST["nom"]:$adh->nom).'" size="40"></td>';
|
||||
print '</tr>';
|
||||
|
||||
// Prenom
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Firstname").'</span></td><td><input type="text" name="prenom" size="40" value="'.$adh->prenom.'"></td>';
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Firstname").'</span></td><td><input type="text" name="prenom" size="40" value="'.(isset($_POST["prenom"])?$_POST["prenom"]:$adh->prenom).'"></td>';
|
||||
print '</tr>';
|
||||
|
||||
// Login
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Login").'</span></td><td><input type="text" name="member_login" size="40" value="'.$adh->login.'"></td></tr>';
|
||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Login").'</span></td><td><input type="text" name="member_login" size="40" value="'.(isset($_POST["member_login"])?$_POST["member_login"]:$adh->login).'"></td></tr>';
|
||||
|
||||
// Mot de passe
|
||||
$generated_password='';
|
||||
@@ -898,7 +963,7 @@ if ($action == 'create')
|
||||
$listetype=$adht->liste_array();
|
||||
if (sizeof($listetype))
|
||||
{
|
||||
$html->select_array("typeid", $listetype, $typeid, 1);
|
||||
$html->select_array("typeid", $listetype, isset($_POST["typeid"])?$_POST["typeid"]:$typeid, 1);
|
||||
} else {
|
||||
print '<font class="error">'.$langs->trans("NoTypeDefinedGoToSetup").'</font>';
|
||||
}
|
||||
@@ -906,31 +971,45 @@ if ($action == 'create')
|
||||
|
||||
// Address
|
||||
print '<tr><td valign="top">'.$langs->trans("Address").'</td><td>';
|
||||
print '<textarea name="adresse" wrap="soft" cols="40" rows="2">'.$adh->adresse.'</textarea></td></tr>';
|
||||
print '<textarea name="adresse" wrap="soft" cols="40" rows="2">'.(isset($_POST["adresse"])?$_POST["adresse"]:$adh->adresse).'</textarea></td></tr>';
|
||||
|
||||
// CP / Ville
|
||||
print '<tr><td>'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td><input type="text" name="cp" size="8"> <input type="text" name="ville" size="32" value="'.$adh->ville.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td><input type="text" name="cp" size="8" value="'.(isset($_POST["cp"])?$_POST["cp"]:$adh->cp).'"> <input type="text" name="ville" size="32" value="'.(isset($_POST["ville"])?$_POST["ville"]:$adh->ville).'"></td></tr>';
|
||||
|
||||
// Pays
|
||||
print '<tr><td>'.$langs->trans("Country").'</td><td>';
|
||||
$html->select_pays($adh->pays_id ? $adh->pays_id : $mysoc->pays_id,'pays_id');
|
||||
print '</td></tr>';
|
||||
// Country
|
||||
$adh->pays_id=$adh->pays_id?$adh->pays_id:$mysoc->pays_id;
|
||||
print '<tr><td>'.$langs->trans("Country").'</td><td>';
|
||||
$html->select_pays(isset($_POST["pays_id"])?$_POST["pays_id"]:$adh->pays_id,'pays_id',$conf->use_javascript_ajax?' onChange="company_save_refresh_create()"':'');
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
print '</td></tr>';
|
||||
|
||||
// State
|
||||
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">';
|
||||
if ($adh->pays_id)
|
||||
{
|
||||
$htmlcompany->select_departement(isset($_POST["departement_id"])?$_POST["departement_id"]:$adh->fk_departement,$adh->pays_code);
|
||||
}
|
||||
else
|
||||
{
|
||||
print $countrynotdefined;
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Tel pro
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td><input type="text" name="phone" size="20" value="'.$adh->phone.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td><input type="text" name="phone" size="20" value="'.(isset($_POST["phone"])?$_POST["phone"]:$adh->phone).'"></td></tr>';
|
||||
|
||||
// Tel perso
|
||||
print '<tr><td>'.$langs->trans("PhonePerso").'</td><td><input type="text" name="phone_perso" size="20" value="'.$adh->phone_perso.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhonePerso").'</td><td><input type="text" name="phone_perso" size="20" value="'.(isset($_POST["phone_perso"])?$_POST["phone_perso"]:$adh->phone_perso).'"></td></tr>';
|
||||
|
||||
// Tel mobile
|
||||
print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td><input type="text" name="phone_mobile" size="20" value="'.$adh->phone_mobile.'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td><input type="text" name="phone_mobile" size="20" value="'.(isset($_POST["phone_mobile"])?$_POST["phone_mobile"]:$adh->phone_mobile).'"></td></tr>';
|
||||
|
||||
// EMail
|
||||
print '<tr><td>'.($conf->global->ADHERENT_MAIL_REQUIRED?'<span class="fieldrequired">':'').$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'</span>':'').'</td><td><input type="text" name="member_email" size="40" value="'.$adh->email.'"></td></tr>';
|
||||
print '<tr><td>'.($conf->global->ADHERENT_MAIL_REQUIRED?'<span class="fieldrequired">':'').$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'</span>':'').'</td><td><input type="text" name="member_email" size="40" value="'.(isset($_POST["member_email"])?$_POST["member_email"]:$adh->email).'"></td></tr>';
|
||||
|
||||
// Date naissance
|
||||
print "<tr><td>".$langs->trans("Birthday")."</td><td>\n";
|
||||
$html->select_date(($adh->naiss ? $adh->naiss : -1),'naiss','','',1,'add');
|
||||
$html->select_date(($adh->naiss ? $adh->naiss : -1),'naiss','','',1,'formsoc');
|
||||
print "</td></tr>\n";
|
||||
|
||||
// Profil public
|
||||
@@ -941,7 +1020,7 @@ if ($action == 'create')
|
||||
// Attribut optionnels
|
||||
foreach($adho->attribute_label as $key=>$value)
|
||||
{
|
||||
print "<tr><td>$value</td><td><input type=\"text\" name=\"options_$key\" size=\"40\"></td></tr>\n";
|
||||
print "<tr><td>".$value.'</td><td><input type="text" name="options_'.$key.'" size="40" value="'.(isset($_POST["options_".$key])?$_POST["options_".$key]:'').'"></td></tr>'."\n";
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -977,11 +1056,14 @@ if ($rowid && $action != 'edit')
|
||||
|
||||
$adh = new Adherent($db);
|
||||
$adh->id = $rowid;
|
||||
$adh->fetch($rowid);
|
||||
$adh->fetch_optionals($rowid);
|
||||
$res=$adh->fetch($rowid);
|
||||
if ($res < 0) dol_print_error($db);
|
||||
$res=$adh->fetch_optionals($rowid);
|
||||
if ($res < 0) dol_print_error($db);
|
||||
|
||||
$adht = new AdherentType($db);
|
||||
$adht->fetch($adh->typeid);
|
||||
$res=$adht->fetch($adh->typeid);
|
||||
if ($res < 0) dol_print_error($db);
|
||||
|
||||
$html = new Form($db);
|
||||
|
||||
@@ -1094,7 +1176,7 @@ if ($rowid && $action != 'edit')
|
||||
if ($ret == 'html') print '<br>';
|
||||
}
|
||||
|
||||
$rowspan=14+sizeof($adho->attribute_label);
|
||||
$rowspan=15+sizeof($adho->attribute_label);
|
||||
if ($conf->societe->enabled) $rowspan++;
|
||||
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
@@ -1112,11 +1194,15 @@ if ($rowid && $action != 'edit')
|
||||
// Company
|
||||
print '<tr><td>'.$langs->trans("Company").'</td><td class="valeur" colspan="2">'.$adh->societe.'</td></tr>';
|
||||
|
||||
// Nom
|
||||
// Civility
|
||||
print '<tr><td>'.$langs->trans("UserTitle").'</td><td class="valeur" colspan="2">'.$adh->getCivilityLabel().' </td>';
|
||||
print '</tr>';
|
||||
|
||||
// Name
|
||||
print '<tr><td>'.$langs->trans("Lastname").'</td><td class="valeur" colspan="2">'.$adh->nom.' </td>';
|
||||
print '</tr>';
|
||||
|
||||
// Prenom
|
||||
// Firstname
|
||||
print '<tr><td>'.$langs->trans("Firstname").'</td><td class="valeur" colspan="2">'.$adh->prenom.' </td></tr>';
|
||||
|
||||
// Login
|
||||
@@ -1135,11 +1221,18 @@ if ($rowid && $action != 'edit')
|
||||
// Address
|
||||
print '<tr><td>'.$langs->trans("Address").'</td><td class="valeur">'.nl2br($adh->adresse).'</td></tr>';
|
||||
|
||||
// CP / Ville
|
||||
// Zip / Town
|
||||
print '<tr><td>'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td class="valeur">'.$adh->cp.' '.$adh->ville.'</td></tr>';
|
||||
|
||||
// Pays
|
||||
print '<tr><td>'.$langs->trans("Country").'</td><td class="valeur">'.getCountryLabel($adh->pays_id).'</td></tr>';
|
||||
// Country
|
||||
print '<tr><td>'.$langs->trans("Country").'</td><td class="valeur">';
|
||||
$img=picto_from_langcode($adh->pays_code);
|
||||
if ($img) print $img.' ';
|
||||
print getCountry($adh->pays_code);
|
||||
print '</td></tr>';
|
||||
|
||||
// State
|
||||
print '<tr><td>'.$langs->trans('State').'</td><td class="valeur">'.$adh->departement.'</td>';
|
||||
|
||||
// Tel pro.
|
||||
print '<tr><td>'.$langs->trans("PhonePro").'</td><td class="valeur">'.dol_print_phone($adh->phone,$adh->pays_code,0,$adh->fk_soc,1).'</td></tr>';
|
||||
@@ -1285,11 +1378,12 @@ if ($rowid && $action != 'edit')
|
||||
}
|
||||
|
||||
// Envoi fiche par mail
|
||||
if ($adh->statut >= 1 && $adh->email)
|
||||
if ($adh->statut >= 1)
|
||||
{
|
||||
if ($user->rights->adherent->creer)
|
||||
{
|
||||
print "<a class=\"butAction\" href=\"fiche.php?rowid=$adh->id&action=sendinfo\">".$langs->trans("SendCardByMail")."</a>\n";
|
||||
if ($adh->email) print "<a class=\"butAction\" href=\"fiche.php?rowid=$adh->id&action=sendinfo\">".$langs->trans("SendCardByMail")."</a>\n";
|
||||
else print "<a class=\"butActionRefused\" href=\"#\" title=\"".dol_escape_htmltag($langs->trans("NoEMail"))."\">".$langs->trans("SendCardByMail")."</a>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1316,7 +1410,7 @@ if ($rowid && $action != 'edit')
|
||||
if ($user->rights->societe->creer)
|
||||
{
|
||||
if ($adh->statut != -1) print '<a class="butAction" href="fiche.php?rowid='.$adh->id.'&action=create_thirdparty">'.$langs->trans("CreateDolibarrThirdParty").'</a>';
|
||||
else print '<a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("ValidateBefore")).'">'.$langs->trans("CreateDolibarrLogin").'</a>';
|
||||
else print '<a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("ValidateBefore")).'">'.$langs->trans("CreateDolibarrThirdParty").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1354,11 +1448,11 @@ if ($rowid && $action != 'edit')
|
||||
$isinspip=$adh->is_in_spip();
|
||||
if ($isinspip == 1)
|
||||
{
|
||||
print "<a class=\"butAction\" href=\"fiche.php?rowid=$adh->id&action=del_spip\">Suppression dans Spip</a>\n";
|
||||
print "<a class=\"butAction\" href=\"fiche.php?rowid=$adh->id&action=del_spip\">".$langs->trans("DeleteIntoSpip")."</a>\n";
|
||||
}
|
||||
if ($isinspip == 0)
|
||||
{
|
||||
print "<a class=\"butAction\" href=\"fiche.php?rowid=$adh->id&action=add_spip\">Ajout dans Spip</a>\n";
|
||||
print "<a class=\"butAction\" href=\"fiche.php?rowid=$adh->id&action=add_spip\">".$langs->trans("AddIntoSpip")."</a>\n";
|
||||
}
|
||||
if ($isinspip == -1) {
|
||||
print '<br><font class="error">Failed to connect to SPIP: '.$adh->error.'</font>';
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/adherents/htpasswd.php
|
||||
\ingroup member
|
||||
\brief Page d'export htpasswd du fichier des adherents
|
||||
\author Rodolphe Quiedeville
|
||||
\version $Id$
|
||||
*/
|
||||
* \file htdocs/adherents/htpasswd.php
|
||||
* \ingroup member
|
||||
* \brief Page d'export htpasswd du fichier des adherents
|
||||
* \author Rodolphe Quiedeville
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/lib/security.lib.php');
|
||||
|
||||
llxHeader();
|
||||
@@ -46,14 +46,14 @@ if (! isset($cotis))
|
||||
|
||||
|
||||
|
||||
$sql = "SELECT d.login, d.pass, ".$db->pdate("d.datefin")." as datefin";
|
||||
$sql = "SELECT d.login, d.pass, d.datefin";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as d ";
|
||||
$sql .= " WHERE d.statut = $statut ";
|
||||
if ($cotis==1)
|
||||
{
|
||||
$sql .= " AND datefin > ".$db->idate(mktime());
|
||||
}
|
||||
$sql.= " ORDER BY $sortfield $sortorder";
|
||||
$sql.= $db->order($sortfield,$sortorder);
|
||||
//$sql.=$db->plimit($conf->liste_limit, $offset);
|
||||
|
||||
$resql = $db->query($sql);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* \brief Page accueil module adherents
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
|
||||
@@ -189,11 +189,11 @@ print "<br>\n";
|
||||
$max=5;
|
||||
|
||||
$sql = "SELECT a.rowid, a.statut, a.nom, a.prenom,";
|
||||
$sql.= " ".$db->pdate("a.tms")." as datem, ".$db->pdate("datefin")." as date_end_subscription,";
|
||||
$sql.= " a.tms as datem, datefin as date_end_subscription,";
|
||||
$sql.= " ta.rowid as typeid, ta.libelle, ta.cotisation";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as a, ".MAIN_DB_PREFIX."adherent_type as ta";
|
||||
$sql.= " WHERE a.fk_adherent_type = ta.rowid";
|
||||
$sql.= " ORDER BY a.tms DESC";
|
||||
$sql.= $db->order("a.tms","DESC");
|
||||
$sql.= $db->plimit($max, 0);
|
||||
|
||||
$resql=$db->query($sql);
|
||||
@@ -219,8 +219,8 @@ if ($resql)
|
||||
$statictype->libelle=$obj->libelle;
|
||||
print '<td>'.$staticmember->getNomUrl(1,24).'</td>';
|
||||
print '<td>'.$statictype->getNomUrl(1,16).'</td>';
|
||||
print '<td>'.dol_print_date($obj->datem,'dayhour').'</td>';
|
||||
print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$obj->date_end_subscription,5).'</td>';
|
||||
print '<td>'.dol_print_date($db->jdate($obj->datem),'dayhour').'</td>';
|
||||
print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
}
|
||||
@@ -240,7 +240,7 @@ $Number=array();
|
||||
$tot=0;
|
||||
$numb=0;
|
||||
|
||||
$sql = "SELECT c.cotisation, ".$db->pdate("c.dateadh")." as dateadh";
|
||||
$sql = "SELECT c.cotisation, c.dateadh";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."cotisation as c";
|
||||
$sql.= " WHERE d.rowid = c.fk_adherent";
|
||||
if(isset($date_select) && $date_select != '')
|
||||
@@ -255,7 +255,7 @@ if ($result)
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
$year=dol_print_date($objp->dateadh,"%Y");
|
||||
$year=dol_print_date($db->jdate($objp->dateadh),"%Y");
|
||||
$Total[$year]=(isset($Total[$year])?$Total[$year]:0)+$objp->cotisation;
|
||||
$Number[$year]=(isset($Number[$year])?$Number[$year]:0)+1;
|
||||
$tot+=$objp->cotisation;
|
||||
@@ -298,10 +298,6 @@ print '</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/ldap.lib.php");
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
|
||||
@@ -72,7 +72,7 @@ $form=new Form($db);
|
||||
$membertypestatic=new AdherentType($db);
|
||||
|
||||
$sql = "SELECT d.rowid, d.login, d.prenom, d.nom, d.societe, ";
|
||||
$sql.= " ".$db->pdate("d.datefin")." as datefin,";
|
||||
$sql.= " d.datefin,";
|
||||
$sql.= " d.email, d.fk_adherent_type as type_id, d.morphy, d.statut,";
|
||||
$sql.= " t.libelle as type, t.cotisation";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."adherent_type as t";
|
||||
@@ -218,6 +218,8 @@ if ($resql)
|
||||
{
|
||||
$objp = $db->fetch_object($resql);
|
||||
|
||||
$datefin=$db->jdate($objp->datefin);
|
||||
|
||||
$adh=new Adherent($db);
|
||||
|
||||
// Nom
|
||||
@@ -250,20 +252,20 @@ if ($resql)
|
||||
|
||||
// Statut
|
||||
print '<td nowrap="nowrap">';
|
||||
print $adh->LibStatut($objp->statut,$objp->cotisation,$objp->datefin,2);
|
||||
print $adh->LibStatut($objp->statut,$objp->cotisation,$datefin,2);
|
||||
print "</td>";
|
||||
|
||||
// Date fin cotisation
|
||||
if ($objp->datefin)
|
||||
if ($datefin)
|
||||
{
|
||||
print '<td align="center" nowrap="nowrap">';
|
||||
if ($objp->datefin < time() && $objp->statut > 0)
|
||||
if ($datefin < time() && $objp->statut > 0)
|
||||
{
|
||||
print dol_print_date($objp->datefin,'day')." ".img_warning($langs->trans("SubscriptionLate"));
|
||||
print dol_print_date($datefin,'day')." ".img_warning($langs->trans("SubscriptionLate"));
|
||||
}
|
||||
else
|
||||
{
|
||||
print dol_print_date($objp->datefin,'day');
|
||||
print dol_print_date($datefin,'day');
|
||||
}
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/lib/member.lib.php');
|
||||
require_once(DOL_DOCUMENT_ROOT.'/adherents/adherent.class.php');
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
|
||||
|
||||
$langs->load("members");
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/** \file htdocs/adherents/pre.inc.php
|
||||
* \ingroup member
|
||||
* \brief Fichier de gestion du menu gauche du module adherent
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("../main.inc.php");
|
||||
|
||||
function llxHeader($head = '', $title='', $help_url='')
|
||||
{
|
||||
global $user, $conf, $langs;
|
||||
|
||||
$langs->load("members");
|
||||
|
||||
top_menu($head, $title);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Members"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/fiche.php?action=create",$langs->trans("NewMember"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php",$langs->trans("List"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=-1",$langs->trans("MenuMembersToValidate"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1",$langs->trans("MenuMembersValidated"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1&filter=outofdate",$langs->trans("MenuMembersNotUpToDate"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1&filter=uptodate",$langs->trans("MenuMembersUpToDate"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=0",$langs->trans("MenuMembersResiliated"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/public.php?leftmenu=member_public",$langs->trans("MemberPublicLinks"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Exports"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("Datas"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/htpasswd.php",$langs->trans("Filehtpasswd"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/cartes/carte.php",$langs->trans("MembersCards"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/cartes/etiquette.php",$langs->trans("MembersTickets"));
|
||||
|
||||
$langs->load("compta");
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Accountancy"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/cotisations.php",$langs->trans("Subscriptions"));
|
||||
$langs->load("banks");
|
||||
$menu->add_submenu(DOL_URL_ROOT."/compta/bank/",$langs->trans("Banks"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Setup"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/type.php",$langs->trans("MembersTypes"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/options.php",$langs->trans("MembersAttributes"));
|
||||
|
||||
left_menu($menu->liste, $help_url);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
|
||||
|
||||
|
||||
@@ -48,12 +48,10 @@ print '<br>';
|
||||
print '<table class="border" cellspacing="0" cellpadding="3">';
|
||||
print '<tr class="liste_titre"><td>'.$langs->trans("Description").'</td><td>'.$langs->trans("URL").'</td></tr>';
|
||||
// Should work with DOL_URL_ROOT='' or DOL_URL_ROOT='/dolibarr'
|
||||
$firstpart=$dolibarr_main_url_root;
|
||||
$regex='/'.DOL_URL_ROOT.'$/i';
|
||||
$firstpart=preg_replace($regex,'',$firstpart);
|
||||
print '<tr><td>'.$langs->trans("BlankSubscriptionForm").'</td><td><a target="_blank" href="'.DOL_URL_ROOT.'/public/members/new.php'.'">'.$firstpart.DOL_URL_ROOT.'/public/members/new.php'.'</a></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PublicMemberList").'</td><td><a target="_blank" href="'.DOL_URL_ROOT.'/public/members/public_list.php'.'">'.$firstpart.DOL_URL_ROOT.'/public/members/public_list.php'.'</a></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PublicMemberCard").'</td><td>'.$firstpart.DOL_URL_ROOT.'/public/members/public_card.php?id=xxx'.'</td></tr>';
|
||||
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',$dolibarr_main_url_root);
|
||||
print '<tr><td>'.$langs->trans("BlankSubscriptionForm").'</td><td><a target="_blank" href="'.DOL_URL_ROOT.'/public/members/new.php'.'">'.$urlwithouturlroot.DOL_URL_ROOT.'/public/members/new.php'.'</a></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PublicMemberList").'</td><td><a target="_blank" href="'.DOL_URL_ROOT.'/public/members/public_list.php'.'">'.$urlwithouturlroot.DOL_URL_ROOT.'/public/members/public_list.php'.'</a></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("PublicMemberCard").'</td><td>'.$urlwithouturlroot.DOL_URL_ROOT.'/public/members/public_card.php?id=xxx'.'</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
|
||||
@@ -128,11 +128,8 @@ llxHeader('',$langs->trans("MembersTypeSetup"),'EN:Module_Foundations|FR:Module_
|
||||
|
||||
$form=new Form($db);
|
||||
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* Liste des types d'adh<64>rents */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
// Liste of members type
|
||||
|
||||
if (! $rowid && $_GET["action"] != 'create' && $_GET["action"] != 'edit')
|
||||
{
|
||||
@@ -217,7 +214,7 @@ if ($_GET["action"] == 'create')
|
||||
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Label").'</td><td><input type="text" name="libelle" size="40"></td></tr>';
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("Label").'</td><td><input type="text" name="libelle" size="40"></td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("SubscriptionRequired").'</td><td>';
|
||||
print $htmls->selectyesno("cotisation",1,1);
|
||||
@@ -245,11 +242,13 @@ if ($_GET["action"] == 'create')
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td colspan="2" align="center"><input type="submit" name="button" class="button" value="'.$langs->trans("Add").'"> ';
|
||||
print '<input type="submit" name="button" class="button" value="'.$langs->trans("Cancel").'"></td></tr>';
|
||||
print "</table>\n";
|
||||
|
||||
print '<br>';
|
||||
print '<center><input type="submit" name="button" class="button" value="'.$langs->trans("Add").'"> ';
|
||||
print '<input type="submit" name="button" class="button" value="'.$langs->trans("Cancel").'"></center>';
|
||||
|
||||
print "</form>\n";
|
||||
print "</table>\n";
|
||||
}
|
||||
|
||||
/* ************************************************************************** */
|
||||
@@ -334,7 +333,7 @@ if ($rowid > 0)
|
||||
$membertypestatic=new AdherentType($db);
|
||||
|
||||
$sql = "SELECT d.rowid, d.login, d.prenom, d.nom, d.societe, ";
|
||||
$sql.= " ".$db->pdate("d.datefin")." as datefin,";
|
||||
$sql.= " d.datefin,";
|
||||
$sql.= " d.email, d.fk_adherent_type as type_id, d.morphy, d.statut,";
|
||||
$sql.= " t.libelle as type, t.cotisation";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."adherent_type as t";
|
||||
@@ -485,6 +484,8 @@ if ($rowid > 0)
|
||||
{
|
||||
$objp = $db->fetch_object($resql);
|
||||
|
||||
$datefin=$db->jdate($objp->datefin);
|
||||
|
||||
$adh=new Adherent($db);
|
||||
|
||||
// Nom
|
||||
@@ -518,20 +519,20 @@ if ($rowid > 0)
|
||||
|
||||
// Statut
|
||||
print '<td nowrap="nowrap">';
|
||||
print $adh->LibStatut($objp->statut,$objp->cotisation,$objp->datefin,2);
|
||||
print $adh->LibStatut($objp->statut,$objp->cotisation,$datefin,2);
|
||||
print "</td>";
|
||||
|
||||
// Date fin cotisation
|
||||
if ($objp->datefin)
|
||||
if ($datefin)
|
||||
{
|
||||
print '<td align="center" nowrap="nowrap">';
|
||||
if ($objp->datefin < time() && $objp->statut > 0)
|
||||
if ($datefin < time() && $objp->statut > 0)
|
||||
{
|
||||
print dol_print_date($objp->datefin,'day')." ".img_warning($langs->trans("SubscriptionLate"));
|
||||
print dol_print_date($datefin,'day')." ".img_warning($langs->trans("SubscriptionLate"));
|
||||
}
|
||||
else
|
||||
{
|
||||
print dol_print_date($objp->datefin,'day');
|
||||
print dol_print_date($datefin,'day');
|
||||
}
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require('./pre.inc.php');
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load('admin');
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
@@ -189,31 +189,28 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
||||
/*
|
||||
* Spip
|
||||
*/
|
||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
||||
$var=!$var;
|
||||
if ($conf->global->ADHERENT_USE_SPIP)
|
||||
{
|
||||
$var=!$var;
|
||||
if ($conf->global->ADHERENT_USE_SPIP)
|
||||
{
|
||||
$lien=img_tick().' ';
|
||||
$lien.='<a href="adherent.php?action=unset&value=0&name=ADHERENT_USE_SPIP">'.$langs->trans("Disable").'</a>';
|
||||
// Edition des varibales globales rattache au theme Mailman
|
||||
$constantes=array('ADHERENT_USE_SPIP_AUTO',
|
||||
'ADHERENT_SPIP_SERVEUR',
|
||||
'ADHERENT_SPIP_DB',
|
||||
'ADHERENT_SPIP_USER',
|
||||
'ADHERENT_SPIP_PASS'
|
||||
);
|
||||
print_fiche_titre("SPIP - Systeme de publication en ligne",$lien,'');
|
||||
form_constantes($constantes);
|
||||
}
|
||||
else
|
||||
{
|
||||
$lien='<a href="adherent.php?action=set&value=1&name=ADHERENT_USE_SPIP">'.$langs->trans("Activate").'</a>';
|
||||
print_fiche_titre("SPIP - Systeme de publication en ligne",$lien,'');
|
||||
}
|
||||
|
||||
print "<hr>\n";
|
||||
$lien=img_tick().' ';
|
||||
$lien.='<a href="'.DOL_URL_ROOT.'/admin/adherent.php?action=unset&value=0&name=ADHERENT_USE_SPIP">'.$langs->trans("Disable").'</a>';
|
||||
// Edition des varibales globales rattache au theme Mailman
|
||||
$constantes=array('ADHERENT_USE_SPIP_AUTO',
|
||||
'ADHERENT_SPIP_SERVEUR',
|
||||
'ADHERENT_SPIP_DB',
|
||||
'ADHERENT_SPIP_USER',
|
||||
'ADHERENT_SPIP_PASS'
|
||||
);
|
||||
print_fiche_titre("SPIP CMS",$lien,'');
|
||||
form_constantes($constantes);
|
||||
}
|
||||
else
|
||||
{
|
||||
$lien='<a href="'.DOL_URL_ROOT.'/admin/adherent.php?action=set&value=1&name=ADHERENT_USE_SPIP">'.$langs->trans("Activate").'</a>';
|
||||
print_fiche_titre("SPIP - CMS",$lien,'');
|
||||
}
|
||||
|
||||
print "<hr>\n";
|
||||
|
||||
/*
|
||||
* Edition info modele document
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/agenda.lib.php");
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/lib/agenda.lib.php');
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/facture.class.php');
|
||||
require_once(DOL_DOCUMENT_ROOT.'/compta/facture/facture.class.php');
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("companies");
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/barcode/html.formbarcode.class.php");
|
||||
|
||||
@@ -226,7 +226,7 @@ print '<td> </td>';
|
||||
print '</tr>';
|
||||
|
||||
// Chemin du binaire genbarcode sous linux
|
||||
if (!isset($_ENV['windir']) && !file_exists($_ENV['windir']))
|
||||
if (! isset($_SERVER['WINDIR']))
|
||||
{
|
||||
$var=!$var;
|
||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
@@ -236,7 +236,7 @@ if (!isset($_ENV['windir']) && !file_exists($_ENV['windir']))
|
||||
print '<td>'.$langs->trans("GenbarcodeLocation").'</td>';
|
||||
print '<td width="60" align="center">';
|
||||
print '<input type="text" size="40" name="genbarcodelocation" value="'.$conf->global->GENBARCODE_LOCATION.'">';
|
||||
if (! empty($conf->global->GENBARCODE_LOCATION) && ! file_exists($conf->global->GENBARCODE_LOCATION))
|
||||
if (! empty($conf->global->GENBARCODE_LOCATION) && ! @file_exists($conf->global->GENBARCODE_LOCATION))
|
||||
{
|
||||
$langs->load("errors");
|
||||
print '<br><font class="error">'.$langs->trans("ErrorFileNotFound",$conf->global->GENBARCODE_LOCATION).'</font>';
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/boutique.php
|
||||
\ingroup boutique
|
||||
\brief Page d'administration/configuration du module OsCommerce
|
||||
\version $Revision$
|
||||
* \file htdocs/admin/boutique.php
|
||||
* \ingroup boutique
|
||||
* \brief Page d'administration/configuration du module OsCommerce
|
||||
* \version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -18,12 +19,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/boxes.php
|
||||
\brief Page d'administration/configuration des boites
|
||||
\version $Id$
|
||||
*/
|
||||
* \file htdocs/admin/boxes.php
|
||||
* \brief Page to setup boxes
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/modules_boxes.php");
|
||||
include_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
@@ -32,7 +33,7 @@ $langs->load("admin");
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
// D<EFBFBD>finition des positions possibles pour les boites
|
||||
// Definition des positions possibles pour les boites
|
||||
$pos_array = array(0); // Positions possibles pour une boite (0,1,2,...)
|
||||
$pos_name = array(0=>$langs->trans("Home")); // Nom des positions 0=Homepage, 1=...
|
||||
$boxes = array();
|
||||
@@ -48,33 +49,47 @@ if ((isset($_POST["action"]) && $_POST["action"] == 'addconst'))
|
||||
if ($_POST["action"] == 'add')
|
||||
{
|
||||
$sql = "SELECT rowid";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."boxes";
|
||||
$sql.= " WHERE fk_user=0 AND box_id=".$_POST["boxid"]." AND position=".$_POST["pos"];
|
||||
$resql = $db->query($sql);
|
||||
dol_syslog("boxes.php::search if box active sql=".$sql);
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."boxes";
|
||||
$sql.= " WHERE fk_user = 0";
|
||||
$sql.= " AND box_id = ".$_POST["boxid"];
|
||||
$sql.= " AND position = ".$_POST["pos"];
|
||||
|
||||
$resql = $db->query($sql);
|
||||
dol_syslog("boxes.php::search if box active sql=".$sql);
|
||||
if ($resql)
|
||||
{
|
||||
$num = $db->num_rows($resql);
|
||||
if ($num == 0)
|
||||
{
|
||||
$db->begin();
|
||||
{
|
||||
$num = $db->num_rows($resql);
|
||||
if ($num == 0)
|
||||
{
|
||||
$db->begin();
|
||||
|
||||
// Si la boite n'est pas deja active, insert with box_order=''
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."boxes (box_id, position, box_order, fk_user) values (".$_POST["boxid"].",".$_POST["pos"].", '', 0)";
|
||||
dol_syslog("boxes.php activate box sql=".$sql);
|
||||
$resql = $db->query($sql);
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."boxes (";
|
||||
$sql.= "box_id";
|
||||
$sql.= ", position";
|
||||
$sql.= ", box_order";
|
||||
$sql.= ", fk_user";
|
||||
$sql.= ") values (";
|
||||
$sql.= $_POST["boxid"];
|
||||
$sql.= ", ".$_POST["pos"];
|
||||
$sql.= ", ''";
|
||||
$sql.= ", 0";
|
||||
$sql.= ")";
|
||||
|
||||
// Remove all personalized setup when a box is activated or disabled
|
||||
dol_syslog("boxes.php activate box sql=".$sql);
|
||||
$resql = $db->query($sql);
|
||||
|
||||
// Remove all personalized setup when a box is activated or disabled
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."user_param";
|
||||
$sql.= " WHERE param like 'MAIN_BOXES_%'";
|
||||
$sql.= " WHERE param LIKE 'MAIN_BOXES_%'";
|
||||
dol_syslog("boxes.php delete user_param sql=".$sql);
|
||||
$resql = $db->query($sql);
|
||||
$resql = $db->query($sql);
|
||||
|
||||
$db->commit();
|
||||
}
|
||||
|
||||
|
||||
Header("Location: boxes.php");
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -85,15 +100,15 @@ if ($_POST["action"] == 'add')
|
||||
if ($_GET["action"] == 'delete')
|
||||
{
|
||||
$db->begin();
|
||||
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."boxes";
|
||||
$sql.= " WHERE rowid=".$_GET["rowid"];
|
||||
$resql = $db->query($sql);
|
||||
|
||||
// Remove all personalized setup when a box is activated or disabled
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."user_param";
|
||||
$sql.= " WHERE param like 'MAIN_BOXES_%'";
|
||||
$resql = $db->query($sql);
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."boxes";
|
||||
$sql.= " WHERE rowid=".$_GET["rowid"];
|
||||
$resql = $db->query($sql);
|
||||
|
||||
// Remove all personalized setup when a box is activated or disabled
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."user_param";
|
||||
$sql.= " WHERE param LIKE 'MAIN_BOXES_%'";
|
||||
$resql = $db->query($sql);
|
||||
|
||||
$db->commit();
|
||||
}
|
||||
@@ -101,35 +116,34 @@ if ($_GET["action"] == 'delete')
|
||||
if ($_GET["action"] == 'switch')
|
||||
{
|
||||
// On permute les valeur du champ box_order des 2 lignes de la table boxes
|
||||
$db->begin();
|
||||
$db->begin();
|
||||
|
||||
$objfrom=new ModeleBoxes($db);
|
||||
$objfrom->fetch($_GET["switchfrom"]);
|
||||
|
||||
$objto=new ModeleBoxes($db);
|
||||
$objto->fetch($_GET["switchto"]);
|
||||
|
||||
if (is_object($objfrom) && is_object($objto))
|
||||
{
|
||||
$sql="UPDATE ".MAIN_DB_PREFIX."boxes set box_order='".$objto->box_order."' WHERE rowid=".$objfrom->rowid;
|
||||
$objfrom=new ModeleBoxes($db);
|
||||
$objfrom->fetch($_GET["switchfrom"]);
|
||||
|
||||
$objto=new ModeleBoxes($db);
|
||||
$objto->fetch($_GET["switchto"]);
|
||||
|
||||
if (is_object($objfrom) && is_object($objto))
|
||||
{
|
||||
$sql="UPDATE ".MAIN_DB_PREFIX."boxes set box_order='".$objto->box_order."' WHERE rowid=".$objfrom->rowid;
|
||||
//print "xx".$sql;
|
||||
$resultupdatefrom = $db->query($sql);
|
||||
if (! $resultupdatefrom) { dol_print_error($db); }
|
||||
$sql="UPDATE ".MAIN_DB_PREFIX."boxes set box_order='".$objfrom->box_order."' WHERE rowid=".$objto->rowid;
|
||||
$resultupdatefrom = $db->query($sql);
|
||||
if (! $resultupdatefrom) { dol_print_error($db); }
|
||||
$sql="UPDATE ".MAIN_DB_PREFIX."boxes set box_order='".$objfrom->box_order."' WHERE rowid=".$objto->rowid;
|
||||
//print "xx".$sql;
|
||||
$resultupdateto = $db->query($sql);
|
||||
if (! $resultupdateto) { dol_print_error($db); }
|
||||
}
|
||||
|
||||
if ($resultupdatefrom && $resultupdateto)
|
||||
{
|
||||
$db->commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->rollback();
|
||||
}
|
||||
$resultupdateto = $db->query($sql);
|
||||
if (! $resultupdateto) { dol_print_error($db); }
|
||||
}
|
||||
|
||||
if ($resultupdatefrom && $resultupdateto)
|
||||
{
|
||||
$db->commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->rollback();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -166,11 +180,11 @@ if ($resql)
|
||||
$obj = $db->fetch_object($resql);
|
||||
$boxes[$obj->position][$obj->box_id]=1;
|
||||
$i++;
|
||||
|
||||
|
||||
array_push($actives,$obj->box_id);
|
||||
|
||||
if ($obj->box_order == '' || $obj->box_order == '0' || $decalage) $decalage++;
|
||||
// On renum<EFBFBD>rote l'ordre des boites si l'une d'elle est <EFBFBD> ''
|
||||
// On renumerote l'ordre des boites si l'une d'elle est a ''
|
||||
// This occurs just after an insert.
|
||||
if ($decalage)
|
||||
{
|
||||
@@ -252,20 +266,29 @@ $var=True;
|
||||
if ($resql)
|
||||
{
|
||||
$html=new Form($db);
|
||||
|
||||
|
||||
$num = $db->num_rows($resql);
|
||||
$i = 0;
|
||||
|
||||
|
||||
// Boucle sur toutes les boites
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
||||
$module=preg_replace('/.php$/i','',$obj->file);
|
||||
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$module.".php");
|
||||
|
||||
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$obj->file,$regs))
|
||||
{
|
||||
$module = $regs[1];
|
||||
$sourcefile = "/".$regs[2]."/inc/boxes/".$module.".php";
|
||||
}
|
||||
else
|
||||
{
|
||||
$module=preg_replace('/.php$/i','',$obj->file);
|
||||
$sourcefile = "/includes/boxes/".$module.".php";
|
||||
}
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT.$sourcefile);
|
||||
$box=new $module($db,$obj->note);
|
||||
|
||||
|
||||
// if (in_array($obj->rowid, $actives) && $box->box_multiple <> 1)
|
||||
if (in_array($obj->rowid, $actives))
|
||||
{
|
||||
@@ -274,15 +297,23 @@ if ($resql)
|
||||
else
|
||||
{
|
||||
$var = ! $var;
|
||||
|
||||
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$box->boximg))
|
||||
{
|
||||
$logo = $box->boximg;
|
||||
}
|
||||
else
|
||||
{
|
||||
$logo=preg_replace("/^object_/i","",$box->boximg);
|
||||
}
|
||||
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
$logo=preg_replace("/^object_/i","",$box->boximg);
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td>'.img_object("",$logo).' '.$box->boxlabel.'</td>';
|
||||
print '<td>' . ($obj->note?$obj->note:' ') . '</td>';
|
||||
print '<td>' . $obj->file . '</td>';
|
||||
|
||||
print '<td>' . $sourcefile . '</td>';
|
||||
|
||||
// Pour chaque position possible, on affiche un lien
|
||||
// d'activation si boite non deja active pour cette position
|
||||
print '<td align="center">';
|
||||
@@ -291,19 +322,19 @@ if ($resql)
|
||||
print '<input type="hidden" name="boxid" value="'.$obj->rowid.'">';
|
||||
print ' <input type="submit" class="button" name="button" value="'.$langs->trans("Activate").'">';
|
||||
print '</td>';
|
||||
|
||||
|
||||
print '</tr></form>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
$db->free($resql);
|
||||
}
|
||||
|
||||
print '</table>';
|
||||
|
||||
/*
|
||||
* Boites activ<EFBFBD>es
|
||||
* Boites activees
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -334,23 +365,41 @@ if ($resql)
|
||||
$num = $db->num_rows($resql);
|
||||
$i = 0;
|
||||
$var=true;
|
||||
|
||||
|
||||
$box_order=1;
|
||||
$foundrupture=1;
|
||||
|
||||
|
||||
// On lit avec un coup d'avance
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
||||
|
||||
while ($obj && $i < $num)
|
||||
{
|
||||
$var = ! $var;
|
||||
$objnext = $db->fetch_object($resql);
|
||||
|
||||
$module=preg_replace('/.php$/i','',$obj->file);
|
||||
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$module.".php");
|
||||
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$obj->file,$regs))
|
||||
{
|
||||
$module = $regs[1];
|
||||
$sourcefile = "/".$regs[2]."/inc/boxes/".$module.".php";
|
||||
}
|
||||
else
|
||||
{
|
||||
$module=preg_replace('/.php$/i','',$obj->file);
|
||||
$sourcefile = "/includes/boxes/".$module.".php";
|
||||
}
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT.$sourcefile);
|
||||
$box=new $module($db,$obj->note);
|
||||
|
||||
$logo=preg_replace("/^object_/i","",$box->boximg);
|
||||
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$box->boximg))
|
||||
{
|
||||
$logo = $box->boximg;
|
||||
}
|
||||
else
|
||||
{
|
||||
$logo=preg_replace("/^object_/i","",$box->boximg);
|
||||
}
|
||||
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td>'.img_object("",$logo).' '.$box->boxlabel.'</td>';
|
||||
print '<td>' . ($obj->note?$obj->note:' ') . '</td>';
|
||||
@@ -367,17 +416,17 @@ if ($resql)
|
||||
print '<td align="center">';
|
||||
print '<a href="boxes.php?rowid='.$obj->rowid.'&action=delete">'.img_delete().'</a>';
|
||||
print '</td>';
|
||||
|
||||
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
|
||||
|
||||
$box_order++;
|
||||
|
||||
|
||||
if (! $foundrupture) $objprevious = $obj;
|
||||
else $box_order=1;
|
||||
$obj=$objnext;
|
||||
}
|
||||
|
||||
|
||||
$db->free($resql);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/html.formproduct.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/product/html.formproduct.class.php");
|
||||
|
||||
// If socid provided by ajax company selector
|
||||
if (! empty($_REQUEST['CASHDESK_ID_THIRDPARTY_id']))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.org>
|
||||
* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -16,14 +16,15 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/** \file htdocs/admin/clicktodial.php
|
||||
\ingroup clicktodial
|
||||
\brief Page d'administration/configuration du module clicktodial
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
/**
|
||||
* \file htdocs/admin/clicktodial.php
|
||||
* \ingroup clicktodial
|
||||
* \brief Page d'administration/configuration du module clicktodial
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
@@ -51,7 +52,8 @@ if ($_POST["action"] == 'setvalue' && $user->admin)
|
||||
*
|
||||
*/
|
||||
|
||||
llxHeader();
|
||||
$wikihelp='EN:Module_ClickToDial_En|FR:Module_ClickToDial|ES:Módulo_ClickTodial_Es';
|
||||
llxHeader($langs->trans("ClickToDialSetup"),'',$wikihelp);
|
||||
|
||||
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
|
||||
print_fiche_titre($langs->trans("ClickToDialSetup"),$linkback,'setup');
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php');
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/images.lib.php");
|
||||
@@ -557,7 +557,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Affichage des parametres
|
||||
* Show parameters
|
||||
*/
|
||||
|
||||
if ($message) print $message.'<br>';
|
||||
@@ -689,7 +689,7 @@ else
|
||||
if ($langs->transcountry("ProfId1",$code_pays) != '-')
|
||||
{
|
||||
print $conf->global->MAIN_INFO_SIREN;
|
||||
if ($code_pays == 'FR') print ' <a href="http://avis-situation-sirene.insee.fr/avisitu/jsp/avis.jsp" target="_blank">'.$langs->trans("Check").'</a>';
|
||||
if ($conf->global->MAIN_INFO_SIREN && $code_pays == 'FR') print ' <a href="http://avis-situation-sirene.insee.fr/avisitu/jsp/avis.jsp" target="_blank">'.$langs->trans("Check").'</a>';
|
||||
}
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require('./pre.inc.php');
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load('admin');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
||||
*
|
||||
@@ -19,13 +19,13 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/confexped.php
|
||||
\ingroup produit
|
||||
\brief Page d'administration/configuration du module Expedition
|
||||
\version $Id$
|
||||
*/
|
||||
* \file htdocs/admin/confexped.php
|
||||
* \ingroup produit
|
||||
* \brief Page to setup sending module
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
@@ -112,28 +112,22 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Feature").'</td>';
|
||||
print '<td align="center" width="20"> </td>';
|
||||
print '<td align="center" width="100">'.$langs->trans("Action").'</td>';
|
||||
print '<td align="center" width="100">'.$langs->trans("Status").'</td>';
|
||||
print "</tr>\n";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"sending\">";
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<td>'.$langs->trans("SendingsAbility").'</td>';
|
||||
print '<td align="center" width="20">';
|
||||
|
||||
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
||||
{
|
||||
print img_tick();
|
||||
}
|
||||
|
||||
print '</td>';
|
||||
print '<td align="center" width="100">';
|
||||
|
||||
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 0)
|
||||
{
|
||||
print '<a href="confexped.php?action=activate_sending">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="confexped.php?action=activate_sending">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
else if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
||||
{
|
||||
print '<a href="confexped.php?action=disable_sending">'.$langs->trans("Disable").'</a>';
|
||||
print '<a href="confexped.php?action=disable_sending">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||
}
|
||||
|
||||
print "</td>";
|
||||
@@ -150,22 +144,16 @@ print "<input type=\"hidden\" name=\"action\" value=\"delivery\">";
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<td>'.$langs->trans("DeliveriesOrderAbility").'</td>';
|
||||
print '<td align="center" width="20">';
|
||||
|
||||
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
||||
{
|
||||
print img_tick();
|
||||
}
|
||||
|
||||
print '</td>';
|
||||
print '<td align="center" width="100">';
|
||||
|
||||
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 0)
|
||||
{
|
||||
print '<a href="confexped.php?action=activate_delivery">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="confexped.php?action=activate_delivery">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
else if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
||||
{
|
||||
print '<a href="confexped.php?action=disable_delivery">'.$langs->trans("Disable").'</a>';
|
||||
print '<a href="confexped.php?action=disable_delivery">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||
}
|
||||
|
||||
print "</td>";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -21,11 +21,11 @@
|
||||
/**
|
||||
* \file htdocs/admin/const.php
|
||||
* \ingroup setup
|
||||
* \brief Admin page to defined miscellaneous constants
|
||||
* \brief Admin page to define miscellaneous constants
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
@@ -43,9 +43,25 @@ $typeconst=array('yesno','texte','chaine');
|
||||
|
||||
if ($_POST["action"] == 'add')
|
||||
{
|
||||
if (dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],1,isset($_POST["constnote"])?$_POST["constnote"]:'',$_POST["entity"]) < 0)
|
||||
$error=0;
|
||||
|
||||
if (empty($_POST["constname"]))
|
||||
{
|
||||
print $db->error();
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Name")).'</div>';
|
||||
$error++;
|
||||
}
|
||||
if (empty($_POST["constvalue"]))
|
||||
{
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Value")).'</div>';
|
||||
$error++;
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
if (dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],1,isset($_POST["constnote"])?$_POST["constnote"]:'',$_POST["entity"]) < 0)
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +73,7 @@ if (($_POST["const"] && isset($_POST["update"]) && $_POST["update"] == $langs->t
|
||||
{
|
||||
if (dolibarr_set_const($db, $const["name"],$const["value"],$const["type"],1,$const["note"],$const["entity"]) < 0)
|
||||
{
|
||||
print $db->error();
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,11 +84,11 @@ if ($_POST["const"] && $_POST["delete"] && $_POST["delete"] == $langs->trans("De
|
||||
{
|
||||
foreach($_POST["const"] as $const)
|
||||
{
|
||||
if ($const["check"])
|
||||
if ($const["check"]) // Is checkbox checked
|
||||
{
|
||||
if (dolibarr_del_const($db, $const["rowid"], -1) < 0)
|
||||
{
|
||||
print $db->error();
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -83,7 +99,7 @@ if ($_GET["action"] == 'delete')
|
||||
{
|
||||
if (dolibarr_del_const($db, $_GET["rowid"],$_GET["entity"]) < 0)
|
||||
{
|
||||
print $db->error();
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,13 +108,14 @@ if ($_GET["action"] == 'delete')
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader();
|
||||
llxHeader('',$langs->trans("OtherSetup"));
|
||||
|
||||
print_fiche_titre($langs->trans("OtherSetup"),'','setup');
|
||||
|
||||
print $langs->trans("ConstDesc")."<br>\n";
|
||||
print "<br>\n";
|
||||
|
||||
if ($mesg) print $mesg;
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
@@ -145,7 +162,7 @@ print '</tr>';
|
||||
print '</form>';
|
||||
print "\n";
|
||||
|
||||
print '<form action="'.DOL_URL_ROOT.'/admin/const.php" method="POST">';
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
|
||||
# Affiche lignes des constantes
|
||||
@@ -207,7 +224,7 @@ if ($result)
|
||||
}
|
||||
|
||||
print '<td align="center">';
|
||||
if ($conf->use_javascript_ajax)
|
||||
if ($conf->use_javascript_ajax)
|
||||
{
|
||||
print '<input type="checkbox" id="check_'.$i.'" name="const['.$i.'][check]" value="1" onClick="displayElement(\'delconst\');">';
|
||||
print ' ';
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +27,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/html.formadmin.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/html.formcompany.class.php");
|
||||
|
||||
@@ -104,7 +105,7 @@ $tabsql[6] = "SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.t
|
||||
$tabsql[7] = "SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.deductible, p.code as pays_code, p.libelle as pays, a.fk_pays as pays_id, a.active FROM ".MAIN_DB_PREFIX."c_chargesociales AS a, ".MAIN_DB_PREFIX."c_pays as p WHERE a.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[8] = "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_typent";
|
||||
$tabsql[9] = "SELECT code, code_iso, label as libelle, active FROM ".MAIN_DB_PREFIX."c_currencies";
|
||||
$tabsql[10]= "SELECT t.rowid, t.taux, p.libelle as pays, p.code as pays_code, t.fk_pays as pays_id, t.recuperableonly, t.note, t.active FROM ".MAIN_DB_PREFIX."c_tva as t, llx_c_pays as p WHERE t.fk_pays=p.rowid";
|
||||
$tabsql[10]= "SELECT t.rowid, t.taux, t.localtax1, t.localtax2, p.libelle as pays, p.code as pays_code, t.fk_pays as pays_id, t.recuperableonly, t.note, t.active FROM ".MAIN_DB_PREFIX."c_tva as t, llx_c_pays as p WHERE t.fk_pays=p.rowid";
|
||||
$tabsql[11]= "SELECT t.rowid as rowid, element, source, code, libelle, active FROM ".MAIN_DB_PREFIX."c_type_contact AS t";
|
||||
$tabsql[12]= "SELECT c.rowid as rowid, code, sortorder, c.libelle, c.libelle_facture, nbjour, fdm, decalage, active FROM ".MAIN_DB_PREFIX."cond_reglement AS c";
|
||||
$tabsql[13]= "SELECT id as rowid, code, c.libelle, type, active FROM ".MAIN_DB_PREFIX."c_paiement AS c";
|
||||
@@ -125,7 +126,7 @@ $tabsqlsort[6] ="a.type ASC, a.code ASC";
|
||||
$tabsqlsort[7] ="pays ASC, code ASC, a.libelle ASC";
|
||||
$tabsqlsort[8] ="libelle ASC";
|
||||
$tabsqlsort[9] ="code ASC";
|
||||
$tabsqlsort[10]="pays ASC, taux ASC, recuperableonly ASC";
|
||||
$tabsqlsort[10]="pays ASC, taux ASC, recuperableonly ASC, localtax1 ASC, localtax2 ASC";
|
||||
$tabsqlsort[11]="element ASC, source ASC, code ASC";
|
||||
$tabsqlsort[12]="sortorder ASC, code ASC";
|
||||
$tabsqlsort[13]="code ASC";
|
||||
@@ -146,7 +147,7 @@ $tabfield[6] = "code,libelle,type";
|
||||
$tabfield[7] = "code,libelle,pays_id,pays,deductible";
|
||||
$tabfield[8] = "code,libelle";
|
||||
$tabfield[9] = "code,code_iso,libelle";
|
||||
$tabfield[10]= "pays_id,pays,taux,recuperableonly,note";
|
||||
$tabfield[10]= "pays_id,pays,taux,recuperableonly,localtax1,localtax2,note";
|
||||
$tabfield[11]= "element,source,code,libelle";
|
||||
$tabfield[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
|
||||
$tabfield[13]= "code,libelle,type";
|
||||
@@ -167,7 +168,7 @@ $tabfieldvalue[6] = "code,libelle,type";
|
||||
$tabfieldvalue[7] = "code,libelle,pays,deductible";
|
||||
$tabfieldvalue[8] = "code,libelle";
|
||||
$tabfieldvalue[9] = "code,code_iso,libelle";
|
||||
$tabfieldvalue[10]= "pays,taux,recuperableonly,note";
|
||||
$tabfieldvalue[10]= "pays,taux,recuperableonly,localtax1,localtax2,note";
|
||||
$tabfieldvalue[11]= "element,source,code,libelle";
|
||||
$tabfieldvalue[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
|
||||
$tabfieldvalue[13]= "code,libelle,type";
|
||||
@@ -188,7 +189,7 @@ $tabfieldinsert[6] = "code,libelle,type";
|
||||
$tabfieldinsert[7] = "code,libelle,fk_pays,deductible";
|
||||
$tabfieldinsert[8] = "code,libelle";
|
||||
$tabfieldinsert[9] = "code,code_iso,label";
|
||||
$tabfieldinsert[10]= "fk_pays,taux,recuperableonly,note";
|
||||
$tabfieldinsert[10]= "fk_pays,taux,recuperableonly,localtax1,localtax2,note";
|
||||
$tabfieldinsert[11]= "element,source,code,libelle";
|
||||
$tabfieldinsert[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
|
||||
$tabfieldinsert[13]= "code,libelle,type";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -22,9 +22,9 @@
|
||||
* \brief Page d'administration/configuration du module Dons
|
||||
* \version $Id$
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/don.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/dons/don.class.php");
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("donations");
|
||||
@@ -122,7 +122,7 @@ if ($_GET["action"] == 'del')
|
||||
|
||||
|
||||
/*
|
||||
* Affiche page
|
||||
* View
|
||||
*/
|
||||
|
||||
$dir = "../includes/modules/dons/";
|
||||
@@ -207,20 +207,20 @@ while (($file = readdir($handle))!==false)
|
||||
print "<td align=\"center\">\n";
|
||||
if ($conf->global->DON_ADDON_MODEL == $name)
|
||||
{
|
||||
print img_tick($langs->trans("Enabled"));
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print ' ';
|
||||
print '</td><td align="center">';
|
||||
print '<a href="dons.php?action=setdoc&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="dons.php?action=setdoc&value='.$name.'">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
print "</td>";
|
||||
}
|
||||
|
||||
@@ -228,11 +228,11 @@ while (($file = readdir($handle))!==false)
|
||||
print "<td align=\"center\">";
|
||||
if ($conf->global->DON_ADDON_MODEL == "$name")
|
||||
{
|
||||
print img_tick($langs->trans("Default"));
|
||||
print img_picto($langs->trans("Default"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||
* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/admin/droitpret.php
|
||||
* \ingroup pret
|
||||
* \brief Page d'administration/configuration du module DroitPret
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/categories/categorie.class.php");
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("categories");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
// positionne la variable pour le test d'affichage de l'icone
|
||||
|
||||
$var=True;
|
||||
|
||||
|
||||
// Action mise a jour ou ajout d'une constante
|
||||
if ($_POST["action"] == 'update' || $_POST["action"] == 'add')
|
||||
{
|
||||
|
||||
if (! dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$_POST["consttype"],0,isset($_POST["constnote"])?$_POST["constnote"]:'',$conf->entity))
|
||||
{
|
||||
print $db->error();
|
||||
}
|
||||
else
|
||||
{
|
||||
Header("Location: droitpret.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
* Interface de configuration de certaines variables de la partie adherent
|
||||
*/
|
||||
|
||||
|
||||
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
|
||||
print_fiche_titre($langs->trans("PretSetup"),$linkback,'setup');
|
||||
print "<br>";
|
||||
|
||||
|
||||
print_fiche_titre($langs->trans("MemberMainOptions"),'','');
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td>';
|
||||
print '<td align="center">'.$langs->trans("Action").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=true;
|
||||
$form = new Form($db);
|
||||
|
||||
// Categorie
|
||||
$var=!$var;
|
||||
print '<form action="droitpret.php" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
print '<input type="hidden" name="rowid" value="'.$rowid.'">';
|
||||
print '<input type="hidden" name="constname" value="DROITPRET_CAT">';
|
||||
print '<input type="hidden" name="consttype" value="chaine">';
|
||||
print "<tr $bc[$var] class=value><td>".$langs->trans("catActive").'</td><td>';
|
||||
|
||||
print $form->select_all_categories(2,$conf->global->DROITPRET_CAT,"constvalue");
|
||||
|
||||
print '</td><td align="center" width="80">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Update").'" name="Button">';
|
||||
print "</td></tr>\n";
|
||||
print '</form>';
|
||||
|
||||
// Adresse destination
|
||||
$var=!$var;
|
||||
print '<form action="droitpret.php" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
print '<input type="hidden" name="rowid" value="'.$rowid.'">';
|
||||
print '<input type="hidden" name="constname" value="DROITPRET_MAIL">';
|
||||
print '<input type="hidden" name="consttype" value="chaine">';
|
||||
print "<tr $bc[$var] class=value><td>".$langs->trans("mailDroitPret").'</td>';
|
||||
|
||||
print '<td><input type="text" name="constvalue" value="'.$conf->global->DROITPRET_MAIL.'"></td>';
|
||||
|
||||
print '<td align="center" width="80">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Update").'" name="Button">';
|
||||
print "</td></tr>\n";
|
||||
print '</form>';
|
||||
|
||||
print '</table>';
|
||||
print '<br>';
|
||||
|
||||
?>
|
||||
@@ -1,119 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2007-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/admin/editeur.php
|
||||
* \ingroup editeur
|
||||
* \brief Page d'administration/configuration du module Editeur
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
// Action activation d'un sous module du module adherent
|
||||
if ($_POST["action"] == 'set')
|
||||
{
|
||||
$name = "EDITEUR_LIVRE_FORMAT_".time();
|
||||
$result=dolibarr_set_const($db, $name, $_POST["format"],'chaine',0,'',$conf->entity);
|
||||
if ($result < 0)
|
||||
{
|
||||
print $db->error();
|
||||
}
|
||||
}
|
||||
|
||||
// Action desactivation d'un sous module
|
||||
if ($_GET["action"] == 'unset')
|
||||
{
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const";
|
||||
$sql.= " WHERE ".$db->decrypt('name');
|
||||
$sql.= " LIKE 'EDITEUR_LIVRE_FORMAT_%'";
|
||||
$sql.= " AND rowid='".$_GET["id"]."';";
|
||||
if ($db->query($sql))
|
||||
{
|
||||
Header("Location: editeur.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader();
|
||||
|
||||
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
|
||||
print_fiche_titre($langs->trans("Configuration du module Editeur"),$linkback,'setup');
|
||||
print '<br>';
|
||||
|
||||
print '<form action="editeur.php" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<table class="nobordernopadding" width="100%">';
|
||||
|
||||
print '<input type="hidden" name="action" value="set">';
|
||||
print "<tr $bc[$var] class=value><td>".$langs->trans("NewFormat").'</td><td>';
|
||||
print '<input type="texte" name="format">';
|
||||
print '</td><td align="center" width="80">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="Button">';
|
||||
print "</td></tr>\n";
|
||||
|
||||
print '</table>';
|
||||
print '</form>';
|
||||
print '<br>';
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Formats").'</td>';
|
||||
print '<td align="center" width="80">'.$langs->trans("Action").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=true;
|
||||
|
||||
$sql = "SELECT";
|
||||
$sql.= " rowid";
|
||||
$sql.= ", ".$db->decrypt('value')." as value";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."const";
|
||||
$sql.= " WHERE ".$db->decrypt('name');
|
||||
$sql.= " LIKE 'EDITEUR_LIVRE_FORMAT_%'";
|
||||
$result = $db->query($sql);
|
||||
|
||||
while ($obj = $db->fetch_object($result) )
|
||||
{
|
||||
$var=!$var;
|
||||
|
||||
print "<tr $bc[$var]><td>".nl2br($obj->value)."</td>\n";
|
||||
|
||||
print '<td align="center">';
|
||||
print '<a href="editeur.php?action=unset&id='.$obj->rowid.'">'.$langs->trans('Delete').'</a>';
|
||||
print "</td></tr>\n";
|
||||
}
|
||||
|
||||
print '</table>';
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
?>
|
||||
@@ -19,13 +19,14 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/** \file htdocs/admin/energie.php
|
||||
\ingroup energie
|
||||
\brief Page d'administration/configuration du module de gestion de l'energie
|
||||
\version $Revision$
|
||||
*/
|
||||
/**
|
||||
* \file htdocs/admin/energie.php
|
||||
* \ingroup energie
|
||||
* \brief Page d'administration/configuration du module de gestion de l'energie
|
||||
* \version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/agenda.lib.php");
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003-2008 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
@@ -22,13 +22,13 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/expedition.php
|
||||
\ingroup expedition
|
||||
\brief Page d'administration/configuration du module Expedition
|
||||
\version $Id$
|
||||
* \file htdocs/admin/expedition.php
|
||||
* \ingroup expedition
|
||||
* \brief Page d'administration/configuration du module Expedition
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/expedition/expedition.class.php');
|
||||
|
||||
@@ -97,7 +97,7 @@ if ($_GET["action"] == 'del')
|
||||
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||
$sql.= " AND type = '".$type."'";
|
||||
$sql.= " AND entity = ".$conf->entity;
|
||||
|
||||
|
||||
if ($db->query($sql))
|
||||
{
|
||||
|
||||
@@ -141,12 +141,12 @@ if ($_GET["action"] == 'setmethod' || $_GET["action"] == 'setmod')
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/expedition/methode_expedition_$module.modules.php");
|
||||
|
||||
$class = "methode_expedition_$module";
|
||||
$expem = new $class($db);
|
||||
$classname = "methode_expedition_$module";
|
||||
$expem = new $classname($db);
|
||||
|
||||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."expedition_methode";
|
||||
$sql.= " WHERE rowid = ".$moduleid;
|
||||
|
||||
|
||||
$resql = $db->query($sql);
|
||||
if ($resql && ($statut == 1 || $_GET["action"] == 'setmod'))
|
||||
{
|
||||
@@ -155,7 +155,7 @@ if ($_GET["action"] == 'setmethod' || $_GET["action"] == 'setmod')
|
||||
$sqlu = "UPDATE ".MAIN_DB_PREFIX."expedition_methode";
|
||||
$sqlu.= " SET statut=1";
|
||||
$sqlu.= " WHERE rowid=".$moduleid;
|
||||
|
||||
|
||||
$result=$db->query($sqlu);
|
||||
if ($result)
|
||||
{
|
||||
@@ -288,7 +288,7 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td width="140">'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||
print "</tr>\n";
|
||||
@@ -319,26 +319,26 @@ if(is_dir($dir))
|
||||
print $module->description;
|
||||
print '</td>';
|
||||
|
||||
// Activ
|
||||
// Active
|
||||
if (in_array($name, $def))
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
if ($conf->global->EXPEDITION_ADDON_PDF != $name)
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||
print img_tick($langs->trans("Disable"));
|
||||
print img_picto($langs->trans("Activated"),'on');
|
||||
print '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print img_tick($langs->trans("Activated"));
|
||||
print img_picto($langs->trans("Activated"),'on');
|
||||
}
|
||||
print "</td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
print "</td>";
|
||||
}
|
||||
|
||||
@@ -346,11 +346,11 @@ if(is_dir($dir))
|
||||
print "<td align=\"center\">";
|
||||
if ($conf->global->EXPEDITION_ADDON_PDF == $name)
|
||||
{
|
||||
print img_tick($langs->trans("Default"));
|
||||
print img_picto($langs->trans("Default"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
@@ -378,10 +378,6 @@ else
|
||||
}
|
||||
print '</table>';
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
include_once(MAGPIERSS_PATH."rss_fetch.inc");
|
||||
|
||||
@@ -40,7 +40,7 @@ $def = array();
|
||||
$lastexternalrss=0;
|
||||
|
||||
// positionne la variable pour le nombre de rss externes
|
||||
$sql ="select MAX(name) name from ".MAIN_DB_PREFIX."const";
|
||||
$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const";
|
||||
$sql.=" WHERE name like 'EXTERNAL_RSS_URLRSS_%'";
|
||||
$result=$db->query($sql);
|
||||
if ($result)
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
/**
|
||||
* \file htdocs/admin/facture.php
|
||||
* \ingroup facture
|
||||
* \brief Page d'administration/configuration du module Facture
|
||||
* \brief Page to setup invoice module
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/facture.class.php');
|
||||
require_once(DOL_DOCUMENT_ROOT.'/compta/facture/facture.class.php');
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("companies");
|
||||
@@ -190,7 +190,7 @@ if ($_GET["action"] == 'delete')
|
||||
|
||||
|
||||
/*
|
||||
* View page
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader("",$langs->trans("BillsSetup"),'EN:Invoice_Configuration|FR:Configuration_module_facture|ES:ConfiguracionFactura');
|
||||
@@ -223,7 +223,7 @@ print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td nowrap>'.$langs->trans("Example").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
||||
print '</tr>'."\n";
|
||||
|
||||
@@ -273,11 +273,11 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
||||
print '<td align="center">';
|
||||
if ($conf->global->FACTURE_ADDON == "$file")
|
||||
{
|
||||
print img_tick($langs->trans("Activated"));
|
||||
print img_picto($langs->trans("Activated"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
@@ -367,7 +367,7 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||
print "</tr>\n";
|
||||
@@ -409,19 +409,19 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
||||
if ($conf->global->FACTURE_ADDON_PDF != "$name")
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||
print img_tick($langs->trans("Disable"));
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
print '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print img_tick($langs->trans("Enabled"));
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
}
|
||||
print "</td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
print "</td>";
|
||||
}
|
||||
|
||||
@@ -429,11 +429,11 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
||||
print "<td align=\"center\">";
|
||||
if ($conf->global->FACTURE_ADDON_PDF == "$name")
|
||||
{
|
||||
print img_tick($langs->trans("Default"));
|
||||
print img_picto($langs->trans("Default"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/fckeditor.php
|
||||
\ingroup fckeditor
|
||||
\brief Page d'activation du module FCKeditor dans les autres modules
|
||||
\version $Revision$
|
||||
*/
|
||||
* \file htdocs/admin/fckeditor.php
|
||||
* \ingroup fckeditor
|
||||
* \brief Page d'activation du module FCKeditor dans les autres modules
|
||||
* \version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
@@ -28,7 +28,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/fichinter/fichinter.class.php');
|
||||
|
||||
@@ -190,7 +190,7 @@ print '<tr class="liste_titre">';
|
||||
print '<td width="100">'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td>'.$langs->trans("Example").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
@@ -206,7 +206,7 @@ if ($handle)
|
||||
if (preg_match('/^(mod_.*)\.php$/i',$file,$reg))
|
||||
{
|
||||
$file = $reg[1];
|
||||
$className = substr($file,4);
|
||||
$classname = substr($file,4);
|
||||
|
||||
require_once($dir.$file.".php");
|
||||
|
||||
@@ -227,13 +227,13 @@ if ($handle)
|
||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
||||
|
||||
print '<td align="center">';
|
||||
if ($conf->global->FICHEINTER_ADDON == $className)
|
||||
if ($conf->global->FICHEINTER_ADDON == $classname)
|
||||
{
|
||||
print img_tick($langs->trans("Activated"));
|
||||
print img_picto($langs->trans("Activated"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$className.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$classname.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
@@ -294,7 +294,7 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Activated")."</td>\n";
|
||||
print '<td align="center" width="60">'.$langs->trans("Status")."</td>\n";
|
||||
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||
print "</tr>\n";
|
||||
@@ -328,19 +328,19 @@ while (($file = readdir($handle))!==false)
|
||||
if ($conf->global->FICHEINTER_ADDON_PDF != "$name")
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||
print img_tick($langs->trans("Disable"));
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
print '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print img_tick($langs->trans("Enabled"));
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
}
|
||||
print "</td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
print "</td>";
|
||||
}
|
||||
|
||||
@@ -348,11 +348,11 @@ while (($file = readdir($handle))!==false)
|
||||
print "<td align=\"center\">";
|
||||
if ($conf->global->FICHEINTER_ADDON_PDF == "$name")
|
||||
{
|
||||
print img_tick($langs->trans("Default"));
|
||||
print img_picto($langs->trans("Default"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
|
||||
@@ -21,13 +21,13 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/fournisseur.php
|
||||
\ingroup fournisseur
|
||||
\brief Page d'administration-configuration du module Fournisseur
|
||||
\version $Id$
|
||||
* \file htdocs/admin/fournisseur.php
|
||||
* \ingroup fournisseur
|
||||
* \brief Page d'administration-configuration du module Fournisseur
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT.'/fourn/fournisseur.class.php');
|
||||
require_once(DOL_DOCUMENT_ROOT.'/fourn/fournisseur.commande.class.php');
|
||||
@@ -71,8 +71,8 @@ if ($_GET["action"] == 'specimen')
|
||||
|
||||
if ($obj->write_file($commande,$langs) > 0)
|
||||
{
|
||||
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=commande_fournisseur&file=SPECIMEN.pdf");
|
||||
return;
|
||||
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=commande_fournisseur&file=SPECIMEN.pdf");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -177,7 +177,7 @@ print '<tr class="liste_titre">';
|
||||
print '<td width="100">'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td>'.$langs->trans("Example").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||
print '<td align="center" width="16">'.$langs->trans("Info").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
@@ -215,11 +215,11 @@ if ($handle)
|
||||
print '<td align="center">';
|
||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON == "$file")
|
||||
{
|
||||
print img_tick($langs->trans("Activated"));
|
||||
print img_picto($langs->trans("Activated"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Activate").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
@@ -296,7 +296,7 @@ print "<table class=\"noborder\" width=\"100%\">\n";
|
||||
print "<tr class=\"liste_titre\">\n";
|
||||
print ' <td width="100">'.$langs->trans("Name")."</td>\n";
|
||||
print " <td>".$langs->trans("Description")."</td>\n";
|
||||
print '<td align="center" width="60">'.$langs->trans("Activated")."</td>\n";
|
||||
print '<td align="center" width="60">'.$langs->trans("Status")."</td>\n";
|
||||
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Info").'</td>';
|
||||
print "</tr>\n";
|
||||
@@ -324,35 +324,35 @@ while (($file = readdir($handle))!==false)
|
||||
// Active
|
||||
if (in_array($name, $def))
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name")
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||
print img_tick($langs->trans("Disable"));
|
||||
print '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print img_tick($langs->trans("Enabled"));
|
||||
}
|
||||
print "<td align=\"center\">\n";
|
||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name")
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
print '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print img_picto($langs->trans("Enabled"),'on');
|
||||
}
|
||||
print "</td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td align=\"center\">\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print "</td>";
|
||||
print "<td align=\"center\">\n";
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
print "<td align=\"center\">";
|
||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "$name")
|
||||
{
|
||||
print img_tick($langs->trans("Default"));
|
||||
print img_picto($langs->trans("Default"),'on');
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'on').'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/dolgeoip.class.php");
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -24,12 +24,14 @@
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/usergroups.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/html.formadmin.class.php");
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("languages");
|
||||
$langs->load("other");
|
||||
|
||||
$langs->load("companies");
|
||||
@@ -302,7 +304,11 @@ else // Show
|
||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td><td> </td></tr>';
|
||||
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>' . ($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$conf->global->MAIN_LANG_DEFAULT) . '</td>';
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>';
|
||||
$s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT);
|
||||
print ($s?$s.' ':'');
|
||||
print ($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$langs->trans("Language_".$conf->global->MAIN_LANG_DEFAULT));
|
||||
print '</td>';
|
||||
print '<td width="20"> </td>';
|
||||
print "</tr>";
|
||||
|
||||
@@ -373,7 +379,7 @@ else // Show
|
||||
print '<br>';
|
||||
|
||||
|
||||
// Liste des zone de recherche permanantes support<EFBFBD>es
|
||||
// Liste des zone de recherches permanentes supportees
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td width="35%">'.$langs->trans("PermanentLeftSearchForm").'</td><td>'.$langs->trans("Activated").'</td><td> </td></tr>';
|
||||
$var=true;
|
||||
|
||||