Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
amortis
include
print_fiche.inc.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
require_once(
'class_am_card.php'
);
23
/*!\file
24
* \brief print detail of a card
25
*/
26
echo
'<div class="content" style="width:80%;margin-left:10%">'
;
27
echo
'<FORM METHOD="GET">'
;
28
echo HtmlInput::hidden(
'sa'
,
$_REQUEST
[
'sa'
]);
29
echo HtmlInput::hidden(
'sb'
,
$_REQUEST
[
'sb'
]);
30
echo HtmlInput::hidden(
'ac'
,
$_REQUEST
[
'ac'
]);
31
echo HtmlInput::hidden(
'plugin_code'
,
$_REQUEST
[
'plugin_code'
]);
32
echo dossier::hidden();
33
$list
=
$cn
->make_list(
'select fd_id from fiche_def where frd_id=7'
);
34
if
(
$list
!=
''
)
35
{
36
$p_card
=
new
ICard(
'p_card'
);
37
$p_card
->size=25;
38
$p_card
->set_attribute(
'typecard'
,
$list
);
39
$p_card
->set_attribute(
'label'
,
'p_card_label'
);
40
$p_card
->javascript=sprintf(
' onchange="fill_data_onchange(\'%s\');" '
,
41
$p_card
->name);
42
$p_card
->set_function(
'fill_data'
);
43
$p_card
->set_dblclick(
"fill_ipopcard(this);"
);
44
$msg
=
"Fiche"
;
45
if
( isset($_GET[
'p_card'
]))
46
{
47
/* search the card */
48
$fiche
=
new
Fiche(
$cn
);
49
$fiche
->get_by_qcode($_GET[
'p_card'
]);
50
$msg
=
$fiche
->strAttribut(ATTR_DEF_NAME);
51
$p_card
->value=$_GET[
'p_card'
];
52
}
53
echo
'<span style="text-align:left;display:block;font-size:2em" id="p_card_label" >'
.$msg.
'</span>'
;
54
echo
"Fiche "
.$p_card->input().$p_card->search();
55
echo HtmlInput::submit(
'search'
,
'Accepter'
);
56
echo
'</form>'
;
57
58
echo
'<FORM METHOD="GET" ACTION="extension.raw.php">'
;
59
echo HtmlInput::hidden(
'sa'
,
$_REQUEST
[
'sa'
]);
60
echo HtmlInput::hidden(
'sb'
,
$_REQUEST
[
'sb'
]);
61
echo HtmlInput::hidden(
'plugin_code'
,
$_REQUEST
[
'plugin_code'
]);
62
echo dossier::hidden();
63
echo HtmlInput::submit(
'pdf_all'
,
'Toutes les fiches en PDF'
);
64
echo
'</form>'
;
65
66
if
( isset($_GET[
'search'
]))
67
{
68
$a
=
new
Am_Card
();
69
echo
$a
->print_detail($_GET[
'p_card'
]);
70
}
71
}
72
else
73
{
74
echo h2info(_(
'Matériel à amortir'
));
75
echo h2(_(
'Attention pas de catégorie de fiche à amortir'
),
'class="error"'
);
76
}
77
echo
'</div>'
;
$msg
$msg
Definition:
listing_histo.php:53
$a
$a
Definition:
print_all.inc.php:27
$fiche
$fiche
Definition:
material_delete.inc.php:8
$list
$list
Definition:
print_fiche.inc.php:33
Am_Card
Definition:
class_am_card.php:30
$_REQUEST
$_REQUEST['sb']
Definition:
am_print.php:39
$cn
global $cn
Definition:
amortis_constant.php:12
$p_card
$p_card
Definition:
material_add.inc.php:29
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6