/[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.46 by sparkyx, Mon Jul 4 20:14:28 2005 UTC revision 1.47 by sparkyx, Mon Jul 4 20:45:51 2005 UTC
# Line 129  function InputType($p_label,$p_type,$p_n Line 129  function InputType($p_label,$p_type,$p_n
129      return $r;      return $r;
130    }    }
131    
   // input type == js_search => button search  
   if ( strtolower($p_type)=="js_search") {  
     $l_sessid=$_REQUEST['PHPSESSID'];  
     $r=sprintf('<TD>  
          <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\') value="New">  
          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\') value="Search">  
             %s</TD><TD>  
132    
              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">  
                  </TD>',  
                $l_sessid,  
                $p_list,  
                $p_name,  
                $l_sessid,  
                $p_list,  
                $p_name,  
                $p_label,  
                $p_name,  
                $p_value  
                );  
   }  
133    // input type == js_concerned => button search for the concerned operations    // input type == js_concerned => button search for the concerned operations
134    if ( strtolower($p_type)=="js_concerned") {    if ( strtolower($p_type)=="js_concerned") {
135      $l_sessid=$_REQUEST['PHPSESSID'];      $l_sessid=$_REQUEST['PHPSESSID'];
# Line 170  function InputType($p_label,$p_type,$p_n Line 150  function InputType($p_label,$p_type,$p_n
150        
151    }    }
152    
153    // input type == js_search_poste => button search for the account  
   if ( strtolower($p_type)=="js_search_poste") {  
     $l_sessid=$_REQUEST['PHPSESSID'];  
   
     if ( $p_list == null ) { // no filter  
     $r=sprintf('<TD>  
          <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\') value="Search">  
             %s</TD><TD>  
   
              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">  
                  </TD>',  
                $l_sessid,  
                $p_name,  
                $p_label,  
                $p_name,  
                $p_value  
                );  
   
     } else { // $p_list is not null, so we have a filter  
       $r=sprintf('<TD>  
          <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\') value="Search">  
             %s</TD><TD>  
   
              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">  
                  </TD>',  
                  $l_sessid,  
                  $p_name,  
                  $p_list,  
                  $p_label,  
                  $p_name,  
                  $p_value  
                  );  
   
     }  
     
   }  
   
154    // input type == js_tva    // input type == js_tva
155    if ( strtolower($p_type)=="js_tva") {    if ( strtolower($p_type)=="js_tva") {
156      if ( strlen(trim($p_label)) != 0 )      if ( strlen(trim($p_label)) != 0 )

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

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