Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
tool_pcmn
index.php
Go to the documentation of this file.
1
<?php
2
/*
3
* This file is part of NOALYSS.
4
*
5
* NOALYSS is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* NOALYSS is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with NOALYSS; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
/* $Revision$ */
20
21
// Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
22
23
/*!\file
24
* \brief main file for importing or exporting accountancy
25
*/
26
27
/*
28
* load javascript
29
*/
30
global
$version_plugin
;
31
$version_plugin
=SVNINFO;
32
Extension::check_version(6910);
33
global
$cn
;
34
echo
'<div style="float:right"><a class="mtitle" style="font-size:140%" href="http://wiki.noalyss.eu/doku.php?id=importation_de_plan_comptable" target="_blank">Aide</a>'
.
35
'<span style="font-size:0.8em;color:red;display:inline">vers:SVNINFO</span>'
.
36
'</div>'
;
37
$cn
=Dossier::connect();
38
/*
39
* load javascript
40
*/
41
42
$url
=
'?'
.dossier::get().
'&plugin_code='
.
$_REQUEST
[
'plugin_code'
].
"&ac="
.
$_REQUEST
[
'ac'
];
43
44
$cn
=Dossier::connect();;
45
46
47
$menu
=array(
48
array(
$url
.
'&sa=import'
,
'Importation'
,
'Importation de plan comptable'
,1),
49
array(
$url
.
'&sa=export'
,
'Export'
,
'Exportation du plan comptable'
,2),
50
);
51
52
53
$sa
=(isset(
$_REQUEST
[
'sa'
]))?
$_REQUEST
[
'sa'
]:
''
;
54
$_REQUEST
[
'sa'
]=
$sa
;
55
$def
=0;
56
57
switch
(
$sa
)
58
{
59
case
'import'
:
60
$def
=1;
61
break
;
62
case
'export'
:
63
$def
=2;
64
break
;
65
}
66
67
echo ShowItem(
$menu
,
'H'
,
'mtitle '
,
'mtitle '
,
$def
,
' style="width:80%;margin-left:10%;border-collapse: separate;border-spacing: 5px;"'
);
68
69
/* Importat files */
70
if
(
$def
==1)
71
{
72
require_once(
'include/import_plan.php'
);
73
exit();
74
}
75
/* export */
76
if
(
$def
==2)
77
{
78
require_once(
'include/export_plan.php'
);
79
exit();
80
}
$version_plugin
global $version_plugin
Definition:
index.php:22
$_REQUEST
$_REQUEST['sa']
Definition:
index.php:68
$cn
$cn
Definition:
index.php:42
$sa
$sa
Definition:
index.php:67
$def
$def
Definition:
index.php:69
$url
$url
Definition:
index.php:40
$menu
if($cn->exist_schema('amortissement')==false) if($cn->get_value('select max(val) from amortissement.version')< $amortissement_version) $menu
Definition:
index.php:60
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6