noalyss Version-9
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
5echo Dossier::hidden();
6echo HtmlInput::hidden('t_id',$data->t_id);
7echo HtmlInput::hidden('ac',$_REQUEST['ac']);
8$uos=new Single_Record('tag');
9echo $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
32if ( $data->t_id == '-1') $data->t_color=1;
34
35for ($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
54if ( $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
60endif;
61?>
span($p_string, $p_extra='')
Definition: ac_common.php:43
p($p_string)
Definition: ac_common.php:39
$_REQUEST['ac']
$from_poste name
$input_from type
Definition: balance.inc.php:65
static hidden()
return a string to set gDossier into a FORM
static hidden($p_name, $p_value, $p_id="")
Html Input.
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Html Input.
Definition: itext.class.php:30
Manage the TEXTAREA html element.
Objec to check a double insert into the database, this duplicate occurs after a refresh of the web pa...
$icheckbox
Definition: tag_detail.php:19
$t_description
Definition: tag_detail.php:11
$t_actif
Definition: tag_detail.php:13
$t_tag
Definition: tag_detail.php:10
$uos
Definition: tag_detail.php:8
$nb_color
Definition: tag_detail.php:33