noalyss
Version-9
include
template
tag_detail.php
Go to the documentation of this file.
1
<?php
2
//This file is part of NOALYSS and is under GPL
3
//see licence.txt
4
?><?php
5
echo
Dossier::hidden
();
6
echo
HtmlInput::hidden
(
't_id'
,
$data
->t_id);
7
echo
HtmlInput::hidden
(
'ac'
,
$_REQUEST
[
'ac'
]);
8
$uos
=
new
Single_Record
(
'tag'
);
9
echo
$uos
->hidden();
10
$t_tag
=
new
IText
(
't_tag'
,
$data
->t_tag);
11
$t_description
=
new
ITextarea
(
't_description'
,
$data
->t_description);
12
$t_description
->style=
' class="itextarea" style="height:5em;vertical-align: top;"'
;
13
$t_actif
=
new
ISelect
(
"t_actif"
);
14
$t_actif
->value=[
15
[
'label'
=>_(
'Actif'
),
'value'
=>
'Y'
],
16
[
'label'
=>_(
'Non actif'
),
'value'
=>
'N'
]
17
];
18
$t_actif
->selected=
$data
->t_actif;
19
$icheckbox
=
new
ICheckBox
(
"tagcell_color"
);
20
$icheckbox
->javascript=
'onclick="uncheck_other(this,\'tagcell_color\');"'
;
21
?>
22
<
p
>
23
<?php echo _(
"Etiquette (tag)"
)?> : <?php echo
$t_tag
->input(); ?>
24
</
p
>
25
<
p
>
26
<?php echo _(
"Description"
)?> : <?php echo
$t_description
->input(); ?>
27
</
p
>
28
<
p
>
29
<?=_(
"Couleur"
)?>
30
</
p
>
31
<?php
32
if
(
$data
->t_id ==
'-1'
)
$data
->t_color=1;
33
$nb_color
=36;
34
35
for
(
$i
=1 ;
$i
!=
$nb_color
+1 ;
$i
++ ) {
36
?>
37
<
span
class
=
"tagcell <?="
tagcell-color
".$i?>"
>
38
<?=_(
"Exemple"
).$i ?>
39
<?php
$icheckbox
->value=
$i
;
40
if
(
$data
->t_color==
$i
) {
$icheckbox
->set_check(
$i
);}
else
{
$icheckbox
->selected=
false
;}
41
echo
$icheckbox
->input();
42
?>
43
</
span
>
44
<?php
45
46
}
// end loop $i
47
?>
48
49
<
p
>
50
<?=_(
"Etiquette actif"
) ?><?=
$t_actif
->input()?>
51
</
p
>
52
<?php
53
// If exist you can remove it
54
if
(
$data
->t_id !=
'-1'
) :
55
?>
56
<
p
><?php echo _(
"Cochez pour cette case pour effacer cette étiquette (tag)"
)?><input
type
=
"checkbox"
name
=
"remove"
>
57
</
p
>
58
59
<?php
60
endif
;
61
?>
span
span($p_string, $p_extra='')
Definition:
ac_common.php:43
p
p($p_string)
Definition:
ac_common.php:39
$i
$i
Definition:
action_document_type_mtable_input.php:83
endif
endif
Definition:
ajax_bookmark.php:104
$_REQUEST
$_REQUEST['ac']
Definition:
ajax_search_action.php:26
$data
$data
Definition:
ajax_tag_detail.php:13
name
$from_poste name
Definition:
balance.inc.php:163
type
$input_from type
Definition:
balance.inc.php:65
Dossier\hidden
static hidden()
return a string to set gDossier into a FORM
Definition:
dossier.class.php:202
HtmlInput\hidden
static hidden($p_name, $p_value, $p_id="")
Definition:
html_input.class.php:230
ICheckBox
Html Input.
Definition:
icheckbox.class.php:31
ISelect
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Definition:
iselect.class.php:40
IText
Html Input.
Definition:
itext.class.php:30
ITextarea
Manage the TEXTAREA html element.
Definition:
itextarea.class.php:31
Single_Record
Objec to check a double insert into the database, this duplicate occurs after a refresh of the web pa...
Definition:
single_record.class.php:34
$icheckbox
$icheckbox
Definition:
tag_detail.php:19
$t_description
$t_description
Definition:
tag_detail.php:11
$t_actif
$t_actif
Definition:
tag_detail.php:13
$t_tag
$t_tag
Definition:
tag_detail.php:10
$uos
$uos
Definition:
tag_detail.php:8
$nb_color
$nb_color
Definition:
tag_detail.php:33