phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4675 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4675 - phpcompta/trunk/include
Date: Fri, 6 Jan 2012 17:31:55 +0100 (CET)

Author: danydb
Date: 2012-01-06 17:31:55 +0100 (Fri, 06 Jan 2012)
New Revision: 4675

Modified:
   phpcompta/trunk/include/class_fiche.php
   phpcompta/trunk/include/class_iselect.php
Log:
cosmetic : length text + select in display card

Modified: phpcompta/trunk/include/class_fiche.php
===================================================================
--- phpcompta/trunk/include/class_fiche.php     2012-01-06 16:25:15 UTC (rev 
4674)
+++ phpcompta/trunk/include/class_fiche.php     2012-01-06 16:31:55 UTC (rev 
4675)
@@ -558,7 +558,7 @@
        /* show card type here */
        $type_card=$this->cn->get_value('select fd_label from fiche_def join 
fiche using (fd_id) where f_id=$1',array($this->id));
        $ret=h2("Type de fiche : ".h($type_card)." (id ".$this->id.")","");
-        $ret.="<table>";
+        $ret.="<table style=\"width:98%;padding:1%\">";
         if ( empty ($attr) )
         {
          return 'FNT';
@@ -630,7 +630,7 @@
                     {
                     case 'text':
                         $w=new IText('av_text'.$r->ad_id);
-                        $w->size=$r->ad_size;
+                        $w->css_size="100%";
                         $w->value=$r->av_text;
                         break;
                     case 'numeric':
@@ -679,6 +679,7 @@
                   $w=new ISelect();
                   $w->value=$this->cn->make_array($r->ad_extra);
                   $w->selected=$r->av_text;
+                  $w->style=' style="width:100%" ';
                   break;
                     default:
                      var_dump($r);

Modified: phpcompta/trunk/include/class_iselect.php
===================================================================
--- phpcompta/trunk/include/class_iselect.php   2012-01-06 16:25:15 UTC (rev 
4674)
+++ phpcompta/trunk/include/class_iselect.php   2012-01-06 16:31:55 UTC (rev 
4675)
@@ -32,16 +32,13 @@
         $this->name=($p_name==null)?$this->name:$p_name;
         $this->value=($p_value==null)?$this->value:$p_value;
         if ( $this->readOnly==true) return $this->display();
+        $style=(isset($this->style))?$this->style:"";
 
-
         $disabled=($this->disabled==true)?"disabled":"";
 
-        //echo "<b>Selected <b>".$this->selected;
-        //$r=(isset($this->label))?$this->label:'';
         $r="";
-        //    if ( $this->table == 1 ) $r=td($r);
 
-        $a="<SELECT  id=\"$this->name\" NAME=\"$this->name\" $this->javascript 
$disabled>";
+        $a="<SELECT  id=\"$this->name\" NAME=\"$this->name\" $this->style 
$this->javascript $disabled>";
 
         if (empty($this->value)) return '';
         for ( $i=0;$i<sizeof($this->value);$i++)




reply via email to

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