noalyss
Version-9
include
lib
icolor.class.php
Go to the documentation of this file.
1
<?php
2
/*
3
* This file is part of NOALYSS.
4
* NOALYSS is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* NOALYSS is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with NOALYSS; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Copyright Author Dany De Bontridder danydb@noalyss.eu
19
*
20
*/
21
22
23
/**
24
*\file
25
* \brief Html Input for color
26
*/
27
28
29
class
IColor
extends
HtmlInput
30
{
31
function
__construct
($p_name =
""
, $p_value =
""
,
$p_id
=
""
)
32
{
33
parent::__construct($p_name, $p_value,
$p_id
);
34
35
}
36
function
input
()
37
{
38
$this->
id
=(empty($this->
id
))?$this->
name
:$this->
id
;
39
$ret
= sprintf(
'<input type="color" id="%s" name="%s" value="%s">'
,
40
$this->
id
,$this->
name
,$this->
value
);
41
return
$ret
;
42
}
43
function
display
()
44
{
45
return
""
;
46
}
47
48
}
$p_id
$p_id
Definition:
ajax_accounting.php:33
value
$q value
Definition:
ajax_add_concerned_card.php:59
$ret
$ret
Definition:
ajax_display_letter.php:51
name
$from_poste name
Definition:
balance.inc.php:163
HtmlInput
class widget This class is used to create all the HTML INPUT TYPE and some specials which works with ...
Definition:
html_input.class.php:55
IColor
Definition:
icolor.class.php:30
IColor\display
display()
Definition:
icolor.class.php:43
IColor\input
input()
Definition:
icolor.class.php:36
IColor\__construct
__construct($p_name="", $p_value="", $p_id="")
Definition:
icolor.class.php:31