cosmetic : input_text_ro

add date fin (ad_id=33)
cosmetic fiche : itext
This commit is contained in:
Dany De Bontridder 2012-01-07 04:58:01 +00:00
parent efc9a69e84
commit 31ee414cc6
7 changed files with 53 additions and 20 deletions

View file

@ -540,6 +540,11 @@ a.document:hover {
display:block;
}
.input_text_ro {
border:solid 1px blue;
background:lightgrey;
margin:1px;
}
.input_text {
border:groove 1px blue;
@ -839,7 +844,7 @@ a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
td.tool {
border: solid 1px gray;
background-color:white;
}
div.topmenu {
width:100%;
@ -1104,7 +1109,7 @@ a.nav:hover,div.content a.nav:hover,div.redcontent a.nav:hover {
float:left;
width:40em;
top:0px;
}
div.foldercontent {

View file

@ -540,6 +540,11 @@ a.document:hover {
display:block;
}
.input_text_ro {
border:solid 1px blue;
background:#EDEDED;
margin:1px;
}
.input_text {
border:groove 1px blue;

View file

@ -316,7 +316,7 @@ a.mtitle {
text-decoration:none;
display:inline;
color: blue;
}
a.mtitle:hover {
font-size:10px;
@ -535,6 +535,11 @@ a.document:hover {
display:block;
}
.input_text_ro {
border:solid 1px blue;
background:#EDEDED;
margin:1px;
}
.input_text {
border:groove 1px blue;
@ -804,7 +809,7 @@ a#anchorbutton, .button, a.button,div.content a.button {
color:lightblue;
font-weight: bold;
border:1px black outset ;
background-image: url("image/bg-submit5.png");
background-repeat: repeat-x;
background-position: left;
@ -820,7 +825,7 @@ background-repeat: repeat-x;
margin-left:3px;
cursor:pointer;
font-size:1.1em;
}
a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
cursor:pointer;

View file

@ -535,6 +535,11 @@ a.document:hover {
display:block;
}
.input_text_ro {
border:solid 1px blue;
background:#EDEDED;
margin:1px;
}
.input_text {
border:groove 1px blue;
@ -832,7 +837,7 @@ a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover {
td.tool {
border: solid 1px gray;
background-color: white;
}
div.topmenu {
margin-top:2px;

View file

@ -21,7 +21,7 @@
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/*!\file
* \brief Html Input
* \brief Html Input
*/
require_once('class_html_input.php');
class IText extends HtmlInput
@ -56,8 +56,8 @@ class IText extends HtmlInput
'NAME="'.$this->name.'" VALUE="'.$this->value.'" '.
' style="width:'.$this->css_size.';" '.$this->javascript." $this->extra >";
}
}
if ( $this->table == 1 ) $r='<td>'.$r.'</td>';
return $r;
@ -71,16 +71,16 @@ class IText extends HtmlInput
$extra=(isset($this->extra))?$this->extra:"";
$readonly=" readonly ";
$style='style="border:solid 1px blue;color:black;background:#EDEDED"';
$this->value=str_replace('"','',$this->value);
$this->style=' class="input_text_ro" ';
if ( ! isset ($this->css_size))
{
$r='<INPUT '.$style.' TYPE="TEXT" id="'.
$r='<INPUT '.$this->style.' TYPE="TEXT" id="'.
$this->name.'"'.$t.
'NAME="'.$this->name.'" VALUE="'.$this->value.'" '.
'SIZE="'.$this->size.'" '.$this->javascript." $readonly $this->extra >";
} else {
$r='<INPUT '.$style.' TYPE="TEXT" id="'.
$r='<INPUT '.$this->style.' TYPE="TEXT" id="'.
$this->name.'"'.$t.
'NAME="'.$this->name.'" VALUE="'.$this->value.'" '.
' style="width:'.$this->css_size.'" '.$this->javascript." $readonly $this->extra >";

View file

@ -1,20 +1,20 @@
<div class="content">
<table >
<tr>
<?
<?
echo th('Détail');
for ($i=0;$i<count($aHeading);$i++) :
echo th($aHeading[$i]->ad_text,'style="color:blue;padding: 0 5 1 10"');
endfor;
?>
</tr>
<?
<?
$e=0;
foreach ($array as $row ) :
$e++;
if ($e%2==0)
if ($e%2==0)
echo '<tr class="odd">';
else
else
echo '<tr class="even">';
$fiche=new Fiche($cn);
$fiche->id=$row['f_id'];
@ -22,10 +22,21 @@ foreach ($array as $row ) :
$detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE));
echo td($detail);
foreach($fiche->attribut as $attr) :
echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;"');
endforeach;
if ( $attr->ad_type != 'select'):
echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;"');
else:
$value=$cn->make_array($attr->ad_extra);
for ($e=0;$e<count($value);$e++):
if ( $value[$e]['value']==$attr->av_text):
echo td($value[$e]['label'],'style="padding: 0 10 1 10;white-space:nowrap;"');
break;
endif;
endfor;
endif;
endforeach;
echo '</tr>';
endforeach;
endforeach;
?>
</table>

View file

@ -1 +1,3 @@
alter table attr_def add ad_extra text ;
alter table attr_def add ad_extra text ;
insert into attr_def (ad_id,ad_text,ad_type,ad_size) values (33,'Date Fin','date',8);