phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4660 - in phpcompta/trunk/include: . template


From: phpcompta-dev
Subject: [Phpcompta-dev] r4660 - in phpcompta/trunk/include: . template
Date: Tue, 3 Jan 2012 17:31:56 +0100 (CET)

Author: danydb
Date: 2012-01-03 17:31:56 +0100 (Tue, 03 Jan 2012)
New Revision: 4660

Modified:
   phpcompta/trunk/include/class_acc_ledger.php
   phpcompta/trunk/include/class_acc_ledger_purchase.php
   phpcompta/trunk/include/class_acc_ledger_sold.php
   phpcompta/trunk/include/class_itext.php
   phpcompta/trunk/include/template/ledger_detail_ach.php
   phpcompta/trunk/include/template/ledger_detail_misc.php
   phpcompta/trunk/include/template/ledger_detail_ven.php
Log:
Cosmetic CSS Size  for IText, for updatable label (VEN, ACH,ODS)

Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php        2012-01-01 23:16:43 UTC 
(rev 4659)
+++ phpcompta/trunk/include/class_acc_ledger.php        2012-01-03 16:31:56 UTC 
(rev 4660)
@@ -1575,7 +1575,7 @@
         $ret.= '<tr><td >'._('Libellé');
         $wDescription=new IText('desc');
         $wDescription->readonly=$p_readonly;
-        $wDescription->size=100;
+        $wDescription->css_size="100%";
         $wDescription->value=(isset($desc))?$desc:'';
         $ret.='<td colspan="2" style="width:auto">';
         $ret.=$wDescription->input();

Modified: phpcompta/trunk/include/class_acc_ledger_purchase.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_purchase.php       2012-01-01 
23:16:43 UTC (rev 4659)
+++ phpcompta/trunk/include/class_acc_ledger_purchase.php       2012-01-03 
16:31:56 UTC (rev 4660)
@@ -1152,7 +1152,7 @@
             if ( $g_parameter->MY_UPDLAB == 'Y')
             {
                 $Span=new IText("e_march".$i."_label");
-                $Span->size=45;
+                $Span->css_size="100%";
             } else
             {
                 $Span=new ISpan("e_march".$i."_label");

Modified: phpcompta/trunk/include/class_acc_ledger_sold.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_sold.php   2012-01-01 23:16:43 UTC 
(rev 4659)
+++ phpcompta/trunk/include/class_acc_ledger_sold.php   2012-01-03 16:31:56 UTC 
(rev 4660)
@@ -1257,7 +1257,8 @@
             if ( $g_parameter->MY_UPDLAB == 'Y')
             {
                 $Span=new IText("e_march".$i."_label");
-                $Span->size=45;
+                
+                $Span->css_size="100%";
             } else
             {
                 $Span=new ISpan("e_march".$i."_label");

Modified: phpcompta/trunk/include/class_itext.php
===================================================================
--- phpcompta/trunk/include/class_itext.php     2012-01-01 23:16:43 UTC (rev 
4659)
+++ phpcompta/trunk/include/class_itext.php     2012-01-03 16:31:56 UTC (rev 
4660)
@@ -43,11 +43,21 @@
         $extra=(isset($this->extra))?$this->extra:"";
 
         $this->value=str_replace('"','',$this->value);
+        if ( ! isset ($this->css_size))
+        {
         $r='<INPUT '.$this->style.' TYPE="TEXT" id="'.
            $this->name.'"'.$t.
            'NAME="'.$this->name.'" VALUE="'.$this->value.'"  '.
            'SIZE="'.$this->size.'" '.$this->javascript."  $this->extra >";
         /* add tag for column if inside a table */
+        } else {
+           $r='<INPUT '.$this->style.' TYPE="TEXT" id="'.
+           $this->name.'"'.$t.
+           'NAME="'.$this->name.'" VALUE="'.$this->value.'"  '.
+           ' style="width:'.$this->csswidth.';" '.$this->javascript."  
$this->extra >";
+
+        }            
+        
         if ( $this->table == 1 )                 $r='<td>'.$r.'</td>';
 
         return $r;
@@ -63,10 +73,18 @@
         $readonly=" readonly ";
         $style='style="border:solid 1px blue;color:black;background:#EDEDED"';
         $this->value=str_replace('"','',$this->value);
+         if ( ! isset ($this->css_size))
+        {
         $r='<INPUT '.$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="'.
+           $this->name.'"'.$t.
+           'NAME="'.$this->name.'" VALUE="'.$this->value.'"  '.
+           ' style="width:'.$this->csswidth.'" '.$this->javascript." $readonly 
 $this->extra >";
+        }
 
         /* add tag for column if inside a table */
         if ( $this->table == 1 )                 $r='<td>'.$r.'</td>';

Modified: phpcompta/trunk/include/template/ledger_detail_ach.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_ach.php      2012-01-01 
23:16:43 UTC (rev 4659)
+++ phpcompta/trunk/include/template/ledger_detail_ach.php      2012-01-03 
16:31:56 UTC (rev 4660)
@@ -154,6 +154,7 @@
         $l_lib = ($q['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : 
$q['j_text'];
         $hidden = HtmlInput::hidden("j_id[]", $q['j_id']);
         $input = new IText("e_march" . $q['j_id'] . "_label", $l_lib);
+        $input->css_size="100%";
     }
     else
     {

Modified: phpcompta/trunk/include/template/ledger_detail_misc.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_misc.php     2012-01-01 
23:16:43 UTC (rev 4659)
+++ phpcompta/trunk/include/template/ledger_detail_misc.php     2012-01-03 
16:31:56 UTC (rev 4660)
@@ -136,6 +136,7 @@
     {
         $hidden = HtmlInput::hidden("j_id[]", $q[$e]['j_id']);
         $input = new IText("e_march" . $q[$e]['j_id'] . "_label", $l_lib);
+        $input->css_size="100%";
     }
     else
     {

Modified: phpcompta/trunk/include/template/ledger_detail_ven.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_ven.php      2012-01-01 
23:16:43 UTC (rev 4659)
+++ phpcompta/trunk/include/template/ledger_detail_ven.php      2012-01-03 
16:31:56 UTC (rev 4660)
@@ -144,6 +144,7 @@
         $l_lib = ($q['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : 
$q['j_text'];
         $hidden = HtmlInput::hidden("j_id[]", $q['j_id']);
         $input = new IText("e_march" . $q['j_id'] . "_label", $l_lib);
+        $input->css_size="100%";
     }
     else
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]