noalyss
Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
include
lib
iban_number.class.php
Go to the documentation of this file.
1
<?php
2
/*
3
* Copyright (C) 2025 dany
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program 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 this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
*/
19
20
/*!
21
* \file
22
* \brief input of the IBAN Number of a supplier / customer, propose a button to check
23
*/
24
25
class
IBan_Number
extends
\HtmlInput
26
{
27
private
$itext
;
28
29
function
__construct
(
$name
=
''
,
$value
=
''
,
$p_id
=
""
)
30
{
31
32
$p_id
= (
$p_id
==
""
)?uniqid(
"ibannumber"
):
$p_id
;
33
34
$this->itext =
new
IText
(
$name
,
$value
,
$p_id
);
35
$this->itext->title =
_
(
"IBAN"
);
36
$this->itext->placeholder =
"9999999999"
;
37
$this->itext->extra =
""
;
38
$this->itext->style =
' class="input_text" '
;
39
$this->autofocus =
false
;
40
}
41
42
function
input
()
43
{
44
if
( $this->
readOnly
==
true
)
return
$this->
display
();
45
46
$return = $this->itext->input();
47
$return .= $this->
button_check_iban
();
48
$return.=sprintf(
'<div id="info%s" class="notice" style="margin:0px;font-size:80%%;width:auto"></div>'
,$this->itext->id);
49
return
$return;
50
}
51
52
public
function
getIText
():
IText
53
{
54
return
$this->itext
;
55
}
56
57
public
function
setIText
(
IText
$itext
):
IBan_Number
58
{
59
$this->itext =
$itext
;
60
return
$this;
61
}
62
63
function
button_check_iban
()
64
{
65
$button=new \IButton(uniqid());
66
$button->javascript=sprintf(
"category_card.check_ibannumber('%s')"
,
67
$this->itext->id);
68
$button->extra=
'style="padding-bottom:0px"'
;
69
$button->label=
_
(
"Vérifie"
);
70
return
$button->input();
71
72
73
}
74
function
display
()
75
{
76
return
$this->itext->display();
77
78
}
79
80
static
function
testme
()
81
{
82
$iban_number=
new
IBan_Number
(
"av_text13"
);
83
84
echo $iban_number->input();
85
}
86
}
87
$p_id
$p_id
Definition
ajax_accounting.php:33
_
_("actif, passif,charge,...")
Definition
balance.inc.php:195
HtmlInput\$value
$value
Definition
html_input.class.php:59
HtmlInput\$name
$name
Definition
html_input.class.php:58
IBan_Number
Definition
iban_number.class.php:26
IBan_Number\__construct
__construct($name='', $value='', $p_id="")
Definition
iban_number.class.php:29
IBan_Number\input
input()
Definition
iban_number.class.php:42
IBan_Number\setIText
setIText(IText $itext)
Definition
iban_number.class.php:57
IBan_Number\display
display()
Definition
iban_number.class.php:74
IBan_Number\getIText
getIText()
Definition
iban_number.class.php:52
IBan_Number\$itext
$itext
Definition
iban_number.class.php:27
IBan_Number\button_check_iban
button_check_iban()
Definition
iban_number.class.php:63
IBan_Number\testme
static testme()
Definition
iban_number.class.php:80
IText
Html Input Text member :
Definition
itext.class.php:39
readOnly
$icard readOnly
Definition
follow_up_detail_display.php:69
Generated on Thu Jan 15 2026 10:14:39 for noalyss by
1.13.2