Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
tools
include
export_operation.inc.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of NOALYSS.
5
*
6
* NOALYSS is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* NOALYSS is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with NOALYSS; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*/
20
21
// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
?>
23
<form method=
"GET"
action=
"extension.raw.php"
onsubmit=
"return check_form()"
>
24
<?php
25
echo HtmlInput::get_to_hidden(array(
'gDossier'
,
'sa'
,
'ac'
,
'plugin_code'
));
26
echo HtmlInput::hidden(
"act"
,
"export_operation"
);
27
$date_from
=
new
IDate(
'p_from'
);
28
$date_from
->id=
'p_start_date_id'
;
29
$date_to
=
new
IDate(
'p_to'
);
30
$date_to
->id=
"p_end_date_id"
;
31
?>
32
<?php echo _(
"Date début"
)?> <?php echo
$date_from
->input()?>
33
<?php echo _(
"Date fin"
)?> <?php echo
$date_to
->input()?>
34
<p>
35
<?php
36
echo HtmlInput::submit(
"act_sb"
,_(
"Export CSV"
));
37
?>
38
</p>
39
</form>
40
<script>
41
42
function
check_form()
43
{
44
if
($(
'p_start_date_id'
).
value
==
""
|| ! check_date ($(
'p_start_date_id'
).
value
)) {
45
alert(
'Date incorrect'
);
46
$(
'p_start_date_id'
).
style
.borderColor =
"red"
;
47
return
false
;
48
}
49
if
($(
'p_end_date_id'
).value ==
""
|| ! check_date($(
'p_end_date_id'
).
value
)) {
50
alert(
'Date incorrect'
);
51
$(
'p_end_date_id'
).
style
.borderColor =
"red"
;
52
return
false
;
53
}
54
55
return
true
;
56
}
57
</script>
style
$note style
Definition:
ajax_add_key.php:32
value
$p_year value
Definition:
material_add.inc.php:42
$date_from
$date_from
Definition:
export_operation.inc.php:27
$date_to
$date_to
Definition:
export_operation.inc.php:29
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6