/[phpcompta]/phpcompta/include/form_input.php
ViewVC logotype

Diff of /phpcompta/include/form_input.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41 by stanpinte, Thu Apr 21 17:03:27 2005 UTC revision 1.42 by stanpinte, Thu Apr 21 18:04:36 2005 UTC
# Line 71  function InputType($p_label,$p_type,$p_n Line 71  function InputType($p_label,$p_type,$p_n
71      $r.="</SELECT></TD>";      $r.="</SELECT></TD>";
72      return $r;      return $r;
73    }    }
   // Input type == select  
   if ( strtolower($p_type)=="select" ) {  
     $r="<TD> $p_label</TD><TD>";  
     $r.=sprintf('<SELECT NAME="%s">',$p_name);  
     foreach ($p_list as $item) {  
       $selected="";  
       if ( $p_value == $item[0] ) {  
                 $selected="SELECTED";  
       }  
       $r.=sprintf('<OPTION VALUE="%s" %s>%s',  
                   $item[0],  
                   $selected,  
                   $item[1]);  
     }  
     $r.="</SELECT></TD>";  
     return $r;  
   }  
74    // Input type == select2    // Input type == select2
75    if ( strtolower($p_type)=="select2" ) {    if ( strtolower($p_type)=="select2" ) {
76      $r="<TD> $p_label</TD><TD>";      $r="<TD> $p_label</TD><TD>";

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26