[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4681 - in phpcompta/trunk: html include include/templat
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4681 - in phpcompta/trunk: html include include/template sql |
Date: |
Sat, 7 Jan 2012 05:58:02 +0100 (CET) |
Author: danydb
Date: 2012-01-07 05:58:01 +0100 (Sat, 07 Jan 2012)
New Revision: 4681
Modified:
phpcompta/trunk/html/style-color.css
phpcompta/trunk/html/style-epad.css
phpcompta/trunk/html/style-light.css
phpcompta/trunk/html/style.css
phpcompta/trunk/include/class_itext.php
phpcompta/trunk/include/template/result_cat_card_summary.php
phpcompta/trunk/sql/upgrade.sql
Log:
cosmetic : input_text_ro
add date fin (ad_id=33)
cosmetic fiche : itext
Modified: phpcompta/trunk/html/style-color.css
===================================================================
--- phpcompta/trunk/html/style-color.css 2012-01-07 02:17:29 UTC (rev
4680)
+++ phpcompta/trunk/html/style-color.css 2012-01-07 04:58:01 UTC (rev
4681)
@@ -541,6 +541,11 @@
}
+.input_text_ro {
+ border:solid 1px blue;
+ background:lightgrey;
+ margin:1px;
+}
.input_text {
border:groove 1px blue;
margin:1px;
@@ -839,7 +844,7 @@
td.tool {
border: solid 1px gray;
background-color:white;
-
+
}
div.topmenu {
width:100%;
@@ -1104,7 +1109,7 @@
float:left;
width:40em;
top:0px;
-
+
}
div.foldercontent {
Modified: phpcompta/trunk/html/style-epad.css
===================================================================
--- phpcompta/trunk/html/style-epad.css 2012-01-07 02:17:29 UTC (rev 4680)
+++ phpcompta/trunk/html/style-epad.css 2012-01-07 04:58:01 UTC (rev 4681)
@@ -541,6 +541,11 @@
}
+.input_text_ro {
+ border:solid 1px blue;
+ background:#EDEDED;
+ margin:1px;
+}
.input_text {
border:groove 1px blue;
margin:1px;
Modified: phpcompta/trunk/html/style-light.css
===================================================================
--- phpcompta/trunk/html/style-light.css 2012-01-07 02:17:29 UTC (rev
4680)
+++ phpcompta/trunk/html/style-light.css 2012-01-07 04:58:01 UTC (rev
4681)
@@ -316,7 +316,7 @@
text-decoration:none;
display:inline;
color: blue;
-
+
}
a.mtitle:hover {
font-size:10px;
@@ -536,6 +536,11 @@
}
+.input_text_ro {
+ border:solid 1px blue;
+ background:#EDEDED;
+ margin:1px;
+}
.input_text {
border:groove 1px blue;
margin:1px;
@@ -804,7 +809,7 @@
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 @@
margin-left:3px;
cursor:pointer;
font-size:1.1em;
-
+
}
a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover
{
cursor:pointer;
Modified: phpcompta/trunk/html/style.css
===================================================================
--- phpcompta/trunk/html/style.css 2012-01-07 02:17:29 UTC (rev 4680)
+++ phpcompta/trunk/html/style.css 2012-01-07 04:58:01 UTC (rev 4681)
@@ -536,6 +536,11 @@
}
+.input_text_ro {
+ border:solid 1px blue;
+ background:#EDEDED;
+ margin:1px;
+}
.input_text {
border:groove 1px blue;
margin:1px;
@@ -832,7 +837,7 @@
td.tool {
border: solid 1px gray;
background-color: white;
-
+
}
div.topmenu {
margin-top:2px;
Modified: phpcompta/trunk/include/class_itext.php
===================================================================
--- phpcompta/trunk/include/class_itext.php 2012-01-07 02:17:29 UTC (rev
4680)
+++ phpcompta/trunk/include/class_itext.php 2012-01-07 04:58:01 UTC (rev
4681)
@@ -21,7 +21,7 @@
// Copyright Author Dany De Bontridder address@hidden
/*!\file
- * \brief Html Input
+ * \brief Html Input
*/
require_once('class_html_input.php');
class IText extends HtmlInput
@@ -56,8 +56,8 @@
'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 @@
$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 >";
Modified: phpcompta/trunk/include/template/result_cat_card_summary.php
===================================================================
--- phpcompta/trunk/include/template/result_cat_card_summary.php
2012-01-07 02:17:29 UTC (rev 4680)
+++ phpcompta/trunk/include/template/result_cat_card_summary.php
2012-01-07 04:58:01 UTC (rev 4681)
@@ -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 @@
$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>
Modified: phpcompta/trunk/sql/upgrade.sql
===================================================================
--- phpcompta/trunk/sql/upgrade.sql 2012-01-07 02:17:29 UTC (rev 4680)
+++ phpcompta/trunk/sql/upgrade.sql 2012-01-07 04:58:01 UTC (rev 4681)
@@ -1 +1,3 @@
-alter table attr_def add ad_extra text ;
\ No newline at end of file
+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);
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4681 - in phpcompta/trunk: html include include/template sql,
phpcompta-dev <=